/* =========================================================================
   Videlia marketing site
   Structure borrows from behold.so: a dark page frame, large soft-cornered
   tinted panels, a serif display face against a neutral grotesque, and a lot
   of air. Palette and tone come from docs/app-store/design-brief.md in the
   app repo, so the site, the app chrome and the App Store listing agree.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  /* brand */
  --ink: #1f1d1b;
  --ink-soft: #2e2a26;
  --sand: #e4d3b8;
  --cream: #f7f3ec;
  --paper: #fdfbf7;
  --warm: #c9ae86;
  --terracotta: #b0654a;
  --body: #5c554c;

  /* panel tints, all derived from the warm neutrals above */
  --tint-sand: #f1e4ce;
  --tint-sand-ink: #4a3a21;
  --tint-blush: #f6e5dc;
  --tint-blush-ink: #6b3a28;
  --tint-stone: #e9e5dc;
  --tint-stone-ink: #3e3a32;

  --line: rgba(31, 29, 27, 0.12);
  --line-soft: rgba(31, 29, 27, 0.07);

  /* type */
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* geometry */
  --r-panel: 40px;
  --r-card: 24px;
  --r-chip: 999px;
  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --pad-panel: clamp(32px, 5.5vw, 80px);

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

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

/* ---------- shell ---------- */
.skip {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 22px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.skip:focus { transform: translate(-50%, 0); }

.page {
  background: var(--paper);
  border-radius: var(--r-panel);
  margin: 10px;
  overflow: clip;
  position: relative;
}

/* a whisper of paper grain, the kind of thing that keeps a flat cream
   background from reading as "default white with a filter" */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 251, 247, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--sand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand__mark svg { width: 16px; height: auto; }
.brand__word {
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-bottom: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}
.nav a {
  text-decoration: none;
  font-size: 15.5px;
  color: var(--body);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }

.header__cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* the nav carries its own CTA for the mobile drawer only; on desktop the one
   in .header__cta is the single button */
.nav .btn { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -5.5px; }
.nav-toggle span::after { position: absolute; top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px var(--gutter) 22px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { display: inline-flex; margin-top: 16px; justify-content: center; border-bottom: 0; }
  .header__cta .btn--ink { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-chip);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease),
    border-color 0.22s var(--ease), color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--ink-soft); box-shadow: 0 10px 26px -14px rgba(31, 29, 27, 0.7); }

.btn--sand { background: var(--sand); color: var(--ink); }
.btn--sand:hover { background: #eeddc4; box-shadow: 0 10px 26px -14px rgba(228, 211, 184, 0.9); }

.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(31, 29, 27, 0.03); }

.btn--lg { padding: 16px 30px; font-size: 16.5px; }
.btn--sm { padding: 10px 18px; font-size: 14.5px; }

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
  display: block;
}
.eyebrow--muted { color: rgba(92, 85, 76, 0.75); }
.eyebrow--sand { color: var(--warm); }

.h-xl { font-size: clamp(2.6rem, 6.4vw, 4.7rem); line-height: 1.06; }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1.1; }
.h-md { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.16; }
.h-sm { font-size: clamp(1.24rem, 1.9vw, 1.5rem); line-height: 1.24; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.68;
  color: var(--body);
}
.muted { color: var(--body); }
.small { font-size: 14.5px; line-height: 1.62; }
.tiny { font-size: 13px; line-height: 1.55; }

.serif-em { font-style: italic; color: var(--terracotta); }

/* ---------- panels ---------- */
.panel {
  border-radius: var(--r-panel);
  padding: var(--pad-panel);
  position: relative;
  overflow: hidden;
}
.panel--sand { background: var(--tint-sand); color: var(--tint-sand-ink); }
.panel--sand .eyebrow { color: #8a6a34; }
.panel--blush { background: var(--tint-blush); color: var(--tint-blush-ink); }
.panel--blush .eyebrow { color: var(--terracotta); }
.panel--stone { background: var(--tint-stone); color: var(--tint-stone-ink); }
.panel--stone .eyebrow { color: #7a6a52; }
.panel--ink { background: var(--ink); color: var(--cream); }
.panel--ink .eyebrow { color: var(--warm); }
/* .lede and .muted both hard-code the light-background body colour, which is
   unreadable on ink. Restate them for anything inside a dark panel. */
.panel--ink .muted,
.panel--ink .lede,
.panel--ink .small,
.panel--ink .tiny { color: rgba(247, 243, 236, 0.72); }
.panel--cream { background: var(--cream); }

.panel__glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 174, 134, 0.4), transparent 68%);
  pointer-events: none;
  right: -160px;
  top: -220px;
}

.stack > * + * { margin-top: var(--gap, 18px); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(28px, 4vw, 44px); text-align: center; }
.hero__inner { max-width: 830px; margin-inline: auto; }
.hero h1 { margin-bottom: 26px; }
.hero .lede { max-width: 610px; margin-inline: auto; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}
.hero__note {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(92, 85, 76, 0.85);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}
.hero__note span { display: inline-flex; align-items: center; gap: 7px; }
.hero__note svg { width: 14px; height: 14px; color: var(--terracotta); }

/* ---------- hero transformation ---------- */
.transform {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3.5vw, 48px);
  max-width: 900px;
  margin-inline: auto;
}

.tcard {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 60px -34px rgba(31, 29, 27, 0.45),
    0 2px 8px -3px rgba(31, 29, 27, 0.14);
  position: relative;
}
.tcard img { width: 100%; }
.tcard__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(253, 251, 247, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 13px;
  border-radius: var(--r-chip);
  backdrop-filter: blur(6px);
}

.tcard--in { justify-self: end; width: min(100%, 300px); }
.tcard--out { justify-self: start; width: min(100%, 260px); }
.tcard--out img { aspect-ratio: 9 / 16; object-fit: cover; }

.tarrow {
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--warm);
}
.tarrow__line {
  width: clamp(40px, 9vw, 96px);
  height: 2px;
  background-image: linear-gradient(90deg, currentColor 55%, transparent 55%);
  background-size: 9px 2px;
  animation: dash 1.4s linear infinite;
}
@keyframes dash { to { background-position: 9px 0; } }

.tarrow__badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -12px rgba(31, 29, 27, 0.5);
  position: absolute;
}
.tarrow { position: relative; }
.tarrow__badge svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .transform { grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
  .tarrow { grid-column: 1 / -1; grid-row: 1; }
  .tarrow__line { display: none; }
  .tarrow__badge { position: static; }
  .tcard--in, .tcard--out { justify-self: stretch; width: 100%; }
  /* match the two cards so the pair reads as a before/after, not two stray tiles */
  .tcard--in img, .tcard--out img { aspect-ratio: 3 / 4; object-fit: cover; height: 100%; }
  .tcard__label { left: 10px; bottom: 10px; font-size: 11px; padding: 5px 10px; }
}

/* ---------- fact strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.fact { background: var(--paper); padding: 26px clamp(14px, 2vw, 26px); }
.fact__k {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  display: block;
  margin-bottom: 5px;
}
.fact__v { font-size: 13.5px; line-height: 1.5; color: var(--body); }

@media (max-width: 700px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- section heads ---------- */
.shead { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.shead--center { margin-inline: auto; text-align: center; }
.shead h2 { margin-bottom: 18px; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  counter-increment: step;
}
.step__n {
  font-family: var(--display);
  font-size: 15px;
  color: var(--terracotta);
  display: block;
  margin-bottom: 12px;
}
.step__n::before { content: "0" counter(step); }
.step h3 { font-size: 1.35rem; margin-bottom: 9px; }
.step p { font-size: 15px; line-height: 1.62; color: var(--body); }

@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- feature panels ---------- */
.features { display: grid; gap: clamp(16px, 2vw, 24px); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.feature--flip .feature__body { order: 2; }
.feature__body { max-width: 460px; }
.feature__body h3 { margin-bottom: 16px; }
.feature__body p { color: inherit; opacity: 0.82; }

.tickets { margin-top: 24px; display: grid; gap: 11px; }
.tickets li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15.3px;
  line-height: 1.55;
}
.tickets svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; opacity: 0.65; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__body { order: 0; }
  .feature__body { max-width: none; }
}

/* ---------- model gallery ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .tarrow__line { animation: none; }
}

.mcard {
  width: 152px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
  position: relative;
  border: 1px solid rgba(31, 29, 27, 0.06);
}
.mcard img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.mcard__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(31, 29, 27, 0.78));
  color: var(--cream);
}
.mcard__name { font-family: var(--display); font-size: 17px; line-height: 1.2; }
.mcard__tag { font-size: 11px; opacity: 0.8; letter-spacing: 0.03em; }
.mcard__pro {
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgba(253, 251, 247, 0.92);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-chip);
}

/* ---------- aspect ratio switcher ---------- */
.ratios { display: grid; gap: 22px; justify-items: center; }
.ratio-tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(31, 29, 27, 0.07); border-radius: var(--r-chip); }
.ratio-tab {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--r-chip);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: 0.62;
  transition: all 0.25s var(--ease);
}
.ratio-tab[aria-selected="true"] { background: var(--paper); opacity: 1; box-shadow: 0 2px 8px -3px rgba(31, 29, 27, 0.3); }

.ratio-stage {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 330px;
}
.ratio-frame {
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 26px 50px -30px rgba(31, 29, 27, 0.6);
  transition: width 0.5s var(--ease), aspect-ratio 0.5s var(--ease);
  height: 320px;
  aspect-ratio: 9 / 16;
}
.ratio-frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-caption { font-size: 13.5px; opacity: 0.7; }

/* ---------- theme block mock ---------- */
.pdp {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: 0 30px 60px -36px rgba(31, 29, 27, 0.5);
  border: 1px solid var(--line-soft);
}
.pdp__bar { display: flex; gap: 6px; padding: 2px 4px 14px; }
.pdp__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(31, 29, 27, 0.14); }
.pdp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pdp__media { border-radius: 14px; overflow: hidden; position: relative; }
.pdp__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pdp__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.pdp__play span {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(253, 251, 247, 0.9);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.5);
}
.pdp__play svg { width: 16px; height: 16px; margin-left: 2px; }
.pdp__title { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.pdp__price { font-size: 15px; color: var(--body); margin-top: 6px; }
.pdp__skel { height: 9px; border-radius: 5px; background: rgba(31,29,27,.08); margin-top: 9px; }
.pdp__skel:nth-of-type(even) { width: 78%; }
.pdp__btn {
  margin-top: 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-chip);
  text-align: center;
  padding: 11px;
  font-size: 14px;
  font-weight: 500;
}
.pdp__flag {
  position: absolute;
  left: 10px; top: 10px;
  background: var(--terracotta);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-chip);
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
  align-items: stretch;
}
.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
}
.plan--featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  position: relative;
}
.plan--featured .plan__desc,
.plan--featured .plan__note { color: rgba(247, 243, 236, 0.62); }
.plan--featured .plan__feats li { color: rgba(247, 243, 236, 0.9); }
.plan--featured .plan__feats svg { color: var(--sand); }
.plan--featured .plan__credits { background: rgba(247, 243, 236, 0.1); border-color: rgba(247, 243, 236, 0.16); }

.plan__flag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sand);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-chip);
  white-space: nowrap;
}
.plan__name { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.plan__price {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1.05;
  margin-top: 12px;
  letter-spacing: -0.02em;
}
.plan__price sub { font-family: var(--sans); font-size: 0.95rem; font-weight: 400; opacity: 0.6; bottom: 0; }
.plan__desc { font-size: 14px; line-height: 1.55; color: var(--body); margin-top: 10px; min-height: 44px; }

.plan__credits {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  background: rgba(31, 29, 27, 0.025);
}
.plan__credits b { font-size: 15.5px; font-weight: 600; display: block; }
.plan__credits span { font-size: 13px; opacity: 0.72; display: block; margin-top: 2px; }

.plan__feats { margin-top: 20px; display: grid; gap: 9px; flex-grow: 1; }
.plan__feats li { display: flex; gap: 9px; font-size: 14.3px; line-height: 1.5; align-items: flex-start; }
.plan__feats svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 4px; color: var(--terracotta); }
.plan .btn { margin-top: 24px; justify-content: center; }
.plan__note { font-size: 12.5px; text-align: center; margin-top: 10px; color: var(--body); }

@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ---------- credit table ---------- */
.tablewrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.8px; min-width: 620px; background: var(--paper); }
table.t th, table.t td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.t th { font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--body); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t td:first-child { font-weight: 500; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 46px 24px 0;
  position: relative;
  font-family: var(--display);
  font-size: clamp(1.14rem, 1.8vw, 1.35rem);
  line-height: 1.34;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(var(--terracotta), var(--terracotta)) center/12px 1.5px no-repeat,
    linear-gradient(var(--terracotta), var(--terracotta)) center/1.5px 12px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(90deg); background-size: 12px 1.5px, 0 0; }
.faq__a { padding: 0 40px 26px 0; color: var(--body); font-size: 15.6px; }
.faq__a p + p { margin-top: 12px; }

/* ---------- cta ---------- */
.cta { text-align: center; }
.cta h2 { margin-bottom: 16px; }
.cta .lede { max-width: 520px; margin-inline: auto; }
.cta .hero__actions { margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 243, 236, 0.7);
  padding-block: clamp(52px, 6vw, 78px) 34px;
  font-size: 14.8px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 46px;
}
.footer__brand .brand__word { color: var(--cream); }
.footer__brand .brand__mark { background: var(--sand); color: var(--ink); }
.footer__brand p { margin-top: 16px; max-width: 300px; font-size: 14.4px; line-height: 1.65; }
.footer h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--cream); }
.footer__bottom {
  border-top: 1px solid rgba(247, 243, 236, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 13.4px;
  color: rgba(247, 243, 236, 0.5);
}

@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- legal / prose pages ---------- */
.prose { max-width: 720px; }
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 52px;
  margin-bottom: 14px;
  scroll-margin-top: 100px;
}
.prose h3 { font-size: 1.24rem; margin-top: 32px; margin-bottom: 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--body); font-size: 16.2px; }
/* every flow sibling gets space, not just p-after-p: a paragraph following a
   list was butting straight into it */
.prose > * + p, .prose > * + ul { margin-top: 15px; }
.prose ul { display: grid; gap: 9px; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm);
}
.prose a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }

code {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(31, 29, 27, 0.055);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--ink);
}
.prose .note {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--warm);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin-top: 24px;
  font-size: 15px;
}

.page-head { padding-block: clamp(46px, 6vw, 84px) clamp(28px, 3vw, 44px); }
.page-head h1 { margin-bottom: 14px; }

/* Deliberately loud. These mark the four legal values that cannot be inferred
   from the codebase, so they cannot be shipped to production unnoticed.
   See README.md, "Before you publish". */
.todo {
  background: #f7ddd3;
  color: #8c3f22;
  border: 1px dashed #cf8b70;
  border-radius: 6px;
  padding: 1px 7px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.86em;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- support cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.card p { font-size: 14.8px; color: var(--body); }
.card__icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--cream);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--terracotta);
}
.card__icon svg { width: 19px; height: 19px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
