/* Copyo — marketing site stylesheet. One file, no build step.
   Dark first; `data-theme="light"` on <html> flips the tokens. */

/* ============ tokens ============ */

:root {
  color-scheme: dark;

  --lime: #a3cc4e;
  --lime-deep: #6e9420;
  --lime-hi: #bce06a;
  --red: #e5484d;

  --g1: #bce06a;
  --g2: #8fbe35;

  --bg: #0b0d14;
  --bg-2: #0e111a;
  --bg-3: #10131d;
  --surface: #171c2b;
  --surface-2: #1e2434;
  --ink: #f0f3f7;
  --ink-2: #b7bfcd;
  --ink-3: #7b8598;
  --line: #2c3245;
  --line-2: #1e2231;
  --accent: #b9e063;
  --accent-soft: rgba(163, 204, 78, 0.15);
  --glass: rgba(11, 13, 20, 0.72);

  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-m: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-l: 0 16px 40px rgba(0, 0, 0, 0.5), 0 48px 96px rgba(0, 0, 0, 0.45);

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --radius-xl: 26px;

  --gap: 20px;
  --pad: 24px;
  --maxw: 1120px;
  --readw: 720px;
  --section-y: clamp(84px, 11vw, 152px);
  --cw: 184px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --g1: #a3cc4e;
  --g2: #6e9420;
  --bg: #fbfbf8;
  --bg-2: #f4f5f0;
  --bg-3: #eff1ea;
  --surface: #ffffff;
  --surface-2: #f4f5f1;
  --ink: #12151c;
  --ink-2: #3f4553;
  --ink-3: #6d7686;
  --line: #e2e5dc;
  --line-2: #edefe8;
  --accent: #4e6b14;
  --accent-soft: rgba(110, 148, 32, 0.13);
  --glass: rgba(251, 251, 248, 0.78);
  --shadow-s: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow-m: 0 4px 12px rgba(16, 24, 40, 0.07), 0 12px 32px rgba(16, 24, 40, 0.07);
  --shadow-l: 0 8px 24px rgba(16, 24, 40, 0.09), 0 32px 64px rgba(16, 24, 40, 0.12);
}

/* ============ base ============ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.024em;
  margin: 0 0 0.5em;
  font-weight: 640;
}
h1 { font-size: clamp(2.5rem, 7.4vw, 5rem); letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-size: 1.16rem; letter-spacing: -0.014em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

img, svg { max-width: 100%; }

code, kbd, samp { font-family: var(--mono); font-size: 0.88em; }
code {
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 5px; padding: 0.12em 0.4em; color: var(--ink);
}
kbd {
  display: inline-block; min-width: 1.65em; padding: 0.15em 0.45em;
  text-align: center; font-size: 0.82em; font-family: var(--font); font-weight: 550;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px; box-shadow: var(--shadow-s); white-space: nowrap;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 2; }
.narrow { max-width: var(--readw); }
.center { text-align: center; margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  padding: 10px 16px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ============ ambient layer ============ */

.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(163, 204, 78, 0.11), transparent 60%),
    radial-gradient(100% 60% at 50% 108%, rgba(163, 204, 78, 0.06), transparent 62%),
    radial-gradient(130% 100% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
html[data-theme="light"] .vignette {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(163, 204, 78, 0.22), transparent 60%),
    radial-gradient(130% 100% at 50% 45%, transparent 45%, rgba(20, 28, 8, 0.07) 100%);
}

.ambient { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }

/* the one soft lime glow behind the hero headline */
.hero-glow {
  position: absolute; left: 50%; top: 38%; z-index: 1; pointer-events: none;
  width: min(820px, 92vw); aspect-ratio: 1 / 0.62;
  background: radial-gradient(closest-side, rgba(163, 204, 78, 0.17), rgba(163, 204, 78, 0.05) 55%, transparent 72%);
  transform: translate(-50%, -50%);
  animation: breathe 12s ease-in-out infinite;
}
html[data-theme="light"] .hero-glow {
  background: radial-gradient(closest-side, rgba(163, 204, 78, 0.3), rgba(163, 204, 78, 0.09) 55%, transparent 72%);
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.94); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* the dashed thread that runs the length of the page */
.thread { position: absolute; inset-block: 0; left: 50%; width: 2px; margin-left: -1px; z-index: 1; pointer-events: none; }
.thread::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, var(--line) 0 7px, transparent 7px 16px);
  opacity: 0.85;
}
.thread::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: var(--sp, 0%);
  background: repeating-linear-gradient(to bottom, var(--lime) 0 7px, transparent 7px 16px);
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

.page { position: relative; }

/* ============ reveal ============ */

.js-reveal .reveal { opacity: 0; transform: translateY(14px); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-reveal .reveal.is-in.d1 { transition-delay: 0.09s; }
.js-reveal .reveal.is-in.d2 { transition-delay: 0.18s; }
.js-reveal .reveal.is-in.d3 { transition-delay: 0.27s; }
.js-reveal .reveal.is-in.d4 { transition-delay: 0.36s; }

/* ============ nav ============ */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 660; font-size: 1.06rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; flex: none; color: var(--lime); }
html[data-theme="light"] .brand svg { color: var(--lime-deep); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 9px; font-size: 0.94rem;
  color: var(--ink-3); text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .btn { margin-left: 6px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: none;
  color: var(--ink-2); background: transparent;
  border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn .sun { display: none; }
html[data-theme="light"] .icon-btn .sun { display: block; }
html[data-theme="light"] .icon-btn .moon { display: none; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--pad) 16px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
  }
  .nav[data-open="false"] { display: none; }
  .nav .btn { margin: 6px 0 0; text-align: center; }
  .site-header .icon-btn { margin-left: 0; }
}

/* ============ buttons ============ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 19px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #0d1405;
  background: linear-gradient(135deg, var(--lime-hi), var(--lime-deep));
  box-shadow: 0 6px 18px rgba(110, 148, 32, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(110, 148, 32, 0.45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.appstore-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 20px 11px 17px; border-radius: 14px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none;
  box-shadow: var(--shadow-m);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.appstore-badge:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--lime); }
.appstore-badge svg { flex: none; }
.appstore-badge .b-top { display: block; font-size: 0.66rem; letter-spacing: 0.02em; color: var(--ink-3); }
.appstore-badge .b-main { display: block; font-size: 1.16rem; font-weight: 560; letter-spacing: -0.02em; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-row.center { justify-content: center; }

/* ============ hero ============ */

.hero { position: relative; padding: clamp(64px, 11vw, 130px) 0 clamp(40px, 7vw, 76px); text-align: center; }
.hero h1 { margin: 0 0 0.42em; }
.hero h1 > span { display: block; }
.hero .l2 { color: var(--ink-2); }

.strike { position: relative; display: inline-block; color: var(--ink-3); }
.strike::after {
  content: ""; position: absolute; left: -3%; top: 54%; width: 106%; height: 0.075em;
  min-height: 3px; border-radius: 3px; background: var(--red);
  transform: scaleX(0) rotate(-1.4deg); transform-origin: left center;
  box-shadow: 0 0 14px rgba(229, 72, 77, 0.55);
  animation: strike 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.85s forwards;
}
@keyframes strike { to { transform: scaleX(1) rotate(-1.4deg); } }

.grad {
  background: linear-gradient(96deg, var(--g1), var(--g2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.hero .pitch {
  max-width: 34ch; margin: 0 auto 30px;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: var(--ink-2);
}
.micro { margin-top: 22px; font-size: 0.85rem; color: var(--ink-3); }

/* ============ sections ============ */

.sec { position: relative; padding: var(--section-y) 0; }
.sec-sunk { background: var(--bg-2); border-block: 1px solid var(--line-2); }
.sec::before {
  content: ""; position: absolute; top: calc(var(--section-y) * 0.36); left: 50%;
  width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--lime); z-index: 1;
  box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgba(163, 204, 78, 0.5);
}
.sec-sunk::before { background: var(--bg-2); box-shadow: 0 0 0 5px var(--bg-2), 0 0 18px rgba(163, 204, 78, 0.5); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 640; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--lime); }
.center .eyebrow::before { display: none; }
.center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--lime); }

.sec-head { max-width: 58ch; margin-bottom: clamp(38px, 5vw, 62px); }
.sec-head.center { text-align: center; }
.sec-head p { color: var(--ink-3); font-size: 1.04rem; margin-bottom: 0; max-width: 54ch; }
.sec-head.center p { margin-inline: auto; }

/* ============ panel mock ============ */

.stage { position: relative; }
.stage::before {
  content: ""; position: absolute; inset: -8% -6% -14%; z-index: -1;
  background: radial-gradient(60% 55% at 50% 45%, rgba(163, 204, 78, 0.16), transparent 70%);
  filter: blur(28px);
}

.panel {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.panel-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}
.tabs { display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: wrap; }
.tab {
  padding: 6px 11px; border-radius: 8px; font-size: 0.8rem; font-weight: 550;
  color: var(--ink-3); white-space: nowrap;
}
.tab.is-active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-s); }
.tab-add { color: var(--ink-3); padding-inline: 9px; font-weight: 600; }

.panel-search {
  display: flex; align-items: center; gap: 7px; min-width: 168px; flex: 1;
  padding: 7px 11px; border-radius: 9px; font-size: 0.8rem;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink-3);
}
.panel-search > svg { flex: none; opacity: 0.7; }
.typed { color: var(--ink); font-weight: 550; }
.typed.is-chip {
  padding: 2px 8px; border-radius: 6px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--lime) 40%, transparent);
}
.caret {
  width: 1.5px; height: 14px; flex: none; border-radius: 1px; background: var(--lime);
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.cards-vp { overflow: hidden; padding: 14px; min-height: 196px; }
.cards { display: flex; gap: 12px; will-change: transform; }
.mcard {
  flex: 0 0 172px; width: 172px; min-height: 168px;
  display: flex; flex-direction: column;
  border-radius: var(--radius-m); overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mcard:first-child { border-color: color-mix(in srgb, var(--lime) 55%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.mcard.is-new { animation: cardin 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes cardin { from { opacity: 0; transform: translateX(26px) scale(0.97); } }
.mcard.is-out { opacity: 0; transform: scale(0.96); }

.mcard-head {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; font-size: 0.62rem; font-weight: 680;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
}
.mcard-head svg { flex: none; color: var(--lime); }
.mcard-body { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.mcard-title { font-size: 0.79rem; font-weight: 650; color: var(--ink); line-height: 1.3; }
.mcard-sub {
  font-size: 0.73rem; color: var(--ink-3); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mcard[data-kind="link"] .mcard-sub, .mcard[data-kind="color"] .mcard-sub, .mcard[data-kind="file"] .mcard-sub,
.mcard[data-kind="image"] .mcard-sub { font-family: var(--mono); font-size: 0.68rem; color: var(--accent); }
.mcard[data-kind="color"] .mcard-body::after {
  content: ""; order: -1; height: 54px; border-radius: 8px; background: var(--lime);
}
.mcard[data-kind="image"] .mcard-body::after {
  content: ""; order: -1; height: 54px; border-radius: 8px;
  background: linear-gradient(140deg, #f2a65a, #d9534f 45%, #4a3d7a);
}
.mcard[data-kind="file"] .mcard-body::after {
  content: "PDF"; order: -1; height: 54px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3);
  background: var(--surface-2); border: 1px dashed var(--line);
}

/* timeline under the panel */
.timeline { position: relative; margin-top: 34px; }
.tl-track {
  position: relative; height: 2px; border-radius: 2px;
  background: var(--line); overflow: visible;
}
.tl-track::after {
  content: ""; position: absolute; inset: 0 auto 0 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--lime-deep), var(--lime-hi));
  animation: tlgrow 7.5s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes tlgrow {
  0%, 6% { width: 4%; } 26%, 36% { width: 50%; } 56%, 72% { width: 100%; }
  86% { width: 100%; opacity: 1; } 94%, 100% { width: 4%; opacity: 0.35; }
}
.tl-dot {
  position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px var(--accent-soft);
  animation: tldot 7.5s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes tldot {
  0%, 6% { left: 4%; } 26%, 36% { left: 50%; } 56%, 86% { left: 100%; }
  94%, 100% { left: 4%; }
}
.tl-steps { display: flex; justify-content: space-between; margin-top: 18px; }
.tl-steps li { list-style: none; flex: 1; text-align: center; }
.tl-steps li:first-child { text-align: left; }
.tl-steps li:last-child { text-align: right; }
.tl-steps b { display: block; color: var(--ink); font-size: 0.98rem; font-weight: 640; }
.tl-steps span { font-size: 0.85rem; color: var(--ink-3); }

/* ============ generic mock frame ============ */

.mock {
  padding: 22px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-m);
}
.split { display: grid; gap: clamp(30px, 5vw, 62px); grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; }
.split-text { max-width: 44ch; }
.split-text h2 { margin-bottom: 0.42em; }
.split-text p { color: var(--ink-3); font-size: 1.02rem; }
.split-text p + p { margin-top: -0.35em; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); } .split-text { max-width: none; } }

/* search mock */
.sm-field {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 14px; min-height: 52px; border-radius: var(--radius-m);
  background: var(--bg-3); border: 1px solid var(--line); font-size: 0.84rem;
}
.sm-field > svg { flex: none; opacity: 0.7; }
.fchip {
  padding: 4px 10px; border-radius: 7px; font-weight: 550;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--lime) 38%, transparent);
  animation: chipin 6s ease-in-out infinite both;
}
.fchip:nth-child(3) { animation-delay: 0.9s; }
.fchip:nth-child(4) { animation-delay: 1.8s; }
@keyframes chipin {
  0% { opacity: 0; transform: translateY(6px) scale(0.94); }
  12%, 78% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-4px) scale(0.97); }
}
.sm-results { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 108px; }
.sm-results li {
  display: flex; align-items: center; gap: 10px; padding: 12px 13px;
  border-radius: var(--radius-s); font-size: 0.85rem;
  background: var(--bg-3); border: 1px solid var(--line);
}
.sm-results svg { flex: none; color: var(--lime); }
.sm-results span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-results em { font-style: normal; font-size: 0.76rem; color: var(--ink-3); }
.sm-results .is-on { border-color: color-mix(in srgb, var(--lime) 55%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }

/* shelves */
.shelves { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.shelf {
  position: relative; padding: 20px 20px 22px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.shelf:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--lime) 45%, var(--line)); }
.shelf .bm { position: absolute; top: 0; right: 20px; color: var(--lime); }
.shelf h3 { margin: 2px 0 4px; font-size: 1.02rem; }
.shelf p { font-size: 0.86rem; color: var(--ink-3); margin: 0 0 14px; }
.shelf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.shelf li {
  font-size: 0.78rem; color: var(--ink-2); padding: 8px 10px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* privacy */
.privacy-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 30px; }
.pcard {
  padding: 24px 22px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line);
}
.pcard h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.pcard p { font-size: 0.92rem; color: var(--ink-3); margin: 0; }
.f-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  color: var(--accent); background: var(--accent-soft);
}

/* pricing */
.plans { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 26px 22px 24px;
  border-radius: var(--radius-l); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
}
.plan-featured {
  border-color: color-mix(in srgb, var(--lime) 55%, var(--line));
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-m);
}
.plan-flag {
  align-self: flex-start; margin-bottom: 10px; padding: 3px 10px;
  border-radius: 999px; font-size: 0.7rem; font-weight: 680;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #0d1405; background: linear-gradient(135deg, var(--lime-hi), var(--lime-deep));
}
.plan h3 { margin-bottom: 4px; }
.plan .amount { font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; margin: 0 0 2px; }
.plan .amount span { font-size: 0.92rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .plan-sub { font-size: 0.88rem; color: var(--ink-3); margin-bottom: 18px; }
.plan .btn { margin-top: auto; }
.billing-note { margin-top: 26px; font-size: 0.8rem; color: var(--ink-3); max-width: 76ch; }

/* ============ closing CTA ============ */

.cta-band { position: relative; padding: clamp(90px, 12vw, 150px) 0 clamp(80px, 10vw, 130px); text-align: center; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 70% at 50% 40%, rgba(163, 204, 78, 0.15), transparent 70%);
}
.cta-mark { display: block; margin: 0 auto 26px; color: var(--lime); animation: bob 5.5s ease-in-out infinite; }
html[data-theme="light"] .cta-mark { color: var(--lime-deep); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.cta-band h2 { max-width: 15ch; margin-inline: auto; }
.cta-band p { color: var(--ink-3); margin-bottom: 28px; }

/* ============ document pages (legal + support) ============ */

.doc-page .ambient { opacity: 0.5; }

.doc-head {
  padding: clamp(46px, 7vw, 84px) 0 clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--line-2);
}
.doc-head h1 { font-size: clamp(2.05rem, 4.8vw, 3rem); max-width: 20ch; margin: 0 0 18px; }
.doc-head .lede { color: var(--ink-2); font-size: 1.06rem; max-width: 66ch; margin: 18px 0 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 0.78rem; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

.doc {
  display: grid; gap: clamp(26px, 4vw, 54px);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(28px, 4vw, 48px) clamp(52px, 8vw, 88px);
}
@media (min-width: 900px) { .doc { grid-template-columns: 226px minmax(0, 1fr); } }

.doc-toc h2 {
  font-size: 0.72rem; font-weight: 660; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px;
}
.doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-toc a {
  display: block; padding: 6px 11px; border-radius: 8px;
  font-size: 0.86rem; line-height: 1.35; color: var(--ink-3); text-decoration: none;
  border-left: 2px solid transparent;
}
.doc-toc a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.doc-toc a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); border-left-color: var(--lime); }

@media (min-width: 900px) {
  .doc-toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 116px); overflow: auto; }
  .doc-toc ul { display: flex; flex-direction: column; gap: 2px; }
}
@media (max-width: 899px) {
  /* the contents collapse into one scrollable row of chips */
  .doc-toc {
    position: sticky; top: 61px; z-index: 20;
    margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad);
    background: var(--glass); border-bottom: 1px solid var(--line-2);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  }
  .doc-toc h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc-toc ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .doc-toc ul::-webkit-scrollbar { display: none; }
  .doc-toc li { flex: none; }
  .doc-toc a {
    white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  }
  .doc-toc a[aria-current="true"] { border-color: var(--lime); }
}

.prose { padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 8vw, 84px); }
.prose.doc-body { padding: 0; max-width: 70ch; }
.prose h2 { font-size: 1.42rem; margin-top: 2.4em; padding-top: 0.2em; scroll-margin-top: 92px; }
.prose.doc-body h2 { margin-top: 2.6em; padding-top: 1.5em; border-top: 1px solid var(--line-2); }
.prose h2:first-of-type, .prose.doc-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 1.06rem; }
.prose p, .prose li { font-size: 1rem; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--ink-3); }
.prose > p:first-child { font-size: 1.06rem; color: var(--ink-2); }

.callout {
  padding: 18px 20px; margin: 1.6em 0; background: var(--surface-2);
  border: 1px solid var(--line); border-left: 3px solid var(--lime);
  border-radius: var(--radius-m); font-size: 0.96rem;
}
.callout h3 { margin-top: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 650; color: var(--accent);
  background: var(--accent-soft); border-radius: 50%;
}

/* key/value blocks for the provider and contact details */
.kv {
  margin: 1.5em 0; padding: 6px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.kv > div { display: grid; gap: 2px 22px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.kv > div:first-child { border-top: 0; }
@media (min-width: 620px) { .kv > div { grid-template-columns: 172px minmax(0, 1fr); align-items: baseline; } }
.kv dt { font-size: 0.74rem; font-weight: 660; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px;
  margin: 1.5em 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-s);
}
.contact-card div { min-width: 200px; flex: 1; }
.contact-card p { margin-bottom: 2px; }
.contact-card .addr { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.contact-card .f-icon { margin-bottom: 0; }

.imprint { border-left: 3px solid var(--line); padding-left: 16px; margin: 0 0 1.2em; }
.imprint p { margin-bottom: 5px; color: var(--ink-2); font-size: 0.96rem; }
.imprint p:last-child { margin-bottom: 0; }
.site-footer .imprint { margin: 22px 0 18px; }
.site-footer .imprint p { font-size: 0.85rem; color: var(--ink-3); }

/* the four troubleshooting cards on the support page */
.fixes { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(266px, 1fr)); margin: 0 0 2.2em; }
.fix {
  padding: 20px 20px 22px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
}
.fix h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 1rem; }
.fix h3 svg { flex: none; color: var(--lime); }
.fix ol { counter-reset: fs; list-style: none; margin: 0; padding: 0; }
.fix li {
  counter-increment: fs; position: relative; padding-left: 27px;
  margin: 0 0 10px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2);
}
.fix li::before {
  content: counter(fs); position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 680; color: var(--accent);
  background: var(--accent-soft); border-radius: 50%;
}
.fix .note { margin: 12px 0 0; font-size: 0.85rem; color: var(--ink-3); }

.checklist { list-style: none; margin: 0.6em 0 0; padding: 0; }
.checklist li {
  position: relative; padding-left: 26px; margin-bottom: 8px;
  font-size: 0.94rem; color: var(--ink-2);
}
.checklist li::before {
  content: ""; position: absolute; left: 3px; top: 0.55em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--lime);
}

.to-top {
  margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--line-2);
  font-size: 0.9rem;
}
.to-top a { text-decoration: none; }
.to-top a:hover { text-decoration: underline; }

/* ============ footer ============ */

.site-footer {
  position: relative; z-index: 2;
  padding: 54px 0 46px; border-top: 1px solid var(--line);
  background: var(--bg-2); font-size: 0.9rem; color: var(--ink-3);
}
.footer-grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); }
.footer-brand p { margin: 12px 0 0; font-size: 0.88rem; color: var(--ink-3); max-width: 30ch; }
.footer-col h2 { font-size: 0.76rem; font-weight: 660; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-left: auto; }
.footer-links a { color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 0.82rem; color: var(--ink-3); }
@media (max-width: 620px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ============ narrow screens ============ */

@media (max-width: 700px) {
  /* the thread moves to a left rail rather than running through the text */
  .thread { left: 14px; margin-left: 0; opacity: 0.7; }
  .sec::before { left: 14px; margin-left: -3.5px; }
}
@media (max-width: 480px) {
  :root { --pad: 18px; --section-y: clamp(64px, 14vw, 92px); }
  body { font-size: 16px; }
  .hero { text-align: left; }
  .hero .pitch { margin-inline: 0; }
  .cta-row { justify-content: flex-start; }
  .appstore-badge { flex: 1 1 100%; justify-content: center; }
  .btn-lg { flex: 1 1 100%; }
  .mock { padding: 16px; }
  .tl-steps b { font-size: 0.9rem; }
  .tl-steps span { font-size: 0.76rem; }
}

/* ============ reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .strike::after { transform: scaleX(1) rotate(-1.4deg); }
  .tl-track::after { width: 100%; }
  .tl-dot { left: 100%; }
  .caret { opacity: 1; }
  .thread::after { display: none; }
}
