/* =============================================================
   PLUMA & PIXEL STUDIO — Design System
   Brand palette (per brand guidelines):
   Ink Black #0E0E10 · Warm Ivory #F4F1EC · Terracotta #A0451F (accent)
   Slate Blue Gray #5B6670 · Soft Stone #D9D6D1
   Copper Orange #A76A3D — RESERVED for the logo accent only.
   Type: Satoshi (display/headings) + Inter (body/UI)
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --ink: #0E0E10;
  --ivory: #F4F1EC;
  --olive: #A0451F;
  --slate: #5B6670;
  --stone: #D9D6D1;
  --copper: #A76A3D; /* logo only */

  /* derived surfaces (layering: base -> elevated -> floating) */
  --ivory-deep: #ECE8DF;
  --paper: #FBFAF6;
  --white: #FFFFFF;
  --olive-700: #7E3417;
  --olive-900: #1E1F23;

  /* themeable page surface + foreground (overridden in dark mode) */
  --bg: #F4F1EC;
  --fg: #0E0E10;

  /* text */
  --text: #0E0E10;
  --text-soft: #41433F;
  --text-muted: #6A6E68;
  --text-on-dark: #F4F1EC; /* constant: light text on dark surfaces */
  --text-on-dark-soft: #B9BEB7;

  /* lines */
  --line: #E1DCD2;
  --line-strong: #D2CCC0;
  --line-dark: rgba(244, 241, 236, 0.14);

  /* tinted, layered shadows (low opacity, olive/ink tint) */
  --shadow-xs: 0 1px 2px rgba(14,14,16,.04), 0 1px 1px rgba(35,32,28,.04);
  --shadow-sm: 0 2px 6px -2px rgba(14,14,16,.06), 0 4px 12px -4px rgba(35,32,28,.07);
  --shadow-md: 0 6px 16px -6px rgba(14,14,16,.08), 0 14px 34px -10px rgba(35,32,28,.10);
  --shadow-lg: 0 12px 28px -10px rgba(14,14,16,.12), 0 30px 60px -18px rgba(35,32,28,.16);
  --shadow-cta: 0 10px 24px -8px rgba(35,32,28,.42);

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* spacing rhythm */
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --maxw-narrow: 760px;

  /* motion */
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);

  --header-h: 108px;
}

/* ---------- Dark theme ----------
   --ink / --ivory / --olive / --slate / --copper stay CONSTANT (dark surfaces +
   light-on-dark text). Only page surfaces + body text are remapped here. */
[data-theme="dark"] {
  --bg: #131419;
  --fg: #ECEAE3;
  --ivory-deep: #1B1D23;   /* "stone" sections */
  --paper: #191B21;        /* inputs, paper sections, note boxes */
  --white: #1E2027;        /* cards / elevated */
  --text: #DEDDD6;
  --text-soft: #BFC0BA;
  --text-muted: #8F918B;
  --line: rgba(244, 241, 236, .10);
  --line-strong: rgba(244, 241, 236, .17);
  --shadow-xs: 0 1px 2px rgba(0,0,0,.35);
  --shadow-sm: 0 2px 6px -2px rgba(0,0,0,.4), 0 4px 12px -4px rgba(0,0,0,.4);
  --shadow-md: 0 6px 16px -6px rgba(0,0,0,.45), 0 14px 34px -10px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 28px -10px rgba(0,0,0,.5), 0 30px 60px -18px rgba(0,0,0,.6);
}
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
input, textarea, select, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 4px; }

/* ---------- Headings ---------- */
h1, h2, h3, h4, .display {
  font-family: "Satoshi", "Inter", sans-serif;
  color: var(--fg);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h1, .h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2, .h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
h4, .h4 { font-size: 1.08rem; letter-spacing: -0.01em; font-weight: 700; }
p { color: var(--text-soft); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--maxw-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--ink { background: var(--ink); color: var(--text-on-dark); }
.section--olive { background: var(--olive); color: var(--text-on-dark); }
.section--paper { background: var(--paper); }
.section--stone { background: var(--ivory-deep); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4,
.section--olive h1, .section--olive h2, .section--olive h3, .section--olive h4 { color: var(--text-on-dark); }
.section--ink p, .section--olive p { color: var(--text-on-dark-soft); }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.stack-sm > * + * { margin-top: .6rem; }
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 1.8rem; }
.measure { max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.center.measure { max-width: 62ch; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: "Inter", sans-serif;
  font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--text-soft);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--olive); opacity: .6;
  /* the thin rule echoes the logo mark; olive is the sanctioned UI accent */
}
.eyebrow--center { justify-content: center; }
.section--ink .eyebrow, .section--olive .eyebrow { color: var(--text-on-dark-soft); }
/* slate eyebrow is too dim on dark page surfaces — lift it to the soft light token */
[data-theme="dark"] .eyebrow { color: var(--text-on-dark-soft); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--olive);
  --btn-fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: .95rem;
  letter-spacing: -0.01em; line-height: 1;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-spring),
              background-color .25s var(--ease-out), color .25s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease-spring); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-cta); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.btn--primary { --btn-bg: var(--olive); --btn-fg: var(--ivory); }
.btn--primary:hover { background: var(--olive-700); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--ivory); }
.btn--dark:hover { background: #000; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--fg);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); box-shadow: var(--shadow-md); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn--sm { padding: .7rem 1.15rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* buttons on dark surfaces */
.on-dark .btn--primary, .section--ink .btn--primary, .section--olive .btn--primary { --btn-bg: var(--ivory); --btn-fg: var(--ink); }
.on-dark .btn--primary:hover, .section--ink .btn--primary:hover, .section--olive .btn--primary:hover { background: #fff; }
.on-dark .btn--ghost, .section--ink .btn--ghost, .section--olive .btn--ghost { --btn-fg: var(--ivory); border-color: var(--line-dark); }
.on-dark .btn--ghost:hover, .section--ink .btn--ghost:hover, .section--olive .btn--ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* text link with animated underline */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .95rem; color: var(--olive);
  position: relative; transition: gap .35s var(--ease-spring), color .2s;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .35s var(--ease-spring); }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0; background: var(--olive); transition: width .35s var(--ease-spring); }
.link-arrow:hover { gap: .65rem; }
.link-arrow:hover svg { transform: translateX(2px); }
.link-arrow:hover::after { width: calc(100% - 1.4em); }
.section--ink .link-arrow, .section--olive .link-arrow { color: var(--ivory); }
.section--ink .link-arrow::after, .section--olive .link-arrow::after { background: var(--ivory); }
/* night mode: terracotta links are low-contrast on dark backgrounds -> ivory */
[data-theme="dark"] .link-arrow { color: var(--ivory); }
[data-theme="dark"] .link-arrow::after { background: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

/* logo lockup */
/* Logo — real brand lockup (Primary on light, Reversed on dark + footer).
   The legacy text wordmark spans are hidden; the <a>'s aria-label keeps it accessible. */
.logo { display: inline-block; width: 200px; height: 93px; flex: none; vertical-align: middle;
  background: url('img/logo-primary.png') left center / contain no-repeat; }
.logo > * { display: none; }
[data-theme="dark"] .logo { background-image: url('img/logo-reversed.png'); }
.site-footer .logo { width: 262px; height: 122px; background-image: url('img/logo-reversed.png'); }
@media (max-width: 520px) { .logo { width: 150px; height: 70px; } }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  position: relative; padding: .5rem .8rem; font-size: .92rem; font-weight: 500;
  color: var(--text-soft); border-radius: var(--r-pill);
  transition: color .2s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: .25rem; transform: translateX(-50%);
  width: 0; height: 2px; border-radius: 2px; background: var(--olive);
  transition: width .35s var(--ease-spring);
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { width: 16px; }
.nav-link.is-active { color: var(--fg); font-weight: 600; }
.nav-link.is-active::after { width: 16px; background: var(--olive); }

.header-actions { display: flex; align-items: center; gap: .9rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); transition: background-color .2s, border-color .2s; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--fg); border-radius: 2px; transition: transform .35s var(--ease-spring), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg);
  padding: 1.5rem var(--gutter) 2.5rem;
  display: flex; flex-direction: column; gap: .2rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-spring);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a.m-link {
  padding: 1rem .25rem; font-family: "Satoshi", sans-serif; font-size: 1.45rem; font-weight: 500;
  letter-spacing: -.02em; border-bottom: 1px solid var(--line); color: var(--fg);
}
.mobile-nav a.m-link.is-active { color: var(--olive); }
.mobile-nav .btn { margin-top: 1.6rem; }

@media (max-width: 940px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
}
@media (max-width: 420px) { .logo-sub { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 7rem) var(--section-y); }
/* Aurora Drift: a soft stone ambient wash + two drifting olive/slate blooms */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(44vw 40vw at 64% 122%, rgba(217,214,209,.45), transparent 62%);
}
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(72px); will-change: transform;
}
.hero-bg::before { width: 46vw; height: 46vw; left: -8%; top: -24%; background: radial-gradient(circle, rgba(160,69,31,.40), transparent 70%); }
.hero-bg::after  { width: 42vw; height: 42vw; right: -10%; top: -6%; background: radial-gradient(circle, rgba(91,102,112,.38), transparent 70%); }
.hero .container, .hero .container-narrow { position: relative; z-index: 1; }

/* grain overlay (SVG noise) for depth */
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.section--ink.grain::after, .section--olive.grain::after { mix-blend-mode: overlay; opacity: .35; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease-spring), border-color .3s var(--ease-out);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 1.1rem;
  color: #15151b;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(20,20,24,.14);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  backdrop-filter: blur(6px) saturate(1.1);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.95),
    inset -1px -1px 1px -.5px rgba(0,0,0,.08),
    0 4px 12px -2px rgba(160,69,31,.38),
    0 0 8px rgba(160,69,31,.20);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; color: var(--text-muted); }
/* night mode: brighten card body text for readability (price cards intentionally excluded) */
[data-theme="dark"] .card:not(.price-card) p { color: var(--text-soft); }

.card--ghost { background: color-mix(in srgb, var(--white) 55%, transparent); }
.card--dark { background: var(--olive-900); border-color: var(--line-dark); color: var(--text-on-dark); }
.card--dark h3 { color: var(--ivory); }
.card--dark p { color: var(--text-on-dark-soft); }
.card--dark .card__icon, [data-theme="dark"] .card__icon {
  color: #F4F1EC;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.40),
    inset -1px -1px 1px -.5px rgba(0,0,0,.35),
    0 4px 14px -2px rgba(160,69,31,.45),
    0 0 10px rgba(160,69,31,.24);
}

/* number badge */
.numbadge {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-pill); font-family: "Satoshi", sans-serif; font-weight: 700;
  font-size: .95rem; color: var(--olive);
  background: color-mix(in srgb, var(--olive) 9%, var(--white));
  border: 1px solid color-mix(in srgb, var(--olive) 18%, transparent);
}
.section--ink .numbadge, .section--olive .numbadge { color: var(--ivory); background: rgba(244,241,236,.08); border-color: var(--line-dark); }

/* Liquid-glass step badges (homepage process) — clean neutral frosted glass, defined edge */
.process-steps .numbadge {
  color: #15151b;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(20,20,24,.14);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  backdrop-filter: blur(6px) saturate(1.1);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.95),
    inset -1px -1px 1px -.5px rgba(0,0,0,.08),
    0 4px 12px -2px rgba(160,69,31,.38),
    0 0 8px rgba(160,69,31,.20);
  text-shadow: 0 1px 1px rgba(255,255,255,.5);
}
[data-theme="dark"] .process-steps .numbadge {
  color: #F4F1EC;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,.40),
    inset -1px -1px 1px -.5px rgba(0,0,0,.35),
    0 4px 14px -2px rgba(160,69,31,.45),
    0 0 10px rgba(160,69,31,.24);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
/* keep the same clean glass when the scroll "lit" animation fires (no solid-olive fill) */
.process-steps .process-step.is-lit .numbadge { background: rgba(255,255,255,.55); color: #15151b; border-color: rgba(20,20,24,.14); }
[data-theme="dark"] .process-steps .process-step.is-lit .numbadge { background: rgba(255,255,255,.12); color: #F4F1EC; border-color: rgba(255,255,255,.28); }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 64ch; }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin-top: .9rem; }
.sec-head p { margin-top: 1rem; font-size: 1.06rem; }

/* small service inline list */
.chips { display: flex; flex-wrap: wrap; gap: .5rem .55rem; }
.chip {
  font-size: .8rem; font-weight: 500; color: var(--text-soft);
  padding: .42rem .8rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white);
}
.section--ink .chip, .section--olive .chip { color: var(--text-on-dark-soft); background: rgba(244,241,236,.05); border-color: var(--line-dark); }

.service-line { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .82rem; letter-spacing: .04em; color: var(--text-soft); }
.service-line span { display: inline-flex; align-items: center; }
.service-line span:not(:last-child)::after { content: "·"; margin-left: .9rem; color: var(--text-soft); opacity: .55; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card .price { font-family: "Satoshi", sans-serif; font-weight: 700; font-size: 1.85rem; letter-spacing: -.03em; color: var(--fg); margin: .3rem 0 .1rem; }
.price-card .price small { font-size: .9rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.price-card .plan-name { font-family: "Satoshi", sans-serif; font-weight: 700; font-size: 1.25rem; }
.price-card .best-for { font-size: .88rem; color: var(--text-soft); margin-top: .15rem; }
.price-card .muted { color: var(--text-soft); }
.price-card ul.includes { margin-top: 1.3rem; display: grid; gap: .65rem; }
.price-card ul.includes li { display: flex; gap: .6rem; font-size: .92rem; color: var(--text-soft); align-items: flex-start; line-height: 1.5; }
.price-card ul.includes li svg { flex: none; width: 17px; height: 17px; margin-top: .18rem; color: var(--olive); }
.price-card .btn { margin-top: auto; }
.price-card .card-cta-wrap { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.price-card.is-featured { border-color: var(--olive); box-shadow: var(--shadow-lg); }
/* "Most popular" badge removed — no clientele claims yet */
.section--ink .price-card.is-featured li svg, .section--ink .price-card .price { }

/* comparison-ish badges */
.tag-soft { display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--slate); background:var(--ivory-deep); border:1px solid var(--line); padding:.3rem .7rem; border-radius:var(--r-pill); }
/* slate label is too dim on dark cards — brighten in night mode (inline-orange work tags override this) */
[data-theme="dark"] .tag-soft { color: var(--text-on-dark-soft); }
/* "Live site / Live concept" pills: ivory text on a dark, terracotta-tinted pill in night mode
   (darker base = high contrast for the small uppercase text; light mode keeps its inline style) */
[data-theme="dark"] .tag-live {
  color: #F4F1EC !important;
  background: color-mix(in srgb, var(--olive) 22%, rgba(8,8,12,.55)) !important;
  border-color: color-mix(in srgb, var(--olive) 55%, transparent) !important;
}

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem .2rem; text-align: left;
  font-family: "Satoshi", sans-serif; font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; color: var(--fg);
  transition: color .2s;
}
.faq-q:hover { color: var(--olive); }
.faq-icon { flex: none; width: 26px; height: 26px; position: relative; margin-top: 3px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--olive); border-radius: 2px; transition: transform .4s var(--ease-spring); }
.faq-icon::before { width: 13px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 13px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-spring); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 2.6rem 1.5rem .2rem; color: var(--text-muted); font-size: .98rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field > label { font-size: .85rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.field .req { color: var(--olive); }
.field .hint { font-size: .78rem; color: var(--text-muted); font-weight: 400; }
.input, .textarea, .select {
  width: 100%; padding: .8rem .95rem; font-size: .95rem; color: var(--fg);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.input::placeholder, .textarea::placeholder { color: #9a9d96; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--olive); background: var(--white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive) 12%, transparent);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6670' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .95rem center; padding-right: 2.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.15rem; }
.form-grid .col-span { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (max-width: 720px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .check-grid { grid-template-columns: 1fr; } }
.check {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--paper);
  font-size: .9rem; color: var(--text-soft);
  transition: border-color .2s, background-color .2s, color .2s;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.check .box svg { width: 12px; height: 12px; color: var(--ivory); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease-spring); }
.check:hover { border-color: var(--olive); color: var(--fg); }
.check input:checked ~ .box { background: var(--olive); border-color: var(--olive); }
.check input:checked ~ .box svg { opacity: 1; transform: scale(1); }
.check input:checked ~ span:last-child { color: var(--fg); font-weight: 500; }
.check:has(input:checked) { border-color: var(--olive); background: color-mix(in srgb, var(--olive) 6%, var(--white)); }
.check input:focus-visible ~ .box { outline: 2px solid var(--olive); outline-offset: 2px; }

.form-consent { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }
.form-consent a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  display: none; text-align: center; padding: 1rem;
}
.form-success.is-visible { display: block; animation: pop .5s var(--ease-spring); }
.success-check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center; background: color-mix(in srgb, var(--olive) 12%, var(--white)); border: 1px solid color-mix(in srgb, var(--olive) 25%, transparent); }
.success-check svg { width: 30px; height: 30px; color: var(--olive); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Browser mockup (portfolio) ---------- */
.mock {
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease-spring);
}
.work-card:hover .mock { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; background: var(--ivory-deep); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--stone); display: inline-block; }
.mock-bar .url { margin-left: .6rem; font-size: .68rem; color: var(--text-muted); background: var(--white); padding: .2rem .7rem; border-radius: var(--r-pill); border: 1px solid var(--line); letter-spacing: .02em; }
.mock-screen { aspect-ratio: 16/10.5; position: relative; display: flex; flex-direction: column; justify-content: center; gap: .7rem; padding: 1.6rem; overflow: hidden; }
.mock-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.35), transparent 50%); }
.mock-screen .m-eyebrow { width: 70px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.55); }
.mock-screen .m-title { width: 78%; height: 16px; border-radius: 5px; background: rgba(255,255,255,.92); }
.mock-screen .m-title.short { width: 55%; }
.mock-screen .m-line { width: 90%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.4); }
.mock-screen .m-line.s2 { width: 64%; }
.mock-screen .m-btn { width: 96px; height: 26px; border-radius: var(--r-pill); background: var(--ink); margin-top: .5rem; }
.mock-screen .m-row { display: flex; gap: .6rem; margin-top: .4rem; }
.mock-screen .m-chip { width: 48px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.6); }

/* Photographic "screenshot" inside the browser frame.
   Stand-in images load from a placeholder service; drop a Nano Banana Pro
   export (or real client photo) at assets/img/<name>.jpg and swap the src. */
.mock-shot { position: relative; aspect-ratio: 16 / 10.2; overflow: hidden; background: var(--olive-900); }
.mock-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-spring); }
.mock-shot::after { /* brand color treatment: olive multiply + bottom legibility gradient */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(14,14,16,.34), rgba(14,14,16,0) 58%),
    linear-gradient(150deg, rgba(160,69,31,.42), rgba(34,28,24,.16));
  mix-blend-mode: multiply;
}
.photo--duotone img { filter: saturate(.72) contrast(1.04); }
.photo--plain::after { display: none; } /* show a photo in full colour, no duotone */
.photo--plain img { filter: none; }
.work-card:hover .mock-shot img, .hero-shot:hover .mock-shot img { transform: scale(1.04); }

/* Editorial hero photo (framed, not a browser mock) */
.hero-photo { margin: 0; position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.hero-photo img { display: block; width: 100%; height: auto; }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }

/* ---- Hero live preview (cycling browser frame of real work) ---- */
.hero-live { margin: 0; position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--white);
  box-shadow: var(--shadow-lg); }
.hero-live::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); z-index: 5; }
.hl-bar { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem;
  background: var(--ivory-deep); border-bottom: 1px solid var(--line); position: relative; z-index: 4; }
.hl-dots { display: flex; gap: .4rem; flex: none; }
.hl-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.hl-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .34rem .8rem; font: 600 .8rem/1 var(--font-ui, Inter, system-ui, sans-serif);
  color: var(--text-muted, #6b7280); letter-spacing: .01em; }
.hl-url svg { width: 13px; height: 13px; flex: none; color: var(--olive); }
.hl-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-live { flex: none; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--olive); display: inline-flex; align-items: center; gap: .4rem; }
.hl-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 0 rgba(160,69,31,.5); }
@media (prefers-reduced-motion: no-preference) { .hl-live i { animation: hlPulse 2.4s ease-out infinite; } }
@keyframes hlPulse { 0% { box-shadow: 0 0 0 0 rgba(160,69,31,.45);} 70%,100% { box-shadow: 0 0 0 7px rgba(160,69,31,0);} }
.hl-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.hl-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease, ease); z-index: 1; }
.hl-slide.is-active { opacity: 1; z-index: 2; }
.hl-slide iframe, .hl-slide img { position: absolute; top: 0; left: 0; border: 0; display: block; }
/* live concept iframes are rendered at desktop width, then scaled to fit the frame */
.hl-slide iframe { width: 1280px; height: 800px; transform-origin: top left; pointer-events: none; }
.hl-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hl-tag { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .74rem/1 var(--font-ui, Inter, system-ui, sans-serif); letter-spacing: .02em; color: var(--ivory);
  background: rgba(14,14,16,.72); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14);
  padding: .5rem .8rem; border-radius: var(--r-pill); box-shadow: var(--shadow-md); }
.hl-tag .ext { opacity: .8; }
/* prev/next arrows — frosted so they stay visible on light or dark previews */
.hl-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(16,16,18,.46); border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,.3); opacity: .92;
  transition: background-color .25s var(--ease-out), transform .3s var(--ease, ease), opacity .25s; }
.hl-arrow svg { width: 19px; height: 19px; }
.hl-arrow:hover { background: rgba(16,16,18,.72); opacity: 1; }
.hl-arrow:active { transform: translateY(-50%) scale(.9); }
.hl-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hl-prev { left: 10px; }
.hl-next { right: 10px; }
[data-theme="dark"] .hl-url { color: var(--text-on-dark-soft); }

.work-card { display: block; }
.work-card .work-meta { margin-top: 1.2rem; }
.work-card .work-meta h3 { font-size: 1.18rem; }
.work-card .work-meta .tag-soft { margin-bottom: .7rem; }
.work-card .work-meta p { font-size: .95rem; color: var(--text-muted); margin-top: .45rem; }

/* ---------- Stat / trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 2.2rem 3rem; align-items: center; justify-content: center; }
.stat { text-align: center; }
.stat b { display: block; font-family: "Satoshi", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.03em; color: var(--fg); line-height: 1; }
.stat span { font-size: .85rem; color: var(--text-muted); letter-spacing: .02em; }
.section--ink .stat b, .section--olive .stat b { color: var(--ivory); }

/* feature list with check / value rows */
.value-row { display: flex; gap: .85rem; align-items: flex-start; }
.value-row .vr-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--olive) 10%, var(--white)); color: var(--olive); border: 1px solid color-mix(in srgb, var(--olive) 16%, transparent); }
.value-row .vr-ic svg { width: 17px; height: 17px; }
.value-row h4 { margin-bottom: .2rem; }
.value-row p { font-size: .93rem; color: var(--text-muted); }
.section--ink .value-row .vr-ic, .section--olive .value-row .vr-ic,
[data-theme="dark"] .value-row .vr-ic { background: rgba(244,241,236,.10); border-color: var(--line-dark); color: #F4F1EC; }

/* divider rule with center label */
.rule-line { height: 1px; background: var(--line); border: 0; }
.vrule { width: 1px; align-self: stretch; background: var(--slate); opacity: .4; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 4.5rem); background: var(--ink); color: var(--ivory); }
.cta-band .cta-bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(50% 80% at 85% 10%, rgba(160,69,31,.5), transparent 60%),
  radial-gradient(40% 70% at 8% 100%, rgba(91,102,112,.4), transparent 60%); }
/* readability scrim: sits above the shader (z0) and below the text (z2) */
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 96% at 50% 50%, rgba(8,8,10,.55), rgba(8,8,10,.22) 52%, rgba(8,8,10,0) 84%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: var(--ivory); text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.cta-band p { color: color-mix(in srgb, var(--ivory) 90%, transparent); text-shadow: 0 1px 10px rgba(0,0,0,.6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-soft); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo-name { color: var(--ivory); }
.footer-brand .logo-sub { color: var(--text-on-dark-soft); }
.footer-brand p { color: var(--text-on-dark-soft); font-size: .95rem; margin-top: 1.1rem; max-width: 34ch; }
.footer-col h5 { font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--text-on-dark-soft); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a, .footer-contact a { color: #C9CEC6; font-size: .92rem; transition: color .2s; }
.footer-col a:hover, .footer-contact a:hover { color: var(--ivory); }
.footer-contact p { font-size: .92rem; color: #C9CEC6; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; }
.footer-bottom p, .footer-bottom a { font-size: .82rem; color: var(--text-on-dark-soft); }
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--ivory); }
.footer-disclaimer { font-size: .76rem; color: #82877F; margin-top: 1.2rem; max-width: 90ch; line-height: 1.6; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-spring); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .06s; }
.reveal-d2 { transition-delay: .12s; }
.reveal-d3 { transition-delay: .18s; }
.reveal-d4 { transition-delay: .24s; }

/* ---------- Misc page utilities ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); }
.page-hero .sec-head { max-width: 44rem; }
.page-hero .sec-head h1 { margin-top: .9rem; }
/* centered page-hero variant */
.page-hero--center .container { text-align: center; }
.page-hero--center .sec-head, .page-hero--center .measure { margin-inline: auto; }
.page-hero--center .service-line { justify-content: center; }
.breadcrumb { font-size: .82rem; color: var(--text-soft); letter-spacing: .02em; }
/* night mode: lift breadcrumb + work concept text a notch brighter */
[data-theme="dark"] .breadcrumb { color: var(--text); }
[data-theme="dark"] .concepts p { color: var(--text); }
.breadcrumb a:hover { color: var(--olive); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.6rem; margin-bottom: .6rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; margin-bottom: .4rem; }
.prose p { margin-bottom: 1rem; color: var(--text-soft); }
.prose p.lead { font-size: 1.1rem; }
.prose ul.bullets { margin: 1rem 0 1.4rem; display: grid; gap: .6rem; }
.prose ul.bullets li { position: relative; padding-left: 1.4rem; color: var(--text-soft); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: .65rem; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.muted { color: var(--text-muted); }
.note-box { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--olive); border-radius: var(--r-md); padding: 1.1rem 1.3rem; font-size: .92rem; color: var(--text-soft); }
/* note box on a dark feature-frame (e.g. services "Best for" card) */
.feature-frame .note-box { background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: rgba(244,241,236,.86); }
.feature-frame .note-box strong { color: var(--ivory); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.feature-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--olive-900); color: var(--ivory); padding: clamp(1.8rem,4vw,2.6rem); box-shadow: var(--shadow-lg); }
.feature-frame .ff-bg { position:absolute; inset:0; z-index:0; background: radial-gradient(60% 60% at 80% 0%, rgba(91,102,112,.45), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(160,69,31,.6), transparent 60%); }
.feature-frame > * { position: relative; z-index: 1; }

.icon-list { display: grid; gap: 1.4rem; }

/* ---------- Add-on table ---------- */
.addon-table { width: 100%; }
.addon-row { display: grid; grid-template-columns: 1.1fr .8fr 1.6fr; gap: 1.5rem; padding: 1rem clamp(1.2rem, 2.4vw, 1.8rem); border-bottom: 1px solid var(--line); align-items: center; }
.addon-row:last-child { border-bottom: 0; }
.addon-row span:first-child { font-weight: 600; color: var(--fg); font-size: .95rem; }
.addon-row span:nth-child(2) { font-family: "Satoshi", sans-serif; font-weight: 600; color: var(--olive); font-size: .95rem; white-space: nowrap; }
/* add-on price numbers: terracotta in light mode, white in night mode */
[data-theme="dark"] .addon-row span:nth-child(2) { color: var(--fg); }
.addon-row span:last-child { color: var(--text-soft); font-size: .92rem; }
.addon-head { background: var(--ivory-deep); border-bottom: 1px solid var(--line-strong); }
.addon-head span { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem !important; font-weight: 600 !important; color: var(--slate) !important; }
[data-theme="dark"] .addon-head span { color: var(--text-on-dark-soft) !important; }
@media (max-width: 720px) {
  .addon-head { display: none; }
  .addon-row { grid-template-columns: 1fr; gap: .3rem; padding: 1.1rem 1.3rem; }
  .addon-row span:first-child { font-size: 1rem; }
  .addon-row span:nth-child(2) { font-size: 1rem; }
  .addon-row span:last-child::before { content: ""; }
}

/* skip link */
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: var(--ivory); padding: .7rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--r-pill); flex: none;
  display: grid; place-items: center; border: 1px solid var(--line-strong);
  color: var(--fg); background: transparent;
  transition: background-color .2s, border-color .2s, transform .3s var(--ease-spring);
}
.theme-toggle:hover { border-color: var(--olive); transform: translateY(-1px); }
.theme-toggle:active { transform: translateY(0) scale(.94); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }

/* ---------- Hero: Aurora Drift motion ---------- */
[data-theme="dark"] .hero-bg { opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg::before { animation: auroraA 26s ease-in-out infinite; }
  .hero-bg::after  { animation: auroraB 32s ease-in-out infinite; }
}
@keyframes auroraA { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 6%) scale(1.15); } }
@keyframes auroraB { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-7%, 9%) scale(1.1); } }

/* ---------- Shader canvas on dark CTA band (lazy, fallback = .cta-bg) ---------- */
.cta-band .shader-canvas {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  border-radius: var(--r-xl); opacity: 0; transition: opacity 1.1s ease;
}
.cta-band .shader-canvas.is-ready { opacity: 1; }

/* ---------- Hero: masked word-by-word headline reveal ----------
   padding+negative margin enlarge the clip box so ascenders/descenders
   are never cut, while keeping the visual line spacing tight. */
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .04em .2em; margin: -.16em -.04em -.2em; }
.hero h1 .word > span { display: inline-block; transform: translateY(118%); transition: transform .85s var(--ease-spring); }
.hero.is-entered h1 .word > span { transform: none; }

/* ---------- Process: scroll-driven step lighting ---------- */
.process-step .numbadge { transition: background-color .5s var(--ease-spring), color .5s var(--ease-spring), border-color .5s var(--ease-spring), transform .5s var(--ease-spring); }
.process-step.is-lit .numbadge { background: var(--olive); color: var(--ivory); border-color: var(--olive); transform: scale(1.07); }
.section--ink .process-step.is-lit .numbadge, .section--olive .process-step.is-lit .numbadge { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* ---- Dithering shader background (Monthly Support section) ---- */
.dither-section { position: relative; overflow: hidden; }
.dither-section > .container { position: relative; z-index: 1; }
.dither-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1s ease; }
.dither-canvas.is-ready { opacity: 1; }

/* =========================================================
   Liquid-glass button — SVG-refraction glass on primary CTAs
   ========================================================= */
.btn--primary {
  position: relative; isolation: isolate;
  background: transparent !important;
  color: #15151b !important;
  border: 1px solid transparent !important;
  box-shadow: none;
  text-shadow: 0 1px 1px rgba(255,255,255,.45);
  transition: transform .3s var(--ease-spring);
}
.btn--primary svg { color: #15151b; position: relative; z-index: 1; transition: transform .35s var(--ease-spring); }
/* refraction layer — frosts + distorts whatever is behind the button */
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(248,248,250,.46);
  -webkit-backdrop-filter: blur(3px) url("#container-glass");
  backdrop-filter: blur(3px) url("#container-glass");
}
/* glass rim / bevel — layered inset edge highlights (dark, for the light frost) */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow:
    0 0 6px rgba(0,0,0,.03), 0 2px 6px rgba(0,0,0,.10),
    inset 3px 3px .5px -3px rgba(0,0,0,.55),
    inset -3px -3px .5px -3px rgba(0,0,0,.5),
    inset 1px 1px 1px -.5px rgba(255,255,255,.9),
    inset -1px -1px 1px -.5px rgba(255,255,255,.7),
    inset 0 0 6px 6px rgba(255,255,255,.12),
    0 0 12px rgba(255,255,255,.18);
}
.btn--primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: none; }
.btn--primary:hover::before { background: rgba(248,248,250,.36); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0) scale(.985); }
@media (prefers-reduced-motion: reduce) { .btn--primary { transition: none; } }

/* Smoked dark glass + white text + light rim — applies in night mode AND on
   always-dark sections (section--ink / mesh / on-dark) regardless of page theme,
   so the pill never frosts to gray over a dark background. */
[data-theme="dark"] .btn--primary,
.section--ink .btn--primary, .section--olive .btn--primary, .on-dark .btn--primary, .mesh-section .btn--primary, .feature-frame .btn--primary { color: #F4F1EC !important; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
[data-theme="dark"] .btn--primary svg,
.section--ink .btn--primary svg, .section--olive .btn--primary svg, .on-dark .btn--primary svg, .mesh-section .btn--primary svg, .feature-frame .btn--primary svg { color: #F4F1EC; }
[data-theme="dark"] .btn--primary::before,
.section--ink .btn--primary::before, .section--olive .btn--primary::before, .on-dark .btn--primary::before, .mesh-section .btn--primary::before, .feature-frame .btn--primary::before { background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.05) 22%, rgba(14,14,18,.5) 100%); }
[data-theme="dark"] .btn--primary:hover::before,
.section--ink .btn--primary:hover::before, .section--olive .btn--primary:hover::before, .on-dark .btn--primary:hover::before, .mesh-section .btn--primary:hover::before, .feature-frame .btn--primary:hover::before { background: linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.08) 22%, rgba(14,14,18,.4) 100%); }
[data-theme="dark"] .btn--primary::after,
.section--ink .btn--primary::after, .section--olive .btn--primary::after, .on-dark .btn--primary::after, .mesh-section .btn--primary::after, .feature-frame .btn--primary::after {
  box-shadow:
    0 0 8px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.22),
    inset 3px 3px .5px -3px rgba(255,255,255,.4),
    inset -3px -3px .5px -3px rgba(255,255,255,.85),
    inset 1px 1px 1px -.5px rgba(255,255,255,.6),
    inset -1px -1px 1px -.5px rgba(255,255,255,.6),
    inset 0 0 6px 6px rgba(255,255,255,.07),
    0 0 12px rgba(0,0,0,.15);
}

/* ---- Dark radial-glow background (all price sections) ---- */
.section--glow {
  background-color: #020617;
  background-image: radial-gradient(circle 500px at 50% 200px, #3e3e3e, transparent);
}
/* keep section headings readable over the dark glow (esp. non-ink package sections) */
.section--glow .sec-head .eyebrow { color: var(--text-on-dark-soft) !important; }
.section--glow .sec-head h2, .section--glow .sec-head h1 { color: var(--text-on-dark) !important; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.section--glow .sec-head p { color: var(--text-on-dark-soft) !important; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* ---- Mesh-gradient shader background (price sections) ---- */
.mesh-section { position: relative; overflow: hidden; background: #0E0E10; }
.mesh-section > .container { position: relative; z-index: 1; }
.mesh-canvas { position: absolute; inset: 0; z-index: 0; display: block; opacity: 0; transition: opacity 1s ease; }
.mesh-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.mesh-canvas.is-ready { opacity: 1; }
/* keep the section heading readable over the mesh (esp. former-light package sections) */
.mesh-section .sec-head .eyebrow { color: var(--text-on-dark-soft) !important; }
.mesh-section .sec-head h2, .mesh-section .sec-head h1 { color: var(--text-on-dark) !important; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.mesh-section .sec-head p { color: var(--text-on-dark-soft) !important; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
