/*
 * CreatorDesk, the marketing site.
 *
 * Light by default, dark when asked for. White ground, one indigo accent, soft
 * shadows instead of borders, and a lot of space between sections. That is a
 * deliberate move away from the app's near black gradient identity: a marketing
 * page is a two minute visit by someone who has never heard of us, and a wall
 * of black reads as a crypto product rather than as a business tool.
 *
 * Three theme states, and all three have to be handled:
 *   no attribute        follow the operating system
 *   data-theme=light    forced light
 *   data-theme=dark     forced dark
 *
 * Every colour is defined once on bare :root. The dark blocks only redefine
 * tokens. Nothing gets its only definition inside a media query.
 */

/* ── tokens: light ───────────────────────────────────────────────────────── */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F7F9;
  --bg-tint: #F0F4F7;
  --surface: #FFFFFF;
  --border: rgba(11, 11, 18, 0.09);
  --border-strong: rgba(11, 11, 18, 0.16);
  --text: #0B0B12;
  --text-2: #55555F;
  --text-3: #85858F;

  /*
   * #0A3557 in light, #86C2F0 in dark. Not one colour at two brightnesses:
   * they are opposite ends, and what sits on them flips with them. White on
   * #0A3557 is 12.65:1; on #86C2F0 it is 1.91:1 and unreadable. See the dark
   * block for the pairing.
   */
  --accent: #0A3557;
  --accent-hover: #12476F;
  --accent-text: #0A3557;
  --accent-soft: #E7EDEF;
  --on-accent: #FFFFFF;
  --grad-card: linear-gradient(142deg, #1C5581 0%, #0A3557 52%, #041B2D 100%);

  --green: #0F7A4A;
  --green-soft: #E4F5EC;
  --amber: #8A5200;
  --amber-soft: #FDF0DC;
  --rose: #C22C4A;
  --rose-soft: #FCE9ED;
  /* The third way in. Yellow so it reads as an alternative rather than as a
     weaker version of the button above it. */
  --yellow: #F6C042;
  --on-yellow: #1E1503;

  --shadow-sm: 0 1px 2px rgba(11, 11, 18, 0.05), 0 4px 14px rgba(11, 11, 18, 0.05);
  --shadow-md: 0 2px 6px rgba(11, 11, 18, 0.06), 0 18px 44px rgba(11, 11, 18, 0.09);
  --shadow-lg: 0 4px 10px rgba(11, 11, 18, 0.07), 0 32px 80px rgba(11, 11, 18, 0.13);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --container: 1280px;
  --prose: 700px;
  --header-h: 68px;
}

/* ── tokens: dark ────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #000000;
    --bg-alt: #0B0B0E;
    --bg-tint: #071620;
    --surface: #131317;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.20);
    --text: #FFFFFF;
    --text-2: rgba(255, 255, 255, 0.66);
    --text-3: rgba(255, 255, 255, 0.44);

    --accent: #86C2F0;
    --accent-hover: #A2D2F6;
    --accent-text: #86C2F0;
    --accent-soft: rgba(134, 194, 240, 0.18);
    /*
     * Dark text on the accent, and this is the whole reason the pairing is a
     * token. White on #86C2F0 measures 1.91:1 and is unreadable; this reaches
     * 8.75:1. The light theme's accent is dark and takes white, the dark
     * theme's is light and takes near black, and every filled surface reads
     * `--on-accent` rather than assuming one of them.
     */
    --on-accent: #06202F;
    --grad-card: linear-gradient(142deg, #A2D2F6 0%, #86C2F0 46%, #2E6C99 100%);

    --green: #46D68F;
    --green-soft: rgba(70, 214, 143, 0.14);
    --amber: #F5B544;
    --amber-soft: rgba(245, 181, 68, 0.14);
    --rose: #FF7B90;
    --rose-soft: rgba(255, 123, 144, 0.14);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.5), 0 18px 44px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.6), 0 32px 80px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme='dark'] {
  --bg: #000000;
  --bg-alt: #0B0B0E;
  --bg-tint: #071620;
  --surface: #131317;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.44);

  --accent: #86C2F0;
  --accent-hover: #A2D2F6;
  --accent-text: #86C2F0;
  --accent-soft: rgba(134, 194, 240, 0.18);
  /*
   * Dark text on the accent, and this is the whole reason the pairing is a
   * token. White on #86C2F0 measures 1.91:1 and is unreadable; this reaches
   * 8.75:1. The light theme's accent is dark and takes white, the dark
   * theme's is light and takes near black, and every filled surface reads
   * `--on-accent` rather than assuming one of them.
   */
  --on-accent: #06202F;
  --grad-card: linear-gradient(142deg, #A2D2F6 0%, #86C2F0 46%, #2E6C99 100%);

  --green: #46D68F;
  --green-soft: rgba(70, 214, 143, 0.14);
  --amber: #F5B544;
  --amber-soft: rgba(245, 181, 68, 0.14);
  --rose: #FF7B90;
  --rose-soft: rgba(255, 123, 144, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.5), 0 18px 44px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.6), 0 32px 80px rgba(0, 0, 0, 0.6);
}

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

/* The UA rule for [hidden] is `display: none` at element specificity, so any
   class that sets display beats it. Every screen in the demo frame sets
   `display: grid`, which is how all nine ended up stacked on top of each other
   while the JavaScript believed only one was showing. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Google Sans Flex', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── layout ──────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/*
 * A fixed 1160px column looks composed on a laptop and marooned on a 27 inch
 * screen, where the content huddles in the middle third with a field of white
 * either side. The container grows with the viewport and then stops, because
 * a line of prose past about 80 characters gets hard to track back from.
 */
@media (min-width: 1500px) {
  :root { --container: 1400px; }
  .container { padding: 0 40px; }
}
@media (min-width: 1900px) {
  :root { --container: 1560px; }
}
.prose { max-width: var(--prose); }
.band { padding: 84px 0; }
.band-sm { padding: 56px 0; }
.band-alt { background: var(--bg-alt); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── type ────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(36px, 4.6vw, 54px); font-weight: 700; letter-spacing: -0.032em; }
h2 { font-size: clamp(28px, 3.7vw, 42px); font-weight: 700; }
h3 { font-size: clamp(19px, 2.1vw, 23px); }
h4 { font-size: 17px; letter-spacing: -0.012em; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); line-height: 1.5; }
.dim { color: var(--text-2); }
.fine { font-size: 14px; color: var(--text-3); line-height: 1.5; }
.strike { text-decoration: line-through; color: var(--text-3); }
.figure { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 9px 17px; font-size: 15px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.link-arrow { color: var(--accent-text); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: '→'; transition: transform 160ms ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ── header ──────────────────────────────────────────────────────────────── */
.announce {
  position: relative;
  z-index: 60;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  text-align: center;
  padding: 9px 44px 9px 24px;
}
.announce b { font-weight: 600; }
.announce-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--on-accent); padding: 4px 8px; line-height: 1; }
.announce-close:hover { color: var(--on-accent); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; }
.wm { font-size: 25px; font-weight: 700; letter-spacing: -0.035em; }
.wm-a { color: var(--accent-text); }
.footer .wm, .sheet .wm { font-size: 23px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav-item { position: relative; }
.nav-item::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--text-2);
  transition: color 140ms ease, background 140ms ease;
}
.nav-link:hover, .nav-item:hover .nav-link { color: var(--text); background: var(--bg-alt); }
.nav-link .chev { width: 9px; height: 9px; opacity: 0.55; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-actions .login { padding: 8px 12px; font-size: 15px; color: var(--text-2); border-radius: var(--r-sm); }
.nav-actions .login:hover { color: var(--text); background: var(--bg-alt); }

.theme-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--text-2);
}
.theme-toggle:hover { background: var(--bg-alt); color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
:root[data-theme='dark'] .theme-toggle .moon { display: block; }
:root[data-theme='dark'] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .moon { display: block; }
  :root:not([data-theme='light']) .theme-toggle .sun { display: none; }
}

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}
.menu-1 { grid-template-columns: 1fr; min-width: 290px; }
.nav-item:hover .menu, .nav-item.open .menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.menu a { display: block; padding: 10px 13px; border-radius: var(--r-md); }
.menu a:hover { background: var(--bg-alt); }
/* Both were inline spans, so the title and its description ran together into
   one line of mixed weights. They are two lines, so they are two blocks. */
.menu .mt { display: block; font-size: 15px; font-weight: 500; }
.menu .md { display: block; font-size: 13.5px; color: var(--text-3); line-height: 1.4; margin-top: 2px; }

.burger { display: none; padding: 8px; }
.burger svg { width: 22px; height: 22px; }

.sheet { position: fixed; inset: 0; z-index: 70; background: var(--bg); padding: 22px 24px 40px; overflow-y: auto; display: none; }
.sheet.open { display: block; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sheet h5 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 26px 0 8px; font-weight: 600; }
.sheet a { display: block; padding: 11px 0; font-size: 18px; border-bottom: 1px solid var(--border); }
.sheet .btn { display: flex; margin-top: 26px; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 84px 0 76px; }
/*
 * The wash behind a hero.
 *
 * It used to be two radial gradients on an oversized box with `overflow:
 * hidden` on the section, which clipped them: the colour was still solid where
 * the box ended, so every page carried a pale blue rectangle with three visible
 * edges under the header. This is one ellipse centred above the top edge that
 * has faded to nothing well inside its own box, so there is no edge to see.
 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 78% at 50% -18%, var(--accent-soft) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 19ch; }
.hero .lede { max-width: 46ch; margin-top: 20px; }
.hero .btn-row { margin-top: 32px; }
.hero .fine { margin-top: 16px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }

/* ── cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h4 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.card-plain { box-shadow: none; background: transparent; border-color: transparent; padding: 0; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.flip > :first-child { order: 2; }

.icon-badge {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 16px;
}
.icon-badge svg { width: 20px; height: 20px; }

/* ── the illustrated interface ───────────────────────────────────────────── */
/*
 * These are drawings, not screenshots.
 *
 * Two reasons, and both are the point. The app's interface is not finished, so
 * pinning the site to today's build means redrawing the site every time a
 * screen moves. And a screenshot of a working account carries a creator's
 * business on it: who she works with, what she charges, when she gets paid.
 * None of that belongs on a public page, and blurring it out looks like
 * something is being hidden.
 *
 * So the site shows the shape of the product rather than a photograph of it.
 * No names, no brands, no account numbers, no rupee figures. Where a quantity
 * matters it is a proportion or a bar. What is left is what a creator is
 * actually buying: a deal moving through its stages, a reminder before a
 * deadline, an invoice going out, money arriving.
 */
.ui {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: grid;
  gap: 14px;
}
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui-title { font-size: 14px; font-weight: 600; }
.ui-sub { font-size: 12.5px; color: var(--text-3); }

.ui-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
}
.ui-avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.ui-avatar svg { width: 17px; height: 17px; }
.ui-label { font-size: 14px; font-weight: 500; }
.ui-meta { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-2);
  white-space: nowrap;
}
.chip-blue { background: var(--accent-soft); color: var(--accent-text); }
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-rose { background: var(--rose-soft); color: var(--rose); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
button.chip { cursor: pointer; transition: background 140ms ease, color 140ms ease; }
button.chip:hover { background: var(--border); color: var(--text); }
button.chip.chip-blue:hover { background: var(--accent-soft); color: var(--accent-text); }

/* A deal's stages, as a track rather than a list. */
.track { display: flex; align-items: center; gap: 0; }
.track-step { display: grid; justify-items: center; gap: 6px; flex: 1; position: relative; }
.track-dot { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--bg-alt); color: var(--text-3); font-size: 11px; z-index: 1; }
.track-step.done .track-dot { background: var(--green); color: #fff; }
.track-step.now .track-dot { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.track-step span { font-size: 11.5px; color: var(--text-3); }
.track-step.done span, .track-step.now span { color: var(--text-2); }
.track-step::before { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--border); }
.track-step:first-child::before { display: none; }
.track-step.done::before, .track-step.now::before { background: var(--green); }

/* Bars stand in for amounts. A proportion says what a figure would, and it is
   nobody's actual money. */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; }
.bar { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--accent-soft); }
.bar.on { background: var(--accent); }
.bar-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); }

.ring { --pct: 68; width: 96px; height: 96px; border-radius: 999px; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--bg-alt) 0); }
.ring i { width: 74px; height: 74px; border-radius: 999px; background: var(--surface); display: grid; place-items: center; font-style: normal; font-size: 18px; font-weight: 600; }

/* A phone notification, which is where the product does its most useful work. */
.note {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  align-items: center;
}
.note .n-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); }
.note .n-icon svg { width: 15px; height: 15px; }
.note .n-title { font-size: 13.5px; font-weight: 600; }
.note .n-body { font-size: 12.5px; color: var(--text-3); }

/* An invoice, as a document rather than as data. */
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 22px; display: grid; gap: 13px; }
.doc-line { height: 9px; border-radius: 4px; background: var(--bg-alt); }
.doc-line.w40 { width: 40%; } .doc-line.w55 { width: 55%; } .doc-line.w70 { width: 70%; } .doc-line.w25 { width: 25%; }
.doc-split { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.doc-qr { width: 62px; height: 62px; border-radius: 10px; background:
  repeating-conic-gradient(var(--text) 0 25%, transparent 0 50%) 50% / 14px 14px; opacity: .82; }
.doc-rule { height: 1px; background: var(--border); }

/* The four statutory advance tax dates. Public facts, and the reason the page
   can show a calendar at all without showing anyone's money. */
.cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cal div { text-align: center; padding: 14px 8px; border-radius: var(--r-md); background: var(--bg-alt); }
.cal b { display: block; font-size: 15px; font-weight: 600; }
.cal span { font-size: 11.5px; color: var(--text-3); }
.cal .soon { background: var(--accent-soft); color: var(--accent-text); }
.cal .soon span { color: var(--accent-text); opacity: .8; }

/* The rate card, as the object a creator sends. */
.ratecard { border-radius: var(--r-lg); padding: 22px; color: #fff; display: grid; gap: 14px;
  background: var(--grad-card); box-shadow: var(--shadow-md); }
.ratecard .rc-top { display: flex; align-items: center; gap: 12px; }
.ratecard .rc-face { width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,.24); }
.ratecard .rc-line { height: 9px; border-radius: 4px; background: rgba(255,255,255,.34); }
.ratecard .rc-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.ratecard .rc-row:last-child { border-bottom: none; }
.ratecard .rc-bar { width: 62px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.32); }
.ratecard .rc-bar i { display: block; height: 100%; border-radius: 4px; background: #fff; }

.float { position: absolute; box-shadow: var(--shadow-lg); }


/* ── the app, drawn ──────────────────────────────────────────────────────── */
/*
 * Not a screenshot, and not a wireframe either.
 *
 * A screenshot pins the site to an interface that is still changing, and a real
 * workspace on a public page carries a creator's brands, rates and bank details
 * with it. A grey wireframe solves both and sells nothing.
 *
 * So these are drawn at full fidelity and filled with invented data: Preeti
 * Nainwal, a phone number that counts down from nine, a PAN that spells the
 * alphabet. The interface reads as real because it is complete, and nobody's
 * business is on it. See src/demo.mjs.
 */
.app {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 62px 1fr;
  grid-template-rows: 1fr auto;
  font-size: 13px;
  /*
   * Fixed, and this is the important part.
   *
   * Screens are different lengths, so a frame that sized itself to its content
   * changed height on every click, and the headline sitting beside it slid up
   * and down the page. The demo is a window into a product; a window does not
   * resize when you look at a different room.
   */
  height: 548px;
}
.app-rail { grid-row: 1; background: var(--bg-alt); border-right: 1px solid var(--border); padding: 14px 0; display: grid; gap: 6px; align-content: start; justify-items: center; }
.app-rail i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); }
.app-rail i.on { background: var(--accent); color: var(--on-accent); }
.app-body { padding: 18px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-hi { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.app-date { font-size: 11.5px; color: var(--text-3); }
.app-avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; }

.stat-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; }
.stat { border-radius: var(--r-md); padding: 14px; background: var(--bg-alt); }
.stat .k { font-size: 11.5px; color: var(--text-3); }
.stat .v { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 3px; }
.stat .s { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.stat-hero { background: var(--accent); color: var(--on-accent); }
.stat-hero .k, .stat-hero .s { color: var(--on-accent); }
.stat-hero .v { font-size: 27px; }

.act-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.act { display: flex; align-items: center; gap: 7px; padding: 10px 11px; border-radius: var(--r-md); background: var(--bg-alt); font-size: 12px; font-weight: 500; }
.act span { color: var(--accent-text); display: grid; place-items: center; }

.list { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.list-head { padding: 10px 14px; background: var(--bg-alt); font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: 0.05em; text-transform: uppercase; }
.list-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 11px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--border); }
.list-row:first-of-type { border-top: none; }
.bavatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: -0.01em; }
.list-row .t { font-size: 13px; font-weight: 500; }
.list-row .m { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.list-row .r { text-align: right; }
.list-row .amt { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.app-screens { min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.app-screens::-webkit-scrollbar { width: 6px; }
.app-screens::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.rail-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); transition: background 140ms ease, color 140ms ease; }
.rail-btn:hover { background: var(--border); color: var(--text); }
.rail-btn.on { background: var(--accent); color: var(--on-accent); }
.app .app-back { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--bg-alt); color: var(--text-2); flex: none; }
.app-back:hover { background: var(--border-strong); color: var(--text); }

/* Anything with somewhere to go behaves like it does. */
/* `width: 100%` is right for a row or a tile and wrong for the back button,
   which was being stretched across the header and pushing the title into a
   column narrow enough to wrap "All deals" onto two lines. */
.app [data-go] { cursor: pointer; text-align: inherit; font: inherit; color: inherit; border: none; transition: transform 120ms ease, background 140ms ease; }
.app [data-go]:not(.app-back) { width: 100%; }

/*
 * `color: inherit` on the line above takes the page's text colour, which
 * outranks the rules giving a filled tile its own foreground. In dark mode the
 * page text is white so it looked right and the fault hid; in light mode the
 * number on the blue tile and the active rail icon were drawn in near black on
 * blue.
 *
 * Anything sitting on the accent is white. Hierarchy comes from size and
 * weight, never from fading a label towards its background.
 */
.app .stat-hero, .app .stat-hero *, .app .rail-btn.on, .app .rail-btn.on * { color: var(--on-accent); }
.app button.stat, .app button.list-row { display: grid; }
.app button.act { display: flex; }
.app [data-go]:hover { background: var(--border); }
/* The generic hover is more specific than the active state, so hovering the rail
   item you are already on made it look switched off. */
.app .rail-btn.on:hover { background: var(--accent-hover); color: var(--on-accent); }
.app .chip.chip-blue:hover { background: var(--accent-soft); }
.app button.stat-hero:hover { background: var(--accent-hover); }
.app [data-go]:active { transform: scale(0.995); }
.demo-hint { grid-column: 1 / -1; padding: 9px 18px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); background: var(--bg-alt); }

/* the printed invoice, at full fidelity */
.paper { background: #fff; color: #17130F; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px; font-size: 11.5px; line-height: 1.5; display: grid; gap: 14px; }
:root[data-theme='dark'] .paper { box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.paper .p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.paper .p-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: #17130F; }
.paper .p-muted { color: #78706A; font-size: 10.5px; line-height: 1.6; }
.paper .p-kind { font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: #A29A92; text-align: right; }
.paper .p-num { font-size: 12px; font-weight: 600; text-align: right; margin-top: 2px; }
.paper .p-due { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: #17130F; }
.paper .p-rule { height: 1px; background: #EDE9E4; }
.paper table { min-width: 0; font-size: 11px; }
.paper th, .paper td { padding: 7px 0; border-bottom: 1px solid #F2EFEB; color: #17130F; }
.paper th { font-size: 8.5px; letter-spacing: .13em; color: #A29A92; }
.paper .p-tot { display: flex; justify-content: space-between; font-size: 11px; padding: 4px 0; color: #4B443F; }
.paper .p-tot.big { font-size: 13px; font-weight: 600; color: #17130F; }
.paper .p-qr { width: 58px; height: 58px; border-radius: 8px; background: repeating-conic-gradient(#17130F 0 25%, #fff 0 50%) 50% / 13px 13px; }

/* ── tool pages ──────────────────────────────────────────────────────────── */
.tool-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.tool-nav a { padding: 9px 16px; border-radius: 999px; font-size: 14px; background: var(--bg-alt); color: var(--text-2); border: 1px solid transparent; }
.tool-nav a:hover { color: var(--text); border-color: var(--border-strong); }
.tool-nav a[aria-current] { background: var(--accent); color: var(--on-accent); }

.money-input { position: relative; }
.money-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 16px; pointer-events: none; }
.field .money-input input { padding-left: 32px; }

.preset-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.preset { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; background: var(--bg-alt); color: var(--text-2); border: 1px solid transparent; }
.preset:hover { border-color: var(--border-strong); color: var(--text); }

.tool-out { background: var(--accent); color: var(--on-accent); border-radius: var(--r-xl); padding: 28px; display: grid; gap: 14px; position: sticky; top: 92px; box-shadow: var(--shadow-md); }
.tool-out .fine, .tool-out .out-row span { color: var(--on-accent); }
.tool-out .out-row { border-bottom-color: color-mix(in srgb, var(--on-accent) 20%, transparent); }
.tool-out .out-row b { color: var(--on-accent); }
.tool-out .tool-note { color: var(--on-accent); }
.tool-out .out-big { color: var(--on-accent); }

.tool-card { display: block; }
.tool-card:hover { border-color: var(--border-strong); }

/* ── tabs ───────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 28px 0 24px; }
.tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-size: 13.5px; background: var(--surface); transition: all 150ms ease; }
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab[aria-selected='true'] { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.panel { display: none; }
.panel[data-active] { display: block; animation: fade 260ms ease; }
.split-tab { align-items: center; gap: 56px; grid-template-columns: 0.9fr 1.1fr; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── steps ──────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15.5px; margin: 0; }

/* ── tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
td { color: var(--text-2); }
td strong, td b { color: var(--text); font-weight: 500; }
tr:last-child td { border-bottom: none; }
.num-cell { text-align: right; font-variant-numeric: tabular-nums; }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--text-3); }

/* ── pricing ─────────────────────────────────────────────────────────────── */
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-md); max-width: 540px; }
.price-now { font-size: clamp(46px, 7vw, 66px); line-height: 1; }
.price-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0; }
.price-was { font-size: 22px; }
.offer-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13.5px; font-weight: 500; margin-bottom: 20px; }
.includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.includes li { display: grid; grid-template-columns: 18px 1fr; gap: 11px; font-size: 15.5px; color: var(--text-2); }
.includes .tick { color: var(--green); }

.term-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.term-pill { padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 14.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; transition: all 140ms ease; }
.term-pill:hover { border-color: var(--border-strong); color: var(--text); }
.term-pill[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }
.term-pill .save { font-size: 11.5px; padding: 2px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.save-badge { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.plan-cta { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-cta .btn { width: 100%; min-width: 0; }
.btn-trial { background: var(--yellow); color: var(--on-yellow); border: none; }
.btn-trial:hover { background: color-mix(in srgb, var(--yellow) 88%, #000); }
/* Directly beneath Subscribe, at the same width, so it reads as the other way
   of doing the same thing rather than as a wider, louder option. */
.plan-cta .btn-trial { grid-column: 1; }
@media (max-width: 520px) {
  .plan-cta { grid-template-columns: 1fr; }
  .plan-cta .btn-trial { width: 100%; }
}

/* ── faq ─────────────────────────────────────────────────────────────────── */
.faq { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--border); padding: 2px 22px; }
.faq details:last-of-type { border-bottom: none; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-size: 17px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 17px; font-size: 22px; color: var(--text-3); transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--text-2); font-size: 16px; }

/* ── tool pages ──────────────────────────────────────────────────────────── */
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.tool-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-sm); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--text-3); }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.out-big { font-size: clamp(32px, 5vw, 46px); line-height: 1.05; }
.out-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 15px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.out-row:last-child { border-bottom: none; }
.out-row b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.out-row span { color: var(--text-2); }
.tool-note { font-size: 13.5px; color: var(--text-3); line-height: 1.55; }

.rule { height: 1px; background: var(--border); margin: 4px 0; }
.advanced { border-top: 1px solid var(--border); padding-top: 16px; }
.advanced summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--accent-text); list-style: none; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: '+ '; }
.advanced[open] summary::before { content: '– '; }

.reach { display: grid; gap: 14px; }
.reach-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 26px 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms ease, transform 140ms ease;
}
.reach-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.reach-row .icon-badge { margin: 0; }
.reach-row h3 { font-size: 20px; margin-bottom: 4px; }
.reach-row p { font-size: 15.5px; margin: 0; }
.reach-value { font-size: 16px; font-weight: 500; color: var(--accent-text); white-space: nowrap; }
@media (max-width: 680px) {
  .reach-row { grid-template-columns: 40px minmax(0, 1fr); padding: 20px; gap: 16px; }
  /* A grid track's automatic minimum is its content, and an email address does
     not break, so the row grew past the screen on a narrow phone. */
  .reach-row > * { min-width: 0; }
  .reach-value { grid-column: 2; white-space: normal; overflow-wrap: anywhere; }
}

.legal-grid { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-body { max-width: 72ch; }
.legal-body h1 { font-size: clamp(32px, 4vw, 46px); }
.legal-nav-inner { position: sticky; top: calc(var(--header-h) + 32px); }
.legal-nav h5 { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; font-weight: 600; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legal-nav a { display: block; padding: 7px 0; font-size: 14.5px; color: var(--text-2); line-height: 1.4; }
.legal-nav a:hover { color: var(--accent-text); }
@media (max-width: 940px) {
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-nav-inner { position: static; }
  .legal-nav ul { grid-template-columns: 1fr 1fr; }
  .legal-body { max-width: none; }
}
@media (max-width: 560px) {
  .legal-nav ul { grid-template-columns: 1fr; }
}

/* ── legal ───────────────────────────────────────────────────────────────── */
.legal { padding: 56px 0 96px; }
.legal h2 { font-size: 25px; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--text-2); font-size: 16.5px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 18px; }
.legal .updated { color: var(--text-3); font-size: 14px; }
.legal a { color: var(--accent-text); }

/* ── closing ─────────────────────────────────────────────────────────────── */
.close-cta { text-align: center; padding: 88px 0; background: var(--bg-tint); }
.close-cta .btn-row { justify-content: center; margin-top: 28px; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 62px 0 40px; font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer h5 { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); margin: 0 0 15px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }

/* ── reveal ──────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 560ms ease, transform 560ms ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
  .footer-cols > :first-child { grid-column: span 3; }
}

@media (max-width: 860px) {
  .nav, .nav-actions .login { display: none; }
  .burger { display: block; }
}

@media (max-width: 940px) {
  .split, .hero-grid, .tool { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .g-3, .g-4, .steps { grid-template-columns: 1fr 1fr; }
  .split-tab { grid-template-columns: 1fr; }
  /*
   * The answer moves above the inputs and pins under the header.
   *
   * Below them it scrolled out of view the moment someone changed a figure, so
   * the tool appeared to do nothing. Pinned to the bottom instead it covered
   * the fields being typed into, which was worse. Above and sticky is the only
   * arrangement where the number and the input that drives it are both on
   * screen, and it is compacted so it takes a third of the phone rather than a
   * half.
   */
  .tool { display: flex; flex-direction: column; align-items: stretch; }
  .tool-out { order: -1; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; padding: 18px 20px; gap: 8px; }
  .tool-out .out-big { font-size: clamp(26px, 7.5vw, 34px); }
  .tool-out .out-row { padding: 7px 0; font-size: 14px; }
  .tool-out .tool-note { display: none; }
}

@media (max-width: 940px) {
  .app { height: 500px; }
}

@media (max-width: 560px) {
  /*
   * The rail becomes a bottom bar.
   *
   * A 52px vertical rail costs a seventh of a phone screen, and it is not what
   * a phone app looks like anyway: navigation lives along the bottom, within
   * reach of a thumb. Same buttons, same behaviour, more room for the thing
   * being demonstrated.
   */
  .app { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; font-size: 12.5px; height: 520px; }
  .app-rail {
    grid-row: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 7px 4px;
  }
  .rail-btn { width: 40px; height: 34px; }
  .app-body { padding: 14px; }
  .demo-hint { grid-row: 3; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }

  /*
   * Tap targets.
   *
   * A footer link is 18px of text, which is a comfortable click with a mouse
   * and a coin toss with a thumb. These grow on touch sizes only, so the
   * desktop keeps its density.
   */
  .footer ul { gap: 2px; }
  .footer ul a { display: block; padding: 9px 0; }
  .announce-close { padding: 10px 12px; }
  .link-arrow { padding: 7px 0; }
  .footer .fine a { display: inline-block; padding: 7px 0; }
  .menu a, .sheet a { padding-top: 13px; padding-bottom: 13px; }
  button.chip { padding: 8px 12px; }
  .app .app-back { width: 34px; height: 34px; }
  .stat-row, .act-row { grid-template-columns: 1fr; }
  .band { padding: 58px 0; }
  .band-sm { padding: 42px 0; }
  .hero { padding-top: 52px; }
  .g-2, .g-3, .g-4, .steps { grid-template-columns: 1fr; }
  .card, .price-card, .tool-form, .tool-out { padding: 22px; }
  .close-cta { padding: 68px 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: span 2; }
  .cal { grid-template-columns: 1fr 1fr; }

  /*
   * A comparison table on a phone.
   *
   * Scrolling a table sideways is the standard answer and a bad one: the row
   * label leaves the screen exactly when the reader needs it. Each row becomes
   * its own card, and the column heading moves into the cell it belongs to.
   */
  .cmp { border: none; background: transparent; overflow: visible; }
  .cmp table { min-width: 0; display: block; }
  .cmp thead { display: none; }
  .cmp tbody, .cmp tr, .cmp td { display: block; }
  .cmp tr { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: 14px 16px; margin-bottom: 10px; }
  .cmp td { border: none; padding: 5px 0; display: flex; justify-content: space-between; gap: 16px; text-align: left; }
  .cmp td:first-child { padding-bottom: 10px; }
  .cmp td[data-label]::before { content: attr(data-label); color: var(--text-3); font-size: 13.5px; }
}

/* ── Consent banner ──────────────────────────────────────────────────────
   Bottom of the viewport rather than a centred overlay: this is a
   notification, not a decision that should block reading the page it is
   asking about. Only rendered when analytics is configured; a site that
   sets no cookies has nothing to ask. */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 48px rgba(11, 11, 30, 0.18);
}
.consent[hidden] { display: none; }
.consent-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .consent { gap: 14px; padding: 16px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}

/* ── The blog ────────────────────────────────────────────────────────────
   Two shapes: a grid of cards on the index, and a reading column on a post.
   The column is capped at roughly 68 characters because that is where prose
   stops being comfortable, regardless of how wide the window is. */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.post-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.post-meta { font-size: 13px; color: var(--text-3); }
.post-title { font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--text); letter-spacing: -.01em; }
.post-line { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.post-more { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }

.post-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.prose { max-width: 68ch; }
.prose h2 {
  margin: 38px 0 12px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; font-size: 17px; line-height: 1.72; color: var(--text-2); }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 10px; font-size: 17px; line-height: 1.68; color: var(--text-2); }
.prose b { color: var(--text); font-weight: 600; }

.post-tool {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 68ch;
  margin: 34px 0 0;
  padding: 20px 24px;
  background: var(--accent-soft);
  border-radius: var(--r-lg);
  text-decoration: none;
}
.post-tool-label { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.post-tool-title { font-size: 18px; font-weight: 600; color: var(--text); }

.post-next {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 68ch;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-next-link { font-size: 19px; font-weight: 600; color: var(--text); text-decoration: none; }
.post-next-link:hover { color: var(--accent); }
.post-note { max-width: 68ch; margin-top: 28px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
