/* LeoTreasurer public site
   Direction: the society cashbook register, set in the brand's navy ink.
   Five colours, two typefaces. Motion is quiet: things are written in, rulers follow the
   cursor, nothing bounces. All pointer effects are off on touch and for reduced motion. */

:root {
  --ink: #0d1b4c;          /* brand navy: text, primary buttons, dark bands */
  --ink-soft: #3d4872;     /* secondary text on paper (8.6:1 on paper) */
  --paper: #f4f6fa;        /* page background */
  --sheet: #ffffff;        /* ledger sheets, form fields */
  --rule: #c9d3e6;         /* ledger ruling, dividers (decorative only) */
  --red: #b3261e;          /* money out, errors (6.1:1 on paper) */
  --gold: #c99a2e;         /* seal accent: on navy only, never body text on paper */

  --on-ink: #f4f6fa;
  --on-ink-soft: #b9c2dc;  /* 9.3:1 on ink */

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2rem, 1.3rem + 2.5vw, 3.75rem);
  --step-4: clamp(2.5rem, 1.3rem + 4.6vw, 6rem);

  --gutter: clamp(16px, 5vw, 96px);
  --max: 1920px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.015em; }
.h2 { font-family: var(--serif); font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.01em; }
.h3 { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; }
.h4 { font-family: var(--sans); font-size: var(--step-1); font-weight: 650; line-height: 1.3; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--on-ink);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: var(--cursor-nib);
  transition: background-color .15s, transform .1s;
}
.btn:hover { background: #1a2b66; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: rgba(13, 27, 76, .06); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d8ab42; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 250, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.3rem; }
.brand img, .brand svg { width: 27px; height: 34px; flex: none; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.header-cta { min-height: 42px; padding: 0 16px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 400px) {
  .brand { font-size: 1.15rem; }
  .header-cta { padding: 0 12px; font-size: .875rem; }
}
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); cursor: var(--cursor-nib); }
.menu-btn svg { width: 24px; height: 24px; display: block; }

.mobile-nav { display: none; border-top: 1px solid var(--rule); background: var(--paper); }
.mobile-nav a { display: block; padding: 14px var(--gutter); border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 500; }
.mobile-nav[data-open="true"] { display: block; }

@media (max-width: 900px) {
  .nav { display: none; }
  .site-header .wrap { gap: 12px; justify-content: space-between; }
  .menu-btn { display: block; }
  .header-cta { margin-left: auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 52rem; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .h2 { margin-bottom: 16px; }
.rule-top { border-top: 1px solid var(--rule); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
.hero .display { margin-bottom: 24px; max-width: 11ch; }
.hero .lede { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.hero-note { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .display { max-width: 13ch; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- The ledger (hero) ---------- */
.ledger {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(13, 27, 76, .35), 0 2px 0 var(--rule);
  overflow: hidden;
}
.ledger-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: var(--ink); color: var(--on-ink);
  padding: 16px 20px;
  border-bottom: 3px solid var(--gold);
}
.ledger-head strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.ledger-head span { color: var(--on-ink-soft); font-size: var(--step--1); }

.ledger table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ledger th {
  text-align: left; font-weight: 600; font-size: .8125rem; color: var(--ink-soft);
  padding: 10px 12px; border-bottom: 2px solid var(--rule);
}
.ledger td { padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger .num { text-align: right; white-space: nowrap; }
/* The register's red money rules */
.ledger .c-date { width: 64px; color: var(--ink-soft); border-right: 2px double rgba(179, 38, 30, .55); white-space: nowrap; }
.ledger .c-in, .ledger .c-out, .ledger .c-bal { border-left: 1px solid rgba(179, 38, 30, .35); }
.ledger .c-out { color: var(--red); }
.ledger .c-bal { font-weight: 600; }
.ledger .sub { display: block; color: var(--ink-soft); font-size: .8125rem; }
.ledger .m-date { display: none; }
.ledger tfoot td { border-bottom: 0; padding-top: 14px; padding-bottom: 16px; }
.ledger .closing-label { font-family: var(--serif); font-size: 1.05rem; }
.ledger .closing {
  font-weight: 700; font-size: 1.125rem; position: relative; padding-bottom: 18px;
}
.ledger .closing::after {
  /* accountant's double underline under a closing total */
  content: ""; position: absolute; right: 12px; bottom: 10px; width: calc(100% - 24px); height: 5px;
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform-origin: right; transform: scaleX(1);
}
.ledger-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--paper); border-top: 1px solid var(--rule);
  font-size: .8125rem; color: var(--ink-soft);
}

/* Write-in animation, set up by JS only when motion is allowed */
.ledger.is-writing tbody tr { opacity: 0; clip-path: inset(0 100% 0 0); }
.ledger tbody tr { transition: opacity .25s ease, clip-path .5s var(--ease); }
.ledger tbody tr.is-written { opacity: 1; clip-path: inset(0 0 0 0); }
.ledger.is-writing .closing::after { transform: scaleX(0); }
.ledger .closing::after { transition: transform .5s var(--ease); }
.ledger.is-closed .closing::after { transform: scaleX(1); }

.ledger .c-amt { display: none; border-left: 1px solid rgba(179, 38, 30, .35); }
.ledger .c-amt.out { color: var(--red); }

/* Phones: date moves under the particulars, in/out merge into one signed amount */
@media (max-width: 560px) {
  .ledger .c-date, .ledger .c-in, .ledger .c-out { display: none; }
  .ledger .c-amt { display: table-cell; }
  .ledger .m-date { display: inline; }
  .ledger table { font-size: .875rem; }
  .ledger td, .ledger th { padding-left: 10px; padding-right: 10px; }
  .ledger-head { padding: 14px 16px; flex-direction: column; gap: 2px; }
}

/* ---------- Month cycle ---------- */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.cycle li { padding: 28px 28px 8px 0; }
.cycle li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.cycle .step { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--ink); display: block; margin-bottom: 20px; }
.cycle .h4 { margin-bottom: 10px; }
.cycle p { color: var(--ink-soft); font-size: 1rem; }

@media (max-width: 960px) {
  .cycle { grid-template-columns: 1fr 1fr; }
  .cycle li:nth-child(3) { padding-left: 0; border-left: 0; }
  .cycle li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  /* a vertical timeline on phones */
  .cycle { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); margin-left: 8px; }
  .cycle li, .cycle li + li, .cycle li:nth-child(3) { padding: 0 0 32px 24px; border: 0; }
  .cycle li:nth-child(n+3) { border-top: 0; }
  .cycle .step { font-size: 2rem; margin-bottom: 8px; }
}

/* ---------- Phones / screenshots ---------- */
.phone {
  margin: 0;
  border: 7px solid var(--ink); border-radius: 30px; overflow: hidden;
  background: var(--ink);
  box-shadow: 0 28px 50px -28px rgba(13, 27, 76, .55);
  width: 100%; max-width: 300px;
}
.phone img { width: 100%; }
.shot { margin: 0; }
.shot figcaption { margin-top: 16px; max-width: 30ch; font-size: 1rem; color: var(--ink-soft); }
.shot figcaption strong { display: block; color: var(--ink); font-weight: 650; margin-bottom: 2px; }

.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.screens .shot:nth-child(2) { margin-top: 72px; }
.screens .shot:nth-child(3) { margin-top: 144px; }
.screens .shot:nth-child(4) { margin-top: 72px; }
@media (max-width: 1180px) and (min-width: 861px) { .screens { grid-template-columns: repeat(2, 1fr); } .screens .shot:nth-child(n) { margin-top: 0; } }

@media (max-width: 860px) {
  /* swipeable row on phones instead of a squeezed grid */
  .screens {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 16px;
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens .shot { flex: 0 0 72%; max-width: 260px; scroll-snap-align: start; }
  .screens .shot:nth-child(n) { margin-top: 0; }
  .swipe-hint { display: block; }
}
.swipe-hint { display: none; font-size: var(--step--1); color: var(--ink-soft); margin-top: 8px; }

/* ---------- Operations (gate + duties) ---------- */
.ops { display: grid; gap: clamp(64px, 9vw, 112px); }
.op { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 72px); align-items: center; }
.op:nth-child(even) .op-text { order: 2; }
.op-text .h3 { margin-bottom: 16px; }
.op-text p { color: var(--ink-soft); max-width: 34em; }
.op-pair { display: flex; gap: 20px; align-items: flex-start; }
.op-pair .phone { width: clamp(220px, 17vw, 280px); }
.op-pair .phone + .phone { margin-top: 56px; }
.points { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--rule); }
.points li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.plan-note { margin-top: 20px; font-size: var(--step--1); color: var(--ink-soft); }

@media (max-width: 900px) {
  .op { grid-template-columns: 1fr; }
  .op:nth-child(even) .op-text { order: 0; }
  .op-pair { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .op-pair::-webkit-scrollbar { display: none; }
  .op-pair .phone { flex: 0 0 62%; max-width: 240px; scroll-snap-align: start; }
  .op-pair .phone + .phone { margin-top: 0; }
}

.aside-line { margin-top: clamp(56px, 8vw, 88px); padding-top: 24px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.aside-line p { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) { .aside-line { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Roles table ---------- */
.roles { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.roles th, .roles td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.roles thead th { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid var(--rule); }
.roles tbody th { font-weight: 650; width: 28%; }
.roles tr:last-child th, .roles tr:last-child td { border-bottom: 0; }
.roles .you { background: rgba(201, 211, 230, .25); }
@media (max-width: 640px) {
  .roles, .roles tbody, .roles tr, .roles th, .roles td { display: block; width: 100%; }
  .roles thead { display: none; }
  .roles tbody th { padding-bottom: 2px; border-bottom: 0; width: 100%; }
  .roles td { padding-top: 0; }
}

/* ---------- Navy band (security) ---------- */
.band { background: var(--ink); color: var(--on-ink); }
.band .muted, .band p { color: var(--on-ink-soft); }
.band .h2 { color: var(--on-ink); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 1px solid rgba(185, 194, 220, .25); }
.facts div { padding: 28px 28px 28px 0; border-bottom: 1px solid rgba(185, 194, 220, .25); }
.facts div:not(:nth-child(4n+1)) { padding-left: 28px; border-left: 1px solid rgba(185, 194, 220, .25); }
@media (max-width: 1180px) and (min-width: 861px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(n) { padding-left: 28px; border-left: 1px solid rgba(185, 194, 220, .25); }
  .facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
}
.facts dt { font-weight: 650; color: var(--on-ink); margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--on-ink-soft); font-size: 1rem; }
.band a { color: var(--on-ink); }
.seal { width: 44px; height: 50px; color: var(--gold); margin-bottom: 28px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div:nth-child(n) { padding: 20px 0; border-left: 0; }
}

/* ---------- Offer ---------- */
.offer { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.price { font-family: var(--serif); font-size: clamp(4.5rem, 3rem + 7vw, 9rem); line-height: .9; letter-spacing: -0.02em; }
.price small { display: block; font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--ink-soft); margin-top: 14px; }
.offer .h3 { margin-bottom: 14px; }
.offer p { color: var(--ink-soft); max-width: 36em; }
.offer .price { color: var(--ink); max-width: none; }
.offer .hero-actions { margin-top: 24px; margin-bottom: 0; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; align-items: start; } }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: var(--cursor-nib); display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq .answer { padding: 0 0 24px; color: var(--ink-soft); max-width: 40em; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.contact .h2 { margin-bottom: 16px; }
.mail { font-family: var(--serif); font-size: var(--step-2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: .9375rem; font-weight: 600; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--sheet); color: var(--ink);
  border: 1px solid #9aa6c4; border-radius: var(--radius);
  font: inherit; font-size: 1rem;
}
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .875rem; margin: 0; }
.field-error:empty { display: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.status { font-size: .9375rem; }
.status[data-tone="error"] { color: var(--red); }
.status[data-tone="ok"] { color: var(--ink); font-weight: 600; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-soft); padding: 56px 0 40px; font-size: .9375rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: var(--on-ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(185, 194, 220, .25); }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .footer-intro { grid-column: 1 / -1; } }

/* ---------- Access dialog ---------- */
.dialog {
  width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 12px;
  background: var(--sheet); color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(13, 27, 76, .5);
}
.dialog::backdrop { background: rgba(13, 27, 76, .55); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 24px 24px 8px; }
.dialog-head .h3 { font-size: 1.6rem; }
.dialog-body { padding: 0 24px 24px; }
.close { background: none; border: 0; padding: 6px; margin: -4px -6px 0 0; cursor: var(--cursor-nib); color: var(--ink); }
.close svg { width: 22px; height: 22px; display: block; }
.choice {
  display: grid; gap: 2px; padding: 16px; margin-top: 12px;
  border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--ink); background: var(--paper); text-decoration: none; }
.choice strong { font-weight: 650; }
.choice span { color: var(--ink-soft); font-size: .9375rem; }
@media (prefers-reduced-motion: no-preference) {
  .dialog[open] { animation: dialog-in .22s var(--ease); }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------- Sticky trial bar (phones only) ---------- */
.trial-bar { display: none; }
@media (max-width: 700px) {
  .trial-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    gap: 12px; align-items: center; justify-content: space-between;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--ink); color: var(--on-ink);
    transform: translateY(110%); transition: transform .25s var(--ease);
  }
  .trial-bar[data-show="true"] { transform: none; }
  .trial-bar p { margin: 0; font-size: .875rem; color: var(--on-ink-soft); line-height: 1.3; }
  .trial-bar p strong { color: var(--on-ink); display: block; font-size: 1rem; }
  .trial-bar .btn { min-height: 44px; flex: none; }
  .site-footer { padding-bottom: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* =====================================================================
   Trust strip (under the hero)
   ===================================================================== */
.trust { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); }
.trust ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(5, 1fr); }
.trust li { display: flex; gap: 12px; align-items: flex-start; padding: 22px 24px 22px 0; font-size: .9375rem; line-height: 1.45; }
.trust li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.trust svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ink); }
.trust strong { display: block; font-weight: 650; }
.trust span { color: var(--ink-soft); }
@media (max-width: 1180px) {
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li, .trust li + li { padding: 18px 16px 18px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .trust li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .trust li:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
@media (max-width: 560px) {
  .trust ul { grid-template-columns: 1fr; }
  .trust li:nth-child(n) { padding: 16px 0; border-left: 0; }
}

/* Struck-through regular price next to the early-bird price */
.was { position: relative; display: inline-block; color: var(--ink-soft); text-decoration: none; }
.was::after {
  content: ""; position: absolute; left: -6%; right: -6%; top: 50%; height: 2px; background: var(--red);
  transform: rotate(-10deg); transform-origin: left center;
}
.offer .was { font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); margin-bottom: 8px; }

/* Security band: the commitment line under the facts */
.band .section-head p { font-size: var(--step-1); }
.seal-img { width: 44px; height: auto; margin-bottom: 28px; }
.pledge { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; align-items: start; padding-top: 28px; border-top: 2px solid var(--gold); }
.pledge h3 { font-family: var(--serif); font-size: var(--step-2); color: var(--on-ink); }
.pledge p { margin: 0; max-width: 52em; }
@media (max-width: 760px) { .pledge { grid-template-columns: 1fr; } }

/* =====================================================================
   Motion that whispers
   html.motion is set in <head> only when the visitor allows motion.
   ===================================================================== */

/* 1. Content is written in as each section reaches the reader */
.motion .rv { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.motion .in .rv, .motion .rv.in { opacity: 1; transform: none; }

/* 2. Rules are drawn, like ruling a new page */
@media (min-width: 601px) {
  .motion .cycle { border-top-color: transparent; position: relative; }
  .motion .cycle::before {
    content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink);
    transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease);
  }
  .motion .in .cycle::before { transform: scaleX(1); }
}
.motion .faq, .motion .aside-line, .motion .plans { border-top-color: transparent; position: relative; }
.motion .faq::before, .motion .aside-line::before, .motion .plans::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease);
}
.motion .in .faq::before, .motion .aside-line.in::before, .motion .in .plans::before { transform: scaleX(1); }
.motion .was::after { transform: rotate(-10deg) scaleX(0); transition: transform .6s var(--ease) .5s; }
.motion .in .was::after { transform: rotate(-10deg) scaleX(1); }

/* 3. Reading ruler: a soft band follows the cursor from row to row */
.ruled { position: relative; }
.ruler-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 2; pointer-events: none;
  background: rgba(13, 27, 76, .045); box-shadow: inset 3px 0 0 var(--gold);
  opacity: 0; transition: top .3s var(--ease), height .3s var(--ease), opacity .25s;
}
.ruled.is-reading .ruler-bar { opacity: 1; }

/* 4. Gentle tilt toward the cursor (JS sets --rx/--ry/--tx/--ty) */
[data-tilt] { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(var(--tx, 0px), var(--ty, 0px), 0); }

/* 5. A faint gold lamp follows the cursor across the navy band */
.band { background: radial-gradient(560px circle at var(--mx, 75%) var(--my, -40%), rgba(201, 154, 46, .14), transparent 70%), var(--ink); }

/* 6. Primary buttons lean slightly toward the cursor */
.btn { transform: translate(var(--bx, 0px), var(--by, 0px)); transition: background-color .15s, transform .35s var(--ease); }
.btn:active { transform: translate(var(--bx, 0px), calc(var(--by, 0px) + 1px)); }

/* 7. Reading progress: a hairline under the header fills as you scroll */
@supports (animation-timeline: scroll()) {
  .motion .site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
    transform-origin: left; transform: scaleX(0);
    animation: read-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes read-progress { to { transform: scaleX(1); } }
}

/* 8. FAQ answers open smoothly where the browser supports it */
@supports (interpolate-size: allow-keywords) {
  .motion { interpolate-size: allow-keywords; }
  .motion .faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .motion .faq details[open]::details-content { height: auto; }
}

/* 9. List points: a short gold tick slides in under the cursor */
.points li { position: relative; transition: padding-left .3s var(--ease); }
.points li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .points li:hover { padding-left: 18px; }
  .points li:hover::before { transform: scaleX(1); }
}

/* =====================================================================
   Pricing page
   ===================================================================== */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-hero .display { font-size: clamp(2.5rem, 1.4rem + 4vw, 5.25rem); max-width: 14ch; margin-bottom: 20px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px clamp(20px, 2.5vw, 40px) 40px 0; }
.plan + .plan { padding-left: clamp(20px, 2.5vw, 40px); border-left: 1px solid var(--rule); }
.plan.plan-featured { background: var(--sheet); border: 1px solid var(--ink); margin-top: -2px; padding: 32px clamp(20px, 2.5vw, 40px) 40px; box-shadow: 0 30px 60px -36px rgba(13, 27, 76, .45); position: relative; z-index: 1; }
.plan-tag { font-size: .875rem; font-weight: 650; margin: 0 0 6px; }
.plan .h3 { margin-bottom: 6px; }
.plan-for { color: var(--ink-soft); margin: 0 0 24px; }
.plan-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0; }
.plan-price strong { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 2.2rem + 2vw, 4.25rem); line-height: 1; }
.plan-price .was { font-size: 1.25rem; }
.plan-meta { font-size: .9375rem; color: var(--ink-soft); margin: 10px 0 24px; }
.plan-flats { font-weight: 650; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 0 20px; }
.plan-lead { font-weight: 650; margin: 0 0 12px; }
.plan-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list svg { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.plan .btn { margin-top: auto; width: 100%; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 28px 0 36px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .plan.plan-featured { margin: 0 -8px; padding: 28px 20px 36px; }
}

.compare-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 20px; border-bottom: 1px solid var(--rule); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; border-bottom: 2px solid var(--rule); }
.compare .col-featured { background: rgba(201, 211, 230, .22); }
.compare .group th { text-align: left; font-family: var(--sans); font-size: .875rem; font-weight: 650; color: var(--ink-soft); padding-top: 26px; }
.compare tbody th { font-weight: 500; }
.compare svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.compare .no { color: #8d97b5; }
@media (max-width: 700px) {
  .compare tbody th:first-child, .compare thead th:first-child { position: sticky; left: 0; background: var(--sheet); z-index: 3; box-shadow: 1px 0 0 var(--rule); }
}
.fine { margin-top: 20px; font-size: .9375rem; color: var(--ink-soft); }

.enquiry { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
.checks legend { font-size: .9375rem; font-weight: 600; margin-bottom: 10px; padding: 0; }
.check { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); cursor: var(--cursor-nib); font-size: .9375rem; }
.check:hover { border-color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
select.input {
  appearance: none; padding-right: 40px; background-repeat: no-repeat; background-size: 6px 6px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
}
.optional { font-weight: 400; color: var(--ink-soft); }
@media (max-width: 960px) { .enquiry { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* =====================================================================
   Legal pages (privacy, terms)
   ===================================================================== */
.legal-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.legal-hero .display { font-size: clamp(2.5rem, 1.4rem + 4vw, 5rem); margin-bottom: 16px; }
.legal-dates { display: flex; gap: 4px 24px; flex-wrap: wrap; font-size: .9375rem; color: var(--ink-soft); margin: 0; }
.legal-dates strong { color: var(--ink); font-weight: 600; }
.legal-layout { display: grid; grid-template-columns: 300px minmax(0, 46rem); gap: clamp(40px, 6vw, 120px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 120px); }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.toc p { font-weight: 650; margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--rule); position: relative; display: grid; gap: 2px; font-size: .9375rem; }
.toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--ink-soft); line-height: 1.35; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); }
.toc a[aria-current="true"] { font-weight: 600; }
.toc-marker { position: absolute; left: -2px; width: 3px; background: var(--gold); top: 0; height: 0; transition: top .35s var(--ease), height .35s var(--ease); }
.toc-mobile { display: none; }
.legal-body .intro { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; margin-bottom: 40px; }
.legal-body section { padding: 32px 0; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.legal-body h2 { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; margin-bottom: 16px; }
.legal-body h3 { font-family: var(--sans); font-weight: 650; font-size: 1.0625rem; margin: 20px 0 6px; }
.legal-body p, .legal-body li { color: #26315c; }
.legal-body ul { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 8px; }
.legal-body strong { color: var(--ink); font-weight: 650; }
.legal-body .address { background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; }
.legal-body .address p { margin: 0; }
.legal-body .table-wrap { overflow-x: auto; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--sheet); border: 1px solid var(--rule); }
.legal-body th, .legal-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal-body th { font-weight: 650; border-bottom-width: 2px; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); margin-bottom: 32px; }
  .toc-mobile summary { padding: 14px 16px; font-weight: 650; cursor: var(--cursor-nib); }
  .toc-mobile ol { margin: 0; padding: 0 16px 16px 36px; display: grid; gap: 6px; font-size: .9375rem; }
}

/* Footer logo for the navy background */
.site-footer .brand img { width: 30px; height: 37px; }

/* =====================================================================
   Custom cursor: a fountain-pen nib over everything you can click
   (hotspot at the nib's tip; falls back to the normal pointer)
   ===================================================================== */
:root {
  --cursor-nib: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3l11 4.5 13 13-6.5 6.5-13-13z' fill='%230d1b4c' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M3.5 3.5l8 8' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='12.6' cy='12.6' r='2.1' fill='%23c99a2e'/%3E%3Cpath d='M17 24l7-7' stroke='%23c99a2e' stroke-width='1.6'/%3E%3C/svg%3E") 3 3, pointer;
}
a, button, summary, select, label.check, .choice, [data-open-access] { cursor: var(--cursor-nib); }
.btn[disabled] { cursor: not-allowed; }

/* =====================================================================
   Layout helpers used by the one-screen sections
   ===================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.split > .section-head, .split .section-head { margin-bottom: 0; }
.split-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.split .faq { max-width: none; }
.split .swipe-hint { grid-column: 1 / -1; }
@media (max-width: 1023px) {
  .split, .split-wide { grid-template-columns: 1fr; gap: 0; }
  .split > .section-head { margin-bottom: clamp(32px, 5vw, 48px); }
  .band .split > div:first-child { margin-bottom: 40px; }
}

/* Hero: the trust strip sits at the foot of the first screen */
.hero { padding-bottom: 0; display: flex; flex-direction: column; }
.hero-grid { flex: 1; padding-bottom: clamp(48px, 7vw, 96px); }
.hero .trust { margin-top: auto; }

/* Operations: section heading sits above the first feature's text */
.ops-lede { margin-top: 14px; margin-bottom: clamp(28px, 4vh, 48px); }
.op-sub { margin-top: 8px; }
.op-text .aside-line { margin-top: clamp(28px, 4vh, 48px); grid-template-columns: 1fr; gap: 6px; padding-top: 18px; }
.op-text .aside-line p { font-size: 1rem; }

/* Security split: facts in two columns beside the heading */
.split .facts { grid-template-columns: repeat(2, 1fr); }
.split .facts div:nth-child(n) { padding-left: 28px; border-left: 1px solid rgba(185, 194, 220, .25); }
.split .facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
.split .pledge { grid-template-columns: 1fr; gap: 10px; }
@media (max-width: 760px) {
  .split .facts { grid-template-columns: 1fr; }
  .split .facts div:nth-child(n) { padding-left: 0; border-left: 0; }
}

/* Pricing: heading and plans share the first screen */
.plans-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: end; margin-bottom: clamp(32px, 5vh, 56px); }
.plans-head .display { font-size: clamp(2.5rem, min(1.2rem + 3.6vw, 8vh), 5rem); max-width: 13ch; margin: 0; }
.plans-head .lede { margin: 0; }
@media (max-width: 1023px) { .plans-head { grid-template-columns: 1fr; } }

/* =====================================================================
   One section per screen (desktop and landscape tablets)
   Each section fills the window below the header and centres its content;
   type, phones and table rows scale with the window height so they fit.
   ===================================================================== */
@media (min-width: 1024px) and (min-height: 620px) {
  html { scroll-snap-type: y proximity; scroll-padding-top: 68px; }
  .screen {
    min-height: calc(100svh - 68px);
    display: flex; flex-direction: column; justify-content: center;
    padding-top: clamp(32px, 6vh, 88px); padding-bottom: clamp(32px, 6vh, 88px);
    scroll-snap-align: start;
  }
  .hero.screen { padding-top: 0; padding-bottom: 0; }
  .hero-grid { display: grid; align-content: center; padding-top: clamp(24px, 4vh, 56px); padding-bottom: clamp(24px, 4vh, 56px); }
  .screen > .wrap { width: 100%; }

  .display { font-size: clamp(2.5rem, min(1.3rem + 4.6vw, 8.6vh), 6rem); }
  .h2 { font-size: clamp(2rem, min(1.3rem + 2.5vw, 6.2vh), 3.75rem); }
  .section-head { margin-bottom: clamp(24px, 4.5vh, 64px); }
  .lede { font-size: clamp(1.0625rem, 2.3vh, 1.25rem); }

  /* hero ledger rows breathe less on short windows */
  .ledger td { padding-top: clamp(6px, 1.15vh, 12px); padding-bottom: clamp(6px, 1.15vh, 12px); }
  .ledger .sub { font-size: clamp(.75rem, 1.5vh, .8125rem); }
  .trust li { padding-top: clamp(12px, 2.2vh, 22px); padding-bottom: clamp(12px, 2.2vh, 22px); }

  /* month cycle */
  .cycle .step { font-size: clamp(2rem, 5vh, 3rem); margin-bottom: clamp(10px, 2vh, 20px); }

  /* screenshots: four phones beside the heading, sized by window height */
  .screens { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 48px); }
  .screens .phone { max-width: min(300px, 25vh); }
  .screens .shot:nth-child(1) { margin-top: 0; }
  .screens .shot:nth-child(2) { margin-top: 4vh; }
  .screens .shot:nth-child(3) { margin-top: 8vh; }
  .screens .shot:nth-child(4) { margin-top: 4vh; }
  .shot figcaption { font-size: clamp(.875rem, 1.8vh, 1rem); margin-top: 12px; }

  /* gate and duties phones */
  .op-pair .phone { width: min(280px, 27vh); }
  .op-pair .phone + .phone { margin-top: 6vh; }
  .points li { padding-top: clamp(8px, 1.4vh, 12px); padding-bottom: clamp(8px, 1.4vh, 12px); }

  /* roles table and security facts */
  .roles th, .roles td { padding-top: clamp(10px, 1.8vh, 16px); padding-bottom: clamp(10px, 1.8vh, 16px); }
  .facts div { padding-top: clamp(16px, 3vh, 28px); padding-bottom: clamp(16px, 3vh, 28px); }
  .seal-img { margin-bottom: clamp(16px, 3vh, 28px); }

  /* FAQ, pricing */
  .faq summary { padding-top: clamp(14px, 2.4vh, 22px); padding-bottom: clamp(14px, 2.4vh, 22px); }
  .plan, .plan + .plan, .plan.plan-featured { padding-top: clamp(20px, 3.4vh, 32px); padding-bottom: clamp(24px, 3.8vh, 40px); }
  .plan-for { margin-bottom: clamp(12px, 2.4vh, 24px); }
  .plan-price strong { font-size: clamp(2.5rem, 6.4vh, 4.25rem); }
  .plan-meta { margin-bottom: clamp(12px, 2.4vh, 24px); }
  .plan-flats { margin-bottom: clamp(10px, 2vh, 20px); padding-top: clamp(8px, 1.3vh, 12px); padding-bottom: clamp(8px, 1.3vh, 12px); }
  .plan-list { gap: clamp(4px, 1vh, 10px); margin-bottom: clamp(16px, 2.8vh, 28px); }
  .compare th, .compare td { padding-top: clamp(7px, 1.25vh, 14px); padding-bottom: clamp(7px, 1.25vh, 14px); }
  .compare .group th { padding-top: clamp(12px, 2.2vh, 26px); }
  .form { gap: clamp(10px, 1.8vh, 18px); }
  .input { min-height: clamp(40px, 5.4vh, 48px); padding-top: 8px; padding-bottom: 8px; }
  textarea.input { min-height: clamp(84px, 13vh, 140px); }
  .check { padding-top: clamp(8px, 1.2vh, 12px); padding-bottom: clamp(8px, 1.2vh, 12px); }
}

/* Fitting the tallest screens */
.plan { position: relative; }
.plan-featured .plan-tag {
  position: absolute; top: -13px; left: clamp(20px, 2.5vw, 40px);
  background: var(--ink); color: var(--on-ink); padding: 3px 12px; border-radius: 999px; font-size: .8125rem;
}
@media (min-width: 1024px) {
  .form-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-3 .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (min-height: 620px) {
  .hero .display { max-width: 14ch; }
  .trust li { font-size: .875rem; line-height: 1.4; }
  .plans-head .display { max-width: none; font-size: clamp(2.25rem, min(1rem + 3vw, 7vh), 4.5rem); }
  .compare { font-size: .9375rem; }
  .compare th, .compare td { padding-top: clamp(5px, .9vh, 10px); padding-bottom: clamp(5px, .9vh, 10px); }
  .compare .group th { padding-top: clamp(8px, 1.5vh, 18px); padding-bottom: 4px; }
  .compare svg { width: 18px; height: 18px; }
  .plan-price strong { font-size: clamp(2.25rem, 6vh, 4.25rem); }
  .plan .btn { min-height: 44px; }
  .plan-list { gap: clamp(2px, .7vh, 10px); }
  textarea.input { min-height: clamp(72px, 10vh, 120px); }
}

/* Desktop ledger: payment mode sits on the same line, so every entry is one row high */
@media (min-width: 1024px) {
  .ledger .sub { display: inline; margin-left: 10px; }
  .plan-for { border-bottom: 1px solid var(--rule); padding-bottom: clamp(10px, 2vh, 18px); }
}

/* Laptop-height windows (e.g. 1366 x 768): tighter spacing so each section still fits */
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 820px) {
  .screen { padding-top: clamp(24px, 4.5vh, 48px); padding-bottom: clamp(24px, 4.5vh, 48px); }
  .trust li span { display: none; }
  .trust li { padding-top: 14px; padding-bottom: 14px; }
  .ledger-head { padding-top: 12px; padding-bottom: 12px; }
  .facts div { padding-top: 2vh; padding-bottom: 2vh; }
  .facts dd { font-size: .9375rem; line-height: 1.5; }
  .seal-img { width: 36px; }
  .plans-head { margin-bottom: 24px; }
  .plan-price strong { font-size: clamp(2.25rem, 5.4vh, 4.25rem); }
  .plan-meta { margin-top: 6px; }
  .compare { font-size: .875rem; }
  .compare th, .compare td { padding-top: 4px; padding-bottom: 4px; }
  .compare thead th { padding-top: 8px; padding-bottom: 8px; }
  .compare .group th { padding-top: 10px; }
  .field { gap: 4px; }
  .form { gap: 10px 16px; }
  textarea.input { min-height: 64px; }
  .checks legend { margin-bottom: 6px; }
  .plans-screen.screen, #custom-plan.screen { padding-top: 18px; padding-bottom: 18px; }
}

/* =====================================================================
   Default cursor: a navy arrow with a white edge, so it reads on paper
   and on the navy band. Text fields keep the text cursor.
   ===================================================================== */
:root {
  --cursor-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M4 3v17.5l4.6-4.3 3.3 7.3 3.2-1.4-3.2-7.2 6.4-.3z' fill='%230d1b4c' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M6.2 7.6v8' stroke='%23c99a2e' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 4 3, auto;
}
html { cursor: var(--cursor-arrow); }
input[type="text"], input[type="email"], input[type="tel"], textarea { cursor: text; }
input[type="range"] { cursor: var(--cursor-nib); }

/* =====================================================================
   Trial button: a bright, high-contrast saffron instead of muted gold
   (navy text on it is 10.2:1)
   ===================================================================== */
.btn-gold {
  background: #ffc21a; border-color: #ffc21a; color: var(--ink); font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 6px 18px -6px rgba(255, 194, 26, .65);
}
.btn-gold:hover { background: #ffd24d; border-color: #ffd24d; }

/* =====================================================================
   Role sections
   ===================================================================== */
.role-label { font-size: .9375rem; font-weight: 650; color: var(--ink-soft); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.role-label::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
.proof { margin-top: 20px; padding-left: 14px; border-left: 3px solid var(--gold); color: var(--ink); font-size: 1rem; max-width: 30em; }
.role-list { margin: 0; border-top: 1px solid var(--rule); }
.role-list div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: clamp(10px, 1.6vh, 14px) 0; border-bottom: 1px solid var(--rule); }
.role-list dt { font-weight: 650; }
.role-list dd { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 560px) { .role-list div { grid-template-columns: 1fr; gap: 2px; } }

.screens-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Registers: the reports index */
.registers-wrap { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.registers { width: 100%; border-collapse: collapse; }
.registers th, .registers td { text-align: left; vertical-align: top; padding: clamp(10px, 1.9vh, 16px) 20px; border-bottom: 1px solid var(--rule); }
.registers thead th { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid var(--rule); }
.registers tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.125rem; white-space: nowrap; border-right: 2px double rgba(179, 38, 30, .55); }
.registers tr:last-child th, .registers tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .registers, .registers tbody, .registers tr, .registers th, .registers td { display: block; width: 100%; }
  .registers thead { display: none; }
  .registers tr { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .registers th, .registers td, .registers tbody th { padding: 0; border: 0; white-space: normal; }
  .registers tbody th { margin-bottom: 4px; }
  .registers td { margin-top: 4px; }
}

/* =====================================================================
   Pricing: flats calculator and plan matching
   ===================================================================== */
.calc { display: grid; gap: 10px; }
.calc .lede { margin: 0 0 4px; }
.calc label { font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc output { font-family: var(--serif); font-size: 1.75rem; line-height: 1; min-width: 3ch; text-align: right; }
.calc input[type="range"] { width: 100%; accent-color: var(--ink); height: 28px; margin: 0; }
.calc-result { margin: 0; color: var(--ink-soft); }
.plans-lede { margin: 12px 0 0; }
@media (min-width: 1024px) and (min-height: 620px) {
  .plans-screen.screen { padding-top: clamp(16px, 3vh, 40px); padding-bottom: clamp(16px, 3vh, 40px); }
  .plans-screen .plans-head { margin-bottom: clamp(18px, 3.2vh, 44px); }
}
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 820px) {
  .plans-screen.screen { padding-top: 10px; padding-bottom: 10px; }
  .plans-screen .plans-head { margin-bottom: 14px; }
  .calc { gap: 6px; }
}
.calc-result strong { color: var(--ink); }
.plan { transition: background-color .4s var(--ease), opacity .4s var(--ease); }
.plans[data-matching] .plan:not(.is-match) { opacity: .55; }
.plans[data-matching] .plan.is-match:not(.plan-featured) { background: rgba(201, 211, 230, .22); }

/* Column ruler on the comparison table: a soft band follows the cursor across plans */
.ruled-cols { position: relative; }
.col-bar {
  position: absolute; top: 0; bottom: 0; width: 0; left: 0; z-index: 2; pointer-events: none;
  background: rgba(13, 27, 76, .04); box-shadow: inset 0 3px 0 var(--gold);
  opacity: 0; transition: left .3s var(--ease), width .3s var(--ease), opacity .25s;
}
.ruled-cols.is-reading-col .col-bar { opacity: 1; }

@media (min-width: 1024px) and (min-height: 620px) {
  .screens-3 .phone { max-width: min(300px, 27vh); }
  .screens-3 .shot:nth-child(2) { margin-top: 6vh; }
  .screens-3 .shot:nth-child(3) { margin-top: 3vh; }
  .registers tbody th { font-size: clamp(1rem, 2.1vh, 1.125rem); }
  .registers td { font-size: clamp(.9375rem, 1.95vh, 1.0625rem); }
}
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 820px) {
  .role-list dd { font-size: .9375rem; }
  .proof { font-size: .9375rem; }
  .calc-result { min-height: 0; }
}

/* Reports: the register table with three real reports beside it */
.reports-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4.5vh, 48px) clamp(32px, 4vw, 80px); align-items: center; }
.reports-head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 80px); align-items: end; }
.reports-head .lede { margin: 0; }
.registers .who { display: block; font-family: var(--sans); font-size: .8125rem; color: var(--ink-soft); margin-top: 2px; white-space: normal; }
@media (max-width: 1023px) { .reports-head { grid-template-columns: 1fr; margin-bottom: 32px; } }
.report-shots { gap: clamp(12px, 1.6vw, 28px); }
.report-shots figcaption { margin-top: 10px; }
.report-shots figcaption strong { margin: 0; }
@media (max-width: 1023px) {
  .reports-grid { grid-template-columns: 1fr; }
  .report-shots { margin-top: 40px; }
}
@media (min-width: 1024px) and (min-height: 620px) {
  .report-shots .phone { max-width: min(220px, 23vh); }
  .report-shots .shot:nth-child(2) { margin-top: 5vh; }
  .report-shots .shot:nth-child(3) { margin-top: 2.5vh; }
  .reports-grid .registers th, .reports-grid .registers td { padding-top: clamp(7px, 1.4vh, 14px); padding-bottom: clamp(7px, 1.4vh, 14px); padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 1024px) and (min-height: 620px) and (max-height: 820px) {
  #reports.screen { padding-top: 14px; padding-bottom: 14px; }
  .reports-grid .registers th, .reports-grid .registers td { padding-top: 6px; padding-bottom: 6px; }
}

/* Footer social links */
.site-footer .social { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; min-height: 40px;
  border: 1px solid rgba(185, 194, 220, .3); border-radius: 999px; color: var(--on-ink); text-decoration: none; font-size: .875rem;
  transition: border-color .2s, background-color .2s;
}
.social a:hover { border-color: var(--gold); background: rgba(201, 154, 46, .12); text-decoration: none; }
.social svg { width: 20px; height: 20px; flex: none; }

/* Keep the global reduced-motion guard last so it wins */
@media (prefers-reduced-motion: reduce) {
  [data-tilt], .btn { transform: none !important; }
}
