/* Sift website — tokens mirror the app's DesignSystem (docs/SPEC.md §9). */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F3F0E8;
  --card: #FBFAF6;
  --sunken: #E9E4D8;
  --track: #E6E1D5;
  --ink: #17150F;
  --ink-2: #5E5A50;
  --ink-3: #8A8577;
  --line: #E2DCCF;
  --accent: #F0551E;
  --accent-text: #B8400F;
  --on-accent: #17150F;
  --inverse-bg: #17150F;
  --inverse-fg: #F3F0E8;
  --inverse-2: #A39E91;
  --highlight: #FFD9C4;
  --sky: #DCE4EE; --sand: #ECE3CF; --blush: #F1DCCF; --sage: #DDE6DA; --lilac: #E6DEEE;
  --butter: #F2EACB; --mint: #D9E6E3; --clay: #EDE4DC; --rose: #E9DCE6; --stone: #E6E1D5;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --r-card: 22px; --r-sheet: 32px;
  --shadow-raised: 0 12px 28px rgba(23, 21, 15, .07);
  --shadow-float: 0 12px 32px rgba(23, 21, 15, .14);
  --settle: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12110D; --card: #1D1C18; --sunken: #26241F; --track: #26241F;
    --ink: #F3F0E8; --ink-2: #A39E91; --ink-3: #6A665C; --line: #2E2C26;
    --accent-text: #FF7A45; --inverse-bg: #F3F0E8; --inverse-fg: #17150F; --inverse-2: #5E5A50;
    --highlight: #6b3a24;
    --sky: #2f3337; --sand: #36342c; --blush: #382f2a; --sage: #303530; --lilac: #33303a;
    --butter: #37352a; --mint: #2e3533; --clay: #35312d; --rose: #342f34; --stone: #34322c;
    --shadow-raised: 0 12px 28px rgba(0, 0, 0, .35);
    --shadow-float: 0 12px 32px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--inverse-bg); color: var(--inverse-fg); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.meta { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
em.it { font-family: var(--serif); font-style: italic; color: var(--accent-text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 16px; right: 16px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--wrap); margin-inline: auto; padding: 8px 8px 8px 16px; border-radius: 999px;
  transition: background .35s var(--settle), box-shadow .35s var(--settle), transform .5s var(--settle);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--card) 76%, transparent);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: var(--shadow-float), 0 0 0 .5px color-mix(in srgb, var(--ink) 12%, transparent);
}
.nav.hidden { transform: translateY(-130%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .word { font-family: var(--serif); font-size: 28px; line-height: 1; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  --s: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(var(--s));
  transition: transform .18s var(--settle), background .25s, box-shadow .25s;
}
.btn:active { --s: .96; }
.btn-ink { background: var(--inverse-bg); color: var(--inverse-fg); box-shadow: 0 10px 24px rgba(23, 21, 15, .22); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn .arrow { transition: transform .3s var(--settle); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Glint — the same soft streak as the app's paywall button. */
.glint { position: relative; overflow: hidden; isolation: isolate; }
.glint::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -45%; width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transform: rotate(20deg); animation: glint 3.6s cubic-bezier(.65, 0, .35, 1) 1.2s infinite; pointer-events: none;
}
@keyframes glint { 0% { left: -45%; } 40%, 100% { left: 125%; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--settle), transform .8s var(--settle); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 70px; min-height: 100svh; display: grid; align-items: center; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 116px; } }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7.2vw, 102px); line-height: .98; letter-spacing: -0.025em; margin: 18px 0 22px; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 520px; margin: 0 0 32px; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3); opacity: 0; } }

.hero-stage { position: relative; height: min(700px, 150vw); }
.float-card {
  position: absolute; width: clamp(96px, 11vw, 144px); aspect-ratio: 390 / 844; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(23, 21, 15, .06), 0 18px 36px rgba(23, 21, 15, .18);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg));
  will-change: transform;
}
.float-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Phone ---------- */
.phone {
  position: relative; width: min(330px, 74vw); aspect-ratio: 1320 / 2868;
  border-radius: 54px; padding: 10px; background: #0d0c0a;
  box-shadow: 0 0 0 1.5px #3a372f, 0 40px 80px rgba(23, 21, 15, .28), 0 10px 20px rgba(23, 21, 15, .12);
}
.phone .screen { width: 100%; height: 100%; border-radius: 45px; overflow: hidden; background: var(--paper); position: relative; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .island { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 31%; height: 30px; border-radius: 20px; background: #000; z-index: 3; }
.hero .phone { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; transform: translate3d(0, var(--py, 0px), 0); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 16px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; white-space: nowrap; }
.chip i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Sections ---------- */
section.block { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.num { color: var(--accent-text); }
h2.big { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.02em; margin: 16px 0 18px; text-wrap: balance; }
.sub { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 560px; margin: 0; text-wrap: pretty; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Sort-into-piles scrollytelling */
.piles { height: 250vh; padding: 0; }
.piles-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.piles-stage { position: relative; height: min(480px, 92vw); margin-top: 28px; }
/* Cards sit on the pile line (bottom-anchored) so a sorted pile never covers its label. */
.piles-stage .float-card { --cw: clamp(84px, 10vw, 128px); width: var(--cw); left: 50%; top: auto; bottom: 60px; margin-left: calc(var(--cw) / -2); }
.pile-line { position: absolute; left: 4%; right: 4%; bottom: 46px; height: 1px; background: var(--line); }
.pile-labels { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; opacity: var(--labels, 0); transform: translateY(calc((1 - var(--labels, 0)) * 10px)); }
.pile-labels span { white-space: nowrap; }
@media (max-width: 560px) { .pile-labels { font-size: 10px; letter-spacing: .08em; } }

/* Sift mode demo */
.sift-demo { background: #12110D; color: #F3F0E8; border-radius: var(--r-sheet); padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; max-width: 460px; margin-inline: auto; width: 100%; }
.sift-demo .meta { color: #A39E91; }
@media (prefers-color-scheme: dark) { .sift-demo { box-shadow: inset 0 0 0 1px rgba(243, 240, 232, .1); } }
.sift-top { display: flex; justify-content: space-between; align-items: center; }
.sift-top .t { text-align: center; }
.sift-top .t b { font-family: var(--serif); font-weight: 400; font-size: 26px; display: block; line-height: 1; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(243, 240, 232, .08); color: #F3F0E8; display: grid; place-items: center; cursor: pointer; transition: transform .18s var(--settle), opacity .3s; }
.round:active { transform: scale(.9); }
.round[disabled] { opacity: .35; cursor: default; }
.segs { display: flex; gap: 4px; margin: 16px 0 24px; }
.segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .16); transition: background .45s var(--settle); }
.segs i.done { background: var(--accent); }
.segs i.cur { background: rgba(255, 255, 255, .55); }
.deck { position: relative; height: 440px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.deck .card {
  position: absolute; left: 50%; top: 0; width: 204px; aspect-ratio: 390 / 844; margin-left: -102px;
  border-radius: 18px; overflow: hidden; background: #1D1C18; cursor: grab;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .6s var(--settle), opacity .5s ease; will-change: transform;
}
.deck .card.dragging { transition: none; cursor: grabbing; }
.deck .card img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; -webkit-user-drag: none; }
.deck .tag { position: absolute; top: 14px; padding: 7px 10px; border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: 0; }
.deck .tag.keep { left: 14px; background: var(--accent); color: #17150F; }
.deck .tag.del { right: 14px; background: #F3F0E8; color: #17150F; }
.deck .tag.act { left: 50%; translate: -50% 0; top: auto; bottom: 16px; background: var(--accent); color: #17150F; }
.card.hint { animation: hint 3.2s cubic-bezier(.45, 0, .2, 1) 1s infinite; }
@keyframes hint { 0%, 70%, 100% { translate: 0 0; rotate: 0deg; } 78% { translate: 14px 0; rotate: 2deg; } 86% { translate: -10px 0; rotate: -1.5deg; } }
.caption { text-align: center; min-height: 56px; margin-top: 12px; }
.caption b { font-size: 18px; display: block; }
.caption span { color: #A39E91; font-size: 14px; }
.caption em { color: var(--accent); font-style: normal; font-weight: 600; }
.rings { display: flex; justify-content: space-between; align-items: flex-end; max-width: 300px; margin: 16px auto 0; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: #A39E91; background: none; border: 0; cursor: pointer; padding: 0; }
.ring span { display: grid; place-items: center; border-radius: 50%; transition: transform .18s var(--settle); }
.ring:active span { transform: scale(.88); }
.ring.del span { width: 64px; height: 64px; box-shadow: inset 0 0 0 1.5px rgba(243, 240, 232, .22); color: #F3F0E8; }
.ring.act span { width: 54px; height: 54px; background: rgba(240, 85, 30, .14); color: var(--accent); }
.ring.keep span { width: 64px; height: 64px; background: #F3F0E8; color: #17150F; }
.done-state { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; opacity: 0; pointer-events: none; transition: opacity .5s var(--settle); background: #12110D; padding: 24px; }
.done-state.on { opacity: 1; pointer-events: auto; }
.done-state h3 { font-family: var(--serif); font-weight: 400; font-size: 54px; margin: 18px 0 8px; line-height: 1; }
.done-state p { color: #A39E91; margin: 0 0 22px; }
.done-state .logo { transform: scale(.85); transition: transform .7s var(--pop); margin: 0 auto; }
.done-state.on .logo { transform: none; }
.done-state .btn { background: #F3F0E8; color: #17150F; }

/* Detail / scan demo */
.detail-demo { position: relative; display: grid; place-items: center; padding: 30px 0; }
.shot { position: relative; width: min(250px, 60vw); transform: rotate(-2deg); transition: transform .8s var(--settle); }
.shot:hover { transform: rotate(0); }
.shot .img { border-radius: 20px; overflow: hidden; box-shadow: 0 28px 50px rgba(23, 21, 15, .2); position: relative; }
.scanline { position: absolute; left: -8px; right: -8px; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 16px 4px rgba(240, 85, 30, .45); opacity: 0; }
.in .scanline { animation: scan 2.6s cubic-bezier(.65, 0, .35, 1) .4s 2 both; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10%, 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.etag { position: absolute; padding: 6px 10px; border-radius: 10px; background: var(--inverse-bg); color: var(--inverse-fg); font: 500 11px/1 var(--mono); letter-spacing: .08em; white-space: nowrap; box-shadow: 0 8px 18px rgba(23, 21, 15, .25); opacity: 0; transform: scale(.6) translateY(6px); }
.in .etag { animation: tagpop .6s var(--pop) both; }
.in .etag.t1 { animation-delay: 1.1s; } .in .etag.t2 { animation-delay: 1.6s; } .in .etag.t3 { animation-delay: 2.1s; }
@keyframes tagpop { to { opacity: 1; transform: none; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); margin-top: 26px; }
.facts button { background: var(--card); padding: 14px 16px; border: 0; text-align: left; cursor: copy; transition: background .2s; }
.facts button:hover { background: var(--paper); }
.facts small { display: block; color: var(--ink-2); font-size: 12px; transition: color .2s; }
.facts b { font-size: 18px; }
.facts .mono { font-family: var(--mono); }
.facts .copied small { color: var(--accent-text); }

/* Search demo */
.search-demo { background: var(--card); border-radius: var(--r-sheet); box-shadow: var(--shadow-raised), 0 0 0 1px var(--line); padding: 20px; min-height: 470px; }
.field { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 2px var(--ink); font-size: 17px; }
.field .caret { width: 2px; height: 22px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.results-head { display: flex; justify-content: space-between; margin: 18px 4px 10px; }
.result { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; animation: rise .5s var(--settle) both; }
.result.best { background: var(--paper); box-shadow: 0 0 0 1px var(--line); align-items: flex-start; }
.result img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; object-position: top; flex: none; box-shadow: 0 0 0 1px rgba(23, 21, 15, .08); }
.result.best img { width: 84px; height: 130px; }
.result b { display: block; }
.result p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.result .pill { display: inline-block; margin-top: 10px; background: var(--inverse-bg); color: var(--inverse-fg); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; }
mark { background: linear-gradient(var(--highlight), var(--highlight)) no-repeat 0 0 / 0% 100%; color: var(--ink); border-radius: 4px; padding: 0 3px; animation: sweep .9s var(--settle) .25s forwards; }
@keyframes sweep { to { background-size: 100% 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Privacy */
.privacy { background: var(--inverse-bg); color: var(--inverse-fg); border-radius: 40px; margin: 0 16px; overflow: hidden; position: relative; }
.privacy .meta { color: var(--inverse-2); }
.privacy .sub { color: var(--inverse-2); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }
.point { border-radius: 24px; padding: 26px; background: color-mix(in srgb, var(--inverse-fg) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inverse-fg) 10%, transparent); }
.point h3 { margin: 14px 0 6px; font-size: 19px; }
.point p { margin: 0; color: var(--inverse-2); font-size: 15px; }
.orbit { position: absolute; right: -140px; top: -140px; width: 540px; height: 540px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--inverse-fg) 18%, transparent); animation: spin 60s linear infinite; }
.orbit::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@keyframes spin { to { rotate: 360deg; } }

/* Collections */
.col-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
@media (max-width: 960px) { .col-grid { grid-template-columns: repeat(2, 1fr); } }
.col { height: 190px; border-radius: 26px; position: relative; overflow: hidden; padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-end; transition: transform .3s var(--settle); }
.col:hover { transform: translateY(-4px); }
.col .fan { position: absolute; left: 50%; top: 16px; width: 0; }
.col .fan img { position: absolute; width: 58px; max-width: none; aspect-ratio: 390/844; border-radius: 9px; box-shadow: 0 8px 18px rgba(23, 21, 15, .16); transition: transform .45s var(--pop); object-fit: cover; object-position: top; }
.col .fan img:nth-child(1) { transform: translate(-64px, 12px) rotate(-9deg); }
.col .fan img:nth-child(2) { transform: translate(-29px, 0); z-index: 1; }
.col .fan img:nth-child(3) { transform: translate(6px, 12px) rotate(9deg); }
.col:hover .fan img:nth-child(1) { transform: translate(-72px, 8px) rotate(-14deg); }
.col:hover .fan img:nth-child(2) { transform: translate(-29px, -8px); }
.col:hover .fan img:nth-child(3) { transform: translate(14px, 8px) rotate(14deg); }
.col b { position: relative; z-index: 2; font-size: 16px; }
.col .meta { position: relative; z-index: 2; letter-spacing: .06em; }

/* Widgets */
.widgets { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.w-small { width: 170px; height: 170px; border-radius: 38px; background: #17150F; color: #F3F0E8; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px rgba(23, 21, 15, .22); }
.w-small .n { font-family: var(--serif); font-size: 58px; line-height: .85; }
.w-small small { color: #C9C4B8; font-size: 13px; }
.w-med { width: min(362px, 100%); height: 170px; border-radius: 38px; background: #FBFAF6; color: #17150F; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px rgba(23, 21, 15, .12); }
.w-row { display: flex; align-items: center; gap: 10px; }
.w-row i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; flex: none; }
.w-row b { font-size: 14px; display: block; }
.w-row small { font-size: 12px; color: #5E5A50; }
.lockscreen { height: 150px; border-radius: 32px; background: #1D1C18; display: flex; align-items: center; gap: 26px; padding: 0 32px; flex: 1 1 100%; color: #F3F0E8; }
.gauge { position: relative; width: 76px; height: 76px; display: grid; place-items: center; flex: none; }
.gauge svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gauge .arc { stroke-dasharray: 201; stroke-dashoffset: 201; transition: stroke-dashoffset 2.4s var(--settle) .3s; }
.in .gauge .arc { stroke-dashoffset: 80; }
.gauge b { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.nextup { height: 76px; border-radius: 18px; background: rgba(243, 240, 232, .12); padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; }
.nextup small { color: #C9C4B8; font-size: 12px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan { border-radius: 30px; padding: 32px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.pro { background: var(--inverse-bg); color: var(--inverse-fg); box-shadow: var(--shadow-float); }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 0; line-height: 1; }
.plan .price b { font-size: 36px; letter-spacing: -.02em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317150F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan.free li::before { background-color: var(--sunken); }
.toggle { display: inline-flex; border-radius: 999px; padding: 4px; position: relative; background: color-mix(in srgb, var(--inverse-fg) 12%, transparent); align-self: flex-start; }
.toggle button { position: relative; z-index: 1; border: 0; background: none; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--inverse-fg); transition: color .3s; }
.toggle button[aria-pressed="true"] { color: var(--ink); }
.toggle .pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--card); box-shadow: 0 2px 8px rgba(23, 21, 15, .12); transition: transform .5s cubic-bezier(.34, 1.3, .64, 1); }
.save { display: inline-block; background: var(--accent); color: #17150F; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.fine { font-size: 13px; color: var(--ink-2); margin: 0; }
.plan.pro .fine { color: var(--inverse-2); }

/* FAQ */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 4px; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; transition: transform .45s var(--pop), background .3s; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--accent); }
.faq .ans { color: var(--ink-2); padding: 0 4px 22px; margin: 0; }

/* Final + footer */
.final { text-align: center; }
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot a:hover { color: var(--ink); }

/* Logo */
.logo-mark rect { transform-box: fill-box; transform-origin: center; }
.logo-anim .b1 { animation: bar 1s var(--settle) .1s both; }
.logo-anim .b2 { animation: bar 1s var(--settle) .2s both; }
.logo-anim .b3 { animation: drop 1.1s var(--pop) .45s both; }
@keyframes bar { from { transform: scaleX(0); } }
@keyframes drop { from { transform: translateY(-18px); opacity: 0; } }

/* Legal pages */
.legal { padding: 136px 0 60px; }
.legal .doc { max-width: 720px; margin: 0 auto; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; margin: 14px 0 10px; letter-spacing: -.02em; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); }
.legal .card { background: var(--card); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); padding: 22px 24px; margin: 24px 0; }
.legal .card p { margin: 6px 0 0; }
.legal a { color: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .glint::after { display: none; }
  .etag { opacity: 1; transform: none; }
}

/* "Coming soon" store button: same footprint as .btn, clearly not clickable */
.btn-soon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 999px; border: 1.5px dashed var(--line); color: var(--ink-2); cursor: default; user-select: none; line-height: 1.15; text-align: left; }
.btn-soon span { display: flex; flex-direction: column; font-weight: 600; }
.btn-soon small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--accent-text); }

/* Android early access + community */
a.btn-soon-link { cursor: pointer; text-decoration: none; transition: border-color .2s, color .2s, transform .2s; }
a.btn-soon-link:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.community { display: flex; align-items: center; gap: 14px; max-width: 460px; margin: 28px auto 0; padding: 14px 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--card, rgba(255,255,255,.5)); color: var(--ink); text-decoration: none; text-align: left; transition: border-color .2s, transform .2s; }
.community:hover { border-color: var(--accent); transform: translateY(-1px); }
.community svg { color: #1877F2; flex: none; }
.community span:not(.arrow) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.community small { color: var(--ink-2); font-size: 13px; }
.community .arrow { color: var(--accent-text); font-weight: 600; }
