/* =================================================================
   Keepframe — landing site
   Design system: violet brand palette (v2.6) + neutral ink, system-ui.
   Plain CSS, design tokens, light + dark mode. No build step.
   ================================================================= */

/* ---- Tokens: light (default) ---- */
:root {
  --bg: #f1edfb;         /* v2.6 light canvas */
  --bg-subtle: #e9e3f7;
  --surface: #ffffff;
  --surface-2: #f3eefc;
  --text: #181226;       /* v2.6 ink */
  --text-soft: #3a3350;
  --muted: #6f6788;      /* v2.6 muted */
  --border: #e2dbf1;
  --border-strong: #cfc4e8;

  --accent: #7c3aed;       /* v2.6 brand violet */
  --accent-ink: #6d28d9;   /* violet-700 */
  --accent-hover: #6d28d9;
  --accent-contrast: #ffffff;
  --accent-soft-bg: #ede9fe;     /* violet-100 */
  --accent-soft-border: #c9b6f7; /* v2.6 lavender */
  --grad: linear-gradient(135deg, #5b21b6, #7c3aed, #9333ea);

  --ok: #15803d;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(24, 24, 27, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(24, 24, 27, 0.28);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---- Tokens: dark (auto, unless user forced light) ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16121f;         /* v2.6 dark canvas */
    --bg-subtle: #1a1528;
    --surface: #1e1830;    /* v2.6 dark surface */
    --surface-2: #241d38;
    --text: #f2eefb;       /* v2.6 dark ink */
    --text-soft: #cfc8e0;
    --muted: #9a92b8;      /* v2.6 dark muted */
    --border: #2a2340;
    --border-strong: #3d3357;

    --accent: #a78bfa;       /* violet-400 — readable on dark */
    --accent-ink: #c9b6f7;   /* v2.6 lavender */
    --accent-hover: #8b5cf6;
    --accent-contrast: #ffffff;
    --accent-soft-bg: rgba(124, 58, 237, 0.18);
    --accent-soft-border: #5b21b6;
    --grad: linear-gradient(135deg, #7c3aed, #a855f7);

    --ok: #4ade80;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
}
/* ---- Tokens: dark (forced via toggle) ---- */
[data-theme="dark"] {
  --bg: #16121f;
  --bg-subtle: #1a1528;
  --surface: #1e1830;
  --surface-2: #241d38;
  --text: #f2eefb;
  --text-soft: #cfc8e0;
  --muted: #9a92b8;
  --border: #2a2340;
  --border-strong: #3d3357;
  --accent: #a78bfa;
  --accent-ink: #c9b6f7;
  --accent-hover: #8b5cf6;
  --accent-contrast: #ffffff;
  --accent-soft-bg: rgba(124, 58, 237, 0.18);
  --accent-soft-border: #5b21b6;
  --grad: linear-gradient(135deg, #7c3aed, #a855f7);
  --ok: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--text);
}
h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
}
h3 {
  font-size: 1.18rem;
  font-weight: 700;
}
p {
  margin: 0 0 1rem;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.section {
  padding-block: clamp(56px, 9vw, 104px);
}
.section--tint {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}
.section__head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section__head.left {
  margin-inline: 0;
  text-align: left;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-soft);
}
.muted {
  color: var(--muted);
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--accent-hover);
}
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--sm {
  padding: 9px 14px;
  font-size: 0.9rem;
  border-radius: 10px;
}
.btn--block {
  width: 100%;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---- Header / nav ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.brand .dot {
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
/* Direct-child only, so the .btn inside .nav__actions keeps its own color
   (otherwise .nav a would out-specify .btn--primary and darken its text). */
.nav > a {
  color: var(--text-soft);
  font-weight: 550;
  font-size: 0.96rem;
}
.nav > a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
[data-theme="dark"] .icon-btn .sun,
:root:not([data-theme="light"]) .icon-btn .sun {
  display: block;
}
[data-theme="dark"] .icon-btn .moon,
:root:not([data-theme="light"]) .icon-btn .moon {
  display: none;
}
.icon-btn .sun {
  display: none;
}
.icon-btn .moon {
  display: block;
}
.nav-toggle {
  display: none;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 520px;
  background: radial-gradient(
      60% 60% at 20% 10%,
      color-mix(in srgb, var(--accent) 16%, transparent),
      transparent 70%
    ),
    radial-gradient(
      50% 50% at 90% 0%,
      color-mix(in srgb, #7c3aed 14%, transparent),
      transparent 70%
    );
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  margin-bottom: 18px;
}
.hero .lead {
  font-size: 1.25rem;
  max-width: 33ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 14px;
}
.hero__note {
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__shot {
  position: relative;
}
.browser {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser__dots {
  display: flex;
  gap: 6px;
}
.browser__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.browser__url {
  flex: 1;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser img {
  width: 100%;
}

/* ---- Logo strip / meta ---- */
.metastrip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
}
.metastrip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.metastrip svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ---- Generic grids / cards ---- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin-bottom: 6px;
}
.card p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.98rem;
}
.ficon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.ficon svg {
  width: 23px;
  height: 23px;
}

/* ---- Problem / solution split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-soft);
}
.checklist svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}
.painlist li svg {
  color: var(--muted);
}

/* ---- Steps ---- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step__num {
  counter-increment: step;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step__num::before {
  content: counter(step);
}
.step h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.step p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* ---- Showcase (real screenshots) ---- */
.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1040px;
  margin-inline: auto;
}
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface-2);
}
.shot figcaption {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}

/* ---- Comparison table ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.95rem;
}
table.compare th,
table.compare td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
table.compare thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
table.compare tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}
table.compare .col-self {
  background: var(--accent-soft-bg);
  border-inline: 1px solid var(--accent-soft-border);
  color: var(--accent-ink);
}
table.compare thead .col-self {
  border-top: 1px solid var(--accent-soft-border);
  border-radius: 10px 10px 0 0;
}
.mark-yes {
  color: var(--ok);
  font-weight: 700;
}
.mark-no {
  color: var(--muted);
}
.mark-part {
  color: var(--text-soft);
}
.table-legend {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---- Pricing ---- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.plan h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 4px;
}
.plan__price b {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan__price span {
  color: var(--muted);
  font-size: 0.95rem;
}
.plan__sub {
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 1.4em;
  margin-bottom: 18px;
}
.plan ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.plan li svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}
.plan .btn {
  margin-top: auto;
}
.founder-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-soft);
  background: var(--accent-soft-bg);
  border: 1px dashed var(--accent-soft-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.code-pill {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--bg);
  border: 1px solid var(--accent-soft-border);
  border-radius: 7px;
  padding: 2px 8px;
}

/* ---- FAQ ---- */
.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.05rem;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--text-soft);
  margin: 0 0 18px;
  font-size: 0.98rem;
}

/* ---- Trust ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ---- Final CTA ---- */
.cta-band {
  text-align: center;
  background: var(--grad);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) 24px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  color: #fff;
  max-width: 20ch;
  margin-inline: auto;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
  margin: 0 auto 26px;
}
.cta-band .btn--primary {
  background: #fff;
  color: var(--accent-ink);
}
.cta-band .btn--primary:hover {
  background: #f4f4f5;
}
.cta-band .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---- Callout (held-launch / info) ---- */
.callout {
  border: 1px solid var(--border);
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding-block: 48px 36px;
  font-size: 0.92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}
.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer a {
  color: var(--text-soft);
}
.footer a:hover {
  color: var(--accent-ink);
}
.footer__brand p {
  color: var(--muted);
  max-width: 30ch;
  margin: 12px 0 0;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* ---- Prose (comparison page sections) ---- */
.prose {
  max-width: 760px;
}
.prose h2 {
  margin-top: 1.6em;
}
.prose h3 {
  margin-top: 1.4em;
}
.prose p,
.prose li {
  color: var(--text-soft);
}
.choose {
  display: grid;
  gap: 16px;
}
.choose .card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.choose .tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  align-self: center;
}
.choose .card.is-self {
  border-color: var(--accent);
}
.choose .card.is-self .tag {
  color: var(--accent-ink);
  border-color: var(--accent-soft-border);
  background: var(--accent-soft-bg);
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero .lead {
    max-width: none;
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase {
    grid-template-columns: 1fr;
  }
  .pricing {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Mobile nav */
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 16px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.22s ease;
  }
  .nav.is-open {
    transform: translateY(0);
  }
  .nav > a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav__actions {
    margin: 12px 0 0;
  }
  .nav__actions .btn {
    flex: 1;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .grid--2,
  .grid--3,
  .grid--4,
  .steps {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .choose .card {
    grid-template-columns: 1fr;
  }
}

/* ---- Tier diamonds + Power card + Free upsell (v2.6) ---- */
.plan { position: relative; }
.tier-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: var(--tier, #c9b6f7);
  transform: rotate(45deg);
  border-radius: 2px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tier, #c9b6f7) 22%, transparent);
}
.plan li.is-upsell { color: var(--muted); }
.upsell-tag {
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  border-radius: 999px;
  padding: 1px 8px;
}
/* Power tier: dark canvas carrying gold (v2.6) */
.plan--power {
  background: #16121f;
  border-color: rgba(255, 210, 122, 0.30);
  color: #f2eefb;
  box-shadow: var(--shadow-md);
}
.plan--power h3,
.plan--power .plan__price b { color: #f7f4ff; }
.plan--power .plan__price span,
.plan--power .plan__sub { color: #b9b0d4; }
.plan--power li { color: #e7e2f3; }
.plan--power li svg { color: #ffd27a; }
.plan--power .btn--ghost {
  background: transparent;
  color: #ffd27a;
  border-color: rgba(255, 210, 122, 0.55);
}
.plan--power .btn--ghost:hover {
  border-color: #ffd27a;
  color: #ffd27a;
}

/* ---- Lightbox: click a screenshot to enlarge (v2.6) ---- */
.zoomable { cursor: zoom-in; }
.zoom-parent { position: relative; }
.zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(9, 7, 15, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 3;
}
.zoom-parent:hover .zoom-badge,
.zoomable:focus-visible ~ .zoom-badge { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 7, 15, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  cursor: default;
}
.lightbox__close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(0, 0, 0, 0.75); }
.lightbox__hint {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .zoom-badge { transition: none; }
}

/* ---- Dig Deeper: source chips (the user picks their source) ---- */
.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.source-chips span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1.5;
}

/* ---- Gold accent hairline under selected section eyebrows (v2.6 decoration) ----
   Delicate, decorative only. Applied to at most two section eyebrows
   (Features, See it in action). Never on brand / CTA / nav; no diamond or
   badge form, so it can never read as the Power tier. Same restraint as the
   Store marquee hairline. Gold = #e8cd86 (v2.6 gold-decoration accent), theme
   independent, kept faint. Remove the "eyebrow--rule" class to revert. */
.eyebrow--rule {
  position: relative;
}
.eyebrow--rule::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: #e8cd86;
  opacity: 0.7;
}
