/* ============================================================================
   Film Tools — website.

   The same palette as the login page and the app's Film Tools theme: petrol
   black, warm cream, and a burnt orange that runs into coral. Sections are
   either dark or light; each sets a handful of colours (.theme-dark,
   .theme-light) and everything inside reads from those, so a component looks
   right on either without a second set of rules.
   ========================================================================= */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

:root {
  --petrol: #071114;
  --petrol-raised: #0d1d21;
  --cream: #fbf5ee;
  --paper: #fffdfa;
  --peach: #fdeadb;
  --ink: #17100d;
  --orange: #f28a52;
  --gradient: linear-gradient(135deg, #f8a35f 0%, #ee7450 55%, #dd5348 100%);

  --font: "Geist Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --section: clamp(56px, 8vw, 96px);
}

.theme-dark {
  --fg: #f8e4d3;
  --fg-muted: rgb(248 228 211 / .68);
  --rule: rgb(248 228 211 / .16);
  --surface: rgb(255 255 255 / .03);
  --accent-text: #f6a06c;
  --ok-text: #86d3a6;
  --ok-bg: rgb(134 211 166 / .14);
  --soon-bg: rgb(242 138 82 / .16);
  color: var(--fg);
}
.theme-light {
  --fg: #1d1512;
  --fg-muted: #6b5d55;
  --rule: #e8d9cb;
  --surface: var(--paper);
  --accent-text: #b4511f;
  --ok-text: #1f6b45;
  --ok-bg: rgb(31 107 69 / .12);
  --soon-bg: rgb(180 81 31 / .12);
  color: var(--fg);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--petrol);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

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

.wrap { width: min(100% - 48px, 1160px); margin-inline: auto; }
.wrap.narrow { width: min(100% - 48px, 760px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

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

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.center { text-align: center; }

h2 {
  font-size: clamp(28px, 3.3vw, 40px);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.12;
}
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }

/* ── buttons and links ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .15s, background-color .15s, border-color .15s;
}
.btn .icon { transition: transform .15s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--gradient); color: var(--ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-outline { border-color: var(--fg); background: transparent; color: var(--fg); }
.btn-outline:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.more {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
}
.more .icon { transition: transform .15s; }
a.more:hover .icon, a:hover > .more .icon { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.pill-live { background: var(--ok-bg); color: var(--ok-text); }
.pill-soon { background: var(--soon-bg); color: var(--accent-text); }

/* ── header ───────────────────────────────────────────────────────────────── */

.site-header { position: relative; z-index: 10; background: var(--petrol); border-bottom: 1px solid var(--rule); }
/* On the home page the header lies over the picture. */
.home .site-header { position: absolute; inset: 0 0 auto; background: none; border-bottom: 0; }

.header-row { display: flex; align-items: center; gap: 44px; height: 76px; }
.brand { flex: none; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav a { text-decoration: none; opacity: .86; transition: opacity .15s; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; color: var(--accent-text); }
/* Shown only in the folded menu, where the header has no room for them. */
.nav-extra { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.header-signin { font-size: 14px; text-decoration: none; opacity: .86; }
.header-signin:hover { opacity: 1; }
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .header-row { gap: 16px; }
  .header-actions { gap: 10px; }
  .header-signin { display: none; }
  .nav-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 16px;
    background: var(--petrol);
    border-bottom: 1px solid var(--rule);
  }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .nav-extra { display: block; }
  .nav-open .nav { display: flex; }
  .home .nav-open { background: var(--petrol); }
}
@media (max-width: 560px) {
  /* A phone has room for the logo and the menu button, not a third thing. */
  .brand img { width: 150px; }
  .header-actions .btn { display: none; }
}

/* ── hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(88vh, 740px);
  padding: 150px 0 110px;
  background: var(--petrol) url("/img/hero-chair.webp") right center / cover no-repeat;
}
/* Dark where the words are, clear where the chair and the strip of film are,
   at the right. The second layer fades the picture into the page. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--petrol) 0%, rgb(7 17 20 / 0) 30%),
    linear-gradient(90deg, rgb(7 17 20 / .88) 0%, rgb(7 17 20 / .74) 40%, rgb(7 17 20 / .14) 70%,
      rgb(7 17 20 / 0) 100%);
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(46px, 6.6vw, 86px);
  font-weight: 300;
  letter-spacing: -.022em;
  line-height: 1;
}
.hero-lead { margin-top: 24px; max-width: 31em; font-size: clamp(17px, 1.5vw, 20px); color: var(--fg); opacity: .9; }
.hero .actions { margin-top: 34px; }

@media (max-width: 1100px) {
  /* Too narrow to keep the words clear of the picture: darken more evenly.
     The chair and the strip of film stay in view at the right. */
  .hero::before {
    background:
      linear-gradient(0deg, var(--petrol) 0%, rgb(7 17 20 / 0) 30%),
      linear-gradient(90deg, rgb(7 17 20 / .86) 0%, rgb(7 17 20 / .6) 60%, rgb(7 17 20 / .3) 100%);
  }
}

@media (max-width: 700px) {
  /* On a phone the words fill the width. Show the chair, and leave the bright
     strip of film just out of view so nothing competes with the text. */
  .hero { background-position: 80% center; }
}

/* ── sections ─────────────────────────────────────────────────────────────── */

.section { padding: var(--section) 0; }
.section-dark { background: var(--petrol); }
.section-cream { background: var(--cream); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; }
.lead { max-width: 40em; font-size: 18px; color: var(--fg-muted); }

/* ── "what do you need to do?" ────────────────────────────────────────────── */

.ask { padding-top: 12px; }
.ask-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  height: 62px;
  padding: 0 10px 0 24px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color .15s;
}
.ask-form:focus-within { border-color: var(--orange); }
.ask-form > .icon { font-size: 20px; color: var(--fg-muted); }
.ask-form input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 17px;
  outline: 0;
}
.ask-form input::placeholder { color: var(--fg-muted); }
.ask-hint { margin-top: 14px; text-align: center; font-size: 14px; color: var(--fg-muted); }

/* ── tools by production stage ────────────────────────────────────────────── */

.stages-label { margin-top: clamp(48px, 6vw, 72px); }
.stages-note { margin: 12px auto 0; max-width: 36em; text-align: center; font-size: 15px; color: var(--fg-muted); }

/* Five stages along a line. A dot on the line marks each; a filled dot means
   there is a tool there already. */
.stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding-top: 44px;
}
.stages::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--rule);
}
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.stage::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -6px;
  border: 1.5px solid #f8e4d3;
  border-radius: 50%;
  background: var(--petrol);
}
.stage.has-tool::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgb(242 138 82 / .22); }
/* The stage with a tool you can use today stands out as a light card. */
.stage.is-live { margin-block: -10px; border-color: transparent; background: var(--cream); }
.stage.is-live::before { top: -26px; }

.stage-media { position: relative; height: 92px; overflow: hidden; border-radius: 11px 11px 0 0; background: var(--petrol-raised); }
.stage-media img { width: 100%; height: 100%; object-fit: cover; }
.stage-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(7 17 20 / .5), rgb(7 17 20 / 0) 70%); }
.stage-media .icon {
  position: absolute;
  z-index: 1;
  left: 18px;
  top: 50%;
  margin-top: -15px;
  font-size: 30px;
  color: #fff;
}
.stage-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 20px; }
.stage-tools { display: grid; gap: 8px; }
.stage-tools li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.stage-tools a { text-decoration: none; }
.stage-tools a:hover { text-decoration: underline; }
.stage-empty { font-size: 14px; color: var(--fg-muted); }
.stage .more { margin-top: auto; padding-top: 6px; }

@media (max-width: 1000px) {
  .stages { grid-template-columns: repeat(2, 1fr); padding-top: 0; }
  .stages::before, .stage::before { display: none; }
  .stage.is-live { margin-block: 0; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .stages { grid-template-columns: 1fr; }
}

/* ── tools ────────────────────────────────────────────────────────────────── */

.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tool {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper);
  scroll-margin-top: 24px;
}
.tool-thumb { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.tool-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 28px; }
.tool-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tool-head h3 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.tool-body > p { font-size: 17px; color: var(--fg-muted); }
.tool-body > .tool-note { font-size: 15px; }
.ticks { display: grid; gap: 9px; font-size: 15px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent-text); font-weight: 700; }
.tool .actions { align-items: center; margin-top: auto; padding-top: 10px; }
.text-link { font-size: 14px; font-weight: 600; text-underline-offset: 3px; }

/* ── request ──────────────────────────────────────────────────────────────── */

.request-banner {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
  padding: 30px 34px;
  border: 1px solid #f5d3bb;
  border-radius: 16px;
  background: var(--peach);
}
.request-banner > .icon { font-size: 40px; color: var(--accent-text); stroke-width: 1.3; }
.request-banner h2 { font-size: clamp(22px, 2.4vw, 28px); }
.request-banner p { margin-top: 6px; color: var(--fg-muted); }
.request-banner .btn { margin-left: auto; }

.ideas-label { margin-top: 44px; }
.ideas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.idea {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.idea:hover { border-color: var(--accent-text); transform: translateY(-2px); }
.idea img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.idea-body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 16px 18px 18px; }
.idea-body p { font-size: 14px; color: var(--fg-muted); }
.idea .more { margin-top: auto; padding-top: 10px; }

@media (max-width: 900px) {
  .tools { grid-template-columns: 1fr; }
  .ideas { grid-template-columns: repeat(2, 1fr); }
  .request-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px; }
  .request-banner .btn { margin-left: 0; }
}
@media (max-width: 480px) {
  .ideas { grid-template-columns: 1fr; }
}

/* ── how we build ─────────────────────────────────────────────────────────── */

.principles h2 { margin-top: 12px; max-width: 18em; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.principles-grid > div { padding-top: 20px; border-top: 1px solid var(--rule); }
.principles-grid h3 { font-size: 19px; font-weight: 500; }
.principles-grid p { margin-top: 8px; color: var(--fg-muted); }
@media (max-width: 800px) { .principles-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ── closing banner ───────────────────────────────────────────────────────── */

/* The closing words sit on the plain dark page. The picture is a slim strip of
   film across the top, at its own proportions (2000 × 263), fading downwards. */
.outro {
  --strip: max(13.15vw, 110px);
  position: relative;
  isolation: isolate;
  padding: calc(var(--strip) + clamp(44px, 6vw, 80px)) 0 clamp(88px, 12vw, 150px);
  text-align: center;
  background: var(--petrol);
}
.outro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--strip);
  z-index: -1;
  background:
    linear-gradient(0deg, var(--petrol) 0%, rgb(7 17 20 / 0) 55%),
    url("/img/strip.webp") center / cover no-repeat;
}
.outro h2 { margin-top: 14px; font-size: clamp(30px, 4.2vw, 50px); font-weight: 300; letter-spacing: -.018em; }
.outro .actions { margin-top: 32px; }

/* ── footer ───────────────────────────────────────────────────────────────── */

.site-footer { background: var(--petrol); border-top: 1px solid var(--rule); padding: 34px 0 40px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; }
.footer-nav a { text-decoration: none; color: var(--fg-muted); }
.footer-nav a:hover { color: var(--fg); }
.footer-note { margin-left: auto; font-size: 12px; color: var(--fg-muted); }
@media (max-width: 760px) { .footer-note { margin-left: 0; width: 100%; } }

/* ── inner pages ──────────────────────────────────────────────────────────── */

/* The head of Pricing, Request, Early access and Privacy: a dark band with the
   strip of film showing through at the right. */
.page-head {
  padding: clamp(52px, 7vw, 84px) 0 clamp(44px, 6vw, 68px);
  background:
    linear-gradient(90deg, var(--petrol) 24%, rgb(7 17 20 / .62) 58%, rgb(7 17 20 / .34) 100%),
    var(--petrol) url("/img/strip.webp") 72% center / cover no-repeat;
}
.page-head h1 {
  margin-top: 14px;
  max-width: 15em;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.page-head .lead { margin-top: 18px; color: var(--fg); opacity: .86; }

/* ── pricing ──────────────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper);
}
.plan-featured { border-color: transparent; box-shadow: 0 0 0 2px var(--orange); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-head h2 { font-size: 22px; font-weight: 500; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price strong { font-size: 52px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.price span { font-size: 15px; color: var(--fg-muted); }
.plan-then { padding: 12px 14px; border-radius: 10px; background: var(--peach); font-size: 15px; }
.plan > p { color: var(--fg-muted); }
.plan .btn, .plan .more { margin-top: auto; align-self: flex-start; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; } }

.faq { margin-top: clamp(48px, 6vw, 72px); max-width: 760px; }
.faq h2 { margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; max-width: 42em; color: var(--fg-muted); }

/* ── forms ────────────────────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.aside h2 { font-size: 24px; }
.aside p { margin-top: 12px; color: var(--fg-muted); }
.steps { display: grid; gap: 18px; margin-top: 26px; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
}
.steps strong { display: block; font-weight: 600; }
.steps span { color: var(--fg-muted); font-size: 15px; }

.card { padding: clamp(22px, 3.4vw, 36px); border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; }
.field > label, .field > legend { padding: 0; font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--fg-muted); }
.field .hint { font-size: 13px; color: var(--fg-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9c8b8;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgb(242 138 82 / .22); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, #6b5d55 50%), linear-gradient(135deg, #6b5d55 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* A row of choices that look like chips and behave like radio buttons. */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  padding: 8px 15px;
  border: 1px solid #d9c8b8;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.choice input:hover + span { border-color: var(--fg-muted); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Left for automated scripts to fill in; people never see it. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot small { flex: 1; min-width: 14em; font-size: 13px; color: var(--fg-muted); }
.form-foot small a { color: inherit; text-underline-offset: 2px; }
.form-error { padding: 12px 14px; border-radius: 10px; background: #fbe9e6; color: #96281b; font-size: 15px; }
.form-done h2 { font-size: 26px; }
.form-done p { margin-top: 10px; color: var(--fg-muted); }
.form-done .actions { margin-top: 24px; }
[hidden] { display: none !important; }

/* ── long text (privacy) ──────────────────────────────────────────────────── */

.prose { max-width: 720px; font-size: 17px; }
.prose h2 { margin: 46px 0 12px; font-size: 24px; font-weight: 500; }
.prose h3 { margin: 26px 0 6px; font-size: 17px; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent-text); text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .88em; padding: 1px 5px; border-radius: 4px; background: #f1e4d6; }
.prose .meta { color: var(--fg-muted); font-size: 15px; }
.prose > :first-child { margin-top: 0; }

/* Long pages: a short list of jump links, and tables that scroll sideways on
   a phone instead of squeezing their columns. */
.prose .toc { margin-top: 22px; padding: 18px 22px; border: 1px solid #e6d8c8; border-radius: 10px; }
.prose .toc p { margin: 0; color: var(--fg-muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.prose .toc ol { margin-top: 10px; padding-left: 20px; list-style: decimal; font-size: 16px; }
.prose .toc li + li { margin-top: 4px; }
/* A long list of sections reads better in two columns when there is room. */
@media (min-width: 720px) { .prose .toc-long ol { columns: 2; column-gap: 40px; } }
.prose .toc-long li { break-inside: avoid; }
.prose .table-wrap { margin-top: 16px; overflow-x: auto; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #e6d8c8; }
.prose th { color: var(--fg-muted); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.prose h2, .prose h3 { scroll-margin-top: 90px; }

.notfound { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.notfound h1 { margin-top: 14px; font-size: clamp(34px, 5vw, 56px); font-weight: 300; letter-spacing: -.02em; }
.notfound p { margin-top: 14px; color: var(--fg-muted); }
.notfound .actions { margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
