/* Date Mode website. Cherry + Ping palette from the approved palette.json; type roles from identity.md. */
:root {
  --ink: #1a1416;
  --ink-2: #5c5355;
  --day: #fbf9f7;
  --hill: #f4e6e3;
  --card: #ffffff;
  --cherry: #b5121b;
  --cherry-lip: #7c0b12;
  --night-ink: #fff9f4;
  --night-ink-2: #f6d6d2;
  --blush: #f7e2e1;
  --dark: #1c1314;
  --font: 'SF Pro Rounded', ui-rounded, 'Arial Rounded MT Bold', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 24px;
  --radius: 22px;
  --max: 1160px;
  --lip: 0 5px 0 var(--ink);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --settle: 320ms;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--day); color: var(--ink); font: 500 17px/1.5 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.on-cherry a:focus-visible { outline-color: var(--night-ink); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 999px; border: 2.5px solid var(--ink); font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; padding: 12px 0; background: rgba(251, 249, 247, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background var(--settle), box-shadow var(--settle); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-head.is-stuck { box-shadow: 0 2px 0 var(--hill); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img.icon { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--ink); }
.brand img.word { height: 20px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; font: 700 15px/1.2 var(--font); }
.site-nav a { text-decoration: none; padding: 12px 0; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta { padding: 10px 18px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--cherry); color: var(--night-ink); box-shadow: 0 3px 0 var(--ink); }
.site-nav .nav-cta:hover { text-decoration: none; }
.home .site-head { position: fixed; left: 0; right: 0; }
.home .site-head:not(.is-stuck) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-head:not(.is-stuck) .brand img.word { filter: brightness(0) invert(.98); }
.home .site-head:not(.is-stuck) .site-nav a:not(.nav-cta) { color: var(--night-ink); }
.home .site-head:not(.is-stuck) .site-nav .nav-cta { background: var(--card); color: var(--ink); }

/* ---------- Buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 22px 8px 18px;
  background: var(--dark); color: #fff; text-decoration: none; border-radius: 16px;
  border: 2.5px solid var(--ink); box-shadow: var(--lip); transition: transform 90ms, box-shadow 90ms;
}
.store:hover { background: #000; }
.store:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.store svg { width: 26px; height: 26px; flex: none; fill: #fff; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font: 600 12px/1.2 var(--font); opacity: .85; }
.store strong { font: 800 20px/1.1 var(--font); letter-spacing: -.01em; }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; font: 800 13px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; background: var(--blush); color: var(--cherry-lip); }
.on-cherry .eyebrow { background: rgba(255, 249, 244, .16); color: var(--night-ink); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.h-display { margin: 0 0 20px; font: 800 clamp(44px, 7vw, 84px)/.98 var(--font); letter-spacing: -.02em; }
.h-section { margin: 0 0 18px; font: 800 clamp(32px, 4.6vw, 52px)/1.04 var(--font); letter-spacing: -.015em; }
.lead { margin: 0; font: 600 clamp(18px, 2vw, 22px)/1.45 var(--font); color: var(--ink-2); max-width: 38ch; }
.on-cherry { color: var(--night-ink); }
.on-cherry .lead { color: var(--night-ink-2); }
.hl { color: var(--cherry); }

section { position: relative; padding: 112px 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { background: var(--cherry); overflow: hidden; padding: 132px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 104px; }
.hero-copy .lead { margin-bottom: 32px; }
.hero-art { position: relative; }
.hero-phone { width: min(100%, 460px); margin: 0 auto; border-radius: 40px 40px 0 0; overflow: hidden; border: 2.5px solid var(--ink); border-bottom: 0; background: var(--day); }
.hero-phone img { width: 100%; }
.hero-ping { position: absolute; width: 150px; left: -16px; bottom: 26%; }
.hero-chip { position: absolute; left: -40px; top: 5%; background: var(--card); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: var(--lip); padding: 10px 14px; font: 800 14px/1.25 var(--font); max-width: 210px; }
.hero-chip small { display: block; font: 600 12px/1.3 var(--font); color: var(--ink-2); }

/* Ticker of the usual third wheels */
.ticker { background: var(--dark); color: var(--night-ink); overflow: hidden; border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.ticker-track { display: flex; width: max-content; padding: 18px 0; animation: ticker 40s linear infinite; font: 800 20px/1 var(--font); white-space: nowrap; }
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker-track span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--cherry); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Tension ---------- */
.tension .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.scene { position: relative; background: var(--hill); border: 2.5px solid var(--ink); border-radius: 32px; box-shadow: 0 8px 0 var(--ink); padding: 44px 28px 32px; }
.scene-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.scene-lines li { background: var(--card); border: 2px solid var(--ink); border-radius: 18px 18px 18px 6px; padding: 12px 16px; font: 700 16px/1.4 var(--font); max-width: 86%; justify-self: start; }
.scene-lines li.them { justify-self: end; border-radius: 18px 18px 6px 18px; background: var(--blush); }
.scene-lines li.time { justify-self: center; background: none; border: 0; padding: 4px 0; font: 700 13px/1 var(--font); color: var(--ink-2); }
.scene .ping-peek { position: absolute; width: 120px; right: -24px; top: -70px; }
.tension-copy p { margin: 0 0 16px; font-size: 19px; color: var(--ink-2); max-width: 44ch; }
.tension-copy p strong { color: var(--ink); }

/* ---------- Why two ---------- */
.why { background: var(--dark); color: var(--night-ink); }
.why .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.why .lead { color: #dccdca; max-width: 46ch; }
.why .lead + .lead { margin-top: 16px; }
.why .eyebrow { background: rgba(255, 249, 244, .1); color: var(--night-ink-2); }
.why-art { display: flex; justify-content: center; }
.why-art .bed { width: min(100%, 380px); background: var(--day); border: 2.5px solid var(--ink); border-radius: 36px; padding: 28px 22px 10px; }

/* ---------- Steps ---------- */
.steps-head { max-width: 760px; margin: 0 auto 56px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 44px 0; }
.step:nth-child(even) .step-art { order: 2; }
.step-art { border-radius: 36px; overflow: hidden; border: 2.5px solid var(--ink); box-shadow: 0 8px 0 var(--ink); aspect-ratio: 9 / 10; }
.step-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cherry); color: var(--night-ink); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font: 900 20px/1 var(--font); margin-bottom: 20px; }
.step h3 { margin: 0 0 14px; font: 800 clamp(28px, 3.4vw, 40px)/1.08 var(--font); letter-spacing: -.01em; }
.step p { margin: 0 0 12px; color: var(--ink-2); font-size: 18px; max-width: 42ch; }
.confess { display: inline-block; margin: 6px 0 12px; padding: 10px 16px; background: var(--blush); border: 2px solid var(--ink); border-radius: 16px; font: 800 18px/1.3 var(--font); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.chips li { padding: 9px 14px; border: 2px solid var(--ink); border-radius: 999px; font: 700 14px/1 var(--font); background: var(--card); }
.chips li.on { background: var(--cherry); color: #fff; }

/* ---------- Alert + countdown ---------- */
.moments { background: var(--blush); }
.moments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.moment { background: var(--card); border: 2.5px solid var(--ink); border-radius: 32px; box-shadow: 0 8px 0 var(--ink); padding: 40px 36px 36px; overflow: hidden; display: flex; flex-direction: column; }
.moment h3 { margin: 0 0 10px; font: 800 clamp(26px, 3vw, 34px)/1.1 var(--font); }
.moment > p { margin: 0 0 28px; color: var(--ink-2); max-width: 40ch; }
.lockscreen { margin-top: auto; border-radius: 28px; padding: 28px 16px 20px; background: linear-gradient(160deg, #4a3133, #1c1314 70%); }
.lockscreen .clock { text-align: center; color: rgba(255, 255, 255, .94); font: 700 64px/1 var(--font); letter-spacing: -.02em; margin-bottom: 6px; }
.lockscreen .day { text-align: center; color: rgba(255, 255, 255, .75); font: 600 15px/1 var(--font); margin-bottom: 22px; }
.notif { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; background: rgba(245, 240, 240, .94); border-radius: 20px; padding: 12px 14px; }
.notif + .notif { margin-top: 8px; opacity: .9; }
.notif img { width: 40px; height: 40px; border-radius: 10px; }
.notif b { display: block; font: 800 15px/1.25 var(--font); }
.notif span { display: block; font: 500 15px/1.3 var(--font); color: #2b2224; }
.notif time { font: 600 12px/1.4 var(--font); color: #6d6264; }
.live { display: flex; align-items: center; gap: 14px; background: #000; color: #fff; border-radius: 26px; padding: 14px 18px; }
.live img { width: 64px; flex: none; }
.live b { display: block; font: 800 18px/1.2 var(--font); }
.live span { font: 600 14px/1.3 var(--font); color: #cfc4c2; }
.live .live-time { margin-left: auto; font: 900 26px/1 var(--font); font-variant-numeric: tabular-nums; color: #ff7b81; white-space: nowrap; }

/* ---------- Reassurance ---------- */
.still-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 56px; }
.still-grid > .still { flex: 0 1 calc((100% - 40px) / 3); }
.still { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--lip); padding: 26px 24px; }
.still .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blush); border: 2px solid var(--ink); margin-bottom: 16px; }
.still .ico svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.still h3 { margin: 0 0 6px; font: 800 19px/1.25 var(--font); }
.still p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Privacy ---------- */
.privacy-band { background: var(--hill); }
.privacy-band .wrap { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; margin: 24px 0 20px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 40px; font: 700 18px/1.4 var(--font); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--cherry) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; border: 2px solid var(--ink); }
.privacy-band a { font-weight: 800; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 24px; margin-top: 56px; }
.plan { position: relative; background: var(--card); border: 2.5px solid var(--ink); border-radius: 28px; box-shadow: var(--lip); padding: 34px 28px 30px; text-align: left; }
.plan.best { background: var(--cherry); color: var(--night-ink); box-shadow: 0 8px 0 var(--ink); }
.plan .tag { position: absolute; top: -16px; left: 24px; background: var(--ink); color: #fff; border-radius: 999px; padding: 7px 12px; font: 800 13px/1 var(--font); }
.plan h3 { margin: 0 0 8px; font: 800 20px/1.2 var(--font); }
.plan .price { font: 900 44px/1 var(--font); letter-spacing: -.02em; }
.plan .price small { font: 700 17px/1 var(--font); letter-spacing: 0; }
.plan p { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }
.plan.best p { color: var(--night-ink-2); }
.fine { margin: 32px auto 0; max-width: 64ch; color: var(--ink-2); font: 600 14px/1.5 var(--font); }

/* ---------- FAQ ---------- */
.faq { background: var(--card); border-top: 2.5px solid var(--hill); }
.faq-list { max-width: 820px; margin: 48px auto 0; display: grid; gap: 14px; }
.faq-list details { background: var(--day); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; font: 800 18px/1.35 var(--font); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 2px solid var(--ink); background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1416' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform var(--settle) var(--spring); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.closer { background: var(--cherry); text-align: center; overflow: hidden; }
.closer .bed { width: min(400px, 80%); margin: 0 auto 36px; background: var(--day); border: 2.5px solid var(--ink); border-radius: 36px; box-shadow: 0 8px 0 var(--ink); padding: 28px 22px 10px; }
.closer .stores { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-foot { padding: 40px 0 56px; font: 600 14px/1.5 var(--font); color: var(--ink-2); border-top: 2px solid var(--hill); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { text-decoration: none; padding: 8px 0; }
.site-foot a:hover { text-decoration: underline; }

/* ---------- Motion (static forms read correctly; see reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 600ms ease, transform 700ms var(--spring); }
.js .reveal.in { opacity: 1; transform: none; }
.breathe { animation: breathe 4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes breathe { 50% { transform: scale(1.03); } }
.bob { animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.js .buzz.in .notif:first-child { animation: buzz 520ms ease-in-out 450ms 1; }
@keyframes buzz { 20% { transform: translateX(-6px) rotate(-1deg); } 40% { transform: translateX(6px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.js .develop img { filter: blur(16px) saturate(.2) brightness(1.2); transition: filter 1600ms ease 250ms; }
.js .develop.in img { filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .breathe, .bob, .ticker-track, .js .buzz.in .notif:first-child { animation: none; }
  .js .develop img { filter: none; transition: none; }
}

/* ---------- Document pages: privacy, terms, support ---------- */
.doc { padding: 40px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin: 0 0 8px; font: 800 clamp(32px, 5vw, 44px)/1.1 var(--font); }
.doc .updated { margin: 0 0 40px; color: var(--ink-2); font: 600 14px/1.4 var(--font); }
.doc h2 { margin: 44px 0 12px; font: 800 24px/1.2 var(--font); }
.doc h3 { margin: 28px 0 8px; font: 800 19px/1.25 var(--font); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1.5px solid var(--hill); }
.doc th { font-weight: 800; }
.doc .table-scroll { overflow-x: auto; }
.callout { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--lip); padding: 20px 24px; margin: 24px 0; }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin: 0; }
.support-hero { display: grid; grid-template-columns: 1fr 180px; gap: 24px; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 40px; }
  .hero-ping { width: 112px; left: 0; }
  .hero-chip { left: 0; }
  .tension .wrap, .why .wrap, .privacy-band .wrap { grid-template-columns: 1fr; gap: 56px; }
  .why-art { order: -1; }
  .why-art .bed { width: 280px; }
  .step { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .step:nth-child(even) .step-art { order: 0; }
  .step-art { max-width: 520px; }
  .moments-grid { grid-template-columns: 1fr; }
  .still-grid > .still { flex-basis: calc((100% - 20px) / 2); }
  .privacy-band img { width: 160px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  section { padding: 80px 0; }
  .hero { padding-top: 100px; }
  .site-nav { gap: 16px; }
  .site-nav .hide-sm { display: none; }
  .brand img.word { display: none; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
  .hero-ping { width: 84px; bottom: 18%; }
  .hero-chip { top: 8%; max-width: 168px; font-size: 13px; }
  .scene { padding: 36px 16px 22px; }
  .scene .ping-peek { width: 90px; right: -6px; top: -58px; }
  .still-grid > .still { flex-basis: 100%; }
  .plans { grid-template-columns: 1fr; }
  .moment { padding: 32px 18px 20px; }
  .lockscreen { padding: 22px 10px 14px; }
  .lockscreen .clock { font-size: 52px; }
  .live { padding: 12px 14px; gap: 10px; }
  .live img { width: 48px; }
  .live .live-time { font-size: 20px; }
  .support-hero { grid-template-columns: 1fr; }
  .support-hero img { width: 140px; order: -1; }
}
.closer .lead { margin-left: auto; margin-right: auto; }
