/*
 * One stylesheet, no framework, no build step.
 *
 * ## Light is the default and dark is a choice
 *
 * This site used to be dark-only, on the brief's reasoning that a poster hangs
 * in a dark lobby. That is a nice line and it was the wrong call: a producer
 * reads this on a phone in daylight, and a page that decides to be dark on his
 * behalf is a decision he did not make. So the tokens below are the light
 * theme, `:root[data-theme="dark"]` redefines the same names, and nothing else
 * in this file knows which one is on. `theme.js` writes the attribute before
 * first paint and remembers the choice.
 *
 * The group-wide rule this follows is in ~/.claude/CLAUDE.md; the reference
 * implementation it copies is Hunt Browser's admin stylesheet.
 *
 * ## The colours
 *
 * Warm paper and a near-black with brown in it, not grey — the site is for film
 * work and a neutral grey page looks like a bank. One accent, the projector
 * amber from the logo (#ffb020), used as a fill. It is far too light to be text
 * on paper, so links and small accent type use `--accent-text`, a deeper burnt
 * amber that clears 4.5:1 on both themes. Those are two tokens on purpose: the
 * day somebody sets `color: var(--accent)` on body text, it will be unreadable,
 * and it is worth making that hard.
 */

:root {
  color-scheme: light;

  --paper: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --border: #e5ded2;
  --border-strong: #cfc5b4;
  --text: #17140f;
  --muted: #6b6356;

  --accent: #ffb020;
  --accent-ink: #17140f;
  --accent-text: #9a5000;
  --accent-soft: #fff4e0;

  --good: #1f7a4c;
  --good-soft: #e4f3ea;
  --bad: #b3362f;
  --bad-soft: #fbeceb;

  --shadow-1: 0 1px 2px rgb(23 20 15 / 7%);
  --shadow-2: 0 1px 2px rgb(23 20 15 / 6%), 0 14px 34px -18px rgb(23 20 15 / 28%);

  --wrap: 1120px;
  --radius: 12px;
  --radius-sm: 8px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  /* The brief asks for a self-hosted condensed display face. There is not one
     licensed yet (OWNER-ACTIONS A-25), so headings are the system sans at its
     heaviest weight with the tracking pulled in, which is the closest thing
     available without shipping a font nobody bought. */
  --font-display: var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #141210;
  --surface: #1c1916;
  --surface-2: #24201c;
  --border: #322c26;
  --border-strong: #4a4239;
  --text: #f2efe9;
  --muted: #a69c8e;

  --accent: #ffb020;
  --accent-ink: #1a1205;
  --accent-text: #ffc155;
  --accent-soft: #2a2114;

  --good: #4cc584;
  --good-soft: #15301f;
  --bad: #f0786b;
  --bad-soft: #341a17;

  --shadow-1: none;
  --shadow-2: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 14px; top: 14px; z-index: 20;
  background: var(--accent); color: var(--accent-ink);
  padding: 11px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 10px 26px;
  min-height: 66px;
  /* `padding-block`, not the `padding: 10px 0` shorthand this used to be: the
     shorthand also set the horizontal padding to zero, which silently cancelled
     the 22px gutter `.wrap` supplies and ran the header edge-to-edge at every
     width. Invisible on a desktop, where the wrap is narrower than the window
     anyway; on a phone it clipped the logo against the left edge. */
  padding-block: 10px;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  /* Without this the logo is the one flex item that can shrink, and on a narrow
     header it does — to a sliver of a k. */
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
}
/* The logo is inlined rather than an <img> so its strokes inherit the text
   colour and it flips with the theme without a second file or a second
   request. See apps/site/brand/. */
.wordmark svg { height: 30px; width: auto; display: block; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 0 1 auto;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
}
.site-header nav a:hover { color: var(--text); background: var(--surface-2); }
.site-header nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.header-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* Below this the three groups will not sit on one line without the nav being
   crushed, so the nav takes a row of its own under the logo and the buttons. */
@media (max-width: 420px) {
  .wordmark svg { height: 26px; }
}

@media (max-width: 859px) {
  .site-header nav {
    order: 3;
    flex-basis: 100%;
    margin: 2px -11px 0;
    border-top: 1px solid var(--border);
    padding-top: 8px;
  }
}

/* The theme toggle. Labelled with the mode it switches *to*, because a button
   captioned with the state you are already in is a riddle. */
.theme-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 15px; height: 15px; }
@media (max-width: 520px) {
  .theme-toggle span { position: absolute; left: -9999px; }
  .theme-toggle { padding: 9px 10px; }
}
/* Each icon shows in one theme only, so the button needs no JS to stay right. */
.theme-toggle .i-dark { display: inline; }
.theme-toggle .i-light { display: none; }
:root[data-theme="dark"] .theme-toggle .i-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .i-light { display: inline; }
/* Revealed only once theme.js has set data-js on <html>: before that there is
   nothing to toggle to, and a dead control is worse than no control. */
:root[data-js] .theme-toggle { display: inline-flex; }

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 68px 0 54px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(70ch 44ch at 12% -18%, var(--accent-soft) 0%, transparent 62%),
    var(--paper);
}
.hero h1 {
  font-size: clamp(36px, 6.4vw, 62px);
  margin: 0 0 20px;
  max-width: 17ch;
}
.hero .lede {
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 30px;
}
.hero.slim { padding: 54px 0 40px; }
.hero.slim h1 { font-size: clamp(32px, 5vw, 48px); max-width: 20ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: var(--shadow-1);
}
.button:hover { filter: brightness(1.05); }
.button.ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}
.button.ghost:hover { background: var(--surface-2); filter: none; }
.button.small { font-size: 14.5px; padding: 9px 16px; }

/* The channel strip under the hero. Names of platforms we run, not client
   logos — there are no clients yet and a logo wall would have to be invented. */
.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.channels strong {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------- blocks */

.block { padding: 58px 0; border-bottom: 1px solid var(--border); }
.block:last-of-type { border-bottom: 0; }
.block.tint { background: var(--surface-2); }
.block h2 {
  font-size: clamp(25px, 3.4vw, 36px);
  margin: 0 0 14px;
  max-width: 24ch;
}
.block h3 { font-size: 17.5px; margin: 0 0 7px; font-weight: 700; }
.block p { max-width: 66ch; margin: 0 0 15px; }
.block .lede { color: var(--muted); font-size: clamp(17px, 2vw, 19.5px); max-width: 62ch; }

.points {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  grid-template-columns: 1fr;
}
.point {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-1);
}
.point p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* The numbered variant, for anything that is a sequence rather than a set. */
.points.numbered { counter-reset: step; }
.points.numbered .point { position: relative; padding-top: 24px; }
.points.numbered .point::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- pricing */

.pricing {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 32px 0 14px;
  align-items: start;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.price-card h3 {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
}
.price-card .price {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.4vw, 33px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  font-variant-numeric: tabular-nums;
}
.price-card ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15.5px;
}
.price-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.price-card .detail {
  color: var(--muted);
  font-size: 14.5px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pricing-note { color: var(--muted); font-size: 15px; max-width: 70ch; }

/* The provenance block. The most unusual thing on the site and the one most
   worth reading, so it is a panel rather than small print. */
.provenance {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14.5px;
  padding: 16px 18px;
  margin-top: 28px;
  max-width: 80ch;
}
.provenance p { margin: 0; max-width: none; }
.provenance strong { color: var(--text); }
.provenance code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ------------------------------------------------------------------ faq */

.faq { margin-top: 28px; max-width: 78ch; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 15px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent-text);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 11px 0 0; font-size: 15.5px; }

/* ----------------------------------------------------------------- legal */

/* Terms and privacy. Narrow measure, generous leading, numbered sections —
   these are read end to end by someone deciding whether to sign, and the one
   page on the site where the typography's only job is not getting in the way. */
.legal { max-width: 72ch; }
.legal h2 {
  font-size: 21px;
  margin: 36px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: none;
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.legal p { font-size: 16.5px; color: var(--text); max-width: none; }
.legal .entity-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.legal .entity-block strong { color: var(--text); }

/* ----------------------------------------------------------------- form */

form.enquiry { max-width: 620px; margin-top: 8px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  font-size: 16px; /* 16px or iOS zooms the page on focus */
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { color: var(--muted); font-size: 13.5px; margin: 7px 0 0; }
/* The honeypot. Hidden from people, left in the DOM for whatever fills every
   field it finds. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button[type="submit"] {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-1);
}
button[type="submit"]:hover { filter: brightness(1.05); }

.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  margin: 20px 0;
  max-width: 68ch;
}
.notice.good { border-left-color: var(--good); background: var(--good-soft); }
.notice.bad { border-left-color: var(--bad); background: var(--bad-soft); }

/* --------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 44px 0 56px;
}
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
.footer-brand svg { height: 26px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin: 0 0 6px; max-width: 34ch; }
.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer-col a:hover { text-decoration: underline; color: var(--accent-text); }

/* The entity line. Small type, but it is the one thing on this site that is
   legally required to be here — Companies Act 2013 s.12(3)(c) and the brief's
   §8. It is suppressed rather than printed as a placeholder while A-13 is
   outstanding, because a live site reading "a brand of TO BE CONFIRMED" is the
   missing fact, advertised. */
.footer-legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
}
.footer-legal p { margin: 0 0 6px; max-width: 86ch; }
.footer-legal .pending {
  color: var(--accent-text);
}

/* ---------------------------------------------------------- wider screens */

@media (min-width: 720px) {
  .points { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .block { padding: 72px 0; }
  .hero { padding: 92px 0 68px; }
  .hero.slim { padding: 70px 0 50px; }
}

@media (min-width: 1040px) {
  .points { grid-template-columns: repeat(3, 1fr); }
  .points.two-up { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(3, 1fr); }
}

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

@media print {
  .site-header, .site-footer nav, .theme-toggle, .actions { display: none; }
  body { background: #fff; color: #000; }
}
