/* Shared site styles (taste spec). Colours, type and spacing come from tokens.css only. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { background: var(--bg); color: var(--text); font: 400 var(--fs-body)/1.6 var(--font-body); overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-display); }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: var(--r-pill); }
.skip-link:focus { left: 16px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section, .c-section { padding-block: var(--section); }
.section-tight, .c-section.tight { padding-block: var(--section-tight); }
.section-sunk { background: var(--surface-sunk); }

/* One light theme. The legacy section classes no longer flip colour; .band-ink is the one dark band. */
.ink, .ink-800, .bone { background: transparent; color: var(--text); }
.band-ink { background: var(--ink-900); color: var(--text-on-ink); }
.band-ink .lead, .band-ink p { color: var(--text-on-ink-mut); }
.band-ink h2 { color: var(--text-on-ink); }

/* type */
.display-1 { font: 700 var(--fs-display-1)/1.02 var(--font-display); letter-spacing: -.035em; font-variation-settings: "opsz" 96; }
.display-2 { font: 650 var(--fs-display-2)/1.05 var(--font-display); letter-spacing: -.03em; font-variation-settings: "opsz" 72; }
.h3 { font: 600 var(--fs-h3)/1.15 var(--font-display); letter-spacing: -.015em; transition: color var(--dur-fast); }
.h4 { font: 600 var(--fs-h4)/1.2 var(--font-display); letter-spacing: -.01em; transition: color var(--dur-fast); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-mut); max-width: 44ch; }
.muted, .mut { color: var(--text-mut); }
.measure { max-width: 65ch; }
.measure-h { max-width: 18ch; }
.eyebrow { font: 600 var(--fs-small)/1.3 var(--font-body); color: var(--cobalt-300); margin-bottom: var(--s-4); }

/* buttons + links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); font: 600 1rem/1 var(--font-body); white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.btn-primary { background: var(--cobalt-600); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--cobalt-700); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.text-link, .btn-secondary-dark, .btn-secondary-light { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); transition: color var(--dur-fast), text-decoration-color var(--dur-fast); background: none; border: 0; padding: 0; min-height: 0; box-shadow: none; }
.text-link:hover, .btn-secondary-dark:hover, .btn-secondary-light:hover { color: var(--accent); text-decoration-color: currentColor; }
.text-link.on-ink { color: var(--text-on-ink); text-decoration-color: rgba(255,255,255,.35); }
.text-link.on-ink:hover { color: #fff; text-decoration-color: #fff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); } }
.bar { height: var(--header-h); display: flex; align-items: center; gap: var(--s-6); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo img { width: auto; height: 26px; }
.wordmark { font: 800 17px/1 var(--font-wordmark); letter-spacing: -.02em; white-space: nowrap; color: var(--text); }
.wordmark b { color: var(--cobalt-600); font-weight: 800; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font: 500 .9375rem/1 var(--font-body); color: var(--text-mut); white-space: nowrap; padding-block: 8px; transition: color var(--dur-fast); }
.nav a:hover, .nav a[aria-current=page] { color: var(--text); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 16px; height: 1.5px; background: var(--text); transition: transform var(--dur-base) var(--ease-out); }
.menu-btn[aria-expanded=true] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded=true] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); padding: 8px var(--gutter) 24px; display: grid; align-content: start; height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { font: 500 1.125rem/1 var(--font-body); padding: 15px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 20px; }
@media (max-width: 1099px) { .nav { display: none; } .header-cta { margin-left: auto; } .menu-btn { display: flex; } }
@media (max-width: 420px) { .header-cta { display: none; } .menu-btn { margin-left: auto; } }

/* footer */
.site-footer { background: var(--ink-900); color: var(--text-on-ink-mut); padding-block: var(--s-9) var(--s-7); }
.site-footer .wordmark { color: var(--text-on-ink); }
.site-footer .wordmark b { color: var(--cobalt-300); }
.foot-grid { display: grid; grid-template-columns: minmax(0,4fr) repeat(3, minmax(0,2.6fr)); gap: var(--s-6) var(--s-7); }
.foot-brand p { margin-top: var(--s-4); font-size: var(--fs-small); }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer h2 { font: 600 var(--fs-label)/1.3 var(--font-body); color: var(--text-on-ink); margin-bottom: 6px; }
.site-footer nav a { font-size: var(--fs-small); color: var(--text-on-ink-mut); }
.site-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--ink-600); padding-top: var(--s-5); margin-top: var(--s-5); font-size: var(--fs-label); }
@media (max-width: 899px) { .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0,1fr); } }

/* Content is visible without JavaScript. Legacy .reveal markup stays inert. */
.reveal, .reveal.in { opacity: 1; transform: none; }

/* ===== Page-type components ===== */
.c-section-head { max-width: 760px; margin-bottom: var(--s-7); }
.c-section-head h2 { font: 650 var(--fs-display-2)/1.05 var(--font-display); letter-spacing: -.03em; max-width: 20ch; }
.c-section-head h2 + p { margin-top: var(--s-4); font-size: var(--fs-lead); line-height: 1.5; color: var(--text-mut); max-width: 52ch; }

/* inner hero: 6/6 split, photo bleeds right on desktop */
.c-hero { padding-block: clamp(32px, 1.5rem + 2.5vw, 64px) clamp(40px, 2rem + 2vw, 72px); overflow: clip; }
.c-hero-grid { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.c-hero-grid.no-media { grid-template-columns: minmax(0,1fr); }
.c-hero h1 { font: 700 var(--fs-display-1)/1.02 var(--font-display); letter-spacing: -.035em; max-width: 16ch; }
.c-hero .lead { margin-top: var(--s-5); }
.c-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-6); }
.c-hero-media { margin-right: calc(var(--gutter) * -1 - max(0px, (100cqw - var(--container)) / 2)); }
.c-hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-media) 0 0 var(--r-media); box-shadow: var(--shadow-photo); }
@media (max-width: 899px) { .c-hero-grid { grid-template-columns: minmax(0,1fr); } .c-hero-media { margin-right: 0; } .c-hero-media img { border-radius: var(--r-media); } }
.c-crumbs { font-size: var(--fs-label); color: var(--text-mut); margin-bottom: var(--s-5); }
.c-crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.c-crumbs a:hover { color: var(--accent); }

/* quick answer */
.c-answer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-media); padding: clamp(24px, 3vw, 40px); max-width: 860px; }
.c-answer h2 { font: 600 var(--fs-label)/1.3 var(--font-body); color: var(--accent); margin-bottom: var(--s-3); }
.c-answer p { font-size: var(--fs-lead); line-height: 1.55; }
.c-answer .c-status { font-size: var(--fs-small); color: var(--text-mut); margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.c-answer .c-status strong { color: var(--signal-waiting); }

/* item lists: grouped by space and a 1px rule, never equal boxes */
.c-grid { display: grid; column-gap: clamp(24px, 4vw, 64px); grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); }
.c-card { display: block; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.c-card h3 { font: 600 var(--fs-h4)/1.2 var(--font-display); letter-spacing: -.01em; transition: color var(--dur-fast); }
.c-card p { margin-top: var(--s-2); color: var(--text-mut); max-width: 52ch; }
.c-card .c-num { display: block; font: 600 var(--fs-label)/1.3 var(--font-body); color: var(--accent); margin-bottom: var(--s-2); }
a.c-card:hover h3 { color: var(--accent); }
.c-card .c-more { display: inline-block; margin-top: var(--s-3); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
@media (max-width: 767px) { .c-grid { grid-template-columns: minmax(0,1fr); } }

/* checks: facts with a cobalt rule, no glyph bullets */
.c-checks { list-style: none; display: grid; gap: var(--s-5); max-width: 760px; }
.c-checks li { padding-left: var(--s-5); border-left: 2px solid var(--accent); }
.c-checks strong { display: block; font: 600 var(--fs-h4)/1.25 var(--font-display); letter-spacing: -.01em; }
.c-checks span { display: block; margin-top: var(--s-1); color: var(--text-mut); }

/* video */
.c-video { margin: 0; max-width: 960px; background: var(--accent-tint); border-radius: var(--r-media); padding: clamp(16px, 2.4vw, 32px); }
.c-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-card); background: var(--ink-800); box-shadow: var(--shadow-2); }
.c-video figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--text-mut); }
.c-picture img { width: 100%; border-radius: var(--r-media); }

/* FAQ: rule-separated details */
.c-faq { max-width: 820px; border-top: 1px solid var(--line); }
.c-faq details { border-bottom: 1px solid var(--line); padding: var(--s-5) 0; }
.c-faq summary { cursor: pointer; font: 600 var(--fs-h4)/1.3 var(--font-display); letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: "+"; color: var(--accent); font: 500 1.4rem/1 var(--font-body); }
.c-faq details[open] summary::after { content: "\2212"; }
.c-faq .c-faq-a { padding-top: var(--s-3); color: var(--text-mut); max-width: 65ch; }

/* closing call: left aligned, one CTA */
.c-cta { border-top: 1px solid var(--line); }
.c-cta h2 { font: 650 var(--fs-display-2)/1.05 var(--font-display); letter-spacing: -.03em; max-width: 20ch; }
.c-cta p { margin-top: var(--s-4); max-width: 52ch; color: var(--text-mut); font-size: var(--fs-lead); }

/* the approval band partial */
.approve-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.approve-copy .lead { margin-block: var(--s-5) var(--s-6); }
@media (max-width: 899px) { .approve-grid { grid-template-columns: minmax(0,1fr); } }

/* run sheet: times down the left margin */
.runsheet { list-style: none; margin: var(--s-7) 0 0; padding: 0; }
.runsheet li { display: grid; grid-template-columns: 8.5rem minmax(0,1fr); gap: var(--s-5); padding-block: var(--s-5); }
.runsheet li + li { border-top: 1px solid var(--line); }
.runsheet time { font: 600 var(--fs-label)/1.6 var(--font-body); color: var(--accent); white-space: nowrap; }
.runsheet div { color: var(--text-mut); }
.runsheet b { font-weight: 600; color: var(--text); }
@media (max-width: 480px) { .runsheet li { grid-template-columns: minmax(0,1fr); gap: var(--s-1); } }

/* facts (definition list with cobalt rule) */
.facts { margin: var(--s-7) 0 0; display: grid; gap: var(--s-5); }
.facts div { padding-left: var(--s-5); border-left: 2px solid var(--accent); }
.facts dt { font: 600 var(--fs-h4)/1.25 var(--font-display); letter-spacing: -.01em; }
.facts dd { margin: var(--s-1) 0 0; color: var(--text-mut); max-width: 44ch; }
.facts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* split used by proof / media sections */
.c-split { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: minmax(0,6fr) minmax(0,5fr); align-items: center; }
.c-split > div:only-child { grid-column: 1 / -1; }
@media (max-width: 899px) { .c-split { grid-template-columns: minmax(0,1fr); } }
.gm-figure img, .gina-photo { border-radius: var(--r-media); }

/* comparison table */
.c-table-wrap { overflow-x: auto; border-radius: var(--r-media); border: 1px solid var(--line); background: var(--surface); }
.c-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.c-table th, .c-table td { padding: var(--s-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: var(--fs-small); }
.c-table thead th { background: var(--surface-sunk); font-weight: 600; }

/* prose */
.c-prose { max-width: var(--measure); }
.c-prose h2 { font: 650 1.6rem/1.2 var(--font-display); letter-spacing: -.02em; margin: var(--s-6) 0 var(--s-3); }
.c-prose p, .c-prose ul, .c-prose ol { margin-bottom: var(--s-4); }
.c-prose ul, .c-prose ol { padding-left: 1.2em; }
.c-prose a { text-decoration: underline; text-underline-offset: 3px; }

/* other verticals: one line of text links */
.c-more-links { font-size: var(--fs-small); color: var(--text-mut); }
.c-more-links a { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* integrations tiles: text only */
.c-tools-grid { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.c-tools-tile { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: var(--fs-small); transition: border-color var(--dur-fast); }
a.c-tools-tile:hover { border-color: var(--accent); color: var(--accent); }
.c-tools-tile.is-plain { color: var(--text-mut); background: transparent; }
.c-tools-note { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--text-mut); }

/* form */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-media); padding: clamp(24px, 3vw, 40px); display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font: 600 var(--fs-label)/1.3 var(--font-body); }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--input-border); border-radius: var(--r-input); padding: 12px 14px; min-height: 48px; width: 100%; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid=true] { border-color: var(--signal-error); }
.hint { font-size: var(--fs-label); color: var(--text-mut); }
.err { font-size: var(--fs-label); color: var(--signal-error); font-weight: 500; }
.form .btn { justify-self: start; }
.form-done { font-weight: 600; }
@media (prefers-color-scheme: dark) { .err { color: #F97066; } .field [aria-invalid=true] { border-color: #F97066; } .wordmark b { color: var(--cobalt-300); } }
@media (max-width: 899px) { .form .btn { justify-self: stretch; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Bleeds and the rail measure the content width (100cqw), never 100vw, which includes a desktop scrollbar. */
main { container-type: inline-size; }
