/* Wingfuse website. Tokens from brand/brand-kit.md (approved 2026-11-05). Mood: CAVOK, clear and calm. */

@font-face { font-family: "Lexend"; src: url("../fonts/Lexend-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "B612"; src: url("../fonts/B612-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612"; src: url("../fonts/B612-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F4F8FC; --surface: #FFFFFF; --haze: #E3F3FC;
  --text: #012451; --muted: #4E6280;
  --primary: #1462D3; --primary-hover: #0F51B3; --on-primary: #FFFFFF;
  --accent: #4FC3F7; --border: #D3DFEC; --field-border: #7A8EA9; --focus: #1462D3;
  --warn: #C62828; --warn-bg: #FBE7E7; --ok: #1B7F3B; --caution: #8A5300; --caution-bg: #FDF1DF; --ok-bg: #E7F4EC;
  --night: #0B1626; --night-surface: #15253F; --night-text: #EAF1F9; --night-muted: #A5B4C9;
  --band: var(--night);

  --font-heading: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-readout: "B612", "Atkinson Hyperlegible Next", ui-sans-serif, sans-serif;

  --radius-s: 8px; --radius-l: 16px;
  --wrap: 1180px; --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1626; --surface: #15253F; --haze: #13223A;
  --text: #EAF1F9; --muted: #A5B4C9;
  --primary: #4FC3F7; --primary-hover: #7AD4F9; --on-primary: #0B1626;
  --accent: #4FC3F7; --border: #2A3E60; --field-border: #6F84A3; --focus: #4FC3F7;
  --warn: #FF6B6B; --warn-bg: #3B1D25; --ok: #4CD38A; --caution: #FFB547; --caution-bg: #3A2E14; --ok-bg: #16352A;
  --band: #101E33;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0B1626; --surface: #15253F; --haze: #13223A;
    --text: #EAF1F9; --muted: #A5B4C9;
    --primary: #4FC3F7; --primary-hover: #7AD4F9; --on-primary: #0B1626;
    --accent: #4FC3F7; --border: #2A3E60; --field-border: #6F84A3; --focus: #4FC3F7;
    --warn: #FF6B6B; --warn-bg: #3B1D25; --ok: #4CD38A; --caution: #FFB547; --caution-bg: #3A2E14; --ok-bg: #16352A;
    --band: #101E33;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.125rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s ease, text-decoration-thickness .2s ease; }
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #0B1626; }

h1, h2, h3 {
  margin: 0; color: var(--text); font-family: var(--font-heading);
  letter-spacing: -0.02em; text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4rem); line-height: 1.05; font-weight: 640; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 1.45rem + 1.6vw, 2.375rem); line-height: 1.14; font-weight: 600; letter-spacing: -0.028em; }
h3 { font-size: 1.3125rem; line-height: 1.25; font-weight: 600; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.lead { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.3125rem); line-height: 1.5; color: var(--muted); max-width: 36em; }
.prose { max-width: 34em; }
.prose h2 { margin-bottom: 18px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: .55em; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-s); background: var(--surface); color: var(--text); font-weight: 600; }
.skip:focus { left: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-s); border: 1.5px solid transparent;
  font: 600 1.0625rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--field-border); }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 1rem; }
.btn svg { width: 20px; height: 20px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-s); border: 1.5px solid var(--border); background: transparent; color: var(--text); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.icon-btn:hover { border-color: var(--field-border); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .icon-sun { display: none; }
:root[data-theme="dark"] .theme-btn .icon-sun { display: block; }
:root[data-theme="dark"] .theme-btn .icon-moon { display: none; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .35s ease;
}
.site-header.is-scrolled, .menu-open .site-header { border-bottom-color: var(--border); }
.menu-open .site-header { background: var(--bg); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: block; flex: none; border-radius: var(--radius-s); }
.brand img { height: 44px; width: auto; }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-light { display: none !important; }
  :root:not([data-theme]) .logo-dark { display: block !important; }
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0 8px 0 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-s);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
  transition: background-color .2s ease;
}
.nav-links a:hover { background: var(--haze); color: var(--text); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 10px; }

.menu-btn { display: none; }
.burger { position: relative; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.burger span:first-child { top: 2px; }
.burger span:last-child { top: 10px; }
.menu-btn[aria-expanded="true"] .burger span:first-child { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span:last-child { top: 6px; transform: rotate(-45deg); }

.mobile-menu { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .brand img { height: 38px; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; overflow-y: auto;
    padding: 28px var(--gutter) 48px; background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .18s var(--ease-in), transform .18s var(--ease-in), visibility 0s linear .18s;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .34s var(--ease-out), transform .34s var(--ease-out), visibility 0s; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li { border-bottom: 1px solid var(--border); opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
  .mobile-menu.is-open li { opacity: 1; transform: none; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 60ms); }
  .mobile-menu li a {
    display: flex; align-items: center; min-height: 64px; color: var(--text); text-decoration: none;
    font: 600 1.75rem/1.1 var(--font-heading); letter-spacing: -0.02em;
  }
  .mobile-menu li a[aria-current="page"] { color: var(--primary); }
  .mobile-menu .btn { width: 100%; margin-top: 32px; min-height: 52px; }
  .mobile-menu .menu-contact { margin-top: 24px; color: var(--muted); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--haze); padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); transition: background-color .35s ease; }
.hero-grid { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.22fr .78fr; } }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route .leg { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: .9; }
.route .rp { stroke: var(--text); stroke-width: 2; stroke-linejoin: round; fill: var(--haze); }
.route .rp-filled { fill: var(--text); }
@media (max-width: 700px) { .route { display: none; } }

/* Worked example: the block time readout */
.readout {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 30px 60px -40px color-mix(in srgb, #012451 55%, transparent);
  transition: background-color .35s ease, border-color .35s ease;
}
.readout-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.readout-title { font-size: 1.375rem; }
.readout-tag { color: var(--muted); font-size: 1rem; }
.readout-meta { margin-top: 6px; color: var(--muted); font-size: 1rem; }
.code { font-family: var(--font-readout); font-weight: 700; color: var(--text); letter-spacing: .04em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; }
.unit { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%; min-height: 54px; padding: 0 14px; border-radius: var(--radius-s);
  border: 1.5px solid var(--field-border); background: var(--bg); color: var(--text);
  font: 700 1.375rem/1 var(--font-readout); letter-spacing: .03em;
  transition: border-color .2s ease, background-color .35s ease;
}
.field input:hover { border-color: var(--text); }
.field input:focus-visible { outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--warn); }
.calc-error { min-height: 1.6em; margin-top: 8px; color: var(--warn); font-size: 1rem; }
.result {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px;
  padding: 18px 20px; border-radius: 12px; background: var(--night); color: var(--night-text);
}
:root[data-theme="dark"] .result { background: #08111E; }
.result-label { grid-column: 1 / -1; font-size: .9375rem; color: var(--night-muted); }
.result-total { font: 700 clamp(2.6rem, 2rem + 2vw, 3.25rem)/1 var(--font-readout); letter-spacing: .02em; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.result-dec { font: 400 1.375rem/1.2 var(--font-readout); color: #4FC3F7; padding-bottom: 4px; }
.readout-note { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
@media (prefers-reduced-motion: no-preference) {
  .result-total.is-updating, .result-dec.is-updating { animation: readout-tick .4s var(--ease-out); }
}
@keyframes readout-tick { from { opacity: .15; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Hero entrance: the one orchestrated page-load moment */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 60ms); }
  .route .leg { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease-out) .35s forwards; }
  .route .rp { opacity: 0; animation: fade-in .6s ease-out forwards; animation-delay: var(--d, 1s); }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Sections ---------- */
.section-head { max-width: 44rem; }
.section-head p { margin-top: 18px; color: var(--muted); }
.section-cta { margin-top: 40px; }
.section-surface { background: var(--surface); transition: background-color .35s ease; }

.figures { display: grid; gap: 24px; margin-top: 48px; }
@media (min-width: 860px) { .figures { grid-template-columns: 1fr 1fr; } }
.figure { margin: 0; padding: clamp(18px, 3vw, 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); }
.figure figcaption { margin-top: 18px; color: var(--muted); }
.figure figcaption strong { color: var(--text); font-weight: 600; }

/* Diagrams (inline SVG, drawn like handbook figures) */
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram text { fill: var(--text); font-family: var(--font-body); font-size: 22px; }
.diagram .label { fill: var(--muted); }
.diagram .small { font-size: 18px; }
.diagram .num { font-family: var(--font-readout); font-weight: 700; }
.diagram .line { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.diagram .line-primary { stroke: var(--primary); }
.diagram .line-thin { stroke-width: 2; stroke: var(--muted); }
.diagram .dot { fill: var(--surface); stroke: var(--text); stroke-width: 3; }
.diagram .arrow { fill: none; stroke: inherit; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.js [data-draw] .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-draw].is-visible .draw { stroke-dashoffset: 0; }
.js [data-draw] .appear { opacity: 0; transition: opacity .6s ease-out; transition-delay: var(--d, 0s); }
.js [data-draw].is-visible .appear { opacity: 1; }

/* Checklist: what to expect from every app */
.checklist { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0 56px; }
@media (min-width: 860px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { padding: 26px 0 28px; border-top: 1px solid var(--border); }
.check-head { display: flex; align-items: center; gap: 14px; }
.check-head h3, .check-head .check-item { flex: 0 1 auto; }
.leader { flex: 1 1 24px; min-width: 24px; height: 0; border-bottom: 2px dotted var(--field-border); transform-origin: left; }
.tick { flex: none; width: 34px; height: 34px; color: var(--primary); }
.tick circle { fill: none; stroke: currentColor; stroke-width: 2; opacity: .3; }
.tick path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.checklist p { margin-top: 10px; color: var(--muted); max-width: 34em; }
.js .checklist[data-draw] .leader { transform: scaleX(0); transition: transform .7s var(--ease-out); transition-delay: calc(var(--i) * 160ms + 100ms); }
.js .checklist[data-draw].is-visible .leader { transform: scaleX(1); }
.js .checklist[data-draw] .tick path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--ease-out); transition-delay: calc(var(--i) * 160ms + 550ms); }
.js .checklist[data-draw].is-visible .tick path { stroke-dashoffset: 0; }
.checklist-compact { margin-top: 22px; grid-template-columns: 1fr !important; }
.checklist-compact li { padding: 18px 0; }
.checklist-compact .check-item { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .js [data-draw] .draw, .js .checklist[data-draw] .tick path { stroke-dashoffset: 0; transition: none; }
  .js [data-draw] .appear { opacity: 1; transition: none; }
  .js .checklist[data-draw] .leader { transform: none; transition: none; }
}

/* Founder story on the Night band */
.band-night { background: var(--band); color: var(--night-text); transition: background-color .35s ease; }
.band-night h2 { color: #FFFFFF; }
.founders { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) { .founders { grid-template-columns: 1.25fr .75fr; } }
.band-text { margin-top: 22px; max-width: 34em; color: var(--night-text); font-size: 1.1875rem; }
.signoff { text-wrap: balance; margin-top: 30px; font: 600 clamp(1.375rem, 1.2rem + .8vw, 1.75rem)/1.2 var(--font-heading); letter-spacing: -0.02em; color: #FFFFFF; }
.band-link { margin-top: 26px; }
.band-night a { color: #4FC3F7; }
.band-night a:hover { color: #7AD4F9; }
.founders .symbol { width: min(300px, 70%); height: auto; justify-self: center; }

/* Launch updates */
.updates { display: grid; gap: 32px; }
@media (min-width: 860px) { .updates { grid-template-columns: 1fr 1fr; align-items: end; } }
.updates .lead { margin-top: 18px; }
.signup { display: grid; gap: 8px; }
.signup label { font-weight: 600; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input {
  flex: 1 1 240px; min-height: 52px; padding: 0 16px; border-radius: var(--radius-s);
  border: 1.5px solid var(--field-border); background: var(--surface); color: var(--text); font: 400 1.125rem var(--font-body);
  transition: border-color .2s ease, background-color .35s ease;
}
.signup input:hover { border-color: var(--text); }
.signup input[aria-invalid="true"] { border-color: var(--warn); }
.signup .btn { min-height: 52px; }
.form-status { min-height: 1.6em; color: var(--muted); font-size: 1rem; }
.form-status.is-error { color: var(--warn); }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--haze); padding-block: clamp(56px, 8vw, 104px) clamp(44px, 6vw, 72px); transition: background-color .35s ease; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 22px; }
.page-hero .actions { margin-top: 28px; }
.two-col { display: grid; gap: 56px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 80px; } }
.stack > * + * { margin-top: clamp(56px, 7vw, 88px); }
.callout { padding: 20px 24px; border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; background: var(--surface); color: var(--text); max-width: 40em; }
.callout-quiet { border-left-color: var(--field-border); color: var(--muted); }
.columns { display: grid; gap: 40px; }
@media (min-width: 860px) { .columns { grid-template-columns: repeat(3, 1fr); } }
.columns > div { padding-top: 22px; border-top: 3px solid var(--text); }
.columns h2 { font-size: 1.5rem; }
.columns p { margin-top: 12px; color: var(--muted); }
.cta-band { background: var(--haze); transition: background-color .35s ease; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.link-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 56px 36px; transition: background-color .35s ease; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 14px; color: var(--muted); }
.site-footer h2 { font-size: 1.0625rem; margin-bottom: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); display: grid; gap: 10px; color: var(--muted); font-size: .9375rem; }
.footer-legal p { max-width: 80ch; }

/* ---------- Tech log: four times, block and flight time ---------- */
.readout-help { margin-top: 6px; color: var(--muted); font-size: 1rem; }
.result-2 { grid-template-columns: 1fr 1fr; align-items: start; gap: 6px 20px; margin-top: 4px; }
.result-cell { display: grid; gap: 6px; align-content: start; }
.result-cell + .result-cell { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .14); }
.result-cell .result-label { grid-column: auto; }
.result-input {
  width: 100%; min-width: 0; padding: 4px 8px; margin-left: -8px; border-radius: var(--radius-s);
  border: 1.5px dashed rgba(165, 180, 201, .55); background: transparent; color: #FFFFFF;
  font: 700 clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem)/1.1 var(--font-readout); letter-spacing: .02em;
  transition: border-color .2s ease, background-color .2s ease;
}
.result-input:hover { border-color: #A5B4C9; }
.result-input:focus-visible { outline: 3px solid #4FC3F7; outline-offset: 2px; border-style: solid; }
.result-input[aria-invalid="true"] { border-color: #FF6B6B; }
.result-cell .result-total { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.1; padding: 5.5px 0; }
@media (max-width: 420px) { .result-2 { gap: 6px 14px; padding: 16px; } .result-cell + .result-cell { padding-left: 14px; } }
.result-alt { font: 400 1.125rem/1.2 var(--font-readout); color: #4FC3F7; }
@media (prefers-reduced-motion: no-preference) {
  .field input.is-filled { animation: filled 1s var(--ease-out); }
}
@keyframes filled { 0% { background-color: color-mix(in srgb, var(--accent) 45%, var(--bg)); } 100% { background-color: var(--bg); } }

/* ---------- Interactive tools ---------- */
.tools { display: grid; gap: 24px; margin-top: 48px; }
.tool { margin: 0; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); display: grid; gap: 22px; align-content: start; }
.tool h3 { font-size: 1.5rem; }
.tool-intro { margin-top: 8px; color: var(--muted); }
.tool-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
@media (min-width: 560px) { .tool-inputs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tool-inputs .field label { font-size: .9375rem; }
.tool-inputs .field input { min-height: 50px; font-size: 1.25rem; padding: 0 12px; }
.tool-body { display: grid; gap: 20px; align-items: center; }
@media (min-width: 560px) { .tool-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tool-svg { width: 100%; height: auto; max-width: 320px; justify-self: center; overflow: visible; }
.tool-results { margin: 0; display: grid; gap: 14px; }
.tool-results div { display: grid; gap: 2px; }
.tool-results dt { color: var(--muted); font-size: .9375rem; }
.tool-results dd { margin: 0; font: 700 1.5rem/1.15 var(--font-readout); color: var(--text); }
.tool-results dd small { font: 400 1rem/1.3 var(--font-body); color: var(--muted); }
.tool-results .is-caution { color: var(--caution); }
.tool-error { min-height: 1.5em; color: var(--warn); font-size: 1rem; }
.tool figcaption { color: var(--muted); padding-top: 18px; border-top: 1px solid var(--border); }
.tool figcaption strong { color: var(--text); font-weight: 600; }
.limit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.limit-row label { font-weight: 600; font-size: .9375rem; }
.limit-row input { width: 92px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-s); border: 1.5px solid var(--field-border); background: var(--bg); color: var(--text); font: 700 1.125rem/1 var(--font-readout); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .9375rem; }
.status svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.caution { background: var(--caution-bg); color: var(--caution); }
.status.warning { background: var(--warn-bg); color: var(--warn); }
.tool-results .is-warning { color: var(--warn); }
.tool-svg .vec-warning { stroke: var(--warn); }

/* SVG drawing for the tools */
.tool-svg text { fill: var(--text); font-family: var(--font-body); font-size: 15px; }
.tool-svg .t-muted { fill: var(--muted); }
.tool-svg .t-num { font-family: var(--font-readout); font-weight: 700; }
.tool-svg .rwy { fill: color-mix(in srgb, var(--text) 9%, var(--surface)); stroke: var(--text); stroke-width: 2; }
.tool-svg .rwy-cl { stroke: var(--text); stroke-width: 2; stroke-dasharray: 10 9; opacity: .55; }
.tool-svg .ring { fill: none; stroke: var(--border); stroke-width: 1.5; }
.tool-svg .vec { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tool-svg .vec-wind { stroke: var(--muted); }
.tool-svg .vec-primary { stroke: var(--primary); }
.tool-svg .vec-caution { stroke: var(--caution); }
.tool-svg .dot { fill: var(--surface); stroke: var(--text); stroke-width: 2.5; }
@media (prefers-reduced-motion: no-preference) {
  .tool-svg .vec, .tool-svg .moves { transition: d .45s var(--ease-out), transform .45s var(--ease-out); }
}

/* ---------- Founders (About) ---------- */
.people { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 860px) { .people { grid-template-columns: 1fr 1fr; } }
.person { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-l); background: var(--night-surface); border: 1px solid rgba(255, 255, 255, .08); }
.person h3 { color: #FFFFFF; font-size: 1.375rem; }
.person .path { margin-top: 6px; color: #4FC3F7; font-weight: 600; }
.person p + p { margin-top: 14px; }
.person p { color: var(--night-text); }
.timeline-mini { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.timeline-mini li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: start; color: var(--night-text); }
.timeline-mini li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; border: 2px solid #4FC3F7; }
.story { margin-top: 40px; max-width: 36em; }
.story p { color: var(--night-text); font-size: 1.1875rem; }
.tool-side { display: grid; gap: 16px; align-content: center; }
.tool.has-error .tool-results, .tool.has-error .tool-svg { opacity: .35; transition: opacity .2s ease; }

/* Each tool gets a full-width row: controls on one side, a large drawing on the other */
.tool-side .tool-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.tool .tool-svg { max-width: 360px; }
@media (min-width: 900px) {
  .tool { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: clamp(32px, 5vw, 64px); row-gap: 18px;
          grid-template-areas: "head svg" "inputs svg" "error svg" "side svg" "cap cap"; align-items: start;
          grid-template-rows: auto auto auto 1fr auto; }
  .tool + .tool { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
                  grid-template-areas: "svg head" "svg inputs" "svg error" "svg side" "cap cap"; }
  .tool-head { grid-area: head; } .tool-inputs { grid-area: inputs; } .tool-error { grid-area: error; }
  .tool-side { grid-area: side; } .tool figcaption { grid-area: cap; }
  .tool .tool-svg { grid-area: svg; align-self: center; justify-self: center; }
}
.tool-error:empty { display: none; }

/* ---------- Coming soon (shown to visitors before launch) ---------- */
.soon { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-block: 12px 28px; }
.soon .header-bar, .soon-body, .soon-foot { position: relative; }
.soon-body { align-self: center; padding-block: clamp(40px, 8vh, 96px); }
.soon-body h1 { max-width: 12ch; }
.soon-body .lead { margin-top: 24px; }
.soon-body .signup { margin-top: 36px; max-width: 34rem; }
.soon-contact { margin-top: 28px; color: var(--muted); }
.soon-foot { color: var(--muted); font-size: .9375rem; }
