/* gustavneethling.com — blueprint layout: drafting-paper grid, navy ink, one plan-blue accent, red only for problems. */
:root {
  --ink: #0B2540;
  --plan: #1F6FB2;
  --sky: #8FB4D9;
  --paper: #F4F7FA;
  --white: #FFFFFF;
  --text: #34506D;
  --muted: #4E6A86;
  --rule: #C9D7E5;
  --wire: #2E5E8C;
  --grid: #E1E9F1;
  --on-navy: #B9CCE0;
  --flag: #B42318;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: max(20px, min(64px, 5vw));
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background-color: var(--paper); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.grid-bg { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--plan); }
:focus-visible { outline: 3px solid var(--plan); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.pad { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.inner { max-width: 1312px; margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; color: #fff; }

.display { font-weight: 800; font-stretch: 85%; letter-spacing: -0.02em; line-height: 1; margin: 0; }
.h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 0.98; letter-spacing: -0.025em; }
.h2 { font-size: clamp(36px, 4vw, 54px); }
.h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text); max-width: 52ch; margin: 0; }
.mono { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.muted { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; font: 700 16px/1 var(--sans); text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.btn:hover { background: var(--plan); border-color: var(--plan); color: #fff; }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 31; }
.site-head .inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-head .logo img { height: 36px; width: auto; }
.site-head nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.site-head nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.site-head nav a:hover { text-decoration: underline; }
.site-head .head-cta { min-height: 44px; font-size: 15px; padding: 0 18px; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; background: var(--paper); border: 1.5px solid var(--ink); font: 600 15px var(--sans); color: var(--ink); cursor: pointer; }

/* Hero */
.hero .inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 80px 96px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 14px; }
.badge img { width: 56px; height: 56px; object-fit: cover; border: 1.5px solid var(--ink); }
.badge p { margin: 0; line-height: 1.5; }
.fig { flex: 1.25 1 600px; min-width: 0; margin: 0; background: #fff; border: 1.5px solid var(--ink); padding: 24px; }
.fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fig figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--text); }
.fig-hint { display: none; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; }
.map { position: relative; width: 640px; height: 470px; margin: 0 auto; font-size: 14px; }
.map .w { position: absolute; background: var(--wire); }
.map .n { position: absolute; border: 1.5px solid var(--wire); padding: 8px 10px; background: #fff; }
.map .n b { display: block; font-weight: 700; }
.map .n.root { border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; padding: 0; }
.map .n.mid { display: grid; place-items: center; font-weight: 600; padding: 0; }
.map .ok { color: var(--muted); font-size: 12.5px; }
.map .bad { color: var(--flag); font-size: 12.5px; line-height: 1.25; display: flex; gap: 5px; align-items: flex-start; margin-top: 3px; }
.map .bad svg { flex: none; margin-top: 2px; }
.map .line-own { position: absolute; left: 0; top: 336px; width: 640px; border-top: 1.5px dashed #9DB4CB; }
.map .own { position: absolute; left: 0; top: 312px; font-family: var(--mono); font-size: 12px; color: var(--muted); background: #fff; padding-right: 8px; }

/* Sections */
section { padding-block: 96px; }
.sec-white { background: #fff; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.sec-navy { background: var(--ink); color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.sec-head p { margin: 0; max-width: 46ch; color: var(--text); }
.sec-navy .sec-head p, .sec-navy .lede { color: var(--on-navy); }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.cases article { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--ink); padding-top: 22px; }
.cases .tag { font-family: var(--mono); font-size: 13px; color: var(--plan); }
.cases h3 { margin: 0; font-size: 28px; font-weight: 700; font-stretch: 90%; line-height: 1.12; }
.cases p { margin: 0; color: var(--text); font-size: 16.5px; line-height: 1.6; }

.tests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--wire); border: 2px solid var(--wire); margin-top: 48px; }
.tests div { background: var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.tests span { font-family: var(--mono); font-size: 13px; color: var(--sky); }
.tests h3 { margin: 0; font-size: 26px; font-weight: 700; }
.tests p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--on-navy); }

.price { display: flex; border: 1.5px solid var(--ink); background: #fff; }
.price div { padding: 18px 26px; display: flex; flex-direction: column; gap: 2px; }
.price div + div { border-left: 1.5px solid var(--ink); }
.price strong { font-size: 34px; font-weight: 800; font-stretch: 85%; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1.5px solid var(--ink); background: #fff; }
.steps li { padding: 28px; display: flex; flex-direction: column; gap: 12px; border-right: 1.5px solid var(--ink); }
.steps li:last-child { border-right: 0; }
.steps .num { font-size: 56px; font-weight: 800; font-stretch: 75%; color: var(--plan); line-height: 1; }
.steps h3 { margin: 0; font-size: 22px; }
.steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }

.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.about-photo { flex: 0 1 420px; width: 100%; border: 1.5px solid var(--ink); }
.about-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 18px; }
.about-copy p { margin: 0; color: var(--text); max-width: 56ch; }
.ventures { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--rule); }
.ventures .row { display: flex; flex-wrap: wrap; gap: 24px 44px; align-items: center; }
.ventures img { width: auto; }

.stage-photo { flex: 2 1 560px; width: 100%; border: 1.5px solid var(--ink); }
.stage-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.stage-copy p { margin: 0; color: var(--text); }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.note { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 16px; }
.note .t { font-size: 22px; font-weight: 700; line-height: 1.2; }
.note .x { font-size: 16px; line-height: 1.55; color: var(--text); }
.note:hover .t { text-decoration: underline; }

/* Introduction */
.intro .inner { display: flex; flex-wrap: wrap; gap: 64px; }
.intro-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.intro-side img { width: 100%; max-width: 300px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1.5px solid var(--sky); }
.intro-side .facts { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--sky); margin: 0; }
.intro form { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 50px; padding: 0 14px; font: 16px var(--sans); border: 1.5px solid var(--muted); background: #fff; color: var(--ink); border-radius: 0; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field .err { color: #FFB4AB; font-size: 14px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border: 1.5px solid var(--sky); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.form-status h3 { margin: 0; font-size: 24px; }
.form-status p { margin: 0; color: var(--on-navy); }
.form-status.err { border-color: #FFB4AB; }

.site-foot { background: var(--ink); color: #9FB6CD; font-size: 13.5px; line-height: 1.6; border-top: 1px solid #22405E; padding-block: 28px 40px; }
.site-foot .inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-foot p { margin: 0; max-width: 100ch; }
.site-foot a { color: #fff; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .site-head nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
  .site-head nav.open { display: block; }
  .site-head nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .site-head nav a { display: block; padding: 12px 0; font-size: 17px; }
  .head-cta { display: none !important; }
  .tests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .steps li:last-child { border-bottom: 0; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  section { padding-block: 72px; }
  .hero .inner { padding-block: 48px 64px; }
  .fig { padding: 14px; }
  .fig-hint { display: none; }
  .tests { grid-template-columns: 1fr; }
  .price { width: 100%; }
  .price div { flex: 1; padding: 14px 16px; }
  .price strong { font-size: 26px; }
  .site-head .logo img { height: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
