/* The marketing site (app/routers/site.py, templates/site/). Separate from style.css:
   the app's stylesheet is ~105 KB and none of it is needed here. Same brand as the app's
   logo system (v2.20.0): navy #0d2c48, teal #139a92 and orange #f86800, with the orange
   darkened to #b34800 wherever white text sits on it (4.5:1; the app's --action) and the
   teal to #0b7a73 for text on light. Light only (Jody, 2026-10-30: no dark switch).
   Colours are the tokens below.
   Spacing is a 4px scale (--s-*); radii --radius/--radius-lg. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #0d2c48;
  --navy-2: #123a5c;
  --navy-line: #3a5875;
  --on-navy: #ffffff;
  --on-navy-muted: #dbe6f0;
  --on-navy-soft: #b9cbdc;
  --kicker-on-navy: #ffb27a;
  --action: #b34800;
  --action-hover: #8f3a00;
  --focus: #dd5a00;
  --brand-orange: #f86800;
  --teal: #139a92;
  --teal-text: #0b7a73;
  --teal-soft: #e8f6f4;
  --teal-on-navy: #5fd3c9;
  --glass: rgba(13, 44, 72, 0.82);
  --glow-teal: rgba(19, 154, 146, 0.35);
  --glow-orange: rgba(248, 104, 0, 0.28);
  --grid-line: rgba(255, 255, 255, 0.05);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px; --s-12: 48px;

  --bg: #ffffff;
  --surface: #f4f6f8;
  --soft: #fff4ec;
  --border: #d5dde5;
  --field-border: #77879a;
  --text: #14212e;
  --muted: #4a5a6a;
  --accent-text: #b34800;
  --footer: #eef1f4;
  --yes: #1d6b45;
  --error: #b42318;
  --error-bg: #fef3f2;
  --ok-bg: #ecfdf3;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1200px;
  --shadow: 0 18px 40px -18px rgba(13, 44, 72, 0.45);
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; }
p, ul, ol { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 16px; font-family: inherit; cursor: pointer; }
.btn-primary { background: var(--action); color: var(--on-navy); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-navy); }
.btn-ghost { border-color: var(--navy-line); color: var(--on-navy); background: transparent; }
.btn-ghost:hover { color: var(--on-navy); background: var(--navy-2); }
.btn-outline { border-color: var(--action); color: var(--accent-text); background: transparent; }
.btn-outline:hover { background: var(--soft); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 16px; }
/* Log in: white on the navy header, so returning users find it first (Jody, 2026-10-30); on phones too. */
.btn-login { background: var(--on-navy); color: var(--navy); font-weight: 700; }
.btn-login:hover { background: var(--soft); color: var(--navy); }

/* Header */
.site-header { background: var(--glass); color: var(--on-navy); position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--navy-line); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--navy); } }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--on-navy); }
.brand-mark { width: 48px; height: 30px; }
.brand .brand-wordmark { display: block; height: 26px; width: auto; }
.brand-wordmark .wm-dot { fill: var(--brand-orange); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; }
.site-nav a { color: var(--on-navy-muted); text-decoration: none; font-size: 15px; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--on-navy); }
.site-nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -3px 0 var(--focus); }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.header-actions .btn { white-space: nowrap; }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding: 56px 0 88px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.kicker { color: var(--accent-text); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.hero .kicker, .page-hero .kicker { color: var(--kicker-on-navy); }
.hero h1 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.hero-lead { font-size: 19px; color: var(--on-navy-muted); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.media-frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.media { display: block; width: 100%; height: auto; }
.media-frame.is-phone { max-width: 300px; margin: 0 auto; border-radius: 28px; border: 8px solid var(--navy); }
.hero .media-frame { border-color: var(--navy-line); }
.feature-media { display: flex; flex-direction: column; gap: 24px; }

.page-hero { background: var(--navy); color: var(--on-navy); padding: 48px 0 72px; text-align: center; }
.page-hero .wrap { max-width: 800px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.page-hero h1 { font-weight: 800; font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
.page-hero p { font-size: 18px; color: var(--on-navy-muted); }

/* Home hero: a desktop clip with a phone beside it */
.hero-media { position: relative; padding-bottom: 40px; }
.hero-phone { position: absolute; right: -12px; bottom: 0; width: 30%; max-width: 200px; }
.hero-phone .media-frame.is-phone { border-width: 6px; border-radius: 22px; box-shadow: var(--shadow); }

/* Header: the "Who it's for" menu (a details element, no script needed) */


/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 0 0 88px; }
.section-head { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; margin-bottom: 64px; }
.section-head h2, .h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 18px; max-width: 42rem; }
.features { display: flex; flex-direction: column; gap: 88px; }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; }
.feature-copy { display: flex; flex-direction: column; gap: 18px; }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.feature-body { color: var(--muted); font-size: 17px; }
.ticks { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.example { padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.card h3, .card h4 { font-size: 18px; font-family: var(--font-head); margin: 0; }
.card p { color: var(--muted); font-size: 15px; }
.extras-title { font-size: 26px; margin: 88px 0 20px; }

/* ROI calculator */
.roi { border-radius: 24px; background: var(--surface); border: 1px solid var(--border); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 32px; }
.roi-head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.roi-head p { color: var(--muted); font-size: 17px; }
.roi-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.roi-group { margin: 0; border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.roi-group legend { padding: 0 6px; font-weight: 600; font-size: 16px; }
.roi-assume { font-size: 14px; color: var(--muted); }
.roi-range { font-size: 15px; }
.roi-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.roi-total { padding: 22px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.roi-total.is-middle { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.roi-total-name { font-weight: 600; font-size: 15px; }
.roi-total-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.roi-small { font-size: 13px; color: var(--muted); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 44px; border-radius: 10px; border: 1px solid var(--field-border); background: var(--bg); color: var(--text); padding: 0 12px; font-size: 16px; font-family: inherit; width: 100%; }
.field textarea { padding: 10px 12px; min-height: 120px; }
.hint { font-size: 12px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--error); font-weight: 600; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; }
.contact-intro { display: flex; flex-direction: column; gap: 16px; }
.contact-intro p { color: var(--muted); font-size: 17px; }
.enquiry { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.enquiry .full { grid-column: 1 / -1; }
.enquiry fieldset { margin: 0; border: 1px solid var(--field-border); border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.enquiry legend { padding: 0 6px; font-size: 14px; font-weight: 600; }
.check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.check input { width: 20px; height: 20px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 18px 20px; border-radius: var(--radius); font-size: 16px; }
.notice-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error); }
.notice-ok { background: var(--ok-bg); border: 1px solid var(--yes); }

/* Who it's for */
.feature.is-text { grid-template-columns: 1fr; max-width: 46rem; }
.planned { margin-top: 88px; display: flex; flex-direction: column; gap: 16px; }
.plan-hint { margin-top: 64px; }

/* Pricing */
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--navy-2); border: 1px solid var(--navy-line); gap: 4px; margin-top: 8px; }
.switch a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 999px; color: var(--on-navy-muted); text-decoration: none; font-weight: 600; }
.switch a:hover { color: var(--on-navy); }
.switch a[aria-current="page"] { background: var(--bg); color: var(--text); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; margin-top: -40px; }
.tier { padding: 26px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.tier.is-suggested { border: 2px solid var(--action); }
.tier h2 { font-size: 24px; }
.tier-who, .tier-lead { color: var(--muted); font-size: 15px; }
.tier-seats { font-size: 17px; font-weight: 600; }
.tier ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; flex: 1 1 auto; }
.badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.panel { padding: 28px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.panel.is-soft { background: var(--soft); border-color: transparent; }
.panel ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.addon h3 { font-size: 16px; font-family: var(--font-body); font-weight: 600; }
.addon p { color: var(--muted); font-size: 14px; }
.swipe-hint { font-size: 14px; color: var(--muted); }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background:
  linear-gradient(to right, var(--bg) 30%, transparent) left / 40px 100% no-repeat local,
  linear-gradient(to left, var(--bg) 30%, transparent) right / 40px 100% no-repeat local,
  linear-gradient(to right, var(--border), transparent) left / 12px 100% no-repeat scroll,
  linear-gradient(to left, var(--border), transparent) right / 12px 100% no-repeat scroll; }
.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; border-top: 1px solid var(--border); }
.compare thead th { background: var(--surface); border-top: 0; }
.compare th[scope="row"] { text-align: left; font-weight: 400; position: sticky; left: 0; background: var(--bg); min-width: 14rem; }
.compare thead th:first-child { text-align: left; position: sticky; left: 0; }
.compare td { text-align: center; width: 10rem; min-width: 10rem; }
.compare .is-included { color: var(--yes); font-weight: 600; }
.compare .is-addon { color: var(--muted); font-weight: 600; }
.compare .is-not { color: var(--muted); }

/* Prose pages (About, legal) */
.prose { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.prose h2 { font-size: 24px; margin-top: 24px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose .updated { color: var(--muted); font-size: 14px; }

/* Closing call to action */
.cta-band { background: var(--navy); color: var(--on-navy); padding: 72px 0; text-align: center; }
.cta-band .wrap { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.cta-band p { color: var(--on-navy-muted); font-size: 18px; max-width: 36rem; }

/* Footer */
.site-footer { background: var(--footer); color: var(--muted); padding: 48px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; max-width: 28rem; }
.footer-brand strong { color: var(--text); font-family: var(--font-head); font-size: 18px; }
.footer-name { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-name .brand-wordmark { height: 22px; width: auto; color: var(--navy); }
.footer-mark { width: 40px; height: 25px; }
.footer-slogan { color: var(--teal-text); font-weight: 600; }
.footer-brand span.by { font-weight: 400; color: var(--muted); font-family: var(--font-body); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { padding: 8px 0; }

/* ---------------------------------------------------------------------------
   Home page, round 3 (templates/site/home.html). Without JavaScript every part still
   reads: the before/after shows both panes. site.js adds [data-js] to <html> and the interactions below. Motion stops for
   prefers-reduced-motion (the rule at the end of this file).
   --------------------------------------------------------------------------- */
.hero-home { position: relative; overflow: hidden; padding-top: 72px; isolation: isolate; }
.hero-home::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 360px at 85% 30%, var(--glow-teal), transparent 70%),
    radial-gradient(420px 300px at 70% 95%, var(--glow-orange), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px; }
.hero-home h1 { letter-spacing: -0.025em; font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.slogan { color: var(--teal-on-navy); display: inline-flex; align-items: center; gap: var(--s-2); }
.slogan::before { content: ""; width: 10px; height: 10px; background: var(--brand-orange); }
.btn-glow { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px -8px var(--glow-orange); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-glow:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 36px -8px var(--glow-orange); }
.cta-note { color: var(--on-navy-soft); font-size: 14px; }
.hero-home .media-frame:not(.is-phone) { box-shadow: 0 30px 80px -30px var(--glow-teal), var(--shadow); }

@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

/* Before / after */
.ba { display: flex; flex-direction: column; gap: var(--s-6); align-items: center; }
.ba-switch { display: none; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); gap: 4px; }
[data-js] .ba-switch { display: inline-flex; }
.ba-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.ba-btn[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }
.ba-panes { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--s-6); }
[data-js] .ba-panes { grid-template-columns: minmax(0, 46rem); justify-content: center; }
[data-js] .ba-pane[hidden] { display: none; }
.ba-pane { padding: var(--s-6); border-radius: var(--radius-lg); border: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--s-4); animation: rise 0.35s ease both; }
.ba-before { background: var(--surface); }
.ba-after { background: var(--bg); box-shadow: var(--shadow); border-color: var(--teal); }
.ba-title { font-size: 18px; display: flex; align-items: center; gap: var(--s-2); }
.ba-foot { color: var(--muted); font-size: 15px; }
.chat { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.chat-msg { align-self: flex-start; max-width: 90%; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--bg); border: 1px solid var(--border); font-size: 15px; }
.chat-msg:nth-child(even) { align-self: flex-end; border-radius: 14px 4px 14px 14px; }
.chat-time { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: var(--s-3); }
.tile { padding: var(--s-4); border-radius: var(--radius); background: var(--teal-soft); display: flex; flex-direction: column; gap: 2px; }
.tile-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.tile-value { font-family: var(--font-head); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile-note { font-size: 13px; color: var(--muted); }
.pill { padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }



/* Evidence chips with a "how" tooltip */
.proofs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.proofs-row { justify-content: center; margin-top: var(--s-8); }
.proof { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--text); font-size: 14px; font-weight: 600; }
.proof-tick { width: 14px; height: 8px; border-left: 2px solid var(--teal-text); border-bottom: 2px solid var(--teal-text); transform: rotate(-45deg) translateY(-2px); }
.proof-how { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font: inherit; font-size: 13px; cursor: help; }
.proof-tip { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; width: min(300px, 80vw); padding: 10px 12px; border-radius: 10px; background: var(--navy); color: var(--on-navy); font-size: 13px; font-weight: 400; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
.proof-how:hover + .proof-tip, .proof-how:focus + .proof-tip, .proof:hover .proof-tip { opacity: 1; visibility: visible; transform: none; }

/* Links with an arrow */
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; display: inline-block; transition: transform 0.15s; }
.more:hover::after { transform: translateX(3px); }
.card .badge { margin-bottom: var(--s-1); }

/* Approved quotes (site_content.QUOTES), shown only when there are any */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s-4); }
.quote { margin: 0; padding: var(--s-6); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--s-3); }
.quote blockquote { margin: 0; font-size: 18px; }
.quote figcaption { color: var(--muted); font-size: 14px; }

.cta-band { background:
  radial-gradient(500px 240px at 50% 0%, var(--glow-teal), transparent 70%), var(--navy); }

@media (max-width: 640px) {
  .hero-home { padding-top: 40px; }
  .proof-tip { left: auto; right: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: 36px 0 56px; }
  .section { padding: 56px 0; }
  .section-tight { padding-bottom: 56px; }
  .features { gap: 56px; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .tiers { margin-top: -24px; }
  .hero-phone { right: 0; width: 34%; }
}

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

/* Round 4: the pains, the roles and Why Invenity. */
.pain-says { margin: 0; padding-left: var(--s-3); border-left: 3px solid var(--brand-orange); font-size: 17px; font-style: italic; color: var(--text); }
.pain p, .role .ticks { font-size: 15px; }
.role .ticks { color: var(--muted); }
.roles-head { margin: 88px 0 32px; }
.section-more { text-align: center; margin-top: var(--s-8); }
.why-compare { min-width: 640px; }
.why-compare td { text-align: left; width: auto; min-width: 14rem; }
.why-compare .is-ours { font-weight: 600; color: var(--text); }
.why-small { margin-top: var(--s-3); font-size: 13px; color: var(--muted); }
.faq { border-bottom: 1px solid var(--border); padding: var(--s-3) 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: var(--s-2); color: var(--muted); }
.cost-note { max-width: 46rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: var(--s-3); }
.cost-note p { color: var(--muted); }

/* ---------------------------------------------------------------------------
   Round 5 (Jody's rework doc, 2026-10-29): a one-row phone header with a full-screen
   menu, WhatsApp, Founding Makers, the home page's new order and its layout fixes,
   About, Contact and Pricing. Photo slots (.photo-frame) render only once a photo exists.
   --------------------------------------------------------------------------- */

/* Header: WhatsApp, Log in, and the phone menu */
.header-wa { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--on-navy-muted); text-decoration: none; font-size: 15px; }
.header-wa:hover { color: var(--on-navy); }
.wa-icon { flex: none; }
@media (min-width: 1081px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 12px 22px; }
  .site-nav { flex-wrap: nowrap; gap: 4px 20px; white-space: nowrap; }
}
@media (min-width: 1081px) and (max-width: 1320px) {
  .header-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.book-short { display: none; }
.phone-menu { display: none; }
.phone-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--navy-line); display: flex; align-items: center; justify-content: center; }
.phone-menu summary::-webkit-details-marker { display: none; }
.phone-menu-icon, .phone-menu-icon::before, .phone-menu-icon::after { display: block; width: 20px; height: 2px; border-radius: 1px; background: var(--on-navy); position: relative; }
.phone-menu-icon::before, .phone-menu-icon::after { content: ""; position: absolute; left: 0; }
.phone-menu-icon::before { top: -6px; }
.phone-menu-icon::after { top: 6px; }
.phone-menu[open] .phone-menu-icon { background: transparent; }
.phone-menu[open] .phone-menu-icon::before { top: 0; transform: rotate(45deg); }
.phone-menu[open] .phone-menu-icon::after { top: 0; transform: rotate(-45deg); }
.phone-menu-panel { position: fixed; inset: 60px 0 0 0; z-index: 40; overflow-y: auto; background: var(--navy); padding: var(--s-4) var(--gutter) var(--s-12); display: flex; flex-direction: column; }
.phone-menu-panel a { color: var(--on-navy); text-decoration: none; font-size: 18px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--navy-line); }
.phone-menu-panel a[aria-current="page"] { color: var(--kicker-on-navy); }

/* WhatsApp: floating on phones, in the header on larger screens */
.wa-float { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 25; width: 56px; height: 56px; border-radius: 50%; background: var(--teal-text); color: var(--on-navy); box-shadow: var(--shadow); align-items: center; justify-content: center; }
.wa-float:hover { color: var(--on-navy); background: var(--navy); }
.wa-float .wa-icon { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .site-header .wrap { flex-wrap: nowrap; gap: var(--s-3); padding-top: 8px; padding-bottom: 8px; min-height: 60px; }
  .site-nav, .header-wa { display: none; }
  .header-actions { margin-left: auto; flex-wrap: nowrap; gap: 8px; }
  .header-actions .btn-sm { padding: 0 12px; }
  .phone-menu { display: block; }
  .book-long { display: none; }
  .book-short { display: inline; }
  .brand-mark { width: 38px; height: 24px; }
  .brand .brand-wordmark { height: 22px; }
  .wa-float { display: inline-flex; }
  html { scroll-padding-top: 72px; }
}


/* Founding Makers: the bar under the hero (and on Pricing), and the full section */
.section-first { padding-top: 72px; }
.founding { border-radius: 24px; border: 2px solid var(--action); background: var(--bg); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: var(--s-8); box-shadow: var(--shadow); }
.founding-head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 46rem; }
.founding-head p:last-child { color: var(--muted); font-size: 17px; }
.founding-gets, .founding-return { color: var(--muted); max-width: 46rem; }
.founding-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }

/* Monday's "Needs you" tiles: four across, two by two on smaller screens */
.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The ROI calculator: the inputs two by two, the answer beside them */
.roi-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: var(--s-6); align-items: start; }
.roi-body .roi-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roi-results { position: sticky; top: 96px; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.roi-results h3 { font-size: 20px; }
.roi-results .roi-totals { grid-template-columns: 1fr; }
.roi-results .roi-total { padding: var(--s-4); }
@media (max-width: 900px) {
  .roi-body { grid-template-columns: 1fr; }
  .roi-results { position: static; }
}
@media (max-width: 640px) { .roi-body .roi-groups { grid-template-columns: 1fr; } }
.estimate summary { list-style: none; width: 100%; }
.estimate summary::-webkit-details-marker { display: none; }
.estimate-form { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-3); }

/* Photos from the shoot: shown only once their file is in app/static/site/photos/ */
.photo-frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-soft); }
.photo-frame img { display: block; width: 100%; height: auto; }
.photo-frame figcaption { font-size: 13px; color: var(--muted); padding: 8px 12px; }
.photo-frame.is-card { margin: -22px -22px 8px; border-radius: var(--radius) var(--radius) 0 0; }

.cta-band .btn-ghost { color: var(--on-navy); }

/* About: the photo beside the story; Contact: the side panel */
.about-story { display: grid; gap: var(--s-8); }
.about-story.has-photo { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.about-story .prose { margin: 0; }
.about-story:not(.has-photo) .prose { margin: 0 auto; }
.signature { font-weight: 600; color: var(--text); }
.contact-strip { text-align: center; align-items: center; }
@media (max-width: 760px) { .about-story.has-photo { grid-template-columns: 1fr; } }
.photo-frame.is-contact { max-width: 160px; border-radius: 50%; }

/* Pricing: "Quoted for your floor" on each plan, one button under them */
.tier-price { font-weight: 700; color: var(--accent-text); margin-top: auto; }
.tiers-cta { text-align: center; margin-top: var(--s-8); }

/* Footer contacts */
.footer-contact { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; margin-top: var(--s-2); }
.footer-legal { font-size: 13px; color: var(--muted); margin-top: var(--s-2); }

/* Screenshots: a tinted frame while loading, and tap or click to enlarge (site.js) */
.media { background: var(--teal-soft); }
.zoom { position: relative; display: block; cursor: zoom-in; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--glass); color: var(--on-navy); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity 0.15s; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }
.viewer { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; }
.viewer::backdrop { background: rgba(8, 17, 27, 0.86); }
.viewer img { display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: var(--radius); background: var(--teal-soft); }
.viewer-close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bg); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }

/* Home hero on a phone: the floor screen straight under the buttons, above the fold */
@media (max-width: 640px) {
  .hero-home .hero-grid { gap: var(--s-6); }
  .hero-home .hero-desktop { display: none; }
  .hero-home .hero-media { padding-bottom: 0; }
  .hero-home .hero-phone { position: static; width: auto; max-width: 220px; margin: 0 auto; }
  .hero-lead { font-size: 17px; }
}
kbd { font-family: var(--font-body); font-size: 13px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); border-bottom-width: 2px; background: var(--surface); }
.prose ul.proofs { flex-direction: row; padding-left: 0; gap: var(--s-2); }

/* Jody, 2026-10-29 (from her phone): headings centred wherever a section stands on its own. */
.founding-head, .roi-head { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.founding-cta { flex-direction: column; justify-content: center; text-align: center; }
.founding-cta .hint { font-size: 14px; }
.panel > h2, .extras-title, #compare-title, #why-compare-title, .centred-heads > h2 { text-align: center; }
.swipe-hint, .why-small { text-align: center; }
/* A prose block straight inside a section has no .wrap, so give it the side gutter itself. */
section > .prose { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Why Invenity's side-by-side table on a phone (Jody, 2026-10-30): each row becomes a
   card, both answers stacked full width and labelled, instead of a sideways scroll that
   squeezed Invenity's column into a sliver. */
@media (max-width: 720px) {
  .why-scroll { overflow: visible; border: 0; background: none; }
  .why-compare, .why-compare tbody, .why-compare tr, .why-compare th, .why-compare td { display: block; width: auto; min-width: 0; }
  .why-compare { min-width: 0; }
  .why-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .why-compare tr { margin-bottom: var(--s-4); padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .why-compare th[scope="row"] { position: static; background: none; min-width: 0; padding: 0 0 var(--s-2); border: 0; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
  .why-compare td { padding: var(--s-2) 0 0; border: 0; }
  .why-compare td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 2px; }
  .why-compare td.is-ours::before { color: var(--accent-text); }
}
#why-compare-title { margin-bottom: var(--s-4); }

/* Round 6 (Jody, 2026-11-02): everything by area near the top, then the spotlights */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.area h3 { font-size: 19px; }
.area .ticks { font-size: 15px; color: var(--muted); }
.spot-cards { margin-top: 88px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.spot-card h3 { font-size: 22px; }
.spot-card > p:not(.kicker):not(.spot-plan) { color: var(--muted); }
.spot-card .ticks { font-size: 15px; }
.spot-plan { font-size: 13px; font-weight: 600; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.06em; }
.photo-frame.is-wide { max-width: 760px; margin: 0 auto 32px; }
