/* Endelir Editor site. Colours follow the studio's "night" look (studio/src/look/looks.ts). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-Latin.woff") format("woff");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic-Latin.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink900: #0c0b0a;
  --ink800: #161412;
  --ink700: #211e1b;
  --stone600: #6e675f;
  --stone300: #cfc8bf;
  --white: #ffffff;
  --accent: #ffc93c;
  --accent-rgb: 255, 201, 60;
  --on-accent: #17130b;
  --secondary: #ff7a59;

  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink900);
  color: var(--stone300);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "opsz" 16;
  overflow-wrap: break-word;
}

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

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--white); line-height: 1.1; margin: 0 0 var(--s2); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-variation-settings: "opsz" 96; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); font-variation-settings: "opsz" 72; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
p { margin: 0 0 var(--s2); }
strong { color: var(--white); font-weight: 650; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip { position: absolute; left: var(--s2); top: -100px; background: var(--accent); color: var(--on-accent); padding: var(--s1) var(--s2); border-radius: var(--r-sm); font-weight: 700; z-index: 10; }
.skip:focus { top: var(--s2); }

.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s2); }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--stone300); max-width: 40ch; }
.muted { color: var(--stone300); opacity: 0.85; font-size: 0.95rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--ink700); background: rgba(12, 11, 10, 0.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 64px; }
.brand { color: var(--white); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.35); flex: none; }
.nav { display: flex; align-items: center; gap: var(--s3); }
.nav a { color: var(--stone300); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--white); }
.nav .btn { color: var(--on-accent); }
@media (max-width: 720px) { .nav .nav-link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent); font-weight: 750; text-decoration: none;
  font-size: 1rem; border: 0; transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.22);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(var(--accent-rgb), 0.34); text-decoration: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Sections */
section { padding: var(--s7) 0; border-top: 1px solid var(--ink700); }
section:first-of-type { border-top: 0; }
@media (max-width: 720px) { section { padding: var(--s6) 0; } }
.section-head { max-width: 680px; margin-bottom: var(--s5); }

/* Hero */
.hero { padding: var(--s7) 0 var(--s6); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 760px; aspect-ratio: 1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0) 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--s6); align-items: center; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s5); } }
.hero h1 { max-width: 14ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s4); }
.price-inline { color: var(--white); font-weight: 650; }
.price-inline span { color: var(--stone300); font-weight: 400; }

/* Phone-shaped preview card: a 9:16 frame built in CSS, no images */
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 34px; padding: 10px;
  background: var(--ink800); border: 1px solid var(--ink700); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.screen {
  height: 100%; border-radius: 26px; position: relative; overflow: hidden;
  background:
    radial-gradient(80% 50% at 50% 30%, rgba(255, 255, 255, 0.07), transparent 70%),
    linear-gradient(180deg, #1d2a2c 0%, #12191a 55%, #0c0f10 100%);
}
.screen .chip { position: absolute; top: 16px; left: 16px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 4px 10px; border-radius: var(--r-pill); }
.screen .cap { position: absolute; left: 14px; right: 14px; bottom: 26%; text-align: center; color: var(--white); font-weight: 800; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.screen .cap em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.screen .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 62%; background: var(--accent); }
.screen .prompt { position: absolute; left: 12px; right: 12px; bottom: 12%; font-size: 0.72rem; line-height: 1.35; color: var(--stone300); background: rgba(12, 11, 10, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 8px 10px; }

/* Feature grid */
.grid { display: grid; gap: var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--ink800); border: 1px solid var(--ink700); border-radius: var(--r-lg); padding: var(--s4); }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-block; font-weight: 750; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: var(--s1); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--ink800); border: 1px solid var(--ink700); border-radius: var(--r-lg); padding: var(--s4); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.14); color: var(--accent); font-weight: 750; margin-bottom: var(--s2); }
.steps p { margin: 0; }

/* Two columns: for / not for */
.split { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; background: var(--accent); }
.list.no li::before { background: var(--stone600); }

/* Requirements table */
.reqs { width: 100%; border-collapse: collapse; }
.reqs th, .reqs td { text-align: left; vertical-align: top; padding: var(--s2) 0; border-bottom: 1px solid var(--ink700); }
.reqs th { color: var(--white); font-weight: 650; width: 34%; padding-right: var(--s3); }
@media (max-width: 600px) {
  .reqs, .reqs tbody, .reqs tr, .reqs th, .reqs td { display: block; width: 100%; }
  .reqs th { border-bottom: 0; padding-bottom: 4px; }
  .reqs td { padding-top: 0; }
}

/* Price */
.price-card { background: var(--ink800); border: 1px solid rgba(var(--accent-rgb), 0.35); border-radius: var(--r-lg); padding: var(--s5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
@media (max-width: 800px) { .price-card { grid-template-columns: 1fr; padding: var(--s4); gap: var(--s4); } }
.price { font-size: clamp(3rem, 9vw, 4.5rem); font-weight: 800; color: var(--white); line-height: 1; letter-spacing: -0.04em; font-variation-settings: "opsz" 96; margin: 0 0 var(--s1); }
.price-note { color: var(--stone300); margin-bottom: var(--s4); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--ink700); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s3) 40px var(--s3) 0; color: var(--white); font-weight: 650; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 var(--s3); max-width: 68ch; }

/* Legal and contact pages */
.page { padding: var(--s6) 0 var(--s7); }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); max-width: none; }
.page h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-top: var(--s5); font-variation-settings: "opsz" 32; }
.page ul, .page ol { padding-left: 1.3em; margin: 0 0 var(--s2); }
.page li { margin-bottom: 8px; }
.notice { border: 1px solid rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.07); border-radius: var(--r-md); padding: var(--s2) var(--s3); margin: var(--s3) 0 var(--s4); color: var(--stone300); }
.notice p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px var(--s3); margin: 0 0 var(--s3); }
.facts dt { color: var(--white); font-weight: 650; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }
.toc { background: var(--ink800); border: 1px solid var(--ink700); border-radius: var(--r-md); padding: var(--s3); margin-bottom: var(--s4); }
.toc ol { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--ink700); padding: var(--s5) 0; font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: var(--s3); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); padding: 0; margin: 0; list-style: none; }
.footer-links a { color: var(--stone300); }
.footer-links a:hover { color: var(--white); }
.site-footer p { margin: 0; }

/* Spacing helpers */
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }

.price-gst { font-size: 0.5em; font-weight: 500; color: var(--muted, #71717a); }

/* ===== Landing page additions (1 Nov) ===== */
section[id] { scroll-margin-top: 72px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }

.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--stone600); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-block { display: flex; width: 100%; margin-top: var(--s2); }
.link-quiet { color: var(--stone300); font-weight: 600; }
.link-quiet:hover { color: var(--white); }
.cta-row.center { justify-content: center; margin-bottom: var(--s3); }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 46ch; }
.price-inline { margin: var(--s2) 0 var(--s1); font-weight: 400; color: var(--stone300); }
.assure { list-style: none; margin: 0 0 var(--s2); padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--s3); color: var(--white); font-weight: 600; font-size: 0.95rem; }
.assure li::before { content: "\2713"; color: var(--accent); margin-right: 8px; }
.refund-line { font-size: 0.92rem; color: var(--stone300); opacity: 0.85; max-width: 52ch; margin: 0; }

/* Placeholder markers: loud enough that nobody ships one by accident */
.ph-tag { position: absolute; left: 12px; right: 12px; top: 54px; margin: 0; padding: 6px 10px; border: 1px dashed var(--secondary); border-radius: var(--r-sm); background: rgba(12, 11, 10, 0.78); color: var(--secondary); font-size: 0.72rem; line-height: 1.3; text-align: center; }
.ph-text { color: var(--secondary); }
.ph-block { border-style: dashed !important; border-color: var(--secondary) !important; }
.hero .screen .ph-tag { top: 56px; }

/* Before / after slider */
.ba-slider { margin: 0 auto; width: min(360px, 100%, calc((100svh - 190px) * 9 / 16)); }
.ba-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--ink700); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: radial-gradient(80% 50% at 50% 30%, rgba(255, 255, 255, 0.1), transparent 70%),
              linear-gradient(180deg, #1f4a4d 0%, #12282a 55%, #0c1516 100%);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.ba-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.55); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: clamp(24px, var(--pos), calc(100% - 24px));
  width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); cursor: ew-resize;
}
.ba-frame.is-live { cursor: ew-resize; }
.ba-label { position: absolute; top: 12px; padding: 5px 10px; border-radius: var(--r-pill); font: 700 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; transition: opacity 160ms ease; pointer-events: none; }
.ba-label-raw { left: 12px; background: rgba(12, 11, 10, 0.72); color: var(--stone300); }
.ba-label-edited { right: 12px; background: var(--accent); color: var(--on-accent); }
.ba-frame[data-hide="raw"] .ba-label-raw,
.ba-frame[data-hide="edited"] .ba-label-edited { opacity: 0; }
.ba-play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(12, 11, 10, 0.72); color: var(--white); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ba-play[hidden] { display: none; }
.ba-play[data-state="playing"] .ic-play, .ba-play[data-state="paused"] .ic-pause { display: none; }
.ba-frame:not(.is-live) :is(.ba-before-clip, .ba-label, .ba-divider, .ba-knob, .ba-play) { display: none; }
.ba-frame[data-state="missing"] video { display: none; }
.ba-frame .ba-missing { top: 16px; }
.ba-slider figcaption { margin-top: var(--s2); font-size: 0.95rem; text-align: center; }
.prompt-quote { max-width: 620px; margin: var(--s5) auto 0; text-align: center; }
.prompt-quote span { display: block; font-size: 0.9rem; color: var(--stone600); margin-bottom: 4px; }
@media (max-width: 640px) { .ba-frame { border-radius: 18px; } .ba-slider figcaption { font-size: 0.85rem; } .ba-frame .ba-missing { font-size: 0.62rem; left: 8px; right: 8px; } }
@media (prefers-reduced-motion: reduce) { .ba-label { transition: none; } }

/* Steps: install line */
.code { margin: var(--s2) 0 var(--s1); padding: 12px 14px; background: var(--ink900); border: 1px solid var(--ink700); border-radius: var(--r-sm); overflow-x: auto; color: var(--white); font-size: 0.78rem; }
.code code { white-space: pre; }
.steps li { min-width: 0; }

/* What is inside: a spec sheet, not a card grid */
.spec { margin: 0 0 var(--s3); border-top: 1px solid var(--ink700); }
.spec > div { display: grid; grid-template-columns: 220px 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--ink700); }
.spec dt { color: var(--white); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.spec dd { margin: 0; max-width: 62ch; }
@media (max-width: 720px) { .spec > div { grid-template-columns: 1fr; gap: 4px; padding: var(--s2) 0; } }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; margin-bottom: var(--s3); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px var(--s2); border-bottom: 1px solid var(--ink700); }
.compare thead th { color: var(--white); font-weight: 700; }
.compare tbody th { color: var(--white); font-weight: 600; width: 22%; }
.compare .us { background: rgba(var(--accent-rgb), 0.07); color: var(--white); }
.compare thead .us { color: var(--accent); border-top: 2px solid var(--accent); }
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border: 1px solid var(--ink700); border-radius: var(--r-md); margin-bottom: var(--s2); padding: var(--s1) 0; background: var(--ink800); }
  .compare th, .compare td { border: 0; padding: 6px var(--s2); }
  .compare tbody th { width: 100%; font-size: 1.05rem; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.78rem; color: var(--stone600); }
  .compare .us { background: rgba(var(--accent-rgb), 0.07); }
  .compare .us::before { color: var(--accent); }
}

/* Roadmap */
.road { list-style: none; margin: 0; padding: 0 0 0 var(--s3); border-left: 1px solid var(--ink700); display: grid; gap: var(--s4); }
.road li { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: var(--s3); align-items: start; }
.road li::before { content: ""; position: absolute; left: calc(-1 * var(--s3) - 5px); top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink900); border: 2px solid var(--stone600); }
.road li:has(.now)::before { background: var(--accent); border-color: var(--accent); }
.road h3 { margin-bottom: 4px; }
.road p { margin: 0; max-width: 60ch; }
.tag { justify-self: start; font-size: 0.82rem; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--stone600); color: var(--stone300); }
.tag.now { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 640px) { .road li { grid-template-columns: 1fr; gap: 8px; } }

/* Plans */
.plans { width: 100%; border-collapse: separate; border-spacing: 0; }
.plans th, .plans td { text-align: left; vertical-align: top; padding: 14px var(--s2); border-bottom: 1px solid var(--ink700); }
.plans thead th { vertical-align: bottom; border-bottom: 1px solid var(--ink700); padding-bottom: var(--s3); }
.plans thead th, .plans td { width: 24%; }
.plans tbody th { color: var(--white); font-weight: 600; width: 52%; }
.plans .pro { background: rgba(var(--accent-rgb), 0.07); }
.plans thead .pro { border-top: 2px solid var(--accent); border-radius: var(--r-md) var(--r-md) 0 0; }
.plan-name { display: block; font-size: 1.3rem; font-weight: 750; color: var(--white); letter-spacing: -0.02em; }
.plan-price { display: block; font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -0.03em; line-height: 1.2; }
.plan-price small { font-size: 0.5em; font-weight: 500; color: var(--stone300); }
.plan-incl { display: block; font-size: 0.88rem; font-weight: 400; color: var(--stone300); }
.plans .btn { white-space: nowrap; }
.yes { color: var(--accent); font-weight: 800; font-size: 1.2rem; }
.no { color: var(--stone600); }
.plan-note { margin: var(--s3) 0; color: var(--white); }
.plan-card { max-width: 520px; margin: 0 auto; }
.plan-card .list { margin: var(--s3) 0 var(--s2); }
.refund-box { border: 1px solid rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.06); border-radius: var(--r-md); padding: var(--s3); max-width: 820px; }
.refund-box h3 { margin-bottom: var(--s1); }
.refund-box p { margin: 0; }
@media (max-width: 640px) {
  .plans th, .plans td { padding: 10px 8px; font-size: 0.9rem; }
  .plans thead th, .plans td { width: 27%; }
  .plans tbody th { width: 46%; }
  .plan-price { font-size: 1.45rem; }
  .plan-name { font-size: 1.1rem; }
  .plans .btn { min-height: 44px; padding: 8px 6px; font-size: 0.9rem; }
}

/* Final call to action */
.final { text-align: center; }
.final .lead { margin-left: auto; margin-right: auto; }
.final h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }

/* Mobile buy bar: always on screen on phones, no scripts */
.buybar { display: none; }
@media (max-width: 720px) {
  body.has-buybar { padding-bottom: 76px; }
  .buybar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(22, 20, 18, 0.96); border-top: 1px solid var(--ink700); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .buybar p { margin: 0; line-height: 1.25; }
  .buybar strong { display: block; }
  .buybar span { font-size: 0.82rem; color: var(--stone300); }
  .buybar .btn { min-width: 112px; }
}
@media (max-width: 640px) { .plan-price small { display: block; font-size: 0.7rem; } }

/* Hero panel: a static card in place of the demo reel until the demo videos exist */
.hero-panel { width: min(360px, 100%); margin: 0 auto; background: var(--ink800); border: 1px solid rgba(var(--accent-rgb), 0.35); border-radius: var(--r-lg); padding: var(--s4); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.hero-panel .eyebrow { margin-bottom: var(--s1); }
.hero-panel-title { margin: 0 0 var(--s3); color: var(--white); font-size: 1.6rem; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.hero-panel .list { margin-bottom: var(--s3); }
.hero-panel .list li { color: var(--white); }
.hero-panel-foot { margin: 0; padding-top: var(--s2); border-top: 1px solid var(--ink700); font-size: 0.92rem; }
@media (max-width: 900px) { .hero-panel { width: 100%; } }

/* Hero reel (replaces the static panel once the reel exists) */
.hero-reel { margin: 0 auto; width: min(340px, 82vw); }
.hero-reel video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; background: var(--ink800); border: 1px solid var(--ink700); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.hero-reel figcaption { margin-top: var(--s2); font-size: 0.85rem; line-height: 1.45; color: var(--stone300); text-align: center; }
