/* ------------------------------------------------------------------
   DeskDoll — download site

   Design language, after the AgroControl reference: warm off-white
   instead of white, one tight grotesk at a large scale, flat cards with a
   hairline border and almost no shadow, and colour held back to the one
   place it has to work — the buy button. The pink is still the app's own,
   so the site and the product stay recognisably the same thing; it is
   just no longer painted over every surface.

   The previous sheet is kept as styles-classic.css.
   ------------------------------------------------------------------ */

:root {
  /* the one accent, used sparingly */
  --accent: #d6487f;
  --accent-strong: #bd3a6c;
  --accent-wash: #fbeef4;
  --accent-line: #f2d7e4;

  /* surfaces: the page is not white, the cards are */
  --bg: #f4f4f1;
  --bg-2: #eeeeea;
  --surface: #ffffff;

  /* text */
  --ink: #141414;
  --ink-2: #33332f;
  --body: #55554e;
  --muted: #86867c;
  --muted-2: #a3a399;

  --line: #e4e4dd;
  --line-2: #d8d8d0;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter Tight', var(--sans);
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1180px;
  --pad-x: clamp(18px, 5vw, 32px);
  --sec-y: clamp(64px, 11vw, 120px);
  --radius: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }
strong { color: var(--ink); font-weight: 600; }
.accent { color: var(--accent); }

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

/* ---------- scaffolding ---------- */
.section { padding: var(--sec-y) var(--pad-x); }
.section--tint { background: var(--bg-2); }

/* Left-aligned and narrow, the way the reference sets its heads — a
   centred column of text at this size reads like a slide, not a page. */
.section-head {
  max-width: var(--wrap);
  margin: 0 auto clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 56px);
  align-items: end;
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 46ch;
}

/* the small label chip above a heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: #000; border-color: #000; }
.btn i { font-size: 1.1em; }

.btn--sm { padding: 9px 17px; font-size: 0.88rem; }

/* the one place colour is allowed to shout */
.btn--hero {
  background: var(--accent);
  border-color: var(--accent);
  padding: 15px 28px;
  font-size: 1rem;
  font-weight: 600;
}
.btn--hero:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.btn--wide { width: min(100%, 380px); justify-content: center; }
.btn--light {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--surface);
}
.btn--light:hover { background: var(--surface); color: var(--accent-strong); border-color: var(--surface); }

/* ---------- "coming soon" chip ---------- */
.soon {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.87rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.soon i { font-size: 1.1em; flex: none; margin-top: 2px; color: var(--muted); }
.soon strong { color: var(--ink); font-weight: 600; }
.hero-soon { margin-top: 20px; }
.dl-soon { margin-top: 20px; text-align: left; border-radius: 16px; max-width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 244, 241, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 13px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand .accent { color: var(--ink); }
.brand-mark { border-radius: 7px; }

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a { transition: color 0.18s ease; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) var(--pad-x) clamp(48px, 7vw, 80px);
  /* A wash that fades out rather than a flat block: the page should look like
     it starts, not like it has a coloured band stuck to the top of it. */
  background:
    radial-gradient(120% 70% at 50% 0%, var(--accent-wash) 0%, rgba(251, 238, 244, 0) 62%),
    var(--bg);
}

/* Four strokes, fixed to the band behind the heading and never under it on a
   narrow screen, where there is no room to spare beside the words. */
.hero-doodles {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}
@media (max-width: 900px) { .hero-doodles { display: none; } }

.hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* The player sits between the words and the button, so the hero is two text
   blocks with the video between them rather than one. It is its own block
   because .hero-inner is 820px and the player is 1040px: nested, it would have
   been shrunk to the measure of the paragraph above it. The gap is set here
   rather than left to the button's own margin collapsing through. */
.hero-inner--buy { margin-top: clamp(26px, 3.4vw, 34px); }
.hero-inner--buy .hero-actions { margin-top: 0; }

.hero-eyebrow {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: -0.045em;
}
.hero-title .accent { color: var(--ink); }

.hero-sub {
  margin: clamp(18px, 2.4vw, 24px) auto 0;
  max-width: 56ch;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: clamp(26px, 3.4vw, 34px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}

.hero-meta {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--muted-2);
}
.hero-meta a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.hero-meta a:hover { color: var(--accent); }

.hero-soon { justify-content: center; }

/* The two things a buyer wants to know before the price sinks in. Same chip
   as .soon, but a list of them rather than one line. */
.hero-assurances {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}
.hero-assurances li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.87rem;
  color: var(--muted);
}
.hero-assurances i { font-size: 1.1em; flex: none; color: var(--muted); }

/* The header demo is a player, not a loop, so it needs an obvious way in.
   The browser's own centred play button is not dependable with preload="none"
   — Chrome draws its control bar but not always the overlay — and this is the
   one place the affordance has to be unmistakable. */
.hero-player { position: relative; }
.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(62px, 6.5vw, 86px);
  height: clamp(62px, 6.5vw, 86px);
  border: none;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.56);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  transition: background .18s ease, transform .18s ease;
}
/* The glyph is a triangle, so its optical centre sits left of the box. */
.hero-play i { font-size: clamp(24px, 2.6vw, 32px); margin-left: 4px; line-height: 1; }
.hero-play:hover { background: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.hero-play:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.hero-player.is-playing .hero-play { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-play { transition: none; }
  .hero-play:hover { transform: translate(-50%, -50%); }
}

/* The screenshot carries the page on its own below the words, so it gets the
   full measure rather than half of a two-column row. */
.hero-art {
  position: relative;
  max-width: 1040px;
  margin: clamp(34px, 5vw, 60px) auto 0;
}
.hero-art img,
.hero-art .hero-video {
  width: 100%;
  display: block;
  border-radius: clamp(14px, 1.6vw, 22px);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -28px rgba(20, 20, 20, 0.28);
}

/* ---------- strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 20px var(--pad-x);
}
.strip-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 30px;
}
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.89rem;
  color: var(--ink-2);
}
.strip-item i { color: var(--muted); font-size: 1.15em; }

/* ---------- video ---------- */
/* Wider than the text column, because a 16:9 demo earns the room — but capped
   by the viewport's own height as well as by a pixel width, so it never grows
   taller than the fold on a short screen. 80vh of height is 80vh*16/9 of
   width; whichever of the two limits bites first wins. */

/* ---------- features ---------- */
.features {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: border-color 0.2s ease;
}
.feature:hover { border-color: var(--line-2); }

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.feature h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature p { font-size: 0.95rem; color: var(--muted); }

/* ---------- privacy ---------- */
.privacy {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.privacy-copy .section-title { text-align: left; }
.privacy-copy p { margin-top: 16px; color: var(--muted); }
.privacy-kicker {
  margin-top: 22px !important;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  line-height: 1.35;
}
.privacy-list {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 22px;
}
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--ink-2);
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.privacy-list li:last-child { border-bottom: none; }
.privacy-list i { color: var(--accent); font-size: 1.1em; flex: none; margin-top: 2px; }

/* ---------- download ---------- */
.section--download { background: var(--bg-2); }

.dl-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 48px);
  text-align: center;
}
.dl-icon { margin: 0 auto 18px; border-radius: 16px; }
.dl-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  letter-spacing: -0.035em;
  color: var(--ink);
}
.dl-sub { margin-top: 10px; margin-bottom: 28px; color: var(--muted); font-size: 0.96rem; }
.dl-card .btn--wide { margin: 0 auto; }
.dl-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}
.dl-note--quiet { color: var(--muted-2); font-size: 0.87rem; }
.dl-links {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 0.9rem;
  color: var(--muted);
}
.dl-links a { display: inline-flex; align-items: center; gap: 7px; transition: color 0.18s ease; }
.dl-links a:hover { color: var(--ink); }

/* ---------- buying ---------- */
.buy-note { margin-top: 14px; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.buy-note--error { color: #b3261e; }
.buy-note--test {
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  display: inline-block;
}

.tax-line {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.tax-line[hidden] { display: none; }

/* ---------- recovery form ---------- */
.recover-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}
.field {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 13px 22px;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field::placeholder { color: var(--muted-2); }
.field:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--ink);
}
.recover-form .btn { justify-content: center; }

.form-message { margin-top: 16px; font-size: 0.92rem; color: var(--muted); }
.form-message--error { color: #b3261e; }

/* ---------- waiting ---------- */
.spinner {
  width: 24px;
  height: 24px;
  margin: 22px auto 0;
  border: 2px solid var(--line-2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- notice ---------- */
.notice {
  max-width: 720px;
  margin: 20px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid #d9a441;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
}
.notice-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.notice-title i { color: #d9a441; font-size: 1.1em; flex: none; }
.notice p { font-size: 0.94rem; color: var(--muted); }
.notice-steps { list-style: none; margin: 18px 0; display: grid; gap: 14px; }
.notice-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.94rem; color: var(--body); }
.notice-steps strong { color: var(--ink); }
.step-n {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.notice-foot { margin-top: 6px; font-size: 0.88rem; color: var(--muted-2); }
.notice--tight { margin-top: 26px; text-align: left; }

/* ---------- verify ---------- */
.verify {
  max-width: 720px;
  margin: 16px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
}
.verify-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.verify-title i { color: var(--muted); font-size: 1.1em; }
.verify p { font-size: 0.93rem; color: var(--muted); }
.verify-label { margin-top: 18px; }
.verify--tight { margin-top: 20px; text-align: left; }

.code-row { margin-top: 10px; display: flex; align-items: stretch; gap: 8px; }
.code {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: nowrap;
}
.code--hash { color: var(--ink); overflow-wrap: anywhere; white-space: normal; }

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 0 15px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.copy-btn:hover { color: var(--ink); border-color: var(--ink); }
.copy-btn.is-copied { color: #1f7a4d; border-color: #b9e2cc; }

/* ---------- honest notes ---------- */
.notes {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
}
.note h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.note h3 i { color: var(--muted); font-size: 1.1em; }
.note p { font-size: 0.93rem; color: var(--muted); }

/* ---------- cta ---------- */
.cta {
  padding: clamp(60px, 9vw, 110px) var(--pad-x);
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta-inner { max-width: 660px; margin: 0 auto; }
.cta-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.cta-sub { margin: 14px 0 30px; color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }

/* ---------- footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: clamp(40px, 6vw, 60px) var(--pad-x);
}
.footer-inner { max-width: var(--wrap); margin: 0 auto; text-align: center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.footer-brand .accent { color: var(--ink); }
.footer-brand img { border-radius: 7px; }
.footer-links {
  margin: 20px 0 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 0.9rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}
.footer-links a:hover { color: var(--ink); }

.footer-note { font-size: 0.87rem; max-width: 52ch; margin: 0 auto; color: var(--muted-2); }
/* without this the link inside the note is the same grey as the sentence
   around it, and nobody can tell it is clickable */
.footer-note a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.footer-note a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- doc pages ---------- */
.doc {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad-x) clamp(56px, 8vw, 96px);
}
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.doc-back:hover { color: var(--ink); }
.doc h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.38rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.doc h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 28px 0 8px;
}
.doc p, .doc li { font-size: 1rem; color: var(--body); }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { margin: 12px 0 12px 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.doc a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.doc code {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink-2);
}
.doc pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 16px 0;
}
.doc pre code { background: none; border: none; padding: 0; }
.doc blockquote {
  border-left: 2px solid var(--line-2);
  padding: 4px 0 4px 18px;
  margin: 16px 0;
  color: var(--muted);
}
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; }
.doc th, .doc td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc th { color: var(--ink); font-weight: 600; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

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

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .privacy { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .strip-inner { justify-content: flex-start; }
  .code-row { flex-direction: column; }
  .copy-btn { justify-content: center; padding: 10px 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

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

/* ---------- the three clips ----------
   Each one is a silent loop that plays only while it is on screen, so the row
   reads as three moving pictures rather than three video players. The source
   is 976x788; the aspect ratio is declared so the row does not jump as they
   load. */
.clips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
  max-width: var(--wrap);
  margin: clamp(26px, 4vw, 40px) auto 0;
}
.clip {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.clip-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 976 / 788;
  object-fit: cover;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.clip-copy { padding: 16px 18px 18px; }
.clip-title {
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.clip-copy p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--body); }

/* ---------- the long example ----------
   Forty-nine seconds with controls, not a loop: this one is watched on
   purpose, so it keeps its poster until someone presses play and downloads
   nothing before that. */
.example {
  max-width: 940px;
  margin: clamp(26px, 4vw, 40px) auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f0f0f;
}
.example-video { display: block; width: 100%; height: auto; }

/* Two shorter clips under the long one: the same thing in two places it is
   actually used, rather than a third long watch. They share the player's
   measure so the three read as one block. */
.example-pair {
  max-width: 940px;
  /* It used to sit under the long player; now it opens the section, so it
     takes the gap that player had. */
  margin: clamp(26px, 4vw, 40px) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.example-small { margin: 0; }
.example-small .example-video {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0f0f0f;
}
.example-small figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Side by side they would each be too small to read on a phone. */
@media (max-width: 680px) {
  .example-pair { grid-template-columns: minmax(0, 1fr); }
}

/* A head with no standfirst should not sit in half the width: the two-column
   grid exists to put the title beside its paragraph, and without one the
   title has no reason to wrap early. Ignored where :has() is unsupported,
   which costs only the old narrower measure. */
.section-head:not(:has(.section-sub)) { display: block; }

/* The long example is watched, not read past: its title sits over the player
   rather than beside nothing. */
#example .section-head { text-align: center; }


/* ---------- roles ---------- */
/* Twelve one-word labels. Stretched over four columns of the full 1180px
   measure, each card was about three quarters empty box, and the set read as
   scattered rather than as a group. So nothing here is stretched: the heading,
   the cluster and the note all sit on one narrow centred measure, and each card
   is only as wide as the word inside it. */
#roles .section-head {
  display: block;
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
}
/* The paragraph already has the measure from its parent; its own 46ch would
   narrow it again and reopen a gap under the title. */
#roles .section-sub { max-width: none; }

.roles {
  list-style: none;
  margin: clamp(22px, 3vw, 34px) auto 0;
  padding: 0;
  /* Wide enough that the thirteen fall 7 and 6 rather than 6, 6 and the long
     "Motivational speaker" alone on a line of its own. Measured: 900–1020px
     all give 7/6, so the middle of that range survives a font rendering a
     little wider or narrower than it does here. */
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1vw, 11px);
}

.role {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.role i {
  font-size: 19px;
  line-height: 1;
  color: var(--accent);
  flex: none;
}

/* A small lift on hover. The cards are not links, so this is only a sign that
   the page is alive, not an invitation to click. */
.role:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -18px rgba(20, 20, 20, .45);
}

.roles-note {
  margin: clamp(20px, 2.6vw, 30px) auto 0;
  max-width: 62ch;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.roles-note i { font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .role { transition: none; }
  .role:hover { transform: none; }
}
