:root {
  --bg: #FDF6F4; --paper: #FFFFFF; --blush: #F7E6E2; --rule: #EBD9D4;
  --ink: #2A1A22; --mute: #7A6A70; --dim: #B3A3A8;
  --rose: #D6336C; --peach: #F2A477; --gold: #C9822F; --sage: #3FA37A;
  --sf: -apple-system, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17101A; --paper: #211823; --blush: #2A1F2C; --rule: #372A38; --ink: #F8EDEE; --mute: #B6A4AB; --dim: #7E6D75; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--sf); -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.rose { color: var(--rose); }

/* drifting aurora behind the hero, like the app's Today screen */
.aurora { position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.aurora i:nth-child(1) { width: 520px; height: 520px; left: 8%; top: 4%; background: var(--peach); }
.aurora i:nth-child(2) { width: 460px; height: 460px; right: 6%; top: 10%; background: #F5A3C0; }
.aurora i:nth-child(3) { width: 380px; height: 380px; left: 40%; top: 36%; background: #FFD98A; opacity: .4; }
@media (prefers-color-scheme: dark) { .aurora i { opacity: .28; } }
@media (prefers-reduced-motion: no-preference) {
  .aurora i:nth-child(1) { animation: drift1 22s ease-in-out infinite; }
  .aurora i:nth-child(2) { animation: drift2 27s ease-in-out infinite; }
  .aurora i:nth-child(3) { animation: drift1 31s ease-in-out infinite reverse; }
  @keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(60px,40px) scale(1.08) } }
  @keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(-70px,50px) scale(.94) } }
}

/* header */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .12em; font-size: 15px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--mute); }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; font-size: 15px; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn.ghost { background: color-mix(in srgb, var(--paper) 60%, transparent); color: var(--ink); border: 1px solid var(--rule); }

/* hero */
.hero-wrap { position: relative; isolation: isolate; overflow-x: clip; }
.hero { padding: 76px 24px 56px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--rose); letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin-top: 14px; font-size: clamp(40px, 6vw, 70px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 em { font-style: normal; font-weight: 200; }
.hero p.lead { margin-top: 20px; font-size: 19px; color: var(--mute); max-width: 46ch; }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { margin-top: 28px; display: flex; gap: 10px 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.hero-proof span::before { content: "●"; color: var(--rose); margin-right: 8px; }

/* phones */
.phone { width: 290px; aspect-ratio: 1206/2622; border-radius: 46px; border: 7px solid #1d1419; background: #000; overflow: hidden; box-shadow: 0 40px 90px rgba(80,20,40,.22), inset 0 0 0 1px rgba(255,255,255,.06); position: relative; }
.phone img { width: 100%; height: 100%; display: block; object-fit: cover; }
.phone-stage { position: relative; display: flex; justify-content: center; min-height: 600px; align-items: center; }
.phone-stage .phone.back { position: absolute; translate: -140px 40px; rotate: -7deg; scale: .86; z-index: 0; }
.phone-stage .phone.back2 { position: absolute; translate: 140px 50px; rotate: 7deg; scale: .84; z-index: 0; }
.phone-stage .phone.front { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 8s ease-in-out infinite; }
  .float.d1 { animation-delay: -2.6s; } .float.d2 { animation-delay: -5.2s; }
  @keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
}

/* sections */
section { padding: 88px 0; border-top: 1px solid var(--rule); }
h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.03em; line-height: 1.08; margin-top: 10px; font-weight: 800; }
.sub { color: var(--mute); font-size: 17px; margin-top: 14px; max-width: 62ch; }
.cite { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-top: 14px; }
.cite a { color: var(--mute); }

/* signal marquee */
.marquee { overflow: hidden; padding: 20px 0; margin: 0 auto; max-width: var(--wrap); padding-left: 24px; padding-right: 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 44px; width: max-content; font-family: var(--mono); font-size: 14px; color: var(--mute); white-space: nowrap; }
.marquee b { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .marquee .track { animation: scroll 40s linear infinite; } @keyframes scroll { to { transform: translateX(-50%) } } }

/* cycle ring demo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 44px; }
.ring { width: min(420px, 100%); margin: 0 auto; display: block; }
.ring .arc { fill: none; stroke-width: 22; stroke-linecap: round; }
.ring .track-c { stroke: var(--blush); }
.ring .period { stroke: var(--rose); }
.ring .fertile { stroke: var(--peach); }
.ring .ov { stroke: var(--gold); }
.ring .dash { stroke-dasharray: var(--len) 2000; stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }
.in .ring .dash, .ring.in .dash { stroke-dashoffset: 0; }
.ring .d2 { transition-delay: .5s; } .ring .d3 { transition-delay: 1s; }
.ring text { font-family: var(--sf); fill: var(--ink); }
.ring .dot { fill: var(--ink); transform-origin: 210px 210px; }
@media (prefers-reduced-motion: no-preference) { .in .ring .dot { animation: orbit 1.6s cubic-bezier(.2,.8,.2,1) both .2s; } @keyframes orbit { from { transform: rotate(-150deg) } to { transform: rotate(0) } } }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--mute); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--c); }

.ledger { border-top: 1px solid var(--rule); margin-top: 22px; }
.ledger .l { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.ledger .l span:last-child { font-family: var(--mono); font-size: 13px; color: var(--mute); text-align: right; }

/* Wilcox bars */
.bars { display: flex; gap: 12px; align-items: flex-end; height: 220px; margin-top: 34px; }
.bars i { flex: 1; position: relative; height: 100%; font-style: normal; }
.bars i b { position: absolute; left: 0; right: 0; bottom: 26px; height: 0; border-radius: 10px 10px 4px 4px; background: linear-gradient(to top, var(--peach), var(--gold)); transition: height 1.1s cubic-bezier(.2,.8,.2,1); }
.bars i:last-child b { background: linear-gradient(to top, var(--gold), var(--rose)); }
.bars i:nth-child(2) b { transition-delay: .08s } .bars i:nth-child(3) b { transition-delay: .16s } .bars i:nth-child(4) b { transition-delay: .24s } .bars i:nth-child(5) b { transition-delay: .32s } .bars i:nth-child(6) b { transition-delay: .4s }
.bars i em { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.bars i s { position: absolute; left: 0; right: 0; text-align: center; text-decoration: none; font-family: var(--mono); font-size: 12px; color: var(--ink); bottom: calc(30px + var(--h) * 1.9); opacity: 0; transition: opacity .6s ease .9s; }
.in .bars i b, .bars.in i b { height: calc(var(--h) * 1.9); }
.in .bars i s, .bars.in i s { opacity: 1; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card { background: color-mix(in srgb, var(--paper) 85%, transparent); border: 1px solid var(--rule); border-radius: 22px; padding: 24px; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blush); color: var(--rose); font-size: 20px; margin-bottom: 14px; }
.card h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
.card p { color: var(--mute); font-size: 15px; }

/* screenshots rail */
.shots { display: flex; gap: 28px; margin-top: 44px; overflow-x: auto; padding: 10px 24px 30px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots figure { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
/* Centre the rail when it fits, and still let it scroll when it doesn't. Auto margins on the first and
   last items do this reliably in a scroll container; `justify-content: center` makes the overflow
   unreachable, and `safe center` did not take effect here. */
.shots > figure:first-of-type { margin-left: auto; }
.shots > figure:last-of-type { margin-right: auto; }
.shots .phone { width: 236px; border-width: 6px; border-radius: 38px; transition: transform .4s ease; }
.shots figure:hover .phone { transform: translateY(-8px); }
.shots figcaption { margin-top: 16px; font-size: 14px; color: var(--mute); max-width: 236px; }
.shots figcaption b { color: var(--ink); display: block; }
.rail-hint { font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: center; }

/* privacy */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 44px; }
.checks { list-style: none; border-top: 1px solid var(--rule); }
.checks li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 14px; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--sage); font-weight: 700; }
.callout { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 22px 24px; }
.callout .k { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.callout .v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.callout + .callout { margin-top: 14px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.plan { background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; padding: 26px; }
.plan.best { border: 2px solid var(--rose); }
.plan .name { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.plan .price small { font-size: 14px; color: var(--mute); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.plan p { color: var(--mute); font-size: 14px; margin-top: 8px; }

/* faq */
.faq { margin-top: 36px; }
.faq details { border-top: 1px solid var(--rule); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 10px; color: var(--mute); font-size: 15px; max-width: 72ch; }

.disclaimer { margin-top: 36px; padding: 18px 22px; border-radius: 16px; background: var(--blush); font-size: 14px; color: var(--ink); }

/* docs */
.doc { padding: 56px 24px 88px; max-width: 780px; }
.doc h1 { font-size: 42px; letter-spacing: -0.03em; }
.doc .updated { font-family: var(--mono); font-size: 12px; color: var(--mute); margin: 8px 0 28px; }
.doc h2 { font-size: 22px; margin: 38px 0 10px; letter-spacing: -0.02em; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin-top: 8px; } .doc li { margin: 6px 0; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-family: var(--mono); font-weight: 500; color: var(--mute); font-size: 12px; }
.doc code { font-family: var(--mono); font-size: 13px; background: var(--blush); padding: 2px 6px; border-radius: 4px; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.support-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 20px; }
.support-card h3 { font-size: 16px; margin: 0 0 6px; }
.support-card p { font-size: 15px; color: var(--mute); }

/* footer */
footer.site { border-top: 1px solid var(--rule); padding: 36px 0 60px; color: var(--mute); font-size: 14px; }
footer .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--mute); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring .dash { transition: none; stroke-dashoffset: 0; }
  .bars i b { transition: none; height: calc(var(--h) * 1.9); } .bars i s { opacity: 1; transition: none; }
}

@media (max-width: 900px) {
  .hero, .split, .privacy { grid-template-columns: 1fr; }
  .features, .plans { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 44px; }
  .phone-stage { min-height: 520px; }
  .phone-stage .phone { width: 240px; }
  .phone-stage .phone.back { translate: -90px 30px; }
  .phone-stage .phone.back2 { translate: 90px 40px; }
  .nav-links a[href^="#"] { display: none; }
}
@media (max-width: 560px) {
  .features, .plans, .support-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
}
