/* ==========================================================================
   Clippd – styles.css
   Mobile-first. Fonts are self-hosted (Google Fonts files, latin + latin-ext
   for ě š č ř ž ý á í é ů), so no request ever goes to Google.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --orange: #F5894A;
  --orange-hover: #F79B66;
  --bg: #0F0E0D;
  --card: #1C1A18;
  --card-raised: #24211E;
  --text: #F2ECE4;
  --muted: #9A918A;
  --on-orange: #0F0E0D;
  --bg-rgb: 15, 14, 13; /* = --bg, for translucent layers */
  --line: rgba(242, 236, 228, 0.1);
  --line-strong: rgba(242, 236, 228, 0.22);
  --error: #FF9C8A;

  --font-head: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --container: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --section-y: 72px;
  --nav-h: 56px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 112px; --nav-h: 64px; }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

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

::selection { background: var(--orange); color: var(--on-orange); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.accent { color: var(--orange); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-hover); color: var(--on-orange); }
.btn-primary:focus-visible { outline-color: var(--text); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.5; cursor: progress; }

/* ---------- Header (sticky, blurred) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50; /* above clips, sound buttons and the hero circle */
  /* fallback when backdrop-filter isn't supported: nearly opaque so text stays readable */
  background: rgba(var(--bg-rgb), 0.95);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header {
    background: rgba(var(--bg-rgb), 0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
/* the border only shows once the page has scrolled (class set in assets/main.js) */
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: calc(var(--nav-h) - 1px); /* + 1px border = --nav-h */
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  padding-block: 10px; /* keeps the tap target ≥ 44px */
}
.wordmark:hover { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul {
  display: none; /* phones: logo + CTA only */
  list-style: none;
  margin: 0; padding: 0;
  gap: 20px;
}
.site-nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-block: 12px;
}
.site-nav ul a:hover { color: var(--text); }

/* very narrow phones: shrink the CTA a touch so logo + button fit */
@media (max-width: 359px) {
  .site-header .btn-sm { padding-inline: 14px; font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .site-nav ul { display: flex; }
}
@media (min-width: 1024px) {
  .site-nav, .site-nav ul { gap: 28px; }
}

/* anchor targets stop below the sticky bar instead of under it */
section[id], main[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding-top: 48px; padding-bottom: 56px; }

/* Very subtle orange glow, centred in the hero. Sized to the hero's height and fading to nothing
   at its edges, so it never shows a hard line. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle closest-side, rgba(245, 137, 74, 0.08), rgba(245, 137, 74, 0.03) 55%, rgba(245, 137, 74, 0) 100%);
  pointer-events: none;
}
.hero .container { position: relative; } /* anchors the reels to the content's right edge */

.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 15ch;
}

.hero-sub {
  margin-top: 28px;
  font-size: 1.25rem;
  line-height: 1.4;
  max-width: 28ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .hero { padding-top: 60px; padding-bottom: 80px; }
  .hero-sub { font-size: 1.375rem; margin-top: 40px; }
  .hero-actions { margin-top: 28px; }
}

/* Three abstract reels on the right, level with the 2nd headline line. Each in turn is
   "picked": its progress line fills, its caption turns orange, then the next one. */
.hero-reels {
  --reel-w: clamp(84px, 7.2vw, 104px);
  position: absolute;
  right: var(--gutter);
  top: clamp(90px, 9vw, 140px);
  display: none;
  align-items: flex-start;
  gap: 14px;
  pointer-events: none;
}
@media (min-width: 1000px) {
  .hero-reels { display: flex; }
  /* With the reels showing, the glow sits behind them instead of in the middle
     (x = right edge of the content minus half the reels' width). Its height is half the hero's,
     so it fades out before the top and bottom edges. */
  .hero::before {
    background: radial-gradient(ellipse 360px 50% at calc(100% - max(var(--gutter), (100% - var(--container)) / 2) - 170px) 50%,
      rgba(245, 137, 74, 0.08), rgba(245, 137, 74, 0.03) 55%, rgba(245, 137, 74, 0) 100%);
  }
}

.hero-reel {
  position: relative;
  width: var(--reel-w);
  aspect-ratio: 9 / 16;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  animation: hero-pick 7.5s infinite;
}
.hero-reel:nth-child(2) { margin-top: -28px; animation-delay: 2.5s; } /* middle one sits higher */
.hero-reel:nth-child(3) { animation-delay: 5s; }

/* progress line at the top: track (::before) and fill (::after) */
.hero-reel::before,
.hero-reel::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  height: 3px;
  border-radius: 2px;
}
.hero-reel::before { right: 10px; background: #2E2A27; }
.hero-reel::after {
  width: calc(100% - 20px);
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(0);
  animation: hero-fill 7.5s infinite linear;
  animation-delay: inherit;
}

.hero-cap {
  position: absolute;
  left: 14%;
  right: 14%;
  height: 10px;
  border-radius: 6px;
  background: #3C3834;
}
.hero-cap.c1 { bottom: 22%; animation: hero-cap 7.5s infinite; animation-delay: inherit; }
.hero-cap.c2 { bottom: 15%; left: 24%; right: 24%; height: 9px; }

@keyframes hero-fill { 0% { transform: scaleX(0); } 33.3% { transform: scaleX(1); opacity: 1; } 34%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hero-cap  { 0%, 33% { background: var(--orange); } 34%, 100% { background: #3C3834; } }
@keyframes hero-pick { 0%, 33% { background: #211E1C; } 34%, 100% { background: var(--card); } }

@media (prefers-reduced-motion: reduce) {
  .hero-reel, .hero-reel::after, .hero-reel .c1 { animation: none; }
  .hero-reel:nth-child(2) .c1 { background: var(--orange); }
}

/* ---------- Generic section ---------- */
.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }

.section-head { margin-bottom: 24px; max-width: 40rem; }
.section-head h2 { font-size: clamp(2rem, 7vw, 3.25rem); }
.section-head p { margin-top: 10px; color: var(--muted); }

/* Problem statement under "Ukázky"; the clips below are the answer. */
.examples-intro { max-width: 46ch; }
.section-head .examples-intro { margin-top: 16px; }
.examples-intro strong { color: var(--text); font-weight: 600; }

@media (min-width: 768px) {
  .section-head { margin-bottom: 48px; }
  .examples-intro { font-size: 1.1875rem; }
}

/* ---------- Examples (clips) ---------- */
.examples { padding-top: 0; }

/* One player + a playlist. Phones: player on top, list below. ≥900px: player left, list right. */
.player {
  display: grid;
  gap: 24px;
}

.player-frame {
  width: 100%;
  max-width: 320px;
  margin-inline: auto; /* centred on phones; on desktop it fills its 320px column, so no effect */
}
.player-video { cursor: pointer; }

/* Play / pause icon that pops up in the middle of the video when it is tapped, then fades. */
.player-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.6);
  color: var(--text);
  pointer-events: none;
  opacity: 0;
}
.player-flash svg { width: 28px; height: 28px; display: none; }
.player-flash[data-icon="play"] .icon-play,
.player-flash[data-icon="pause"] .icon-pause { display: block; }
.player-flash.is-flashing { animation: player-flash 700ms var(--ease) forwards; }
@keyframes player-flash {
  0%   { opacity: 0; transform: scale(0.8); }
  20%  { opacity: 1; transform: scale(1); }
  70%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}

.clip-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.clip-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sound-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 14, 13, 0.72);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sound-toggle:hover { background: rgba(15, 14, 13, 0.9); }
.sound-toggle[aria-pressed="true"] { background: var(--orange); color: var(--on-orange); }
.sound-toggle svg { width: 20px; height: 20px; }
.sound-toggle .icon-on { display: none; }
.sound-toggle[aria-pressed="true"] .icon-on { display: block; }
.sound-toggle[aria-pressed="true"] .icon-off { display: none; }
.sound-toggle[hidden] { display: none; }

.playlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.playlist li { border-bottom: 1px solid var(--line); }

.playlist-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.playlist-item:hover,
.playlist-item[aria-current="true"] { color: var(--text); }

.playlist-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.playlist-item[aria-current="true"] .playlist-num { color: var(--orange); }

.playlist-title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.playlist-show {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--muted);
}
.playlist-time {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* Thin orange line that fills up while the clip plays (JS sets --progress, 0 to 1). */
.playlist-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  opacity: 0;
}
.playlist-item[aria-current="true"] .playlist-progress { opacity: 1; }

.clips-hint {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .player {
    grid-template-columns: 320px minmax(0, 480px);
    gap: 64px;
    align-items: start;
  }
  .playlist-item { padding: 22px 0; }
  .playlist-title { font-size: 1.1875rem; }
}

/* ---------- Steps ("Jak to funguje") ----------
   Open layout, no cards. Number boxes are joined by a thin orange line that runs
   behind them (the boxes are opaque, so the line never shows through).
   Phones: vertical list, box on the left, line runs down between the boxes.
   ≥768px: 3 left-aligned columns, line runs across from box edge to box edge at the boxes' vertical centre. */
.steps {
  --step-box: 56px;
  --step-gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--step-gap);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--step-box) 1fr;
  column-gap: 20px;
  align-content: start;
}
.step-num {
  position: relative;
  z-index: 1;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: var(--step-box);
  height: var(--step-box);
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.step:nth-child(2) .step-num,
.step:nth-child(3) .step-num { border-color: rgba(245, 137, 74, 0.45); }

/* title's cap height starts flush with the top of the number box */
.step h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.15; text-box: trim-start cap alphabetic; padding-top: 4px; }
.step p { margin-top: 8px; color: var(--muted); }

/* connecting line: from this box's centre to the next box's centre */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--step-box) / 2);
  top: calc(var(--step-box) / 2);
  width: 1px;
  height: calc(100% + var(--step-gap));
  background: rgba(245, 137, 74, 0.35);
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); --step-gap: 40px; }
  /* each step uses the same 3 rows (box / title / text) so titles and texts line up across columns */
  .step {
    grid-template-columns: 1fr;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    justify-items: start;
  }
  .step-num { grid-row: auto; }
  .step h3 { padding-top: 20px; text-box: normal; }
  .step p { max-width: 30ch; }
  /* from this box's right edge to the next box's left edge (next column starts at 100% + gap) */
  .step:not(:last-child)::after {
    left: var(--step-box);
    top: calc(var(--step-box) / 2);
    width: calc(100% + var(--step-gap) - var(--step-box));
    height: 1px;
  }
}
/* 2×2 on tablets: no line out of the right-hand column */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .step:nth-child(2n)::after { display: none; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Benefits ---------- */
.benefits {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.benefit {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 24px 20px;
  background: var(--bg);
}
.benefit-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
}
.benefit-icon svg { width: 20px; height: 20px; }
.benefit h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.benefit p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

/* From 2 columns up, every card uses the same 3 rows (icon / title / text) through subgrid,
   so titles start at one height and texts start at one height across a row. */
@media (min-width: 640px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit {
    grid-row: span 3;
    grid-template-columns: 1fr;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
    padding: 28px 24px;
  }
  .benefit > div { display: contents; }
  .benefit h3 { margin-top: 20px; }
  .benefit p { margin-top: 8px; }
}
@media (min-width: 1024px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .benefit { padding: 32px 28px; }
}

/* ---------- Testimonials ---------- */
.testimonials {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
}
.testimonials > li { display: flex; }
.testimonial {
  flex: 1;
  margin: 0;
  padding: 28px 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial blockquote {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.testimonial figcaption img {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--card-raised);
}
.testimonial-who strong { display: block; font-weight: 600; }
.testimonial-who span { color: var(--muted); }

@media (min-width: 768px) {
  .testimonials { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
}

/* ---------- Pricing ---------- */
.plans {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan-featured { border: 2px solid var(--orange); }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 22px;
  padding: 3px 12px;
  background: var(--orange);
  color: var(--on-orange);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}

.plan-name {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.plan-for {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.plan-for strong { color: var(--text); font-weight: 600; }

.plan-clips {
  margin-top: 24px;
  font-size: 1.0625rem;
}
.plan-clips strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-right: 4px;
}

.plan-price {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.plan-price .per { font-weight: 400; color: var(--muted); font-size: 1rem; }
.plan-unit {
  margin-top: 2px;
  font-size: 0.9375rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.plan > .btn { margin-top: auto; }
.plan > :nth-last-child(2) { margin-bottom: 24px; }

.founding {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--card-raised);
  border: 1px solid var(--line);
}
.founding-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 0.875rem;
  font-weight: 600;
}
.founding-spots { color: var(--orange); }
.founding-price {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.founding-price s { color: var(--muted); font-weight: 400; font-size: 1rem; margin-left: 6px; }
.founding p:last-child { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }

.guarantee {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.guarantee .benefit-icon { background: var(--card-raised); color: var(--orange); }
.guarantee h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; }
.guarantee p { margin-top: 6px; color: var(--muted); }

.pricing-notes {
  margin-top: 28px;
  display: grid;
  gap: 20px;
}
.extra-clip { font-size: 1.0625rem; }
.extra-clip strong { font-weight: 600; }

.fineprint {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.fineprint li { position: relative; padding-left: 16px; }
.fineprint li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 1px;
  background: var(--muted);
}

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .plan { padding: 32px 28px; }
  .guarantee { margin-top: 20px; padding: 28px; align-items: center; }
  .pricing-notes { grid-template-columns: 1fr 2fr; gap: 40px; }
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--orange); }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-item summary:focus-visible { outline-offset: 2px; }
.faq-answer { padding-bottom: 22px; color: var(--muted); max-width: 44rem; }

@media (min-width: 768px) {
  .faq-item summary { font-size: 1.375rem; min-height: 76px; }
}

/* ---------- Final CTA + form ---------- */
.cta-grid { display: grid; gap: 28px; }

.cta-copy h2 { font-size: clamp(2.25rem, 8vw, 3.75rem); }
.cta-copy > p { margin-top: 16px; color: var(--muted); max-width: 36ch; font-size: 1.125rem; }

.person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.person img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--card);
  flex: none;
}
.person-name { font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.person-note { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

.sample-form {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 20px;
}

.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem; /* ≥16px avoids iOS zoom on focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.req { color: var(--orange); } /* required marker; screen readers get the "required" attribute instead */
.field input::placeholder,
.field textarea::placeholder { color: #6F6862; }
.field input:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-help { font-size: 0.875rem; color: var(--muted); }
.field-error { font-size: 0.875rem; color: var(--error); }
.field-error:empty { display: none; }

.form-note { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.form-note a { color: var(--text); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 900px) {
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .sample-form { padding: 32px; }
  .person { margin-top: 40px; }
  .person img { width: 88px; height: 88px; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section-y);
  padding-block: 48px 40px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 32px; }
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 4px;
}
.footer-links a {
  display: inline-block;
  padding-block: 8px;
  color: var(--text);
  text-decoration: none;
}
.footer-links a:hover { color: var(--orange); }
/* Same row rhythm as .footer-links so the two columns line up. */
.footer-legal { display: grid; gap: 4px; color: var(--muted); font-style: normal; }
.footer-legal p { margin: 0; padding-block: 8px; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 48px; }
}

/* ---------- Simple pages (legal, thank-you) ---------- */
.page { padding-block: 32px var(--section-y); }
.page-narrow { max-width: 46rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.back-link:hover { color: var(--text); }

.prose h1 { font-size: clamp(2.25rem, 8vw, 3.5rem); margin-top: 16px; }
.prose .meta { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin-top: 48px; line-height: 1.2; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 600; }
.prose a { color: var(--orange); }

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.prose th { background: var(--card); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.thanks h1 { font-size: clamp(2.5rem, 10vw, 4.5rem); max-width: 14ch; }
.thanks p { margin-top: 20px; font-size: 1.1875rem; color: var(--muted); max-width: 40ch; }
.thanks .btn { margin-top: 32px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.footer-tagline { margin-top: 8px; color: var(--muted); }

.footer-copy {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
