/* VisaVigilAI — site stylesheet. Light theme only, by decision (09/10).
   Tokens mirror the product's own (Inter + Newsreader, the brand-mark orange
   on "Vigil"), so the site and the platform read as one family.
   09/13 audit pass: smaller display type, flat surfaces (no hover lifts, few
   shadows), screenshots shown larger with captions outside the image. */

:root {
  color-scheme: light;
  /* Section grounds (09/14 colour pass): white and a light blue-grey
     alternate; pale blue only in the hero's gradient; ivory only behind
     the founders. Nothing else takes a ground colour. */
  --bg: #f3f6fa;
  --bg-2: #eef1f5;
  --ground-white: #ffffff;
  --ground-pale: #edf3f9;
  --ground-ivory: #faf7f0;
  --ground-ivory-line: #ece5d6;
  --surface: #ffffff;
  --border: #e1e5ec;
  --border-strong: #c9d0db;
  --ink: #0f172a;
  --text: #1c2333;
  --muted: #535c6d;
  --faint: #667085;
  --navy: #1f3a5f;
  --navy-deep: #16304f;
  --navy-tint: #e8eef6;
  --orange: #db7100;
  --orange-deep: #a85600;
  --orange-tint: #fbeedd;
  --green: #047857;
  /* Action colour (09/14 hero refinement): sapphire, white text 5.2:1; hover 6.7:1. */
  --btn: #2563eb; --btn-hover: #1d4ed8;
  --shadow-shot: 0 1px 2px rgba(15, 23, 42, .06), 0 18px 40px -24px rgba(15, 23, 42, .28);
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-card: 12px;
  --r-ctl: 8px;
  --max: 1240px;
  --prose: 64ch;

  /* Type scale: eight sizes, two weights. */
  --fs-display: clamp(34px, 4.1vw, 50px);
  --fs-h2: clamp(26px, 2.7vw, 34px);
  --fs-h3: 20px;
  --fs-intro: 18px;
  --fs-lead: 17px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 12px;
  --fw-regular: 400;
  --fw-strong: 600;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--navy); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--navy) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3 { font-family: var(--font-display); font-weight: var(--fw-strong); letter-spacing: -0.012em;
  line-height: 1.15; margin: 0; color: var(--ink); text-wrap: balance; }
h4 { font-family: var(--font-ui); margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
b, strong, th, h4 { font-weight: var(--fw-strong); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[id] { scroll-margin-top: 84px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- Navigation ----- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border); }
.nav__row { display: flex; align-items: center; gap: 28px; height: 64px; }
.wordmark { font-family: var(--font-display); font-size: 22px; font-weight: var(--fw-strong);
  color: var(--ink); letter-spacing: -0.01em; text-decoration: none; }
.wordmark em { font-style: normal; color: var(--orange); }
.wordmark--lockup { display: inline-flex; flex-direction: column; line-height: 1; gap: 3px; }
.wordmark__by { font-family: var(--font-ui); font-size: var(--fs-label); font-weight: var(--fw-regular); color: var(--faint); letter-spacing: .02em; }
.nav__links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav__links a { color: var(--muted); font-size: var(--fs-small); text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.nav__links a:hover,.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav__links a.btn--primary { color: #fff; padding: 9px 14px; margin-left: 10px; border-radius: var(--r-ctl); box-shadow: none; }
.nav__burger { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong);
  border-radius: 8px; width: 44px; height: 40px; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 6px; font-size: var(--fs-body); }
  .nav__links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 12px; }
  .nav__links a.btn--primary { margin: 10px 0 0; padding: 13px 16px; }
  .nav__burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* ----- Buttons and links ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  font-family: var(--font-ui); font-weight: var(--fw-strong); font-size: var(--fs-small); line-height: 1;
  padding: 12px 18px; border-radius: var(--r-ctl); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .12s ease, border-color .12s ease; }
.btn--primary { background: var(--btn); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, .18); transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn--primary:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(29, 78, 216, .45); }
.btn--primary:active { transform: none; box-shadow: 0 1px 2px rgba(29, 78, 216, .18); }
@media (prefers-reduced-motion: reduce) { .btn--primary, .btn--primary:hover { transform: none; transition: background .15s ease; } }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--navy); }
.btn--sm { min-height: 38px; padding: 9px 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-arrow { font-weight: var(--fw-strong); font-size: var(--fs-small); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }
.link-arrow { transition: color .15s ease; }
.link-arrow:hover { color: var(--btn-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ----- Headings, sections ----- */
.eyebrow { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .12em; font-weight: var(--fw-strong);
  color: var(--orange-deep); margin-bottom: 10px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--ground-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* A warm ivory band behind the founders, on Home and About. The photographs keep their own colour; only their hairline warms. */
.section--warm { background: var(--ground-ivory); border-top: 1px solid var(--ground-ivory-line); border-bottom: 1px solid var(--ground-ivory-line); }
.section--warm .person img,.section--warm .founder__photo { border-color: var(--ground-ivory-line); }
.section--warm .founder + .founder { border-top-color: var(--ground-ivory-line); }
.section h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: var(--prose); line-height: 1.6; margin-top: 12px; }
.sec-head { max-width: 720px; margin: 0 0 32px; }
.sec-head--c { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head--c .lead { margin-left: auto; margin-right: auto; }
.fn { font-size: var(--fs-label); vertical-align: super; color: var(--orange-deep); text-decoration: none; margin-left: 1px; }
.note { font-size: var(--fs-small); color: var(--muted); }

/* ----- Page heads (inner pages): compact, left-aligned ----- */
.pagehead { padding: 44px 0 8px; }
.pagehead h1 { font-size: var(--fs-display); max-width: 22ch; }
.pagehead .lead { font-size: var(--fs-intro); margin-top: 14px; }
.pagehead__cta { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; margin-top: 22px; }

/* ----- Home hero: copy left, product right ----- */
.hero { padding: 44px 0 56px;
  /* Barely there: white behind the words, drifting to pale blue behind the
     product, with a faint warm glow under the screenshot. Static; no motion. */
  background:
    radial-gradient(ellipse 46% 72% at 72% 48%, color-mix(in srgb, var(--orange) 13%, transparent), transparent 72%),
    linear-gradient(100deg, var(--ground-white) 0%, var(--ground-white) 36%, var(--ground-pale) 100%); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 14fr); gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(32px, 3vw, 42px); }
.hero__lede { font-size: var(--fs-intro); color: var(--muted); margin: 16px 0 24px; max-width: 46ch; line-height: 1.55; }
.hero__cta { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }
/* Hero eyebrow as a pill; other eyebrows keep the plain label. */
.hero .eyebrow { display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px;
  background: #eff6ff; color: #1d4ed8; font-weight: 500; letter-spacing: .08em; box-shadow: inset 0 0 0 1px #dbeafe; }
/* The founder line as a quiet card rather than a line under a hairline. */
.credential { display: flex; gap: 14px; align-items: center; margin-top: 30px; padding: 14px 16px; max-width: 52ch;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.credential picture { flex: 0 0 56px; }
.credential img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.credential p { margin: 0; font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.credential strong { color: var(--ink); }
@media (max-width: 960px) {
  .hero { background:
    radial-gradient(ellipse 80% 34% at 50% 76%, color-mix(in srgb, var(--orange) 12%, transparent), transparent 72%),
    linear-gradient(180deg, var(--ground-white) 0%, var(--ground-white) 45%, var(--ground-pale) 100%); }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__lede { max-width: 60ch; }
}
/* The hero product shot sits in its own backdrop card, lifted. */
.hero .shot { background: #f0f4f8; border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px 12px 10px; }
.hero .shot__img { border-radius: 12px; border-color: #dbe3ec;
  /* A 1px white ring just outside the hairline lifts the product off the grey card. */
  box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(15, 23, 42, .06), 0 20px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .05); }
.hero .shot figcaption { padding: 0 4px; }
@media (max-width: 560px) { .hero .shot { padding: 8px 8px 6px; border-radius: 14px; } .hero .eyebrow { letter-spacing: .03em; font-size: 11px; border-radius: 14px; } }

/* ----- Screenshots: one figure style, caption outside the image ----- */
.shot { margin: 0; }
.shot__img { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--r-card);
  background: #f8fafc; overflow: hidden; cursor: zoom-in; font: inherit; color: inherit;
  /* Every product shot (09/14): a 1px white ring just outside the hairline and a soft lift, as in the hero. No backdrop card -- that stays the hero's. */
  border-color: #dbe3ec; box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(15, 23, 42, .06), 0 16px 24px -8px rgba(15, 23, 42, .10), 0 6px 10px -6px rgba(15, 23, 42, .05); }
.shot__img img { width: 100%; }
.shot__zoom { position: absolute; right: 10px; top: 10px; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--ink);
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; opacity: 0; transition: opacity .15s ease; }
.shot__img:hover .shot__zoom,.shot__img:focus-visible .shot__zoom { opacity: 1; }
@media (hover: none) { .shot__zoom { opacity: 1; } }
.shot figcaption { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.shot figcaption b { color: var(--ink); }
.shot__data { color: var(--faint); font-size: var(--fs-label); }

/* Enlarged view: native <dialog>, so Esc and focus return work everywhere */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 94vh; width: 100%; }
.lightbox::backdrop { background: rgba(15, 23, 42, .78); }
.lightbox__inner { background: var(--surface); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; max-height: 94vh; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: var(--fs-small); color: var(--muted); }
.lightbox__body { overflow: auto; }
.lightbox__body img { width: 100%; max-width: none; }
@media (max-width: 700px) { .lightbox__body img { width: 1100px; } }

/* ----- Workflow rows: text beside a large screenshot ----- */
.flow { display: grid; gap: 72px; }
.flow__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.flow__row--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.flow__row--rev .flow__text { order: 2; }
.flow__text h3 { font-size: 26px; margin-bottom: 12px; }
.flow__text p { color: var(--muted); }
.flow__step { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .1em; font-weight: var(--fw-strong); color: var(--orange-deep); margin-bottom: 10px; }
.looks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.looks li { position: relative; padding-left: 22px; font-size: var(--fs-small); color: var(--text); line-height: 1.5; }
.looks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.flow__text .link-arrow { display: inline-block; margin-top: 18px; }
@media (max-width: 900px) {
  .flow { gap: 52px; }
  .flow__row,.flow__row--rev { grid-template-columns: 1fr; gap: 20px; }
  .flow__row--rev .flow__text { order: 0; }
}

/* ----- Compact lists (supporting capabilities) ----- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.checklist li { padding: 14px 0; border-top: 1px solid var(--border); }
.checklist b { display: block; color: var(--ink); font-size: var(--fs-body); }
.checklist span { display: block; color: var(--muted); font-size: var(--fs-small); margin-top: 2px; line-height: 1.5; }
@media (max-width: 900px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }

/* ----- Practical facts: three columns with a rule, no cards ----- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.fact { border-top: 2px solid var(--navy); padding-top: 18px; }
.fact h3 { font-family: var(--font-ui); font-size: var(--fs-body); letter-spacing: 0; margin-bottom: 8px; }
.fact p { font-size: var(--fs-small); color: var(--muted); }
.fact ul { margin: 0 0 12px; padding-left: 18px; font-size: var(--fs-small); color: var(--muted); }
.fact li { margin-bottom: 4px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; gap: 24px; } }

/* ----- Founders strip (home) ----- */
.founders-strip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.founders-strip__people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 440px; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--r-card); border: 1px solid var(--border); }
.person b { display: block; margin-top: 12px; color: var(--ink); font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; }
.person span { display: block; font-size: var(--fs-small); color: var(--muted); line-height: 1.45; margin-top: 3px; }
.founders-strip blockquote { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.45; color: var(--ink); }
.founders-strip blockquote + p { margin-top: 16px; color: var(--muted); }
@media (max-width: 900px) { .founders-strip { grid-template-columns: 1fr; gap: 32px; } }

/* ----- Screen viewer (Platform): manual tabs, caption below ----- */
.viewer { max-width: 1000px; margin: 0 auto; }
.viewer__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.viewer__tabs button { font: inherit; font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--muted); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 15px; min-height: 40px; cursor: pointer; }
.viewer__tabs button:hover { color: var(--ink); border-color: var(--navy); }
.viewer__tabs button[aria-selected="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.viewer__panel[hidden] { display: none; }
.viewer__nav { display: flex; gap: 8px; }
.viewer__nav button { font: inherit; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; }
.viewer__nav button:hover { border-color: var(--navy); }
.viewer__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }

/* ----- Pricing ----- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.plan { padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--border); position: relative; }
.plan:first-child { border-left: 0; }
.plan--featured { background: var(--navy-tint); box-shadow: inset 0 3px 0 var(--navy); }
.plans .plan__name { font-family: var(--font-ui); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .1em; font-weight: var(--fw-strong); color: var(--navy); margin: 0; }
.plan__price { font-family: var(--font-display); font-size: 38px; font-weight: var(--fw-strong); color: var(--ink); line-height: 1.1; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.plan__price span { font-family: var(--font-ui); font-size: var(--fs-small); font-weight: var(--fw-regular); color: var(--muted); margin-left: 4px; }
.plan__annual { font-size: var(--fs-small); color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.plan__limit { font-size: var(--fs-body); color: var(--ink); font-weight: var(--fw-strong); margin: 10px 0 0; }
.plan__extra { font-size: var(--fs-small); color: var(--muted); margin: 0; flex: 1; }
.plan .btn { margin-top: 14px; align-self: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan:nth-child(3) { border-left: 0; } .plan:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } .plan { border-left: 0; } .plan + .plan { border-top: 1px solid var(--border); } }
.pricing-note { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: var(--fs-small); color: var(--muted); }
.pricing-note b { color: var(--ink); }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 680px; }
.compare caption { text-align: left; padding: 14px 18px; font-weight: var(--fw-strong); color: var(--ink); border-bottom: 1px solid var(--border); }
.compare th,.compare td { padding: 12px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare thead th { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); background: var(--bg); }
.compare tbody th { font-weight: var(--fw-strong); color: var(--ink); width: 30%; }
.compare tbody tr:last-child th,.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--green); font-weight: var(--fw-strong); }
.compare td.no { color: var(--faint); }
.compare small { display: block; color: var(--muted); font-size: var(--fs-label); font-weight: var(--fw-regular); margin-top: 2px; }

.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.terms dt { font-weight: var(--fw-strong); color: var(--ink); padding-top: 16px; border-top: 1px solid var(--border); }
.terms dd { margin: 4px 0 18px; color: var(--muted); font-size: var(--fs-small); }
.terms div { break-inside: avoid; }
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; } }

/* ----- CTA band ----- */
.band { padding: 64px 0; background: var(--navy); color: #fff; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.band h2 { color: #fff; font-size: var(--fs-h2); }
.band p { color: #d5dde8; margin: 8px 0 0; }
.band .btn--primary { background: #fff; color: var(--navy); }
.band .btn--primary:hover { background: var(--orange-tint); }
.band a:not(.btn) { color: #fff; }
.band :focus-visible { outline-color: #fff; }

/* ----- Tools strip (home) ----- */
.tools-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.tools-strip p { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.tools-strip b { color: var(--ink); }

/* ----- About ----- */
.story { display: grid; gap: 0; max-width: 820px; }
.chapter { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--border); }
.chapter:first-child { border-top: 0; padding-top: 8px; }
.chapter__label { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .1em; font-weight: var(--fw-strong); color: var(--orange-deep); padding-top: 6px; }
.chapter h3 { font-size: 26px; margin-bottom: 12px; }
.chapter p { color: var(--text); line-height: 1.7; max-width: var(--prose); }
@media (max-width: 700px) { .chapter { grid-template-columns: 1fr; gap: 6px; } }
.founders { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 920px; }
.founder + .founder { border-top: 1px solid var(--border); }
.founder { padding: 28px 0; }
.founder { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.founder p { max-width: var(--prose); }
.founder__photo { width: 200px; height: 200px; object-fit: cover; object-position: top; border-radius: var(--r-card); border: 1px solid var(--border); }
.founder h3 { font-size: 26px; }
.founder__cred { font-size: var(--fs-small); color: var(--ink); font-weight: var(--fw-strong); margin: 6px 0 0; line-height: 1.45; }
.founder__role { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; font-weight: var(--fw-strong); color: var(--orange-deep); margin: 8px 0 12px; }
.founder p { color: var(--muted); }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } .founder__photo { width: 160px; height: 160px; } }
.disclosure { margin-top: 36px; padding: 16px 18px; border-left: 3px solid var(--navy); background: var(--surface); font-size: var(--fs-small); color: var(--muted); max-width: 820px; }

/* ----- Contact ----- */
.demo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; gap: 32px; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px; }
.panel h2 { font-size: 26px; }
.form { display: grid; gap: 16px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label,.field legend { font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--ink); }
.field .hint { font-size: var(--fs-label); color: var(--faint); font-weight: var(--fw-regular); }
.req { color: var(--orange-deep); }
.input,.select { font: inherit; font-size: var(--fs-body); padding: 10px 12px; min-height: 44px; border: 1px solid var(--border-strong);
  border-radius: var(--r-ctl); background: var(--surface); color: var(--text); width: 100%; }
.input:focus,.select:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.input[aria-invalid="true"] { border-color: #b42318; }
.field__error { font-size: var(--fs-small); color: #b42318; }
textarea.input { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.more { border-top: 1px solid var(--border); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: var(--fw-strong); font-size: var(--fs-small); color: var(--navy); min-height: 32px; display: flex; align-items: center; }
.more[open] summary { margin-bottom: 14px; }
.more .form { margin-top: 0; }
.plan-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: var(--fs-small); background: var(--navy-tint); color: var(--navy); border-radius: 999px; padding: 6px 12px; }
.plan-chip button { font: inherit; border: 0; background: none; color: var(--navy); cursor: pointer; padding: 0 2px; font-size: 16px; line-height: 1; }
.status { border-radius: var(--r-ctl); padding: 14px 16px; font-size: var(--fs-small); line-height: 1.5; }
.status[hidden] { display: none; }
.status--info { background: var(--navy-tint); color: var(--ink); }
.status--ok { background: #e7f6ef; color: #064e3b; }
.status--err { background: #fdecea; color: #7a1c14; }
.status p { margin: 0 0 8px; }
.status .btn { margin-top: 4px; }
.steps { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 38px; color: var(--muted); font-size: var(--fs-small); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: var(--fs-label); font-weight: var(--fw-strong); display: grid; place-items: center; }
.steps b { color: var(--ink); display: block; }

/* ----- Tools ----- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a { font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--navy); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 14px; text-decoration: none; }
.jump a:hover { border-color: var(--navy); }
.tools { display: grid; gap: 28px; }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; }
.tool__in { padding: 26px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.tool__out { padding: 26px; background: #fbfcfd; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tool h2 { font-size: 24px; }
.tool__desc { color: var(--muted); font-size: var(--fs-small); margin-top: 6px; }
.tool__label { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .1em; font-weight: var(--fw-strong); color: var(--faint); margin: 0; }
.tool form { display: grid; gap: 14px; }
.tool__limits { font-size: var(--fs-small); color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.tool__limits p { margin: 0 0 6px; }
.tool__incv { font-size: var(--fs-small); color: var(--muted); margin: 0; }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } .tool__in { border-right: 0; border-bottom: 1px solid var(--border); } }
.tool--tea { grid-template-columns: 1fr; }
.tool--tea .tool__in { border: 0; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.result { font-size: var(--fs-body); min-height: 48px; }
.result .big { font-family: var(--font-display); font-size: 28px; line-height: 1.2; color: var(--ink); display: block; margin-bottom: 8px; }
.result .quiet { color: var(--muted); font-size: var(--fs-small); display: block; margin-top: 8px; }
.result .warn { color: #8a4b00; }
.tool__example { display: inline-block; margin: 0 0 12px; font-size: var(--fs-label); font-weight: var(--fw-strong); letter-spacing: .01em; color: var(--navy); background: var(--navy-tint); border-radius: 999px; padding: 4px 10px; }
.result .caution { display: block; margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--orange); background: var(--orange-tint); color: #5a3100; font-size: var(--fs-small); }
.result .src { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: var(--fs-small); color: var(--muted); }
.result .src a { font-weight: var(--fw-strong); }
.btn--retry { margin-top: 8px; }
.scroll { overflow-x: auto; }
.rt { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.rt th,.rt td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; vertical-align: top; }
.rt thead th { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.rt td { font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.kv div { background: var(--bg-2); border-radius: 8px; padding: 12px 14px; }
.kv b { display: block; font-family: var(--font-display); font-size: var(--fs-h3); color: var(--ink); font-weight: var(--fw-regular); }
.kv span { font-size: var(--fs-label); color: var(--muted); }

/* ----- Legal pages ----- */
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: var(--fs-small); }
.toc p { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .1em; font-weight: var(--fw-strong); color: var(--faint); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { color: var(--muted); text-decoration: none; display: block; padding: 5px 0; }
.toc a:hover { color: var(--ink); }
@media (max-width: 860px) { .legal-wrap { grid-template-columns: 1fr; gap: 16px; } .toc { position: static; } .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legal { max-width: 70ch; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h2:first-of-type { margin-top: 24px; }
.legal p,.legal li { font-size: var(--fs-body); color: var(--text); line-height: 1.7; }
.legal ul { padding-left: 22px; }
.updated { color: var(--muted); font-size: var(--fs-small); margin-top: 10px; }

/* ----- Footer ----- */
.footer { border-top: 1px solid var(--border); padding: 44px 0 28px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.footer a { color: var(--muted); font-size: var(--fs-small); text-decoration: none; display: inline-block; padding: 3px 0; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .wordmark { font-size: 22px; padding: 0; }
.footer .wordmark--lockup { display: inline-flex; }
.footer .tag { color: var(--muted); font-size: var(--fs-small); max-width: 34ch; margin-top: 10px; }
.footnotes { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; font-size: var(--fs-small); color: var(--muted); line-height: 1.6; max-width: 80ch; }
.footnotes p { margin-bottom: 8px; }
.footer__bar { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.footer__bar p { margin: 0; font-size: var(--fs-label); color: var(--faint); }
.footer__bar nav { display: flex; gap: 20px; }
.footer__bar a { font-size: var(--fs-label); }
