/* ============================================================
   unlist landing — washi style.
   Three-layer tokens (primitives → semantic → utilities),
   light + dark paired, extracted from prod webapp tokens.css.
   ============================================================ */

/* ── 1. PRIMITIVES ───────────────────────────────────────── */
:root {
  --c-paper-25:  #FBF8F1;
  --c-paper-50:  #F4EFE6;
  --c-paper-100: #ECE5D6;
  --c-paper-200: #DCD3BE;
  --c-paper-300: #BAB1A0;
  --c-paper-400: #8C8579;
  --c-paper-500: #5C5650;
  --c-paper-600: #3F3A36;
  --c-paper-700: #2A2722;
  --c-paper-800: #1C1B22;
  --c-paper-900: #14131A;

  --c-sumi-50:   #FAF8F5;
  --c-sumi-100:  #ECE9DD;
  --c-sumi-700:  #4A4540;
  --c-sumi-900:  #1A1A1F;

  --c-vermillion-300: #ECA39A;
  --c-vermillion-400: #E07A6E;
  --c-vermillion-500: #C9594D;
  --c-vermillion-600: #B14438;

  --c-sage-300: #ABBFA9;
  --c-sage-400: #8FA08D;
  --c-sage-500: #6F8F66;
  --c-sage-600: #4F6F44;

  --c-slate-400: #8B96A3;
  --c-slate-500: #6C7E8B;
  --c-slate-700: #3F4A55;

  --font-display: 'Fraunces', 'Geist', system-ui, ui-serif, serif;
  --font-ui:      'IBM Plex Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── 2. SEMANTIC — light ─────────────────────────────────── */
:root,
html {
  --bg-canvas:    var(--c-paper-50);
  --bg-surface:   #FFFFFF;
  --bg-surface-2: var(--c-paper-25);
  --bg-sunken:    var(--c-paper-100);
  --bg-inverse:   var(--c-paper-900);

  --ink-primary:   var(--c-sumi-900);
  --ink-secondary: var(--c-sumi-700);
  --ink-muted:     var(--c-paper-400);
  --ink-on-accent: #FFFFFF;

  --border-subtle: rgba(26, 26, 31, 0.08);
  --border:        rgba(26, 26, 31, 0.14);
  --border-strong: rgba(26, 26, 31, 0.22);

  --accent:        var(--c-vermillion-500);
  --accent-strong: var(--c-vermillion-600);
  --accent-soft:   rgba(201, 89, 77, 0.10);
  --accent-ring:   rgba(201, 89, 77, 0.45);

  --success:      var(--c-sage-500);
  --success-soft: rgba(111, 143, 102, 0.12);
  --info:         var(--c-slate-500);
  --info-soft:    rgba(108, 126, 139, 0.12);

  --washi-grain:  rgba(26, 26, 31, 0.04);

  --shadow-card: 0 1px 0 rgba(26, 26, 31, 0.04), 0 8px 24px -12px rgba(26, 26, 31, 0.10);
  --shadow-lift: 0 2px 4px rgba(26, 26, 31, 0.06), 0 18px 36px -10px rgba(26, 26, 31, 0.14);
  --shadow-pop:  0 2px 4px rgba(26, 26, 31, 0.08), 0 22px 48px -12px rgba(26, 26, 31, 0.18);

  color-scheme: light;
}

/* ── 3. SEMANTIC — dark ──────────────────────────────────── */
html.dark {
  --bg-canvas:    var(--c-paper-900);
  --bg-surface:   var(--c-paper-800);
  --bg-surface-2: #232228;
  --bg-sunken:    #0E0E13;

  --ink-primary:   var(--c-sumi-100);
  --ink-secondary: var(--c-paper-300);
  --ink-muted:     var(--c-paper-500);

  --border-subtle: rgba(236, 233, 221, 0.06);
  --border:        rgba(236, 233, 221, 0.12);
  --border-strong: rgba(236, 233, 221, 0.20);

  --accent:        var(--c-vermillion-400);
  --accent-strong: var(--c-vermillion-500);
  --accent-soft:   rgba(224, 122, 110, 0.16);
  --accent-ring:   rgba(224, 122, 110, 0.50);

  --success:      var(--c-sage-400);
  --success-soft: rgba(143, 160, 141, 0.14);
  --info:         var(--c-slate-400);
  --info-soft:    rgba(139, 150, 163, 0.14);

  --washi-grain:  rgba(236, 233, 221, 0.04);

  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.35), 0 8px 24px -12px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.45), 0 18px 36px -10px rgba(0, 0, 0, 0.65);
  --shadow-pop:  0 2px 4px rgba(0, 0, 0, 0.55), 0 22px 48px -12px rgba(0, 0, 0, 0.75);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not(.theme-forced) { color-scheme: dark; }
  html:not(.theme-forced):not(.dark):not(.light) {
    /* delegate to .dark via JS — fallback below for no-JS */
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── 4. Base reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  /* washi paper grain — very subtle noise via SVG filter */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, var(--info-soft), transparent 55%);
  background-attachment: fixed;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink-primary); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent-soft); color: var(--ink-primary); }

/* ── 5. Layout primitives ────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section-sunken { background: color-mix(in oklab, var(--bg-canvas) 70%, var(--bg-sunken) 30%); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head .eyebrow { margin-bottom: 16px; }

.section-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 12px 0 0;
}

.title-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.text-accent { color: var(--accent); }

.font-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
[data-tnum] { font-variant-numeric: tabular-nums; }

/* ── 6. Surface utility ──────────────────────────────────── */
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ── 7. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, opacity .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--ink-on-accent);
  box-shadow: 0 1px 0 var(--accent-ring) inset, 0 8px 22px -10px var(--accent);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--ink-on-accent); }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-surface-2); color: var(--ink-primary); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--ink-secondary);
  transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg-surface-2); color: var(--ink-primary); }

/* ── 8. Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in oklab, var(--bg-canvas) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, padding .2s ease;
}
.site-header[data-shrink="true"] {
  padding: 10px 0;
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 19px;
  color: var(--ink-primary);
}
.brand-seal {
  display: inline-flex;
  color: var(--accent);
}
.brand-dim { color: var(--ink-muted); font-weight: 400; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
  flex: 1;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-secondary);
  transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { color: var(--ink-primary); background: var(--bg-surface-2); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#theme-toggle .icon-moon { display: none; }
html.dark #theme-toggle .icon-sun { display: none; }
html.dark #theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .site-nav {
    position: fixed;
    inset: 64px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: var(--shadow-lift);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    margin-left: 0;
    flex: none;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .header-actions .btn-primary span,
  .header-actions .btn-primary { font-size: 0; min-width: 38px; padding: 0 10px; }
  .header-actions .btn-primary svg { display: none; }
  .header-actions .btn-primary::before {
    content: "TG";
    font-size: 13px;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
    font-weight: 600;
  }
}

/* ── 9. Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-text .eyebrow { margin-bottom: 20px; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  margin: 0 0 20px;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 28px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.hero-meta .sep {
  width: 3px; height: 3px;
  border-radius: 999px;
  background: var(--ink-muted);
  opacity: 0.45;
}
.hero-meta strong { color: var(--ink-secondary); font-weight: 600; }

/* Hero preview card */
.hero-card {
  position: relative;
  padding: 24px 22px 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.card-corner-accent {
  position: absolute;
  top: 0; right: 0;
  width: 130px; height: 30px;
  color: var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
html.dark .card-corner-accent { opacity: 0.42; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.card-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--success);
}
.card-title::before {
  content: "●";
  margin-right: 6px;
  color: var(--success);
}

.card-days {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 8px;
}
.days-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}
.days-label {
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink-muted);
}

.card-meter { margin-top: 14px; }
.meter-bar {
  height: 4px;
  background: var(--bg-sunken);
  border-radius: 999px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: var(--w, 50%);
  background: var(--accent);
  border-radius: 999px;
}
.meter-cap {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
}
.card-row:first-of-type { margin-top: 16px; }
.row-label { color: var(--ink-muted); }
.row-val { color: var(--ink-primary); font-weight: 500; }
.row-dim { color: var(--ink-muted); font-weight: 400; }

/* Hero strip — numbers row */
.hero-strip {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

.strip-item { display: flex; align-items: baseline; gap: 14px; }
.strip-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}
.strip-cap {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-muted);
}

/* ── 10. Features grid ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: var(--accent);
  background: var(--accent-soft);
}
.feature-icon[data-tone="success"] { color: var(--success); background: var(--success-soft); }
.feature-icon[data-tone="info"]    { color: var(--info);    background: var(--info-soft);    }

.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0;
}
.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* ── 11. Locations grid ──────────────────────────────────── */
.locations-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .locations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .locations-grid { grid-template-columns: 1fr; } }

.loc-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.loc-flag {
  font-size: 32px;
  line-height: 1;
  width: 44px;
}
.loc-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.loc-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* ── 12. Steps ───────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 4px;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0;
}
.step p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── 13. Pricing ─────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.plan {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan-featured {
  border-color: var(--accent-soft);
  box-shadow: 0 1px 0 var(--accent-soft), 0 18px 36px -16px rgba(201, 89, 77, 0.25);
  position: relative;
}
.plan-featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--accent);
  pointer-events: none;
  opacity: 0.4;
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.plan-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
}
.plan-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink-on-accent);
  font-weight: 600;
}
.plan-badge-muted {
  background: var(--bg-sunken);
  color: var(--ink-secondary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
}
.price-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}
.price-cur {
  font-size: 22px;
  color: var(--ink-muted);
}
.plan-alt {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: -4px;
}

.plan .btn { margin-top: auto; }

.pricing-note {
  margin: 32px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── 14. FAQ ─────────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.faq-item[open] {
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}
.faq-item summary {
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.005em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 1.6px solid var(--ink-muted);
  border-bottom: 1.6px solid var(--ink-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(0); }
.faq-body {
  padding: 0 22px 20px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}
.faq-body p { margin: 0; }

/* ── 15. CTA band ────────────────────────────────────────── */
.cta-band {
  padding: clamp(72px, 9vw, 120px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner { position: relative; }
.cta-sumi {
  position: absolute;
  inset: 0 0 auto 0;
  top: -10px;
  height: 50px;
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
}
.cta-sumi svg { width: 100%; height: 100%; }

.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.cta-lede {
  color: var(--ink-secondary);
  font-size: 17px;
  margin: 0 0 28px;
}
.cta-buttons {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Sheet (signup modal) ────────────────────────────────── */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet[hidden] { display: none; }
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim, rgba(20, 19, 26, 0.45));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: scrim-in .2s ease-out both;
}
html.dark .sheet-scrim { background: rgba(0, 0, 0, 0.55); }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }

.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 24px;
  padding: 28px 26px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  animation: sheet-in .25s cubic-bezier(0.20, 0.80, 0.20, 1) both;
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 720px) {
  .sheet { align-items: center; }
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.sheet-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.sheet-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.sheet-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink-primary);
}
.sheet-lede {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}
.sheet-lede strong { color: var(--ink-primary); font-weight: 600; }

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.field input {
  height: 48px;
  padding: 0 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: var(--ink-primary);
  transition: border-color .15s ease, background-color .15s ease;
}
.field input::placeholder { color: var(--ink-muted); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.signup-status {
  min-height: 18px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.signup-status[data-state="success"] { color: var(--success); }
.signup-status[data-state="error"]   { color: var(--danger);  }

.sheet-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.sheet-sep::before,
.sheet-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

body.is-locked { overflow: hidden; }

/* ── Auth / Dashboard ────────────────────────────────────── */
.auth-section { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 64px; }

.auth-card {
  position: relative;
  padding: 32px 28px 28px;
  overflow: hidden;
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.auth-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.auth-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
}
.auth-lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 22px;
}
.auth-lede strong { color: var(--ink-primary); font-weight: 600; }

.auth-toggle {
  text-align: center;
  margin: 4px 0;
}
.link-btn {
  background: none;
  border: 0;
  padding: 4px 6px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.link-btn:hover { color: var(--accent); text-decoration-color: var(--accent); }

.auth-error {
  background: var(--danger-soft);
  border: 1px solid var(--danger-soft);
  border-left: 3px solid var(--danger);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

.auth-fineprint {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  margin: 22px 0 0;
}
.auth-fineprint a { color: var(--ink-secondary); text-decoration: underline; text-underline-offset: 2px; }
.auth-fineprint a:hover { color: var(--accent); }

/* Dashboard */
.dash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 0;
  color: var(--ink-muted);
  font-size: 14px;
}
.spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dash-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.dash-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}
.dash-title {
  margin: 0 0 32px;
  font-size: clamp(36px, 5vw, 56px);
}
.dash-card {
  padding: 24px 22px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.dash-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.dash-p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 14px;
}
.dash-p strong { color: var(--ink-primary); font-weight: 600; }
.dash-hint {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 12px 0 0;
}
.dash-hint code {
  background: var(--bg-sunken);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12.5px;
}

.link-code-box {
  background: var(--bg-sunken);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.link-code-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.link-code {
  font-size: 32px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1;
  padding: 6px 0;
}
.link-code-ttl {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-sumi-900);
  color: var(--c-sumi-100);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  box-shadow: var(--shadow-pop);
  z-index: 200;
  max-width: min(92vw, 360px);
  text-align: center;
  animation: toast-in .25s cubic-bezier(0.20, 0.80, 0.20, 1);
}
.toast[data-kind="error"] { background: var(--danger); color: white; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Legal pages (offer / privacy / recurring) ───────────── */
.legal-page main { padding-top: 32px; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 24px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.legal-back:hover { background: var(--bg-surface-2); color: var(--ink-primary); }

.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.legal-h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.legal-meta {
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-tldr {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 36px;
}
.legal-tldr strong { color: var(--ink-primary); }

.legal article {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-primary);
}
.legal article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 24px;
  line-height: 1.2;
  margin: 40px 0 14px;
  scroll-margin-top: 80px;
}
.legal article h2 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-right: 10px;
  vertical-align: 0.15em;
}
.legal article h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 17px;
  margin: 24px 0 8px;
}
.legal article p {
  margin: 0 0 14px;
  color: var(--ink-secondary);
}
.legal article p strong { color: var(--ink-primary); font-weight: 600; }
.legal article ul, .legal article ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-secondary);
}
.legal article li { margin-bottom: 6px; padding-left: 4px; }
.legal article ul li::marker { color: var(--accent); }
.legal article ol li::marker { color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.9em; }

.legal article a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal article a:hover { color: var(--accent); }

.legal-requisites {
  margin-top: 40px;
  padding: 22px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-secondary);
}
.legal-requisites .req-cap {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.legal-requisites code {
  font-family: inherit;
  color: var(--ink-primary);
}
.legal-requisites .req-todo {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ── 16. Footer ──────────────────────────────────────────── */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) {
  .foot-cols, .foot-cols-4 { grid-template-columns: 1fr 1fr; }
}

.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-cap {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.foot-col a {
  color: var(--ink-secondary);
  font-size: 14px;
}
.foot-col a:hover { color: var(--ink-primary); }

.foot-fine {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.foot-dim { opacity: 0.7; }
