/* ---------- tokens (boutique base) ---------- */
  :root {
    --ink:      #1d1d1f;
    --ink-2:    #424245;
    --grey:     #6b6b70;       /* darkened from #86868b to clear WCAG AA; 5.3:1 on white */
    --grey-2:   #d2d2d7;
    --rule:     #e5e5e5;
    --rule-2:   #f0f0f0;
    --bg:       #f4f6f8;       /* off-white, a touch of grey-blue */
    --bg-2:     #e9edf1;       /* one step down, for panel chrome */
    --surface:  #ffffff;       /* cards and panels lift off the page */

    --accent:       #8a1f1f;       /* heraldic crimson */
    --accent-2:     #a82828;
    --accent-soft:  #fbe9e9;
    --gold:         #b8862a;       /* illuminated gold */
    --gold-soft:    #f4ecd6;

    --shadow-1: 0 1px 3px rgba(0,0,0,0.06), 0 8px 30px rgba(0,0,0,0.04);
    --shadow-2: 0 1px 3px rgba(0,0,0,0.08), 0 20px 60px -10px rgba(0,0,0,0.12);

    --sans:        -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif; /* matches the app (San Francisco on Mac) */
    --mono:        'Geist Mono', 'SF Mono', ui-monospace, Menlo, monospace;
    --blackletter: 'Grenze Gotisch', 'Times New Roman', serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg); color: var(--ink);
    font-family: var(--sans);
    font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; }
  button, input { font-family: inherit; }

  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

  /* ---------- nav ---------- */
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
  }
  .brand {
    display: flex; align-items: baseline; gap: 0;
    font-family: var(--blackletter);
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.5px;
  }
  .nav-links {
    display: flex; gap: 28px;
    font-size: 14px;
    color: var(--ink-2);
  }
  .nav-links a { text-decoration: none; }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta {
    background: var(--ink); color: var(--bg);
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 13px; font-weight: 500;
    text-decoration: none;
  }
  .nav-cta:hover { background: var(--accent); }

  /* ---------- hero image (bare, no frame) ---------- */
  .hero-image { margin: 36px auto 0; text-align: center; }
  .hero-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* ---------- hero composition: one transparent plate from the Figma comps ---------- */
  .hero-stage {
    max-width: 940px;
    margin: 30px auto 60px;
  }
  .hero-stage .art {
    width: 100%;
    height: auto;
    display: block;
  }
  /* ---------- hero ---------- */
  .hero { padding: 32px 0 40px; text-align: center; }

  .hero h1 {
    font-family: var(--blackletter);
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.12;
    letter-spacing: 0.005em;
    font-weight: 600;
    margin: 0 0 22px;
    text-wrap: balance;
  }
  .hero > p {
    max-width: 580px; margin: 0 auto;
    color: var(--ink-2);
    font-size: 19px;
    line-height: 1.5;
  }

  .hero-tagline {
    font-family: var(--blackletter);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    color: var(--ink-2);
    margin: 14px 0 0;
    font-weight: 500;
  }

  /* CTA row */
  .cta-row { display: flex; gap: 20px; justify-content: center; margin-top: 28px; }
  /* Founder-credibility strip: the maker's background, not fake customer logos. */
  .built-by {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 8px 16px; margin: 76px 0 0;
    font-size: 13px; color: var(--grey);
  }
  .bb-logo { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 600; }
  .bb-logo svg { height: 16px; width: auto; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 30px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity .15s, background .15s;
  }
  /* Crimson so the hero's primary action matches the closing colossus button. */
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-2); }
  .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--grey-2); }
  .btn-ghost:hover { background: var(--bg-2); }

  /* sword divider: the blade is the rule */
  .sword {
    display: block;
    width: min(560px, 78%);
    margin: 104px auto 0;
    height: 26px;
    color: var(--ink);
    opacity: 0.75;
  }
  .sword svg { width: 100%; height: 100%; display: block; }


  /* a loaf for a pointer, and coins when you click */
  html, body { cursor: 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='M5 20c0-5 5-9 11-9s11 4 11 9-5 7-11 7-11-2-11-7z' fill='%23c8873f' stroke='%231a1410' stroke-width='1.6'/%3E%3Cpath d='M10 16c1 2 2 3 3 4M16 14c1 3 2 5 3 7M22 16c0 2-1 4-2 5' fill='none' stroke='%231a1410' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 6 6, auto; }
  a, button, label, summary, input, .btn { cursor: 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='M5 20c0-5 5-9 11-9s11 4 11 9-5 7-11 7-11-2-11-7z' fill='%23c8873f' stroke='%231a1410' stroke-width='1.6'/%3E%3Cpath d='M10 16c1 2 2 3 3 4M16 14c1 3 2 5 3 7M22 16c0 2-1 4-2 5' fill='none' stroke='%231a1410' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 6 6, pointer; }
  .coin {
    position: fixed;
    z-index: 90;
    pointer-events: none;
    font-size: 18px;
    line-height: 1;
    will-change: transform, opacity;
  }
  @media (prefers-reduced-motion: reduce) { .coin { display: none; } }

  /* ---------- section ---------- */
  .section { padding: 110px 0 0; }
  .section-head { text-align: center; margin-bottom: 48px; }
  .section-head h2 {
    font-family: var(--blackletter);
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.18; letter-spacing: 0.005em;
    font-weight: 600; margin: 0;
    text-wrap: balance;
  }
  .section-head p { margin: 14px auto 0; max-width: 560px; color: var(--ink-2); font-size: 17px; }

  /* the one fleuron on the page, under the closing proclamation */
  .ornament {
    display: flex; align-items: center; justify-content: center;
    gap: 16px;
    margin: 6px auto 18px;
    color: var(--grey);
  }
  .ornament::before, .ornament::after {
    content: ""; height: 1px; width: 80px;
    background: var(--ink); opacity: 0.4;
  }
  .ornament svg { width: 18px; height: 18px; color: var(--accent); }

  /* steps: a sequence strung along one rule, not four cards */
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  .step {
    padding: 0 0 4px;
    position: relative;
    border-top: 1px solid var(--rule);
  }
  .step::before {
    content: "";
    position: absolute; top: -1px; left: 0;
    width: 28px; height: 3px;
    background: var(--accent);
  }
  .step-num {
    display: block;
    font-family: var(--blackletter);
    font-size: 26px;            /* >=24px keeps the gold numeral at WCAG AA for large text */
    color: var(--gold);
    line-height: 1;
    margin: 22px 0 8px;
  }
  .step h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
  }
  .step p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

  /* ---------- invoice showcase ---------- */
  .invoice-stage { margin-top: 110px; background: var(--bg-2); padding: 80px 0 100px; }
  .shot-invoice { max-width: 760px; }

  /* ---------- why (the one place the bread loaf returns) ---------- */
  .why {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
  }
  .why-loaf {
    display: block; margin: 0 auto 28px;
    width: 56px; height: 56px;
    color: var(--accent);
  }
  .why p { font-size: 18px; color: var(--ink); line-height: 1.6; text-align: center; }
  .why p + p { margin-top: 14px; }
  .why .sig {
    margin-top: 28px;
    text-align: center;
    font-family: var(--blackletter);
    font-size: 28px;
    color: var(--ink);
  }

  /* ---------- end CTA (the proclamation) ---------- */
  .end {
    position: relative;
    margin: 110px 0;
    padding: 64px 28px 60px;
    background: var(--surface);
    color: var(--ink);
    text-align: center;
    border: 1.5px solid var(--ink);
    box-shadow:
      inset 0 0 0 5px var(--surface),
      inset 0 0 0 6px var(--ink),
      0 30px 60px -30px rgba(26,20,16,0.18);
    border-radius: 0;
  }
  .end::before,
  .end::after {
    content: "";
    position: absolute; left: 14px; right: 14px;
    height: 6px;
    background: repeating-linear-gradient(90deg,
      var(--ink) 0 5px,
      transparent 5px 10px);
    pointer-events: none;
  }
  .end::before { top: 22px; }
  .end::after  { bottom: 22px; }
  .end h2 {
    font-family: var(--blackletter);
    font-size: clamp(42px, 5.9vw, 68px);
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.05;
  }
  .end p {
    margin: 0 auto 26px;
    color: var(--ink-2);
    font-size: 16px;
    max-width: 440px;
    font-style: italic;
  }
  .end form {
    display: flex; flex-direction: column; gap: 14px;
    max-width: 520px; margin: 0 auto;
    align-items: stretch;
  }
  .end input {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    padding: 12px 16px;
    border-radius: 0;
    font-family: var(--mono);
    font-size: 13px;
    outline: none;
  }
  .end input::placeholder { color: var(--grey); }
  .end input:focus { border-color: var(--accent); }
  .end button {
    background: var(--accent); color: var(--surface);
    border: 1.5px solid var(--ink);
    padding: 0 22px;
    border-radius: 0;
    font-family: var(--blackletter);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px var(--gold-soft);
  }
  .end button:hover { background: var(--accent-2); }

  /* ---------- closing illustration ---------- */
  .closer {
    text-align: center;
    padding: 24px 28px 12px;
  }
  .closer .scene-small {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: block;
  }
  .closer-caption {
    margin: 12px 0 0;
    font-family: var(--blackletter);
    font-size: 22px;
    color: var(--ink);
    letter-spacing: 0.3px;
  }

  footer { text-align: center; padding: 28px 20px 60px; font-size: 12px; color: var(--grey); }

  /* ---------- signals row (open, no card chrome) ---------- */
  .signals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 30px;
    max-width: 1020px;
    margin: 0 auto;
  }
  .signal { text-align: left; }
  .signal .sig-ico {
    display: flex; align-items: center;
    height: 28px;
    margin: 0 0 12px;
    color: var(--ink);
  }
  .signal .sig-ico svg { width: 26px; height: 26px; }
  .signal h3 { font-size: 15px; font-weight: 600; margin: 0 0 5px; letter-spacing: -0.01em; }
  .signal p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }

  /* ---------- the reckoning (savings calculator) ---------- */
  .reckoner {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: var(--surface);
    border: 1.5px solid var(--ink);
    box-shadow:
      inset 0 0 0 5px var(--surface),
      inset 0 0 0 6px var(--ink),
      0 30px 60px -30px rgba(26,20,16,0.18);
    text-align: left;
  }
  .reck-inputs {
    padding: 34px 32px 36px;
    border-right: 1px dashed rgba(26,20,16,0.35);
  }
  .reck-field + .reck-field { margin-top: 24px; }
  .reck-field label, .reck-mood legend {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--ink-2);
    margin: 0 0 8px;
  }
  .reck-input {
    display: flex; align-items: center; gap: 8px;
    background: #ffffff;
    border: 1.5px solid var(--ink);
    padding: 10px 14px;
  }
  .reck-input:focus-within { border-color: var(--accent); }
  .reck-input input {
    flex: 1; width: 100%; min-width: 0;
    border: none; background: transparent; outline: none;
    font-family: var(--mono); font-size: 17px;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    -moz-appearance: textfield;
  }
  .reck-input input::-webkit-outer-spin-button,
  .reck-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .reck-input .unit { font-family: var(--mono); font-size: 13px; color: var(--grey); }
  .reck-mood { border: none; padding: 0; margin: 24px 0 0; }
  .reck-moods { display: flex; }
  .reck-moods input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .reck-moods label {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    border: 1.5px solid var(--ink);
    background: #ffffff;
    font-size: 12.5px; font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    user-select: none;
  }
  .reck-moods label + label { border-left: none; }
  .reck-moods input:checked + label { background: var(--ink); color: var(--surface); }
  .reck-moods input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
  .reck-out { padding: 34px 32px 36px; }
  .reck-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    font-size: 13.5px; color: var(--ink-2);
    padding: 6px 0;
  }
  .reck-row span:last-child {
    font-family: var(--mono); font-size: 13px;
    font-variant-numeric: tabular-nums; color: var(--ink);
    white-space: nowrap;
  }
  .reck-total {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    border-top: 1px solid rgba(26,20,16,0.4);
    margin-top: 10px; padding-top: 14px;
    font-size: 14px; font-weight: 600; color: var(--ink);
  }
  .reck-total span:last-child {
    font-family: var(--blackletter);
    font-size: 34px; font-weight: 700; line-height: 1;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  .reck-money {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    margin-top: 18px;
    font-size: 13.5px; color: var(--ink-2);
  }
  .reck-money b {
    font-size: 44px; font-weight: 800;
    letter-spacing: -0.03em; line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .reck-verdict {
    margin: 16px 0 0;
    font-size: 14px;
    font-style: italic;
    color: var(--ink-2);
  }

  /* ---------- trust / oath band ---------- */
  .trust-band {
    border: 1px solid var(--accent);
    border-radius: 20px;
    background: var(--accent-soft);
    padding: 44px 32px;
    text-align: center;
  }
  .trust-band h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    color: var(--ink);
  }
  .trust-sub {
    color: var(--ink-2);
    max-width: 540px;
    margin: 12px auto 0;
    font-size: 16px;
    line-height: 1.55;
  }
  .trust-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
    text-align: left;
  }
  .trust-point { display: flex; gap: 14px; align-items: flex-start; }
  .trust-point .tp-ico {
    flex: none;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--accent);
    color: var(--accent);
  }
  .trust-point .tp-ico svg { width: 20px; height: 20px; }
  .trust-point h3 { font-size: 15px; font-weight: 600; margin: 2px 0 5px; letter-spacing: -0.01em; color: var(--ink); }
  .trust-point p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

  /* ---------- faq (the GEO engine) ---------- */
  .faq { max-width: 760px; margin: 0 auto; }
  .faq details { border-bottom: 1px solid var(--rule); }
  .faq summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 4px;
    font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
    color: var(--ink);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+"; flex: none;
    font-family: var(--mono); font-size: 20px; color: var(--accent);
  }
  .faq details[open] summary { color: var(--ink); }
  .faq details[open] summary::after { content: "\2013"; }
  .faq .answer {
    padding: 0 4px 22px;
    max-width: 660px;
    color: var(--ink-2);
    font-size: 15.5px; line-height: 1.6;
  }

  /* ---------- colossal medieval button ---------- */
  .end .btn-colossus {
    display: block; width: 100%;
    margin: 4px auto 0;
    background: var(--accent); color: var(--surface);
    border: 2px solid var(--ink);
    border-radius: 0;
    box-shadow:
      inset 0 0 0 4px var(--gold-soft),
      inset 0 0 0 6px var(--accent),
      0 20px 44px -16px rgba(138,31,31,0.55);
    font-family: var(--blackletter);
    font-size: clamp(34px, 7vw, 58px);
    font-weight: 700; letter-spacing: 1px; line-height: 1;
    padding: 30px 24px 26px;
    cursor: pointer;
  }
  .end .btn-colossus:hover { background: var(--accent-2); }
  .end .btn-colossus span { display: block; }
  .end .btn-colossus small {
    display: block; margin-top: 12px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.02em;    color: var(--gold-soft);
  }

  /* ---------- real-product plates (transparent comps from the Figma file) ---------- */
  .shot { margin: 64px auto 0; max-width: 860px; }
  .shot img { width: 100%; height: auto; }
  .shot figcaption {
    margin: 14px 0 0;
    text-align: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--grey);
  }

  /* responsive */
  @media (max-width: 880px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .signals { grid-template-columns: repeat(2, 1fr); }
    .reckoner { grid-template-columns: 1fr; }
    .reck-inputs { border-right: none; border-bottom: 1px dashed rgba(26,20,16,0.35); }
    .trust-points { grid-template-columns: 1fr; gap: 16px; max-width: 420px; margin-left: auto; margin-right: auto; }
    .nav-links { display: none; }
    .hero-stage { margin: 24px auto 36px; }
  }
  @media (max-width: 520px) {
    .sword { margin-top: 72px; width: 86%; }
    .steps { grid-template-columns: 1fr; }
    .signals { grid-template-columns: 1fr; }
    .end form { flex-direction: column; }
    .end button { padding: 14px; }
  }

  /* ---------- pricing (CSS-only monthly/yearly toggle, no JS) ---------- */
  .pricing { max-width: 460px; margin: 36px auto 0; text-align: center; }
  .price-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .price-toggle {
    display: inline-flex; gap: 4px; margin: 0 auto 30px;
    padding: 4px; border: 1px solid var(--ink); border-radius: 980px; background: var(--bg);
  }
  .price-toggle label {
    padding: 8px 20px; border-radius: 980px; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--ink-2); user-select: none;
    transition: background .15s, color .15s;
  }
  #bill-monthly:checked ~ .price-toggle label[for="bill-monthly"],
  #bill-annual:checked ~ .price-toggle label[for="bill-annual"] { background: var(--accent); color: #fff; }
  .price-radio:focus-visible ~ .price-toggle label[for="bill-monthly"] { outline: 2px solid var(--accent); outline-offset: 3px; }
  .price-sub-annual strong { color: var(--accent); font-weight: 600; }

  .price-figure { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
  .price-figure .amt { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
  .price-figure .per { font-size: 17px; font-weight: 500; color: var(--grey); letter-spacing: 0; }
  .price-sub { font-size: 14px; color: var(--ink-2); margin: 14px 0 0; }
  /* default = monthly; annual variants hidden until its radio is checked */
  .amt-annual, .price-sub-annual { display: none; }
  #bill-annual:checked ~ .price-panel .amt-monthly { display: none; }
  #bill-annual:checked ~ .price-panel .price-sub-monthly { display: none; }
  #bill-annual:checked ~ .price-panel .amt-annual { display: flex; }
  #bill-annual:checked ~ .price-panel .price-sub-annual { display: block; }
  .price-note { max-width: 480px; text-align: center; font-size: 13px; color: var(--ink-2); margin: 26px auto 0; }

  /* ---------- article pages (SEO cluster) ---------- */
  .doc { max-width: 760px; margin: 0 auto; padding: 0 28px 40px; }
  .doc h1 {
    font-family: var(--blackletter);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.14; letter-spacing: 0.005em;
    font-weight: 600; margin: 48px 0 0;
    text-wrap: balance;
  }
  .doc .standfirst {
    font-size: 19px; line-height: 1.55; color: var(--ink-2);
    margin: 18px 0 0; max-width: 62ch;
  }
  .doc h2 {
    font-family: var(--blackletter);
    font-size: clamp(23px, 2.6vw, 30px);
    line-height: 1.2; font-weight: 600;
    margin: 56px 0 0;
  }
  .doc h3 { font-size: 17px; font-weight: 600; margin: 32px 0 0; letter-spacing: -0.01em; }
  .doc p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 14px 0 0; max-width: 68ch; }
  .doc p strong { color: var(--ink); font-weight: 600; }
  .doc ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); max-width: 68ch; }
  .doc li { font-size: 16px; line-height: 1.7; margin: 6px 0 0; }
  /* prose links only; .btn keeps its own colour (.related a overrides below) */
  .doc a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
  .doc a:not(.btn):hover { color: var(--accent-2); }

  .doc table { width: 100%; border-collapse: collapse; margin: 24px 0 0; font-size: 15px; }
  .doc th, .doc td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
  .doc thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); }
  .doc td:first-child { font-weight: 600; color: var(--ink); width: 30%; }
  .doc .mine { color: var(--ink); }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .verdict {
    margin: 32px 0 0; padding: 22px 24px;
    background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  }
  .verdict p { margin: 8px 0 0; }
  .verdict p:first-child { margin: 0; }

  .doc-cta { margin: 56px 0 0; padding: 32px 0 0; border-top: 1px solid var(--rule); }
  .doc-cta p { margin: 0 0 20px; }
  .related { margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid var(--rule); }
  .related h2 { font-size: 20px; margin: 0 0 12px; }
  .related ul { list-style: none; padding: 0; margin: 0; }
  .related li { margin: 8px 0 0; }
  .doc .related a, .related a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--grey-2); }
  .doc .related a:hover, .related a:hover { color: var(--accent); border-color: var(--accent); }

  @media (max-width: 520px) {
    .doc { padding: 0 20px 32px; }
    .doc h1 { margin-top: 32px; }
  }

  /* ---------- cluster links ---------- */
  .reading {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px; background: var(--rule); border: 1px solid var(--rule);
  }
  .reading a {
    display: block; padding: 22px 24px;
    background: var(--surface); text-decoration: none;
    transition: background .15s;
  }
  .reading a:hover { background: var(--bg-2); }
  .reading b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
  .reading span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

  .doc .updated { font-family: var(--mono); font-size: 12px; color: var(--grey); margin: 12px 0 0; }
  .doc ol { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); max-width: 68ch; }
  .doc ol li { font-size: 16px; line-height: 1.7; margin: 6px 0 0; }

  .doc-centred { text-align: center; }
  .doc-centred .standfirst, .doc-centred p { margin-left: auto; margin-right: auto; }
  .doc-centred ol { display: inline-block; text-align: left; }
  .doc-centred .related { text-align: left; }
  .dl-btn { margin: 32px 0 8px; }

  /* ---------- welcome / account states (markup built by welcome.html) ---------- */
  .proclamation { margin: 40px auto 0; max-width: 620px; }
  .proclamation .crest { font-size: 34px; line-height: 1; }
  .proclamation h1 {
    font-family: var(--blackletter);
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 600; line-height: 1.15;
    margin: 14px 0 0;
  }
  .proclamation .sub { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 14px auto 0; max-width: 52ch; }
  .proclamation .foot { font-size: 13px; color: var(--grey); margin: 22px 0 0; }
  .proclamation .trial {
    display: inline-block; margin: 16px 0 0; padding: 6px 14px;
    border-radius: 980px; background: var(--accent-soft); color: var(--accent);
    font-size: 13px; font-weight: 600;
  }
  .proclamation .ornament { margin: 22px auto; }
  .doc .proclamation .cta, .proclamation .cta {
    display: inline-block; margin: 26px 0 0;
    padding: 16px 30px; border-radius: 980px;
    background: var(--accent); color: #fff;
    font-size: 15px; font-weight: 500; text-decoration: none;
    border: 1px solid transparent;
  }
  .doc .proclamation .cta:hover, .proclamation .cta:hover { background: var(--accent-2); }
  .doc .proclamation .cta.secondary, .proclamation .cta.secondary { background: var(--surface); color: var(--ink); border-color: var(--grey-2); padding: 11px 20px; font-size: 14px; }
  .doc .proclamation .cta.secondary:hover, .proclamation .cta.secondary:hover { background: var(--bg-2); }
  .proclamation .steps { display: block; margin: 34px 0 0; text-align: left; }
  .proclamation .step {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 22px 0; border-top: 1px solid var(--rule);
  }
  .proclamation .step h3 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
  .proclamation .step p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 6px 0 0; }
  .proclamation .seal {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--rule);
    font-family: var(--blackletter); font-size: 17px; color: var(--gold);
  }
