/*
 * veriyard.com — the marketing site.
 *
 * A clean, light, conventional business-site layout in the app's own colours:
 * the amber and near-black of the app icon, with its green baseline for
 * "approved". Deliberately plain: white pages, one accent, generous space.
 *
 * Amber is a FILL colour only (buttons, markers, highlights). It is never used
 * for text on white — it fails contrast there. Text links use --link.
 */
:root {
  --ink: #0b0c0e;
  --ink-2: #14171c;
  --ink-3: #1b1f26;
  --amber: #ffb800;
  --amber-600: #e6a400;
  --amber-50: #fff6dc;
  --green: #1f7a55;
  --green-50: #e7f4ed;
  --red: #c2411c;
  --red-50: #fcece6;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --line: #e3e6eb;
  --text: #14171c;
  --body: #3c4451;
  --muted: #667085;
  --link: #8a5b00;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 12, 14, 0.05), 0 14px 36px rgba(11, 12, 14, 0.09);
  --w: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--text); line-height: 1.15; letter-spacing: -0.02em; }
.w { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-600); border-color: var(--amber-600); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 20px; height: 30px; flex: none; }
.brand b { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--body); text-decoration: none; font-size: 15.5px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav .actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav .actions .btn { color: var(--text); }
.nav .actions .btn-primary { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; position: relative; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
/* Six links and two buttons need about 940px; below that, the menu button. */
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
  .nav .actions { margin: 16px 0 0; flex-direction: column; align-items: stretch; }
  .nav .actions a { border-bottom: 0; padding: 0 22px; }
  .nav .actions .btn { border: 1px solid var(--line); }
  .nav .actions .btn-primary { border-color: var(--amber); }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 76px 0 84px; background: radial-gradient(900px 420px at 88% -10%, var(--amber-50), transparent 70%), var(--bg); }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--amber-50); border: 1px solid #f3dfa3; border-radius: 999px; padding: 6px 12px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 22px; max-width: 14ch; }
.hero h1 em { font-style: normal; box-shadow: inset 0 -0.34em 0 var(--amber); }
.lede { font-size: clamp(17.5px, 1.6vw, 19.5px); color: var(--body); max-width: 34em; }
.lede + .lede { margin-top: 14px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5.2-5.4' fill='none' stroke='%231f7a55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (max-width: 960px) {
  .hero { padding: 48px 0 60px; }
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
}

.caption { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: 84px 0; }
/* Jump links must not land underneath the sticky header. */
section[id] { scroll-margin-top: 72px; }
section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 46em; margin-bottom: 44px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--amber); border-radius: 2px; }
.head.center .eyebrow { justify-content: center; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.sub { font-size: 18px; color: var(--body); }
@media (max-width: 700px) { section { padding: 60px 0; } .head { margin-bottom: 32px; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.015em; }
.card p { font-size: 15.5px; color: var(--body); }

/* quotes */
.quote .q { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -0.015em; margin-bottom: 10px; }
.quote { border-left: 4px solid var(--amber); }

/* steps */
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: var(--ink); color: var(--amber); font-weight: 800; font-size: 15px; margin-bottom: 16px; font-variant-numeric: tabular-nums; }

/* features */
.feature .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--amber-50); border: 1px solid #f3dfa3; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* roles */
.role { border-top: 4px solid var(--line); }
.role.you { border-top-color: var(--amber); }
.role.sup { border-top-color: var(--green); }
.role.inv { border-top-color: var(--ink); }
.role .t { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px 26px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--amber); box-shadow: var(--shadow); padding: 29px 25px 25px; }
.plan .ribbon { position: absolute; top: -13px; left: 24px; background: var(--amber); color: var(--ink); font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan .name { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; color: var(--text); }
.plan .price b { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan .price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan .per { font-size: 14.5px; color: var(--muted); margin: 8px 0 20px; min-height: 2.9em; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.plan li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--body); }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5.2-5.4' fill='none' stroke='%231f7a55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat; }
.plan .btn { margin-top: auto; }
.price-notes { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; font-size: 15px; color: var(--body); }
.price-notes p { padding-left: 16px; position: relative; }
.price-notes p::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
@media (max-width: 760px) { .price-notes { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; font-size: 17px; color: var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 22px 20px; font-size: 16px; color: var(--body); }
.faq .a p + p { margin-top: 10px; }

/* ── Call to action band ─────────────────────────────────────────────────── */
.band { background: var(--ink); color: #c9d1dc; padding: 78px 0; text-align: center; }
.band h2 { color: #fff; max-width: 18em; margin: 0 auto 14px; }
.band p { max-width: 36em; margin: 0 auto 28px; font-size: 18px; }
.band .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.band .btn-ghost { color: #fff; border-color: #3a424e; }
.band .btn-ghost:hover { border-color: #fff; color: #fff; }
.band .note { margin: 20px auto 0; font-size: 14.5px; color: #8a99ad; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink-2); color: #9aa6b6; padding: 56px 0 28px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #c9d1dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid #262c35; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; color: #7f8b9b; }

/* ── Document pages (privacy, terms, refunds) ────────────────────────────── */
.doc-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 60px 0 40px; }
.doc-head h1 { font-size: clamp(32px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 10px; }
.doc-head .meta { color: var(--muted); font-size: 15px; }
.doc { max-width: 780px; margin: 0 auto; padding: 44px 24px 84px; }
.doc .intro p { font-size: 18.5px; color: var(--text); }
.doc h2 { font-size: 24px; margin: 44px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); letter-spacing: -0.02em; }
.doc h3 { font-size: 18px; margin: 24px 0 10px; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.doc li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.doc li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.doc b, .doc strong { color: var(--text); font-weight: 650; }
.callout { border-left: 4px solid var(--amber); background: var(--amber-50); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 20px 0; color: var(--text); font-size: 16px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--soft); color: var(--text); font-weight: 650; }
.table-wrap { overflow-x: auto; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 26px 0 8px; }
@media (max-width: 640px) { .summary-grid { grid-template-columns: 1fr; } }
.summary-grid .card h3 { margin-top: 0; }

/* ── The guide (/guide/…) ────────────────────────────────────────────────── */
/* Pages are written by scripts/build-guide.mjs from site-src/guide/. */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.doc-head .lede { margin-top: 6px; }

.guide-wrap { max-width: var(--w); margin: 0 auto; padding: 40px 24px 84px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.guide-nav { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 15px; }
.guide-nav h4 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 12px; }
.guide-nav ul { list-style: none; display: grid; gap: 2px; }
.guide-nav a { display: block; padding: 8px 12px; border-left: 3px solid transparent; border-radius: 0 6px 6px 0; color: var(--body); text-decoration: none; line-height: 1.35; }
.guide-nav a:hover { background: var(--soft); color: var(--ink); }
.guide-nav a[aria-current="page"] { background: var(--amber-50); border-left-color: var(--amber); color: var(--ink); font-weight: 600; }
.guide-nav .help { margin: 22px 0 0 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  /* minmax(0, …): a wide table must scroll inside its own box, not stretch the page. */
  .guide-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 28px; }
  /* On a phone the page comes first and the list of topics follows it. */
  .guide-nav { position: static; max-height: none; order: 2; border-top: 1px solid var(--line); padding-top: 28px; }
}

.guide-doc { max-width: 760px; margin: 0; padding: 0; }
.guide-doc > :first-child { margin-top: 0; }
.guide-doc h2 { scroll-margin-top: 92px; }
.guide-doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 34px; }
.guide-doc h3 { scroll-margin-top: 92px; }
.guide-doc ol { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; }
.guide-doc ol > li { position: relative; padding-left: 44px; margin-bottom: 14px; counter-increment: step; }
.guide-doc ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--amber); font-size: 13.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.guide-doc ol ul { margin: 8px 0 0; }
.guide-doc dl { margin: 0 0 16px; }
.guide-doc dt { color: var(--text); font-weight: 650; margin-top: 14px; }
.guide-doc dd { margin: 2px 0 0; }

/* The words on a button or label, exactly as the app shows them. */
.ui { display: inline-block; font-size: 0.82em; font-weight: 700; letter-spacing: 0.04em; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; line-height: 1.5; white-space: nowrap; vertical-align: 0.06em; }

/* A long button name must wrap on a phone rather than push the page sideways. */
@media (max-width: 600px) { .ui { white-space: normal; } }

/* Who a section is for. */
.who { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--body); background: #fff; }
.chip.owner { background: var(--amber-50); border-color: #f3dfa3; color: var(--ink); }
.chip.sup { background: var(--green-50); border-color: #bfe0cf; color: #14553a; }
.chip.appr { background: #eef1f6; border-color: #d5dbe6; color: var(--ink); }

.onpage { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px; }
.onpage h4 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.onpage ul { margin: 0; columns: 2; column-gap: 32px; }
.onpage li { margin-bottom: 6px; break-inside: avoid; padding-left: 0; }
.onpage li::before { display: none; }
@media (max-width: 600px) { .onpage ul { columns: 1; } }

.callout.info { border-left-color: #8a99ad; background: var(--soft); }
.callout.warn { border-left-color: var(--red); background: var(--red-50); }
.callout p:last-child { margin-bottom: 0; }

/* A screenshot of the phone app beside the words that explain it. */
.with-shot { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; align-items: start; margin: 8px 0 20px; }
.with-shot > div > :last-child { margin-bottom: 0; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 18px; border: 6px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; line-height: 1.45; }
@media (max-width: 680px) { .with-shot { grid-template-columns: 1fr; } .with-shot .shot { max-width: 250px; margin: 0 auto; } }

.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 18px 0 8px; }
@media (max-width: 640px) { .topic-grid { grid-template-columns: 1fr; } }
.topic { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; text-decoration: none; color: var(--body); transition: border-color 0.15s, box-shadow 0.15s; }
.topic:hover { border-color: var(--ink); box-shadow: var(--shadow); color: var(--body); }
.topic b { display: block; color: var(--text); font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 4px; }
.topic span { font-size: 15px; }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 18px 0 8px; }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr; } }
.quick .card { border-top: 4px solid var(--amber); }
.quick .card.sup { border-top-color: var(--green); }
.quick .card h3 { margin-top: 0; }
.quick .card ol { margin-bottom: 0; }
.quick .card ol > li { font-size: 15.5px; margin-bottom: 10px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--ink); }
.pager a small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; text-align: left; } }

.helped { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* ── Films (/films/…, and the trailer on the home page) ──────────────────── */
/* Pages are written by scripts/build-films.mjs from site-src/films/films.mjs. */
/* A film is 9 by 16, like the phone it was filmed for. .film-frame holds either
   its still picture (a link, .film-play) or the film itself. */
.film-frame { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 2px 4px rgba(11, 12, 14, 0.08), 0 20px 44px rgba(11, 12, 14, 0.18); }
.film-frame img, .film-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.film-play .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--amber); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5); transition: transform 0.15s; }
.film-play .play::before { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--ink); }
.film-play:hover .play { transform: scale(1.07); }
.film-play .len { position: absolute; right: 12px; top: 12px; font-size: 12.5px; font-weight: 700; line-height: 1.5; color: #fff; background: rgba(11, 12, 14, 0.78); border: 1px solid #2c333d; border-radius: 6px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* The trailer in the home page's hero. */
.hero .film-col { width: 100%; max-width: 310px; margin: 0 auto; }
.hero .caption a { white-space: nowrap; }

/* A link from a feature to the film that shows it. */
.watch { margin-top: 12px; font-size: 14.5px; font-weight: 600; }
.card .watch { font-size: 14.5px; }
.watch a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.watch a:hover { text-decoration: underline; }
.watch a::before { content: ""; flex: none; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.after-grid { margin-top: 22px; }

/* /films/: the trailer, then the films in rows of three. */
.film-first { padding: 64px 0; }
.film-feature { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 60px; align-items: center; }
.film-feature p + p { margin-top: 12px; }
.film-feature .cta-row { margin-top: 26px; }
.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.film-card .film-frame { max-width: 270px; }
.film-card h3 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.015em; margin: 18px 0 6px; max-width: 16em; }
.film-card h3 a { color: var(--text); text-decoration: none; }
.film-card h3 a:hover { text-decoration: underline; }
.film-card p { font-size: 15.5px; max-width: 20em; }
@media (max-width: 860px) {
  .film-first { padding: 44px 0; }
  .film-feature { grid-template-columns: 1fr; gap: 32px; }
  .film-feature .film-col { width: 100%; max-width: 310px; margin: 0 auto; }
}
@media (max-width: 760px) {
  /* On a phone the list is a list: a small picture beside the words. The film
     itself opens on its own page, at the full width of the screen. */
  .film-grid { grid-template-columns: 1fr; gap: 0; }
  .film-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; align-content: center; padding: 18px 0; border-top: 1px solid var(--line); }
  .film-card:last-child { border-bottom: 1px solid var(--line); }
  .film-card .film-frame { grid-row: 1 / span 2; border-radius: 10px; box-shadow: none; }
  .film-card h3 { margin: 0 0 4px; align-self: end; font-size: 17px; }
  .film-card p { align-self: start; }
  .film-card .play { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .film-card .play::before { left: 14px; top: 11px; border-width: 7px 0 7px 11px; }
  .film-card .len { display: none; }
}

/* /films/<film>: the film beside what it shows. */
.film-page { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 60px; align-items: start; padding-top: 48px; padding-bottom: 76px; }
.film-page .film-col { position: sticky; top: 96px; }
.film-page .film-frame { height: min(760px, calc(100vh - 130px)); min-height: 440px; }
.film-text { max-width: 34em; padding-top: 8px; }
.film-text h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.film-text p { margin-bottom: 14px; }
.film-text .film-meta { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.film-text .film-guide { font-size: 15.5px; }
.film-text .cta-row { margin-top: 24px; }
.film-send { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.film-send h2 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.film-send p { font-size: 15.5px; }
.film-send .cta-row { margin-top: 16px; }
.film-send .film-address { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }
.film-send .film-address b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .film-page { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; padding-bottom: 56px; }
  .film-page .film-col { position: static; width: 100%; max-width: 380px; margin: 0 auto; }
  .film-page .film-frame { height: auto; min-height: 0; }
}

/* In the guide: a small picture beside the section a film shows. It opens the
   film's own page (scripts/build-guide.mjs writes it where the source has a
   data-film marker). */
.film-link { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; align-items: center; max-width: 540px; margin: 6px 0 22px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--body); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.film-link:hover { color: var(--body); border-color: #d9dde4; box-shadow: var(--shadow); }
.film-link .film-frame { border-radius: 7px; box-shadow: none; }
.film-link .play { width: 30px; height: 30px; margin: -15px 0 0 -15px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.film-link .play::before { left: 12px; top: 9px; border-width: 6px 0 6px 9px; }
.film-link small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.film-link b { display: block; font-size: 16.5px; line-height: 1.3; margin: 3px 0 2px; }
.film-link .film-words > span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

@media print {
  .film-link { display: none; }
  .site-header, .site-footer, .guide-nav, .pager, .band { display: none; }
  .guide-wrap { display: block; padding: 0; }
  .doc-head { background: none; border: 0; padding: 0 0 12px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .faq summary::after, .topic { transition: none; } }
