/* =========================================================================
   Copy-Paste Karo marketing site — editorial-warm
   Design tokens come from pastekaro/constants/colors.ts (Forest theme).
   Type pairing: Fraunces (variable, optical sizing) + Inter (utility).
   ========================================================================= */

:root {
  --bg:        #EEE7D8;
  --bg-deep:   color-mix(in srgb, var(--bg) 90%, var(--ink) 10%);
  --card:      #E0D6C4;
  --fg:        #2B2A26;
  --muted-fg:  #6B6358;
  --hair:      #C8BAA2;
  --primary:   #4A5D3F;
  --primary-fg:#FFFFFF;
  --accent:    #B5651D;
  --ink:       #1F1D1A;
  --rule:      #B6A88C;

  /* Theme accents borrowed from THEMES in pastekaro/constants/colors.ts */
  --t-forest:  #4A5D3F;
  --t-ocean:   #2E6B8E;
  --t-clay:    #8E4B2E;
  --t-slate:   #4A5470;
  --t-berry:   #7B3F6E;

  --radius:    14px;
  --radius-lg: 22px;
  --maxw-read: 720px;
  --maxw:      1120px;

  --ease:      cubic-bezier(0.2, 0.7, 0.2, 1);
  --wash:      0.7s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #181510;
    --card:      #24211C;
    --fg:        #EFE9DC;
    --muted-fg:  #A89F8E;
    --hair:      #36302A;
    --primary:   #7A9A6B;
    --primary-fg:#181510;
    --accent:    #C68145;
    --ink:       #FFFFFF;
    --rule:      #46402F;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "ss01", "cv11", "cv02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Paper grain — subtle SVG noise overlay, fixed so it doesn't move on scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0.10 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: 0.18; }
}
/* Once JS sets the mode explicitly, it overrides the system-pref fallback above */
[data-mode="dark"]  body::before { mix-blend-mode: screen;   opacity: 0.18; }
[data-mode="light"] body::before { mix-blend-mode: multiply; opacity: 0.55; }

/* Position content above the grain */
.appbar, header, section, footer { position: relative; z-index: 2; }

/* Smooth "wash" when the theme variables change (whole page or just the panel) */
*, *::before, *::after {
  transition: background-color var(--wash), border-color var(--wash),
              color var(--wash), fill var(--wash);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.wrap     { max-width: var(--maxw);      margin: 0 auto; padding: 0 28px; }
.wrap-rd  { max-width: var(--maxw-read); margin: 0 auto; padding: 0 28px; }

/* =====================================================================
   App-bar — sticky, identifies app on every page (Apple reviewer-safe)
   ===================================================================== */
.appbar {
  position: sticky; top: 0;
  z-index: 100; /* must beat sections (z-index: 2) so content scrolls UNDER the bar */
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
          backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hair);
}
.appbar .row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.appbar .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.appbar .brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid var(--hair);
}
.appbar .brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 14;
  font-weight: 600; font-size: 18px; letter-spacing: -0.012em;
}
.appbar nav { display: flex; gap: 28px; }
.appbar nav a {
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.2s var(--ease);
}
.appbar nav a:hover { color: var(--fg); }
.appbar nav a[aria-current="page"] { color: var(--fg); }
.appbar nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--primary);
}

/* =====================================================================
   Hero (marketing page only)
   ===================================================================== */
header.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--hair);
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 28px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 28px; height: 1px; background: var(--rule); display: inline-block;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: clamp(52px, 9vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--primary);
  font-weight: 400;
}
.hero .lede {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 24;
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.45;
  color: var(--muted-fg);
  max-width: 620px;
  margin: 0 auto 36px;
  letter-spacing: -0.005em;
}
.hero .cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.hero .meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-top: 22px;
}

/* Hero photograph — iPhone 17 Pro held in hand showing the History screen */
.hero-photo {
  margin: 72px auto 0;
  max-width: 1040px;
  padding: 0;
}
.hero-photo picture, .hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.18));
}
@media (max-width: 720px) {
  .hero-photo { margin-top: 48px; max-width: 92vw; }
  .hero-photo picture, .hero-photo img { border-radius: 12px; }
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 600; font-size: 14.5px;
  letter-spacing: 0.005em;
  border: 1px solid var(--ink);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--bg); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--hair);
}
.btn.ghost:hover { color: var(--fg); border-color: var(--ink); }

.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg);
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 0.18s var(--ease);
}
.appstore-badge:hover { transform: translateY(-2px); color: var(--bg); }
.appstore-badge .apple { font-size: 26px; line-height: 1; }
.appstore-badge .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.appstore-badge .small { font-size: 10px; opacity: 0.72; letter-spacing: 0.04em; margin-bottom: 3px; }
.appstore-badge .big { font-family: "Fraunces", serif; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }

/* =====================================================================
   Marquee strip — small caps statistics row
   ===================================================================== */
.strip {
  border-bottom: 1px solid var(--hair);
  padding: 28px 0;
  background: var(--bg-deep);
}
.strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.strip-cell {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.strip-cell .num {
  display: block;
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  font-style: italic;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
@media (max-width: 720px) {
  .strip-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* =====================================================================
   Sections
   ===================================================================== */
section { padding: 96px 0; border-bottom: 1px solid var(--hair); }
section:last-of-type { border-bottom: none; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; }
  section { padding: 64px 0; }
}

h2 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--ink);
}
h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
  color: var(--primary);
  font-weight: 400;
}
.section-head .lede {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 24;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted-fg);
  margin: 0;
}

/* =====================================================================
   Feature grid — illustrated card vignettes
   ===================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.feature {
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 28px;
  background: transparent;
  position: relative;
  transition: background 0.3s var(--ease);
}
.feature:hover { background: var(--bg-deep); }
.feature-art {
  height: 168px;
  margin: -8px -8px 22px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--hair);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.feature-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.feature h3 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 36;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 8px;
  color: var(--ink);
}
.feature p {
  font-size: 15px;
  color: var(--muted-fg);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* ---- Vignette: clipboard list ---- */
.vg-list { padding: 14px 16px; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; }
.vg-row {
  display: flex; gap: 8px; align-items: center;
  background: var(--bg); border: 1px solid var(--hair);
  border-radius: 7px; padding: 7px 9px;
}
.vg-row .b { width: 3px; height: 22px; border-radius: 2px; }
.vg-row .t { font-family: "Inter", sans-serif; font-size: 10px; color: var(--ink); font-weight: 600; flex: 1; }
.vg-row .x { font-family: ui-monospace, monospace; font-size: 9px; color: var(--muted-fg); }

/* ---- Vignette: search ---- */
.vg-search { padding: 22px; width: 100%; }
.vg-search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--hair);
  border-radius: 10px; padding: 10px 14px;
  font-family: "Inter", sans-serif; font-size: 12px; color: var(--muted-fg);
}
.vg-search-bar::before { content: "⌕"; font-size: 14px; color: var(--primary); }
.vg-search-bar .cursor {
  display: inline-block; width: 1px; height: 12px; background: var(--primary);
  margin-left: 1px; animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.vg-search-results { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.vg-search-results .h {
  height: 8px; background: var(--bg); border: 1px solid var(--hair); border-radius: 4px;
}
.vg-search-results .h:nth-child(1) { width: 78%; }
.vg-search-results .h:nth-child(2) { width: 92%; }
.vg-search-results .h:nth-child(3) { width: 64%; }

/* ---- Vignette: pin ---- */
.vg-pin { display: flex; align-items: center; justify-content: center; gap: 16px; }
.vg-pin .star {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: 96px;
  color: var(--primary);
  font-weight: 400;
  line-height: 1;
  transform: rotate(-8deg);
}
.vg-pin .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-fg);
  writing-mode: vertical-rl;
}

/* ---- Vignette: themes (5 swatches) ---- */
.vg-themes { display: flex; gap: 10px; padding: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.vg-swatch {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: end; justify-content: start; padding: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
}

/* ---- Vignette: keyboard preview (small) ---- */
.vg-keyboard {
  width: 100%; padding: 14px; display: flex; flex-direction: column; gap: 6px;
}
.vg-kb-chips { display: flex; gap: 4px; overflow: hidden; }
.vg-kb-chips .c {
  font-family: "Inter", sans-serif;
  font-size: 8.5px; font-weight: 600;
  padding: 3px 7px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--bg);
  color: var(--muted-fg); white-space: nowrap;
}
.vg-kb-chips .c.on { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.vg-kb-rows { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.vg-kb-rows .r {
  background: var(--bg); border: 1px solid var(--hair); border-radius: 6px;
  padding: 5px 7px;
  font-family: ui-monospace, monospace; font-size: 9px; color: var(--ink);
  display: flex; justify-content: space-between;
}
.vg-kb-rows .r .meta { color: var(--muted-fg); font-size: 8px; }

/* ---- Vignette: privacy lock ---- */
.vg-privacy {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.vg-privacy .num {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-weight: 400;
  font-size: 88px;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.04em;
}
.vg-privacy .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-fg);
}

/* =====================================================================
   Keyboard showcase — a wider, illustrative section
   ===================================================================== */
.kb-showcase {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .kb-showcase { grid-template-columns: 1fr; gap: 36px; } }
.kb-text h3 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 72;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 8px 0 16px;
  color: var(--ink);
}
.kb-text p {
  font-size: 16.5px;
  color: var(--muted-fg);
  margin: 0 0 14px;
}
.kb-stage {
  background: var(--bg-deep);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 22px 22px 0;
  position: relative;
  overflow: hidden;
}
.kb-stage::before {
  content: "Any app";
  position: absolute; top: 14px; left: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-fg);
}
.kb-stage .typing-area {
  margin-top: 26px;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--ink);
  min-height: 64px;
}
.kb-stage .typing-area .cur {
  display: inline-block; width: 1px; height: 16px; background: var(--primary);
  vertical-align: -3px; animation: blink 1s steps(2) infinite;
}
.kb-mock {
  margin: 22px -22px 0;
  background: var(--card);
  border-top: 1px solid var(--hair);
  padding: 14px 18px 18px;
}
.kb-mock-chips { display: flex; gap: 6px; overflow: hidden; margin-bottom: 12px; }
.kb-mock-chips .c {
  font-family: "Inter", sans-serif;
  font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--bg);
  color: var(--muted-fg); white-space: nowrap;
}
.kb-mock-chips .c.on { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.kb-mock-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.kb-mock-rows .r {
  background: var(--bg); border: 1px solid var(--hair); border-radius: 8px;
  padding: 8px 12px;
  display: grid; grid-template-columns: 3px 1fr auto; gap: 10px; align-items: center;
}
.kb-mock-rows .r .b { width: 3px; height: 22px; border-radius: 2px; }
.kb-mock-rows .r .t {
  font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kb-mock-rows .r .ts { font-size: 10px; color: var(--muted-fg); }
.kb-keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.kb-keys .k {
  background: var(--bg); border: 1px solid var(--hair);
  border-radius: 5px; height: 26px;
}
.kb-keys .k.wide { grid-column: span 2; }

/* =====================================================================
   Pull quote / privacy callout
   ===================================================================== */
.pullquote {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.pullquote q {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.024em;
  color: var(--ink);
  display: block;
  max-width: 880px;
  margin: 0 auto;
  quotes: "“" "”";
}
.pullquote .src {
  display: inline-block;
  margin-top: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-fg);
  text-decoration: none;
}
.pullquote .src:hover { color: var(--primary); }
.pullquote .src::after { content: " →"; }

/* =====================================================================
   Resources / dual CTA
   ===================================================================== */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair);
}
.duo > a {
  display: block;
  padding: 56px 40px;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid var(--hair);
  position: relative;
  transition: background 0.3s var(--ease);
}
.duo > a:last-child { border-right: none; }
.duo > a:hover { background: var(--bg-deep); }
.duo .small {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 12px;
}
.duo .big {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 60;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.duo .big em {
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" 100, "WONK" 1;
  color: var(--primary);
  font-weight: 400;
}
.duo .why { color: var(--muted-fg); font-size: 15px; line-height: 1.55; }
.duo .arrow {
  position: absolute; top: 56px; right: 40px;
  font-family: "Fraunces", serif; font-style: italic;
  font-size: 32px; color: var(--primary);
  transition: transform 0.3s var(--ease);
}
.duo > a:hover .arrow { transform: translateX(8px); }
@media (max-width: 720px) {
  .duo { grid-template-columns: 1fr; }
  .duo > a { border-right: none; border-bottom: 1px solid var(--hair); padding: 40px 28px; }
  .duo > a:last-child { border-bottom: none; }
  .duo .arrow { top: 40px; right: 28px; }
}

/* =====================================================================
   Footer — big editorial signoff
   ===================================================================== */
footer.site {
  padding: 80px 0 64px;
  text-align: center;
}
footer.site .signoff {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 28px;
}
footer.site .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
footer.site .meta a { color: var(--muted-fg); text-decoration: none; }
footer.site .meta a:hover { color: var(--ink); }
footer.site .meta .dot { display: inline-block; margin: 0 10px; opacity: 0.5; }

/* =====================================================================
   Reading pages (privacy / support) — wider type, refined rhythm
   ===================================================================== */
header.page {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--hair);
}
header.page h1 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 120, "SOFT" 30;
  font-weight: 500;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.032em;
  margin: 12px 0 18px;
  color: var(--ink);
}
header.page h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 120, "SOFT" 100, "WONK" 1;
  color: var(--primary);
  font-weight: 400;
}
header.page .lede {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 24;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted-fg);
  line-height: 1.5;
  margin: 0;
  max-width: 640px;
}

.prose section { padding: 56px 0; }
.prose h3 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 36;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.018em;
  margin: 36px 0 12px;
  color: var(--ink);
}
.prose .faq-q {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 17.5px;
  margin: 36px 0 8px;
  color: var(--ink);
}
.prose p { margin: 0 0 16px; max-width: 640px; }
.prose ul.clean { padding-left: 22px; margin: 0 0 18px; max-width: 640px; }
.prose ul.clean li { margin-bottom: 8px; }
.prose a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92em;
  background: var(--card);
  border: 1px solid var(--hair);
  padding: 1px 6px;
  border-radius: 6px;
}

.callout {
  background: var(--card);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 12px 0 28px;
  max-width: 640px;
}
.callout p:last-child { margin-bottom: 0; }
.callout .label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.effective {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 8px;
}

table.data {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hair);
}
table.data th, table.data td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
table.data tr:last-child td { border-bottom: none; }
table.data th {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

/* =====================================================================
   Page-load reveal (CSS-only, no JS dependency)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease) forwards; }
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.15s; }
.reveal.d3 { animation-delay: 0.25s; }
.reveal.d4 { animation-delay: 0.35s; }
.reveal.d5 { animation-delay: 0.50s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .device { transform: none; }
}

/* =====================================================================
   Spectrum bar — the five theme accents as a brand motif
   ===================================================================== */
.spectrum {
  display: flex;
  gap: 5px;
  max-width: 460px;
  margin: 36px auto 0;
}
.spectrum span {
  height: 12px;
  flex: 1;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
}
.spectrum.sm { max-width: 280px; margin-top: 0; }
.spectrum.sm span { height: 9px; }

/* =====================================================================
   Interactive theme stage — a contained, themeable preview panel.
   Autoplay recolours THIS panel only; tapping a chip themes the whole page.
   ===================================================================== */
/* The whole themes band carries the previewed colour (set on #themes by JS).
   Tinted toward the theme's primary so the hue is obvious even in dark mode,
   where every base background is near-black. */
#themes { background-color: color-mix(in srgb, var(--bg) 86%, var(--primary) 14%); }

.theme-stage {
  /* Derive the card surface from the band's OWN --bg/--ink (not the root --bg-deep,
     whose inner var()s resolve against the page, so it wouldn't cycle in autoplay). */
  background-color: color-mix(in srgb, var(--bg) 90%, var(--ink) 10%);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
}
.ts-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: 34px;
}
.ts-phone { display: flex; justify-content: center; }
.ts-phone img {
  width: min(300px, 64vw); display: block; border-radius: 26px;
  border: 1px solid var(--hair);
  box-shadow: 0 26px 60px rgba(0,0,0,0.26);
}
.ts-info .dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-block; margin-bottom: 16px;
  background: var(--primary);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 14%, transparent);
}
.ts-info h3 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.0;
  letter-spacing: -0.024em;
  margin: 0 0 16px;
  color: var(--ink);
}
.ts-info p {
  font-size: 17px; line-height: 1.6; color: var(--muted-fg);
  margin: 0; max-width: 46ch;
}

/* Control group — five colour chips + dark toggle + play/pause, all together */
.ts-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}
.ts-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tchip {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 14px;
  color: var(--fg);
  background: var(--card); border: 1px solid var(--hair);
  padding: 9px 15px; border-radius: 11px;
  transition: background-color var(--wash), border-color var(--wash), color var(--wash),
              transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.tchip:hover { transform: translateY(-2px); }
.tchip .sw { width: 14px; height: 14px; border-radius: 5px; flex: none; }
.tchip[aria-current="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 24%, transparent);
}
.ts-sep { width: 1px; height: 26px; background: var(--hair); margin: 0 6px; }
.ts-toggles { display: flex; gap: 8px; }
.tbtn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 14px;
  color: var(--fg);
  background: var(--card); border: 1px solid var(--hair);
  padding: 9px 14px; border-radius: 11px;
  transition: background-color var(--wash), border-color var(--wash), color var(--wash),
              transform 0.15s var(--ease);
}
.tbtn:hover { transform: translateY(-2px); }
.tbtn.icon { width: 42px; padding: 9px 0; justify-content: center; font-size: 13px; }

.theme-hint {
  text-align: center; margin: 22px auto 0;
  color: var(--muted-fg);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

@media (max-width: 760px) {
  .ts-top { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .ts-info .dot { margin-left: auto; margin-right: auto; }
  .ts-info p { margin-left: auto; margin-right: auto; }
  .theme-stage { padding: 24px 18px; }
  .ts-phone img { width: min(240px, 70vw); }
  .ts-sep { display: none; }
}

/* =====================================================================
   Screens showcase — real app screenshots with captions
   ===================================================================== */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.screen-card {
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 32px 28px 28px;
  transition: background 0.3s var(--ease);
}
.screen-card:hover { background: var(--bg-deep); }
.screen-shot {
  background: var(--bg-deep);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px 24px 0;
  display: flex; justify-content: center;
  overflow: hidden;
  margin-bottom: 22px;
}
.screen-shot img {
  width: 200px; display: block;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--hair); border-bottom: none;
  box-shadow: 0 -2px 24px rgba(0,0,0,0.12);
}
.screen-card .feature-tag { margin-bottom: 8px; }
.screen-card h3 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 36;
  font-weight: 500; font-size: 24px;
  line-height: 1.15; letter-spacing: -0.018em;
  margin: 0 0 8px; color: var(--ink);
}
.screen-card p { font-size: 15px; color: var(--muted-fg); line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .screens-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Anchor offset under sticky bar
   ===================================================================== */
section[id], h3[id] { scroll-margin-top: 96px; }

/* =====================================================================
   Small-screen tweaks
   ===================================================================== */
@media (max-width: 540px) {
  .appbar nav { gap: 18px; }
  .appbar nav a { font-size: 13px; }
  header.hero { padding: 64px 0 48px; }
  .device-stage { max-width: 260px; margin-top: 48px; }
}
