/* Dotted website: "Dusk Grid" direction. Tokens mirror DottedPalette (DottedKit). */

/* latin + latin-ext (Turkish ğ ş İ) subsets; the browser fetches latin-ext only when a page uses it. */
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-latin-ext.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Metric-matched fallbacks so the Manrope swap doesn't shift layout. */
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 102.4%; ascent-override: 104.1%; descent-override: 29.3%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; font-weight: 700 800; src: local("Arial Bold"); size-adjust: 102.9%; ascent-override: 103.6%; descent-override: 29.2%; line-gap-override: 0%; }

:root {
  --dusk: #1c1a18;
  --dusk-2: #232120;
  --dusk-3: #2d2a27;
  --line: rgba(239, 235, 225, 0.1);
  --cream: #efebe1;
  --cream-2: rgba(239, 235, 225, 0.72);
  --cream-3: rgba(239, 235, 225, 0.5);
  --paper: #efebe1;
  --paper-inset: #f5f2ea;
  --paper-deep: #e6e1d4;
  --ink: #1f1d1a;
  --ink-soft: #3a3732;
  --accent: #c9603f;
  --accent-dusk: #de8b72;
  --sans: "Manrope", "Manrope Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* damped springs: soft = ratio 0.8 (use 700-900ms), pop = ratio 0.6 (use 500-650ms) */
    --spring-soft: linear(0, 0.006 1.5%, 0.026 3.2%, 0.057 5%, 0.102 7%, 0.2 10.5%, 0.426 17.8%, 0.53 21.2%, 0.624 24.8%, 0.707 28.2%, 0.773 31.5%, 0.829 34.8%, 0.875 38%, 0.915 41.5%, 0.95 45.5%, 0.978 50%, 0.997 55%, 1.009 60.5%, 1.014 66.5%, 1.015 73.8%, 1);
    --spring-pop: linear(0, 0.006 1.2%, 0.03 2.8%, 0.067 4.2%, 0.124 6%, 0.181 7.5%, 0.245 9%, 0.531 15.2%, 0.64 17.8%, 0.749 20.5%, 0.843 23.2%, 0.914 25.8%, 0.978 28.5%, 1.025 31.2%, 1.059 34%, 1.076 36%, 1.088 38.2%, 1.094 40.8%, 1.094 43.2%, 1.081 48.8%, 1.02 63.7%, 1 72%, 0.993 77.8%, 0.991 84.5%, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--dusk);
  color: var(--cream);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent-dusk); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.dot { color: var(--accent); }
.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin: 0;
}
.hand { font-family: var(--hand); font-size: 24px; line-height: 1.2; color: var(--accent-dusk); }

/* ---------------------------------------------------------------- page transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition { pointer-events: none; }
::view-transition-old(root) { animation: 280ms var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 520ms var(--ease-out) 80ms both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 10px; } }

/* ---------------------------------------------------------------- reveal (only when JS runs) */
@media (prefers-reduced-motion: no-preference) {
  html.js :is([data-reveal], [data-reveal-group] > *) {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  html.js :is([data-reveal].is-in, [data-reveal-group].is-in > *) { opacity: 1; translate: none; }
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(28, 26, 24, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav-links { display: flex; gap: 28px; margin: 0 0 0 auto; list-style: none; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--cream-2);
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--cream); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 10px 20px; border-radius: 999px;
  transition: transform 0.3s var(--spring-pop), background 0.15s;
}
.pill:hover { transform: translateY(-2px); background: #fff; }
.pill:active { transform: scale(0.97); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 44px) 0 clamp(40px, 6vw, 72px); }
.hero::before { /* warm dusk vignette + glow behind the live phone */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 38% at 50% 68%, rgba(201, 96, 63, 0.22), transparent 70%),
              radial-gradient(120% 80% at 50% 0%, #2a2623 0%, transparent 60%);
  pointer-events: none;
}
@property --sweep { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.dotfield {
  position: absolute; inset: 38% 0 0; pointer-events: none;
  background: radial-gradient(circle, rgba(239, 235, 225, 0.09) 25px, transparent 26px) 50% 0 / 88px 88px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 60%, transparent), linear-gradient(90deg, #000 var(--sweep), transparent calc(var(--sweep) + 12%));
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 60%, transparent), linear-gradient(90deg, #000 var(--sweep), transparent calc(var(--sweep) + 12%));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  --sweep: 100%;
}
.dotfield-accent { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); left: calc(50% + 88px * 4 - 25px); top: calc(88px * 2 + 44px - 25px); opacity: 0.9; box-shadow: 0 0 60px rgba(201, 96, 63, 0.45); }
@media (prefers-reduced-motion: no-preference) {
  .dotfield { animation: sweep 1600ms var(--ease-out) 200ms both; }
  .dotfield-accent { animation: accent-pop 700ms var(--spring-pop) 1300ms both; }
}
@keyframes sweep { from { --sweep: -12%; } to { --sweep: 100%; } }
@keyframes accent-pop { from { scale: 0; opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .dotfield-accent { animation: accent-pop 700ms var(--spring-pop) 1300ms both, breathe 5s ease-in-out 2.2s infinite; } }
@keyframes breathe { 50% { box-shadow: 0 0 90px rgba(201, 96, 63, 0.7); scale: 1.06; } }

.hero-copy { position: relative; text-align: center; max-width: 900px; }
.hero-title {
  /* --hero-em (set by build.py for long localized titles) caps the size so the longest line fits the 900px column. */
  font-size: clamp(min(54px, calc((100vw - 48px) / var(--hero-em, 5))), min(8vw, calc(900px / var(--hero-em, 5))), 116px);
  line-height: 0.94; letter-spacing: -0.045em; font-weight: 800;
  margin: 16px 0 20px;
}
.hero-title .w { display: inline-block; }
.hero .lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--cream-2); margin: 0 auto 30px; max-width: 38ch; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.35s var(--spring-pop); }
.badge:hover { transform: translateY(-2px) scale(1.02); }
.badge:active { transform: scale(0.97); }
.badge img { height: 54px; width: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(239, 235, 225, 0.45); }
.hero-note { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-3); }

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow, .hero-lede, .hero-cta { animation: rise 900ms var(--ease-out) both; }
  .hero-eyebrow { animation-delay: 40ms; }
  .hero-title .w { animation: word-rise 900ms var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 70ms); }
  .hero-lede { animation-delay: 420ms; }
  .hero-cta { animation-delay: 500ms; }
}
@keyframes word-rise { from { translate: 0 0.45em; opacity: 0.12; } }
@keyframes rise { from { translate: 0 16px; opacity: 0.01; } }

/* phones */
.hero-stage {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  gap: clamp(16px, 3vw, 44px);
  margin: clamp(36px, 4.5vw, 56px) auto 0;
  width: min(100% - 2 * var(--gutter), 1100px);
  perspective: 1400px;
}
.hero-phone { --depth: 1; transition: transform 900ms var(--ease-out); }
.hero-phone.side { --depth: 0.6; width: clamp(150px, 20vw, 270px); margin-top: 90px; }
.hero-phone.left { justify-self: end; }
.hero-phone.right { justify-self: start; }
.hero-phone.side .phone { transform: rotateY(calc(var(--side, 1) * 8deg)) rotateX(calc(var(--py, 0) * -4deg)); transition: transform 900ms var(--ease-out); }
.hero-phone.left .phone { --side: 1; }
.hero-phone.right .phone { --side: -1; }
.hero-phone.side { transform: translate3d(calc(var(--px, 0) * 14px * var(--depth)), calc(var(--py, 0) * 10px * var(--depth)), 0); }
.hero-phone.side img { filter: saturate(0.9) brightness(0.9); }
.hero-phone.center { position: relative; width: clamp(250px, 26vw, 340px); z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .hero-phone.center { animation: phone-rise 1100ms var(--spring-soft) 360ms both; }
  .hero-phone.left { animation: side-in-left 1200ms var(--spring-soft) 480ms both; }
  .hero-phone.right { animation: side-in-right 1200ms var(--spring-soft) 560ms both; }
}
@keyframes phone-rise { from { translate: 0 60px; } }
@keyframes side-in-left { from { translate: 60px 80px; opacity: 0.01; } }
@keyframes side-in-right { from { translate: -60px 80px; opacity: 0.01; } }

.demo-hint {
  position: absolute; right: calc(100% - 6px); top: -8px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  color: var(--accent-dusk); font: 400 25px/1.05 var(--hand); text-align: right; white-space: nowrap;
  transform: rotate(-4deg);
  transition: opacity 0.5s var(--ease-out), translate 0.5s var(--ease-out);
  pointer-events: none;
  z-index: 3;
}
.demo-hint svg { transform: scaleX(-1) rotate(8deg); margin: 4px -44px 0 0; order: 2; }
.demo-hint.is-gone { opacity: 0; translate: -10px 0; }
@media (prefers-reduced-motion: no-preference) {
  .demo-hint { animation: hint-in 900ms var(--ease-out) 1500ms both; }
}
@keyframes hint-in { from { opacity: 0; translate: 10px 6px; } }
.phone-live { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 120px -20px rgba(201, 96, 63, 0.35); }

.theme-switch {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 32px;
}
.theme-switch .eyebrow { margin-right: 6px; }
.theme-switch button {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--sans); color: var(--cream-2);
  background: transparent; border: 0; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.theme-switch button:hover { color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream-3); }
.theme-switch button[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: none; }
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.sw.paper { background: var(--paper); }
.sw.dusk { background: var(--ink); box-shadow: inset 0 0 0 1px var(--cream-3); }

/* ---------------------------------------------------------------- device frames */
/* live demo host; the replica itself is styled by demo.css, loaded by demo.js */
.demo-host {
  position: relative;
  width: 100%;
  aspect-ratio: 440 / 956;
  border-radius: 14% / 6.6%;
  overflow: hidden;
  background: #efebe1;
  isolation: isolate;
}
.demo-host > img { width: 100%; height: 100%; object-fit: cover; }
.demo-host.is-live > img { display: none; }

.phone {
  position: relative;
  border-radius: 17% / 7.8%;
  padding: 3.2%;
  background: linear-gradient(145deg, #3b3835, #141312 60%, #2b2826);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone > img, .tour-screens { width: 100%; aspect-ratio: 440 / 956; border-radius: 14% / 6.6%; background: var(--paper); }
.tablet {
  position: relative; border-radius: 6.2% / 4.7%; padding: 2.6%;
  background: linear-gradient(145deg, #3b3835, #141312 60%, #2b2826);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.tablet img { width: 100%; aspect-ratio: 2064 / 2752; border-radius: 3.6% / 2.7%; background: var(--paper); }

/* ---------------------------------------------------------------- promise strip */
.promises { border-block: 1px solid var(--line); }
.promises ul {
  list-style: none; margin: 0 auto; padding: 22px 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px;
  font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-2);
}
.promises li { display: flex; align-items: center; gap: 12px; }
.promises li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cream-3); }
.promises li:first-child::before { background: var(--accent); }

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.section { padding-block: clamp(88px, 11vw, 150px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.center-body { margin-inline: auto !important; text-align: center; }
h2 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1; letter-spacing: -0.04em; font-weight: 800;
  margin: 14px 0 18px;
}
h3 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 14px 0 16px; }
p.body { color: var(--cream-2); font-size: 18px; margin: 0; max-width: 44ch; }

/* ---------------------------------------------------------------- manifesto (words brighten with scroll where supported) */
.manifesto { padding-block: clamp(88px, 12vw, 160px) 0; }
.manifesto-text { margin: 0; max-width: 20ch; font: 800 clamp(36px, 5.2vw, 72px)/1.08 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .manifesto-text { view-timeline: --manifesto block; }
    .manifesto-text .mw { opacity: 0.18; animation: word-lit linear both; animation-timeline: --manifesto;
      animation-range: cover calc(18% + var(--i) * 1.6%) cover calc(24% + var(--i) * 1.6%); }
  }
}
@keyframes word-lit { to { opacity: 1; } }

/* ---------------------------------------------------------------- feature tour (tabs drive the phone, 6s autoplay) */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.tour-list { display: flex; flex-direction: column; }
.tour-item {
  display: grid; grid-template-columns: 1fr; text-align: left;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  padding: 20px 0 18px; border-top: 1px solid var(--line); position: relative;
}
.tour-item:last-child { border-bottom: 1px solid var(--line); }
.tour-item .eyebrow { transition: color 0.3s; }
.tour-title { display: block; margin-top: 8px; font: 800 clamp(22px, 2.2vw, 30px)/1.1 var(--sans); letter-spacing: -0.03em; color: var(--cream-3); transition: color 0.35s var(--ease-out); }
.tour-item:hover .tour-title { color: var(--cream-2); }
.tour-item.is-active .tour-title { color: var(--cream); }
.tour-item.is-active .eyebrow { color: var(--accent-dusk); }
.tour-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out), opacity 0.4s var(--ease-out); opacity: 0; }
.tour-body > span { overflow: hidden; color: var(--cream-2); font-size: 17px; max-width: 46ch; }
.tour-item.is-active .tour-body { grid-template-rows: 1fr; opacity: 1; }
.tour-item.is-active .tour-body > span { padding-top: 10px; }
.tour-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.tour-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; scale: 0 1; }
.tour-item.is-active .tour-progress i { animation: tour-progress 6s linear both; }
.tour.is-paused .tour-item.is-active .tour-progress i { animation-play-state: paused; }
.tour.is-stopped .tour-item.is-active .tour-progress i { animation: none; scale: 1 1; }
@keyframes tour-progress { to { scale: 1 1; } }
.tour-stage {
  position: relative; display: grid; place-items: center;
  padding: clamp(36px, 5vw, 60px) 0; border-radius: 36px;
  background: radial-gradient(circle, rgba(239, 235, 225, 0.08) 2px, transparent 2.6px) 0 0 / 22px 22px, var(--dusk-2);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.tour-stage::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); top: 26px; right: 26px; }
.tour-phone { width: min(300px, 66%); }
.tour-screens { position: relative; overflow: hidden; }
.tour-shot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; scale: 0.97; translate: 0 14px; transition: opacity 450ms var(--ease-out), scale 800ms var(--spring-soft), translate 800ms var(--spring-soft); }
.tour-shot.is-active { opacity: 1; scale: 1; translate: none; }
@media (max-width: 899px) {
  .tour { grid-template-columns: 1fr; }
  .tour-stage { order: -1; }
  .tour-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .tour-list::-webkit-scrollbar { display: none; }
  .tour-item, .tour-item:last-child { flex: none; width: min(78vw, 320px); scroll-snap-align: center; border: 0; border-radius: 20px; padding: 18px 18px 20px; background: var(--dusk-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
  .tour-body { grid-template-rows: 1fr; opacity: 1; }
  .tour-body > span { padding-top: 10px; }
  .tour-progress { bottom: 0; height: 2px; }
}

/* ---------------------------------------------------------------- miss a day */
.miss { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin-inline: auto; }
.miss-card { border-radius: 28px; padding: 28px 28px 30px; min-height: 250px; display: flex; flex-direction: column; gap: 18px; }
.miss-card.other { background: #2a2622; box-shadow: inset 0 0 0 1px var(--line); }
.miss-card.dotted { background: var(--paper); color: var(--ink); }
.miss-card.dotted .eyebrow { color: rgba(31, 29, 26, 0.55); }
.streak { display: flex; align-items: center; gap: 14px; color: #e8833a; }
.streak b { font: 800 88px/1 var(--sans); letter-spacing: -0.04em; color: var(--cream); font-variant-numeric: tabular-nums; }
.streak.is-broken { color: rgba(239, 235, 225, 0.25); }
.streak.is-broken b { color: rgba(239, 235, 225, 0.5); }
.streak.shake { animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }
.miss-caption { margin: auto 0 0; color: var(--cream-2); font-size: 17px; }
.miss-card.dotted .miss-caption { color: var(--ink-soft); }
.miss-dots { display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; align-items: center; padding-top: 22px; min-height: 88px; }
.miss-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.miss-dots i.o { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(31, 29, 26, 0.35); }
.miss-dots i.t { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--accent); }
.miss-dots i.o.t { box-shadow: inset 0 0 0 1.5px rgba(31, 29, 26, 0.35), 0 0 0 2px var(--paper), 0 0 0 3.5px var(--accent); }
.miss-dots i.new { animation: dot-in 600ms var(--spring-pop) both; }
@keyframes dot-in { from { scale: 0; } }
.miss-actions { grid-column: 1 / -1; display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.btn { font: 700 15px/1 var(--sans); padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; background: var(--cream); color: var(--ink); transition: transform 0.35s var(--spring-pop), background 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.96); }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream-3); }
@media (max-width: 760px) { .miss { grid-template-columns: 1fr; } .streak b { font-size: 72px; } .miss-actions { flex-wrap: wrap; } }

/* ---------------------------------------------------------------- year grid */
.year { background: var(--dusk-2); border-block: 1px solid var(--line); overflow: hidden; }
.year-grid { --cell: clamp(5px, 1.24vw, 14px); --gap: calc(var(--cell) * 0.55); overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.year-grid::-webkit-scrollbar { display: none; }
.year-months { position: relative; height: 22px; margin-left: 6px; min-width: calc(53 * (var(--cell) + var(--gap))); }
.year-months span { position: absolute; left: calc(var(--c) * (var(--cell) + var(--gap))); font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-3); }
.year-cells { display: grid; grid-template-rows: repeat(7, var(--cell)); grid-auto-flow: column; grid-auto-columns: var(--cell); gap: var(--gap); padding: 6px; contain: layout style; }
.year-cells i { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(239, 235, 225, 0.12); }
.year-cells i.x { background: var(--cream); box-shadow: none; }
.year-cells i.o { box-shadow: inset 0 0 0 1.2px rgba(239, 235, 225, 0.35); }
.year-cells i.t { background: var(--accent); box-shadow: 0 0 0 2px var(--dusk-2), 0 0 0 3.5px var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  html.js .year-cells i:is(.x, .o, .t) { scale: 0.2; opacity: 0; transition: scale 520ms var(--spring-pop), opacity 300ms var(--ease-out); transition-delay: calc(var(--c) * 18ms); }
  html.js .year-cells i.t { transition-delay: calc(var(--c) * 18ms + 300ms); }
  html.js .year-grid.is-in .year-cells i { scale: 1; opacity: 1; }
}
.year-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-3); }
.year-legend span { display: inline-flex; align-items: center; gap: 10px; }
.year-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.l-done { background: var(--cream); }
.l-miss { box-shadow: inset 0 0 0 1.2px var(--cream-3); }
.l-today { background: var(--accent); }
.year-stats { display: flex; flex-wrap: wrap; gap: 24px 72px; margin-top: 48px; }
.year-stats b { display: block; font: 800 clamp(40px, 5vw, 60px)/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; min-width: 3ch; }
.year-stats small { display: block; margin-top: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-3); }

/* ---------------------------------------------------------------- platforms */
.platforms-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; padding-top: 12px; }
.platforms-stage .tablet { width: min(640px, 70%); translate: 0 var(--shift, 0); }
.platforms-stage .phone { width: min(230px, 25%); margin-left: -9%; margin-bottom: -4%; z-index: 1; translate: 0 var(--shift, 0); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .platforms-stage .tablet { animation: drift-slow linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .platforms-stage .phone { animation: drift-fast linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes drift-slow { from { transform: translateY(24px); } to { transform: translateY(-24px); } }
@keyframes drift-fast { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: clamp(80px, 9vw, 120px) 0 0; list-style: none; padding: 0; }
.chips li { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 11px 16px; border-radius: 999px; color: var(--cream-2); box-shadow: 0 0 0 1px var(--line) inset; }

/* ---------------------------------------------------------------- feature (privacy) */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.feature-media {
  position: relative; display: grid; place-items: center; overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 0; border-radius: 32px;
}
.feature-media .phone { width: min(290px, 62%); }
.feature-media::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); top: 28px; right: 28px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); translate: 0 -1px; }
.paper { background: var(--paper); color: var(--ink); }
.paper .eyebrow { color: rgba(31, 29, 26, 0.55); }
.paper p.body, .paper .ticks { color: var(--ink-soft); }
.paper .feature-media { background: radial-gradient(circle, rgba(31, 29, 26, 0.1) 2px, transparent 2.6px) 0 0 / 22px 22px, var(--paper-deep); }
.paper .more { margin: 28px 0 0; }
.paper a.link { color: var(--accent); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- pro */
.pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pro-grid article { border-radius: 24px; padding: 28px; background: var(--dusk-2); box-shadow: 0 0 0 1px var(--line) inset; transition: translate 0.5s var(--spring-pop), box-shadow 0.3s; }
.pro-grid article:hover { translate: 0 -4px; box-shadow: 0 0 0 1px var(--cream-3) inset; }
.pro-grid article.is-accent { box-shadow: 0 0 0 1px rgba(222, 139, 114, 0.55) inset; }
.pro-grid h4 { margin: 12px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.pro-grid p { margin: 0; color: var(--cream-2); font-size: 16px; }
.fine { margin-top: 28px; color: var(--cream-3); font-size: 14px; max-width: 80ch; }

/* ---------------------------------------------------------------- faq */
:root { interpolate-size: allow-keywords; }
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--cream-3); transition: rotate 0.35s var(--spring-pop); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--cream-2); margin: 12px 0 0; max-width: 64ch; }

/* ---------------------------------------------------------------- final cta */
.cta { text-align: center; overflow: hidden; }
.cta h2 { font-size: clamp(52px, 8vw, 112px); }
.cta .badge { margin-top: 32px; }
.cta-dots { display: flex; justify-content: center; gap: 14px; margin: 0 0 36px; }
.cta-dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--cream); opacity: 0.85; }
.cta-dots i.off { background: transparent; box-shadow: 0 0 0 1.5px var(--cream-3) inset; opacity: 1; }
.cta-dots i.today { background: var(--accent); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html.js .cta .cta-dots i { scale: 0; transition: scale 600ms var(--spring-pop); }
  html.js .cta .cta-dots i:nth-child(2) { transition-delay: 120ms; }
  html.js .cta .cta-dots i:nth-child(3) { transition-delay: 240ms; }
  html.js .cta .cta-dots i:nth-child(4) { transition-delay: 360ms; }
  html.js .cta .cta-dots i:nth-child(5) { transition-delay: 480ms; }
  html.js .cta .cta-dots i:nth-child(6) { transition-delay: 760ms; }
  html.js .cta .cta-dots.is-in i { scale: 1; }
}

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--cream-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
footer .brand { font-size: 18px; color: var(--cream); }
footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
footer a { text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--cream); }
footer .langs { width: 100%; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
footer .langs a[aria-current] { color: var(--cream); }
footer .copy { width: 100%; margin: 0; font: 500 11px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------------------------------------------------------------- legal / support pages */
.doc-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.doc-hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; margin: 14px 0 18px; }
.doc-hero p.lede { color: var(--cream-2); font-size: 19px; max-width: 60ch; margin: 0; }
.doc { background: var(--paper); color: var(--ink); padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.doc article { max-width: 720px; margin-inline: auto; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; margin: 44px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.35; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p { margin: 0 0 12px; }
.doc ul { padding-left: 22px; margin: 8px 0 12px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc .contact-card { border-radius: 20px; background: var(--paper-inset); padding: 24px 28px; margin-bottom: 40px; box-shadow: 0 0 0 1px var(--paper-deep) inset; }
.doc .contact-card h2 { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .doc-hero .eyebrow, .doc-hero h1, .doc-hero .lede { animation: rise 800ms var(--ease-out) both; }
  .doc-hero h1 { animation-delay: 60ms; }
  .doc-hero .lede { animation-delay: 140ms; }
}

/* ---------------------------------------------------------------- 404 */
.not-found { min-height: 70vh; display: grid; align-items: center; }
.not-found .cta-dots { justify-content: flex-start; }
.not-found .back { margin-top: 32px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .pill { margin-left: auto; }
  .feature { grid-template-columns: 1fr; }
  .pro-grid { grid-template-columns: 1fr; }
  .hero-stage { grid-template-columns: 1fr auto 1fr; }
  .demo-hint { right: auto; left: 50%; top: auto; bottom: calc(100% + 6px); translate: -50% 0; transform: rotate(-3deg); align-items: center; text-align: center; }
  .demo-hint br { display: none; }
  .demo-hint svg { display: none; }
  .demo-hint.is-gone { translate: -50% -6px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-stage { grid-template-columns: 1fr; justify-items: center; margin-top: 88px; }
  .hero-phone.side { display: none; }
  .hero-phone.center { width: min(78vw, 330px); }
  .platforms-stage .phone { width: 34%; }
  footer nav { margin-left: 0; }
  .year-stats { gap: 24px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
