:root {
  --mist: #EEF0F0; --paper: #FBFCFC; --ink: #1F2B2F; --ink2: #4F5658; --tone: #93A2A5; --line: #DDE2E3;
  --ok: #3E7A5F; --dot: #E9F7F0;
  --r: 22px; --gut: 16px; --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 17px/1.5 "Inter Tight", system-ui, sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.tone { color: var(--tone); }

/* Buttons and signup */
.btn { appearance: none; border: 0; background: var(--ink); color: #fff; font: 500 16px/1 inherit; font-family: inherit; padding: 15px 20px; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
.btn:hover { background: #2E3D42; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.signup-form { display: flex; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px; max-width: 440px; }
.signup-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 0 14px; color: var(--ink); }
.signup-form input:focus { outline: none; }
.signup-form:focus-within { border-color: var(--ink); }
.signup-note { font-size: 14px; color: var(--ink2); margin: 10px 4px 0; }
.signup-note.is-error { color: #A03A2C; }
.thanks { font-size: 17px; margin: 0; padding: 14px 0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px var(--gut); background: color-mix(in srgb, var(--mist) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: 18px; letter-spacing: -.01em; }
.brand svg { width: 22px; height: 22px; }
.nav-links { display: none; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink2); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .nav { padding: 14px 32px; } .nav-links { display: flex; } .nav .btn { margin-left: 8px; } }

main > section { max-width: var(--max); margin: 0 auto; padding: 56px var(--gut); }
@media (min-width: 860px) { main > section { padding: 96px 32px; } }

.h2 { font-weight: 500; font-size: clamp(28px, 6.4vw, 46px); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 14px; max-width: 18ch; }
.h2 .tone { display: block; }
.ch-sub { color: var(--ink2); max-width: 46ch; margin: 0 0 24px; }
.note { font-size: 13px; color: var(--tone); margin: 14px 0 0; max-width: 60ch; }

/* 1. Hero */
.hero { display: grid; gap: 36px; padding-top: 28px !important; }
.hero h1 { font-weight: 500; font-size: clamp(40px, 11vw, 76px); line-height: .98; letter-spacing: -.035em; margin: 0 0 16px; max-width: 13ch; }
.lede { font-size: 19px; color: var(--ink2); max-width: 36ch; margin: 0 0 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.chips li { font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; align-items: center; min-height: calc(100svh - 70px); padding-top: 24px !important; } }

/* Phone frame */
.phone { margin: 0 auto; width: min(320px, 82vw); aspect-ratio: 9 / 19.2; background: #111618; border-radius: 48px; padding: 10px; box-shadow: 0 40px 80px -30px rgba(31,43,47,.45), inset 0 0 0 1.5px #3a4448; position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: #000; display: flex; flex-direction: column; }
.screen.paper { background: var(--mist); }

.cam { position: relative; flex: 1; overflow: hidden; }
.cam img, .cam .mesh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mesh .dots circle { fill: var(--dot); opacity: 0; animation: dot .5s ease forwards; }
.mesh .contour { fill: none; stroke: var(--dot); stroke-width: 2; stroke-dasharray: 900; stroke-dashoffset: 900; opacity: .75; animation: draw 1.6s 1.3s ease forwards; }
.mesh .dots circle:nth-child(3n) { animation-delay: .5s; } .mesh .dots circle:nth-child(3n+1) { animation-delay: .8s; } .mesh .dots circle:nth-child(3n+2) { animation-delay: 1.1s; }
@keyframes dot { from { opacity: 0; transform: scale(.2); } to { opacity: .95; transform: none; } }
.mesh .dots circle { transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sweep { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(to bottom, transparent, rgba(233,247,240,.28) 85%, rgba(233,247,240,.85)); animation: sweep 3.2s .2s ease-in-out 2 forwards; }
@keyframes sweep { to { top: 100%; } }
.checks { position: absolute; top: 54px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.checks span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--ink); background: rgba(251,252,252,.88); padding: 5px 9px 5px 7px; border-radius: 999px; opacity: 0; animation: pop .4s ease forwards; }
.checks span:nth-child(1) { animation-delay: 1.8s; } .checks span:nth-child(2) { animation-delay: 2.1s; } .checks span:nth-child(3) { animation-delay: 2.4s; }
.checks svg { width: 12px; height: 12px; color: var(--ok); }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sheet { background: var(--paper); padding: 14px 16px 22px; border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; }
.sheet-h { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.sheet-h span { font-weight: 400; color: var(--tone); font-size: 12px; margin-left: 6px; }
.reads { list-style: none; margin: 0; padding: 0; }
.reads li { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.reads b { font-weight: 500; }
.reads span { color: var(--ink2); text-align: right; }
.reads .ok { color: var(--ok); }
@media (prefers-reduced-motion: reduce) {
  .mesh .dots circle, .checks span { animation: none; opacity: .95; }
  .mesh .contour { animation: none; stroke-dashoffset: 0; }
  .sweep { display: none; }
}

/* 2. Before / after */
.ba { position: relative; aspect-ratio: 3 / 4; max-width: 520px; border-radius: var(--r); overflow: hidden; touch-action: pan-y; user-select: none; background: #ccc; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba-line svg { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); color: var(--ink); }
.ba-tag { position: absolute; top: 12px; font-size: 13px; font-weight: 500; background: rgba(251,252,252,.9); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.ba-tag.l { left: 12px; } .ba-tag.r { right: 12px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-range:focus-visible + * , .ba:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 860px) { .ba-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; } .ba-sec .note { grid-column: 2; } .ba-sec .h2 { align-self: center; } }

/* Chapters */
.ch-n { font-family: "Geist Mono", ui-monospace, monospace; font-size: 14px; color: var(--tone); margin: 0 0 10px; }
.chapter { border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .split.rev > :first-child { order: 2; }
}

/* 01 Ruler */
.ruler-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; max-width: 640px; }
.tabs { display: flex; gap: 4px; background: var(--mist); border-radius: 999px; padding: 4px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1; appearance: none; border: 0; background: transparent; font: 500 14px/1 inherit; font-family: inherit; color: var(--ink2); padding: 11px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(31,43,47,.12); }
.ruler .track { position: relative; height: 44px; background: repeating-linear-gradient(to right, var(--line) 0 1.5px, transparent 1.5px 10%) bottom / 100% 14px no-repeat, linear-gradient(var(--line), var(--line)) bottom / 100% 1.5px no-repeat; }
.ruler .band { position: absolute; bottom: 0; height: 26px; left: var(--b1, 40%); width: calc(var(--b2, 60%) - var(--b1, 40%)); background: rgba(147,162,165,.22); border-radius: 4px; transition: left .5s ease, width .5s ease; }
.ruler .mk { position: absolute; bottom: 0; width: 3px; height: 40px; border-radius: 2px; transform: translateX(-50%); transition: left .7s cubic-bezier(.3,1.3,.5,1); }
.ruler .mk.was { background: var(--tone); left: var(--was, 30%); height: 30px; }
.ruler .mk.now { background: var(--ink); left: var(--now, 60%); }
.ruler .mk.now::after { content: ""; position: absolute; top: -5px; left: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--tone); margin-top: 6px; }
.r-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--ink2); margin: 16px 0 0; }
.key { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.key.was { background: var(--tone); } .key.now { background: var(--ink); margin-left: 10px; }
.r-def { font-size: 18px; margin: 14px 0 8px; max-width: 44ch; }
.r-cite { font-size: 13px; color: var(--ink2); margin: 0; }

/* 02 Plan phone */
.plan-phone { aspect-ratio: 9 / 16; }
.day { margin: 52px 18px 12px; font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.day span { font-weight: 400; color: var(--tone); font-size: 14px; margin-left: 6px; letter-spacing: 0; }
.slots { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 8px; }
.slots li { display: grid; grid-template-columns: 40px 1fr 18px; gap: 8px; align-items: center; background: var(--paper); border-radius: 16px; padding: 11px 12px; }
.slots time { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; color: var(--tone); }
.slots b { display: block; font-weight: 500; font-size: 13px; line-height: 1.25; }
.slots span { display: block; font-size: 11px; color: var(--ink2); line-height: 1.3; margin-top: 2px; }
.slots svg { width: 16px; height: 16px; color: var(--ok); }
.slots .done b { color: var(--ink2); }
.slots .hl { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* 03 Chart */
.private { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; margin: 0; }
.private svg { width: 18px; height: 18px; flex: none; }
.chart-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 12px; }
.cc-h { margin: 0 0 12px; font-weight: 600; font-size: 16px; }
.cc-h span { font-weight: 400; color: var(--tone); font-size: 13px; margin-left: 6px; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .noise { fill: rgba(147,162,165,.18); }
.chart .base { stroke: var(--tone); stroke-dasharray: 3 4; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.chart-card.in .line { transition: stroke-dashoffset 1.8s ease; stroke-dashoffset: 0; }
.chart .end { fill: var(--ink); }
.chart .ax { font: 11px "Inter Tight", sans-serif; fill: var(--tone); }
@media (prefers-reduced-motion: reduce) { .chart .line { stroke-dashoffset: 0; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 32px !important; padding-bottom: 32px !important; }
.stats p { margin: 0; font-size: 13px; color: var(--ink2); line-height: 1.3; }
.stats b { display: block; font-weight: 500; font-size: clamp(36px, 10vw, 64px); letter-spacing: -.04em; color: var(--ink); line-height: 1; margin-bottom: 6px; }

/* Research */
.finds { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 28px; }
.finds li { border-top: 1px solid var(--line); padding-top: 18px; }
.f-big { font-size: 40px; font-weight: 500; letter-spacing: -.03em; margin: 0 0 4px; line-height: 1; }
.finds p { margin: 0 0 8px; max-width: 36ch; }
.finds cite { font-style: normal; font-size: 13px; color: var(--tone); }
.link { font-weight: 500; text-underline-offset: 4px; }
@media (min-width: 860px) { .finds { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* Principles */
.principles ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; }
.principles li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink2); max-width: 60ch; }
.principles b { color: var(--ink); font-weight: 500; display: block; }
@media (min-width: 860px) { .principles ul { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* Pricing */
.pricing { text-align: left; }
.pricing .h2 { font-size: clamp(40px, 11vw, 76px); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); max-width: 720px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--ink),var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink),var(--ink)) center / 1.5px 12px no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink2); max-width: 60ch; }

/* CTA */
.cta { text-align: center; }
.cta .h2 { margin-left: auto; margin-right: auto; font-size: clamp(36px, 9vw, 64px); }
.cta .signup-form, .cta .signup-note { margin-left: auto; margin-right: auto; }

/* Footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 40px var(--gut) 56px; border-top: 1px solid var(--line); display: grid; gap: 24px; font-size: 14px; }
.foot nav { display: grid; gap: 8px; }
.foot nav p { margin: 0; color: var(--tone); }
.foot nav a { color: var(--ink2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.legal { color: var(--tone); font-size: 12px; margin: 0; max-width: 70ch; }
@media (min-width: 860px) { .foot { grid-template-columns: 1fr 1fr 1fr; padding: 48px 32px 64px; } .legal { grid-column: 1 / -1; } }

@media (max-width: 380px) { .signup-form { flex-direction: column; border-radius: 20px; } .signup-form input { padding: 12px 14px; } .signup-form .btn { justify-content: center; } }

/* Faces */
.ba-tabs { max-width: 280px; margin-bottom: 20px; }
.r-body { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.r-face { width: 84px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 14px; }
@media (min-width: 560px) { .r-body { grid-template-columns: 140px 1fr; gap: 22px; } .r-face { width: 140px; } }
.r-def { margin-top: 0; }
.cc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cc-top img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.cc-top .cc-h { margin: 0; }
.faces { display: flex; justify-content: center; margin-bottom: 22px; }
.faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 3px solid var(--mist); margin-left: -12px; }
.faces img:first-child { margin-left: 0; }
@media (min-width: 860px) { .faces img { width: 84px; height: 84px; } }

/* Looks explorer */
.look-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 calc(var(--gut) * -1) 14px; padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: none; }
.look-chips button { flex: none; appearance: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); font: 500 14px/1 inherit; font-family: inherit; padding: 10px 14px; border-radius: 999px; cursor: pointer; }
.look-chips button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.look-card { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; max-width: 760px; }
.look-card img { width: 112px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 14px; }
.look-name { font-weight: 600; font-size: 20px; margin: 2px 0 4px; letter-spacing: -.01em; }
.look-line { color: var(--ink2); margin: 0 0 12px; font-size: 15px; }
.look-h { font-size: 13px; color: var(--tone); margin: 0 0 4px; }
.look-levers { margin: 0; padding-left: 18px; font-size: 15px; display: grid; gap: 4px; }
@media (min-width: 640px) { .look-card { grid-template-columns: 220px 1fr; gap: 28px; padding: 20px; } .look-card img { width: 220px; } }
@media (min-width: 860px) { .look-chips { margin-left: 0; margin-right: 0; padding-left: 2px; flex-wrap: wrap; } }

/* Ladder */
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; counter-reset: st; }
.steps li { position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--line); counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 16px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.steps li:last-child::before { border-style: dashed; color: var(--ink2); border-color: var(--tone); }
.st-when { margin: 0; font-size: 13px; color: var(--tone); }
.steps h3 { margin: 2px 0 4px; font-weight: 500; font-size: 19px; }
.steps li > p:last-child { margin: 0; color: var(--ink2); max-width: 52ch; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } .steps li { padding: 52px 0 0; } .steps li::before { top: 14px; } }

.chip-lock { display: inline-flex; align-items: center; gap: 6px; }
.chip-lock .lock { width: 14px; height: 14px; }
.principles li { color: var(--ink); }
