/* Freelime landing page — plain CSS, no build step.
   Palette from the app: sage #5C6F5A (dark #9CB098), deep sage #2C3A2D, soft sage #B7C3B2,
   gold #C9A96E (dark #DDBF85), soft gold #EBD9B6, cream #F4EFE6, cream soft #FBF7EF, ink #1A1F1B. */

/* ---------- Tokens ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --bg: #FBF7EF;
  --bg-alt: #F4EFE6;
  --surface: #FFFDF9;
  --surface-2: #F7F2E9;
  --text: #1A1F1B;
  --text-muted: #4E5B4F;
  --heading: #2C3A2D;
  --accent: #5C6F5A;
  --gold: #C9A96E;
  --gold-halo: rgba(201, 169, 110, .22);
  --gold-text: #7A5F2C;
  --line: rgba(44, 58, 45, .12);
  --line-strong: rgba(44, 58, 45, .22);

  --btn-bg: #2C3A2D;
  --btn-bg-hover: #3B4C3C;
  --btn-fg: #FBF7EF;
  --btn2-bg: rgba(44, 58, 45, .05);
  --btn2-bg-hover: rgba(44, 58, 45, .1);
  --btn2-fg: #2C3A2D;
  --btn-gold-bg: #EBD9B6;
  --btn-gold-bg-hover: #F2E4C8;
  --btn-gold-fg: #2C3A2D;

  --header-bg: rgba(251, 247, 239, .92);
  --stage-a: #E4EADF;
  --stage-b: #F1E6D1;
  --glow-1: rgba(183, 195, 178, .55);
  --glow-2: rgba(235, 217, 182, .55);
  --code-bg: #EFE8DA;
  --code-fg: #2C3A2D;
  --band-bg: #2C3A2D;
  --band-fg: #FBF7EF;
  --menubar-bg: #E0E0E0;   /* matches the light menu bar in menubar-item-light.png */
  --window-bar: #E9E9E9;
  --window-dot: #D1D1D1;
  --todo-bg: #FFF0B3;
  --todo-fg: #4D3A00;
  --focus: #5C6F5A;
  --icon-bg: rgba(92, 111, 90, .11);
  --accent-on-glow: #4A5A48;   /* sage text on the waitlist's green glow: 4.5:1 or more */
  --whop-form-bg: #FFFFFF;     /* body of Whop's form, so the card matches it once the form shows */

  --shadow-sm: 0 1px 2px rgba(26, 31, 27, .06), 0 2px 8px rgba(26, 31, 27, .04);
  --shadow-md: 0 2px 6px rgba(26, 31, 27, .06), 0 16px 40px -12px rgba(26, 31, 27, .18);
  --shadow-lg: 0 3px 10px rgba(26, 31, 27, .08), 0 30px 70px -20px rgba(26, 31, 27, .32);
  --panel-shadow: drop-shadow(0 2px 4px rgba(26, 31, 27, .10)) drop-shadow(0 22px 34px rgba(26, 31, 27, .20));

  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --section-y: clamp(72px, 9vw, 128px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --bg-alt: #171C18;
    --surface: #1D231E;
    --surface-2: #232A24;
    --text: #EFEAE0;
    --text-muted: #B7C3B2;
    --heading: #FBF7EF;
    --accent: #9CB098;
    --gold: #DDBF85;
    --gold-halo: rgba(221, 191, 133, .18);
    --gold-text: #DDBF85;
    --line: rgba(244, 239, 230, .1);
    --line-strong: rgba(244, 239, 230, .18);

    --btn-bg: #9CB098;
    --btn-bg-hover: #AFC1AB;
    --btn-fg: #141915;
    --btn2-bg: rgba(244, 239, 230, .06);
    --btn2-bg-hover: rgba(244, 239, 230, .11);
    --btn2-fg: #F4EFE6;
    --btn-gold-bg: #DDBF85;
    --btn-gold-bg-hover: #E7CD9A;
    --btn-gold-fg: #1A1F1B;

    --header-bg: rgba(18, 22, 20, .9);
    --stage-a: #1E2920;
    --stage-b: #2A261B;
    --glow-1: rgba(92, 111, 90, .35);
    --glow-2: rgba(201, 169, 110, .16);
    --code-bg: #232B24;
    --code-fg: #DCE5D8;
    --band-bg: #1E2A20;
    --band-fg: #F4EFE6;
    --menubar-bg: #1F1F1F;   /* matches menubar-item-dark.png */
    --window-bar: #2E2E2E;
    --window-dot: #4A4A4A;
    --todo-bg: #4D3D0A;
    --todo-fg: #FFE7A3;
    --focus: #DDBF85;
    --icon-bg: rgba(156, 176, 152, .14);
    --accent-on-glow: #9CB098;
    --whop-form-bg: #101211;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 16px 40px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 3px 10px rgba(0, 0, 0, .35), 0 30px 70px -20px rgba(0, 0, 0, .7);
    --panel-shadow: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)) drop-shadow(0 22px 34px rgba(0, 0, 0, .5));
  }
}

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

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  margin: 0;
  text-wrap: balance;
}

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

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

main:focus { outline: none; }

code, kbd { font-family: var(--font-mono); }

kbd {
  display: inline-block;
  padding: .05em .45em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font-size: .85em;
  line-height: 1.4;
  color: var(--heading);
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

/* Placeholder text the owner still has to fill in */
.todo {
  background: var(--todo-bg);
  color: var(--todo-fg);
  padding: .05em .35em;
  border-radius: 4px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.no-js .js-only { display: none; }
.js .no-js-only { display: none; }

/* Keeps a ticket or ID code ("ID-03") and its unit together on one line */
.nb { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  padding: .65em 1.3em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 8px 20px -10px rgba(26, 31, 27, .55);
}
.btn-primary:hover { background: var(--btn-bg-hover); }

.btn-secondary {
  background: var(--btn2-bg);
  color: var(--btn2-fg);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--btn2-bg-hover); }

.btn-gold {
  background: var(--btn-gold-bg);
  color: var(--btn-gold-fg);
}
.btn-gold:hover { background: var(--btn-gold-bg-hover); }

.btn-sm { min-height: 38px; padding: .5em 1.05em; font-size: .9375rem; }
.btn-lg { min-height: 50px; padding: .8em 1.5em; font-size: 1.0625rem; }

.btn-dot {
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(26, 31, 27, .5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -.01em;
  text-decoration: none;
  flex: none;
}
.brand img { width: 28px; height: 28px; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--text-muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--heading); }

.header-cta { flex: none; }
.header-cta.push { margin-left: auto; }

@media (max-width: 760px) {
  .header-cta { margin-left: auto; }
  /* Pages with section links (index.html): the links become a second row that scrolls sideways. */
  .has-nav { --header-h: 102px; }
  .has-nav .header-inner {
    flex-wrap: wrap;
    row-gap: 2px;
    height: auto;
    min-height: var(--header-h);
    padding-block: 10px 4px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { gap: 22px; padding-block: 8px 6px; white-space: nowrap; }
}

/* ---------- Shared section bits ---------- */
.section { padding-block: var(--section-y); }
.hero + .section { padding-top: clamp(40px, 6vw, 80px); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-center { margin-inline: auto; text-align: center; }

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.section h2,
.features h3,
.waitlist h2 {
  font-size: clamp(1.85rem, 1.25rem + 2.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
}

.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.55;
}

.note {
  margin: 0;
}
.note code {
  display: block;
  padding: .7em .95em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-fg);
  font-size: .875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bullets {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-halo);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 88px);
  background:
    radial-gradient(900px 520px at 88% 8%, var(--glow-1), transparent 70%),
    radial-gradient(620px 340px at 62% 60%, var(--glow-2), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-icon {
  width: 104px;
  height: 104px;
  margin: 0 0 14px -10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-halo);
}

.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(2.4rem, 1.35rem + 3.9vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -.034em;
  font-weight: 750;
}
.hero h1 .accent { display: block; color: var(--accent); }

.lead {
  max-width: 34em;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
}

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

.microcopy {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: .9375rem;
}

.hero-visual { min-width: 0; }
.hero-visual .media-note { margin-top: 12px; }

.desk {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(155deg, var(--stage-a), var(--stage-b));
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md);
  padding-bottom: clamp(28px, 4vw, 44px);
}
@media (prefers-color-scheme: dark) {
  .desk { background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .05), transparent 60%), linear-gradient(155deg, var(--stage-a), var(--stage-b)); }
}

.desk-menubar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 33px;
  padding-right: clamp(10px, 3vw, 22px);
  background: var(--menubar-bg);
  box-shadow: 0 1px 0 var(--line);
}
.desk-item { width: 206px; height: auto; }

.desk-panel {
  width: min(360px, 82%);
  margin: 8px clamp(12px, 5%, 40px) 0 auto;
  filter: var(--panel-shadow);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
}

@media (max-width: 420px) {
  .desk-item { width: 176px; }
  .desk-panel { width: 88%; margin-right: 6%; }
}

/* ---------- Problem ---------- */
.points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 561px) and (max-width: 1100px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1101px) {
  .points { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.point {
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.point-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--accent);
}
.point h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -.012em;
  font-weight: 650;
}
.point p { color: var(--text-muted); font-size: 1rem; line-height: 1.55; }

.resolution {
  max-width: 50rem;
  margin-top: clamp(40px, 6vw, 64px);
  padding-left: clamp(18px, 3vw, 28px);
  border-left: 3px solid var(--gold);
}
.resolution-text {
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem);
  line-height: 1.42;
  letter-spacing: -.012em;
  font-weight: 500;
}
.audience {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -.015em;
  font-weight: 650;
}
.step p { color: var(--text-muted); font-size: 1rem; }

.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--btn-gold-bg);
  color: var(--btn-gold-fg);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

/* ---------- Features ---------- */
.features { padding-block: clamp(8px, 2vw, 24px) clamp(24px, 4vw, 48px); }

.feature { padding-block: clamp(48px, 7vw, 96px); }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.feature-wide .feature-grid { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(36px, 5vw, 72px); }

.feature-flip .feature-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature-wide.feature-flip .feature-grid { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); }
.feature-flip .feature-copy { order: 2; }
.feature-flip .feature-media { order: 1; }

@media (min-width: 901px) and (max-width: 1100px) {
  .feature-wide .feature-grid,
  .feature-wide.feature-flip .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.feature-copy { display: grid; gap: 20px; align-content: start; }
.feature-copy .eyebrow { margin-bottom: -8px; }
.features h3 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.feature-copy > p:not(.eyebrow):not(.note) { color: var(--text-muted); font-size: 1.0625rem; }

.feature-media { min-width: 0; }

@media (max-width: 900px) {
  .feature-grid,
  .feature-wide .feature-grid,
  .feature-flip .feature-grid,
  .feature-wide.feature-flip .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-copy { order: 0; }
  .feature-flip .feature-media { order: 0; }
  .feature-media { max-width: 720px; width: 100%; margin-inline: auto; }
}

/* Stage behind transparent panel screenshots */
.stage {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 70% at 15% 0%, var(--glow-1), transparent 70%),
    linear-gradient(160deg, var(--stage-a), var(--stage-b));
  box-shadow: inset 0 0 0 1px var(--line);
}
/* The picture spans the stage, so the image has its size (from width/height) before it loads:
   no layout shift, and in-page links land where they should. */
.stage > picture { width: 100%; }
.stage .shot-panel, .stage .shot-alert { margin-inline: auto; }
.shot-panel { width: 100%; max-width: 360px; filter: var(--panel-shadow); }
.stage-panel .shot-panel { width: min(360px, 100%); }

.stage-alert { padding-block: clamp(32px, 7vw, 80px); }
.shot-alert {
  width: min(320px, 100%);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), var(--shadow-lg);
}

/* macOS-style window frame for wide screenshots */
.window {
  overflow: hidden;
  border-radius: 12px;
  background: var(--window-bar);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-lg);
}
.window-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 30px;
  padding-inline: 14px;
  background: var(--window-bar);
}
.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--window-dot);
}
.window img { width: 100%; }

.sheet {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md);
}
.sheet img { width: 100%; }

.paper {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 10px rgba(0, 0, 0, .08), 0 28px 60px -18px rgba(0, 0, 0, .38);
}
.paper img { width: 100%; }

.media-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: .875rem;
  text-align: center;
}

/* Overlapping screenshot composites */
.composite {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.composite > * { grid-row: 1; min-width: 0; }

.composite-summary { padding-bottom: 16%; }
.composite-summary .composite-base { grid-column: 1 / span 11; }
.composite-summary .composite-overlay {
  grid-column: 6 / -1;
  align-self: end;
  margin-bottom: -18%;
}

@media (max-width: 600px) {
  /* On phones the exported summary is the point: show it alone, full width. */
  .composite-summary { padding-bottom: 0; }
  .composite-summary .composite-base { display: none; }
  .composite-summary .composite-overlay { grid-column: 1 / -1; margin-bottom: 0; }
}

/* ID budgets: two panels side by side, the second a little lower */
.stage-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  place-items: start center;
  gap: clamp(14px, 2.4vw, 28px);
}
.stage-pair picture { width: 100%; }
.stage-pair .shot-panel { width: 100%; max-width: 330px; margin-inline: auto; }
.stage-pair .pair-b { margin-top: 16%; }

@media (max-width: 600px), (min-width: 901px) and (max-width: 1100px) {
  /* Where two panels would be too small to read (phones, and the half-width column up to 1100px),
     show the budgets panel alone. */
  .stage-pair { grid-template-columns: minmax(0, 1fr); }
  .stage-pair .pair-b { display: none; }
  .stage-pair .shot-panel { width: min(320px, 100%); }
}

/* Backup illustration */
.backup-card {
  margin: 0;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 70% at 90% 0%, var(--glow-1), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.backup-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.backup-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 22px 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
}
.backup-node strong { color: var(--heading); font-size: 1.0625rem; font-weight: 650; }
.backup-node span { color: var(--text-muted); font-size: .9375rem; }
.backup-node .backup-alt { margin-top: 6px; font-size: .8125rem; }
.backup-node .backup-icon { color: var(--btn-gold-fg); }

.backup-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--btn-gold-bg);
  color: var(--btn-gold-fg);
}
.backup-icon .icon { width: 28px; height: 28px; }

.backup-link {
  display: flex;
  align-items: center;
  color: var(--accent);
}
.backup-line {
  width: clamp(12px, 3vw, 36px);
  border-top: 2px dashed var(--accent);
  opacity: .7;
}

.retention { margin-top: 28px; }
.retention-title {
  margin-bottom: 10px;
  color: var(--heading);
  font-size: .9375rem;
  font-weight: 650;
}
.retention-bar {
  display: grid;
  grid-template-columns: 2fr 3fr 3fr;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.retention-bar li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px 13px;
  font-size: .8125rem;
  line-height: 1.3;
}
.retention-bar strong { font-size: .875rem; font-weight: 650; }
.retention-bar .r1 { border-radius: 12px 4px 4px 12px; background: var(--btn-bg); color: var(--btn-fg); }
.retention-bar .r2 { border-radius: 4px; background: var(--btn-gold-bg); color: var(--btn-gold-fg); }
.retention-bar .r3 { border-radius: 4px 12px 12px 4px; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

.backup-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.backup-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: .9375rem;
}
.backup-facts .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.2; }

@media (max-width: 480px) {
  .backup-flow { grid-template-columns: minmax(0, 1fr); }
  .backup-link { justify-content: center; transform: rotate(90deg); padding-block: 2px; }
  .retention-bar { grid-template-columns: minmax(0, 1fr); }
  .retention-bar .r1 { border-radius: 12px 12px 4px 4px; }
  .retention-bar .r3 { border-radius: 4px 4px 12px 12px; }
}

/* ---------- Details ---------- */
.details-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.details-top .section-head { margin-bottom: 0; }

.details-figure { margin: 0; }
.details-figure figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .875rem;
  text-align: center;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.details-grid li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 1rem;
  line-height: 1.45;
}
.details-grid .icon { color: var(--accent); margin-top: 1px; }

@media (max-width: 900px) {
  .details-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .details-grid { gap: 8px; }
  .details-grid li { padding: 13px 14px; gap: 12px; font-size: .9375rem; }
  .details-grid .icon { width: 22px; height: 22px; }
}

/* ---------- Maker ---------- */
.maker-inner {
  max-width: 44rem;
  text-align: center;
}
.maker-icon { width: 72px; height: 72px; margin: 0 auto 18px; }
.maker h2 { margin-bottom: 18px; }
.maker p { color: var(--text-muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 85% 0%, rgba(201, 169, 110, .22), transparent 70%),
    var(--band-bg);
  color: var(--band-fg);
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: clamp(40px, 6vw, 64px);
}
.cta-band p {
  max-width: 34ch;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 650;
}
.cta-band :focus-visible { outline-color: #DDBF85; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }

.faq-list {
  border-top: 1px solid var(--line-strong);
}
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { content: ""; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list summary:hover { color: var(--accent); }
.faq-a { padding: 0 48px 24px 0; }
.faq-a p { color: var(--text-muted); }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; margin-bottom: 8px; }
  .faq-a { padding-right: 0; }
}

/* ---------- Waitlist ---------- */
.waitlist {
  background:
    radial-gradient(900px 500px at 100% 100%, var(--glow-2), transparent 70%),
    radial-gradient(700px 500px at 0% 0%, var(--glow-1), transparent 70%),
    var(--bg-alt);
}

.waitlist-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.waitlist-copy { display: grid; gap: 18px; }
.waitlist-copy .eyebrow { margin-bottom: -6px; color: var(--accent-on-glow); }

.waitlist-side { min-width: 0; }
.wl-fineprint { margin-top: 20px; display: grid; gap: 10px; }
.waitlist-copy .section-lead { margin-top: 0; }
.waitlist-copy > p:not(.eyebrow):not(.section-lead):not(.fine) { color: var(--text-muted); }

.fine { color: var(--text-muted); font-size: .9375rem; }

.waitlist-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
/* Once Whop's form shows, the card takes the form's own background, so it doesn't look split in two. */
.waitlist-card[data-state="ready"] { background: var(--whop-form-bg); }

.wl-loading:focus, .wl-embed:focus { outline: none; }

.wl-state[hidden], .wl-embed[hidden] { display: none; }

.wl-title {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
}
.wl-title:focus { outline: none; }

.wl-asks {
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
}
.wl-asks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
}
.wl-asks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); stroke-width: 2.2; }

.wl-open { width: 100%; }

.wl-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: .875rem;
  text-align: center;
}

.wl-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 4px;
  color: var(--text-muted);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wl-embed { min-height: 0; }
.wl-embed iframe { max-width: 100%; }

.wl-failed { display: grid; gap: 18px; }
.wl-failed p { color: var(--text); }

.wl-success { display: grid; gap: 12px; justify-items: start; }
.wl-success p { color: var(--text-muted); }
.success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--btn-gold-bg);
  color: var(--btn-gold-fg);
}
.success-mark .icon { stroke-width: 2.4; }

.wl-alt {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  text-align: center;
}
.waitlist-card[data-state="failed"] .wl-alt,
.waitlist-card[data-state="success"] .wl-alt,
.no-js .wl-alt { display: none; }

@media (max-width: 600px) {
  /* Whop's form brings its own padding; don't double it on phones. */
  .waitlist-card[data-state="ready"] { padding-inline: 4px; }
  .waitlist-card[data-state="ready"] .wl-alt { margin-inline: 20px; }
}

@media (max-width: 900px) {
  .waitlist-grid { grid-template-columns: minmax(0, 1fr); }
  .waitlist-side { max-width: 640px; width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 56px 48px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-muted);
  font-size: .9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.4fr);
  gap: 32px;
}
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-brand .brand { margin-bottom: 4px; }
.footer-status { font-size: .875rem; }

.footer-nav ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

.footer-legal { display: grid; gap: 10px; align-content: start; }
.fine-print { font-size: .8125rem; line-height: 1.5; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Legal pages ---------- */
.legal {
  padding-block: clamp(48px, 7vw, 96px);
}
.prose {
  max-width: 46rem;
}
.prose h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.028em;
}
.prose .updated { margin-bottom: 36px; color: var(--text-muted); font-size: .9375rem; }
.prose h2 {
  margin: 44px 0 12px;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.prose h3 { margin: 28px 0 8px; font-size: 1.125rem; }
.prose p, .prose ul, .prose dl { margin: 0 0 14px; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose p, .prose li { color: var(--text); }
/* Same label column in every list on a page (unless a label is wider), so stacked lists line up. */
.prose dl { display: grid; grid-template-columns: minmax(max-content, 14.5rem) minmax(0, 1fr); gap: 8px 20px; }
.prose dt { color: var(--text-muted); }
.prose dd { margin: 0; }
.prose .callout {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .9375rem;
}
@media (max-width: 520px) {
  .prose dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .prose dd { margin-bottom: 10px; }
}

/* ---------- Klokki page (klokki.html) ---------- */
.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -.015em;
  font-weight: 650;
}
@media (max-width: 760px) {
  .two-up { grid-template-columns: minmax(0, 1fr); }
}

.points + .fine { max-width: 46rem; margin-top: 24px; }

/* Help box under the steps */
.tip {
  max-width: 46rem;
  margin: 28px auto 0;
  padding: 20px 24px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}
.tip h3 { margin-bottom: 8px; font-size: 1.0625rem; line-height: 1.3; font-weight: 650; }
.tip p { color: var(--text-muted); }
.tip .note { margin: 12px 0; }
@media (max-width: 880px) {
  .tip { max-width: 560px; }
}

/* Closing call to action: a link to the waitlist, not the form */
.join-inner { max-width: 44rem; text-align: center; }
.join-inner .eyebrow { color: var(--accent-on-glow); }
.join-inner h2 { margin-bottom: 18px; }
.join-inner .section-lead { margin-top: 0; }
.join-inner .btn { margin-top: 28px; }
.join-inner .fine { margin-top: 16px; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding-block: clamp(64px, 10vw, 128px);
  text-align: center;
}
.notfound img { width: 96px; height: 96px; margin: 0 auto 18px; }
.notfound h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.028em; margin-bottom: 14px; }
.notfound p { color: var(--text-muted); margin-bottom: 28px; }
.notfound .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Motion ----------
   No entrance animations: content must never depend on an animation running to become visible. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .spinner { animation: none; border-top-color: var(--line-strong); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .cta-band, .waitlist-card, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
