/* Stravius Tech site styles (built from docs/design/proto.css). */
:root {
  --paper: #F5F6F2;
  --paper-2: #ECEEE8;
  --ink: #14211B;
  --ink-2: #4E5B54;
  --rule: #D5DAD3;
  --green: #016545;
  --green-tint: #DDEBE2;
  --amber: #9A5B0F;
  --amber-tint: #F6E7CF;
  --serif: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(72px, 10vw, 136px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.block { padding: var(--space) 0; }
.block + .block { border-top: 1px solid var(--rule); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; max-width: 18ch; }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff; text-decoration: none; font: 500 16px/1 var(--sans); padding: 16px 22px; border-radius: 999px; transition: background .2s; }
.btn:hover { background: #00513A; }
.btn.quiet { background: transparent; color: var(--ink); padding: 16px 4px; border-radius: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--rule); }
.btn.quiet:hover { text-decoration-color: var(--ink); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--sans); }
.brand img { width: 18px; height: auto; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--ink-2); }
.nav ul a:hover { color: var(--ink); }
.nav .btn { padding: 12px 18px; font-size: 15px; }
/* Phone: the links drop to a second row that scrolls sideways if it has to */
.nav ul a, .brand { white-space: nowrap; }
@media (max-width: 1080px) {
  .nav { flex-wrap: wrap; row-gap: 14px; }
  .nav ul { order: 3; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 14px; padding: 2px 0; }
  .nav ul::-webkit-scrollbar { display: none; }
}
/* Homepage has more links than fit a phone: fade the edge so the row reads as scrollable */
@media (max-width: 520px) {
  .nav:not(.minimal) ul { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 32px; }
}

/* Hero */
.hero { display: grid; gap: 48px; padding: clamp(24px, 4vw, 40px) 0 var(--space); }
/* Desktop: headline, CTA and test report all fit in the first screen. */
@media (min-width: 980px) { .hero { min-height: calc(100svh - 96px); padding-bottom: 48px; align-content: center; } }
@media (min-width: 980px) { .hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; } }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.creds { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); border-left: 2px solid var(--green); padding-left: 16px; }

/* Signature: test report */
.report { background: #fff; border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(20, 33, 27, .35); overflow: hidden; }
.report header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.report header strong { font: 500 15px/1.3 var(--sans); }
.report header span { font: 400 13px/1.3 var(--mono); color: var(--ink-2); }
.report ol { list-style: none; margin: 0; padding: 6px 0; font: 400 14px/1.45 var(--mono); }
.report li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 10px 22px; }
.report li + li { border-top: 1px dashed var(--paper-2); }
.status { font: 500 12px/1 var(--mono); padding: 5px 9px; border-radius: 5px; background: var(--paper-2); color: var(--ink-2); min-width: 64px; text-align: center; }
.status.pass { background: var(--green-tint); color: var(--green); }
.status.fixed { background: var(--amber-tint); color: var(--amber); }
.report footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 22px; background: var(--paper); border-top: 1px solid var(--rule); font: 500 14px/1.3 var(--sans); }
.report footer .ok { color: var(--green); }
.report .note { padding: 0 22px 16px; font: 400 13px/1.5 var(--sans); color: var(--ink-2); background: var(--paper); }

/* Industry index */
.index { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--rule); }
.index a { display: grid; gap: 8px; padding: 28px 0; text-decoration: none; }
@media (min-width: 860px) { .index a { grid-template-columns: 1fr 1.2fr; align-items: baseline; gap: 40px; } }
.index .title { font: 400 clamp(28px, 3.4vw, 42px)/1.1 var(--serif); }
.index .desc { color: var(--ink-2); }
.index a:hover .title { color: var(--green); }

/* Problem + What I build */
.split { display: grid; gap: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.25fr; gap: 80px; } }
.pains { display: grid; gap: 28px; }
.pains p { padding-left: 20px; border-left: 1px solid var(--rule); color: var(--ink-2); }
.pains strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.builds { margin-top: 64px; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.builds div { display: grid; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) { .builds div { grid-template-columns: 1fr 1.6fr; gap: 40px; } }

/* Process */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 40px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 22px; }
.steps li::before { content: counter(step); display: block; font: 400 56px/1 var(--serif); color: var(--green); margin-bottom: 18px; }
.steps .when { font-size: 14px; color: var(--ink-2); margin: 4px 0 12px; }

/* Guarantee: the one dark block */
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: #B9C4BD; }
.guarantee { display: grid; gap: 40px; }
@media (min-width: 900px) { .guarantee { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 80px; } }
.guarantee h2 { max-width: 14ch; font-size: clamp(36px, 5vw, 64px); }
.guarantee dl { margin: 0; display: grid; gap: 22px; }
.guarantee dt { font-weight: 500; }
.guarantee dd { margin: 4px 0 0; color: #B9C4BD; }

/* Tested */
.cases { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cases li { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 15px; }

/* Founder */
.founder { display: grid; gap: 40px; }
@media (min-width: 900px) { .founder { grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; } }
.founder figure { margin: 0; }
.founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; filter: grayscale(1) contrast(1.05); background: var(--paper-2); }
.founder figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.founder .body { display: grid; gap: 20px; max-width: 58ch; }
.founder blockquote { margin: 0; font: 400 clamp(24px, 2.6vw, 32px)/1.3 var(--serif); }

/* Founding spots */
.spots { display: grid; gap: 32px; background: var(--paper-2); border-radius: 18px; padding: clamp(28px, 5vw, 56px); }
@media (min-width: 900px) { .spots { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.dots { display: flex; gap: 12px; margin-bottom: 28px; }
.dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--green); }
.dots span.taken { background: var(--green); }

/* Data */
.trio { display: grid; gap: 28px; margin-top: 48px; }
@media (min-width: 860px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.trio p { border-top: 1px solid var(--ink); padding-top: 18px; }
.trio strong { display: block; font-weight: 500; margin-bottom: 6px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 400 22px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 64ch; }

/* Book */
.book { display: grid; gap: 40px; }
@media (min-width: 900px) { .book { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.agenda { margin: 28px 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.agenda li { padding-left: 28px; position: relative; }
.agenda li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.calendly { min-height: 560px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--ink-2); font-size: 15px; text-align: center; padding: 24px; }

footer.site { padding: 48px 0 64px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.site a { text-decoration: none; }
footer.site .legal { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
footer.site .legal span + span::before { content: "·"; margin: 0 10px; }
@media (max-width: 700px) {
  footer.site .legal { flex-direction: column; }
  footer.site .legal span + span::before { content: none; }
}

/* The one orchestrated motion: report rows resolve on load */
/* Plays once, when the report is actually on screen (JS adds .play). Without JS or with
   reduced motion, the finished report shows straight away. */
@media (prefers-reduced-motion: no-preference) {
  .report.waiting li .status { background: var(--paper-2); color: transparent; }
  .report.waiting footer, .report.waiting .note { opacity: 0; }
  .report.play li .status { animation: resolve .35s ease-out both; animation-delay: calc(.2s + var(--i) * .38s); }
  .report.play footer, .report.play .note { animation: fadein .4s ease-out both; animation-delay: calc(.2s + 7 * .38s); }
  @keyframes resolve { from { background: var(--paper-2); color: transparent; } }
  @keyframes fadein { from { opacity: 0; } }
}
@media (max-width: 520px) {
  .report ol { font-size: 13px; }
  .report li { padding: 10px 16px; gap: 10px; }
  .report header, .report footer { padding-left: 16px; padding-right: 16px; }
  .report .note { padding: 0 16px 14px; }
  .status { min-width: 54px; }
}

/* ---------- Industry landing pages ---------- */
.nav.minimal { justify-content: space-between; }
.familiar { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--ink); }
.familiar p { padding: 22px 0; border-bottom: 1px solid var(--rule); font: 400 clamp(20px, 2vw, 24px)/1.35 var(--serif); }
@media (min-width: 860px) { .familiar { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.flows { margin-top: 56px; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.flows > div { display: grid; gap: 10px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .flows > div { grid-template-columns: 0.9fr 1fr 1fr; gap: 40px; align-items: start; } }
.flows .ba { font-size: 15px; color: var(--ink-2); }
.flows .ba b { display: block; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.flow { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 8px; align-items: center; }
.flow li { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.flow li + li::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--ink-2); margin: 0 12px 4px -26px; vertical-align: middle; }
.flow li + li { margin-left: 18px; }
.magnet { display: grid; gap: 32px; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: clamp(24px, 5vw, 56px); }
@media (min-width: 900px) { .magnet { grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 64px; } }
.magnet .cover { aspect-ratio: 3 / 4; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--rule); padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.magnet .cover strong { font: 400 28px/1.15 var(--serif); }
.magnet .cover span { font-size: 14px; color: var(--ink-2); }
.magnet ul { margin: 20px 0 28px; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.optin { display: flex; flex-wrap: wrap; gap: 10px; }
.optin label { flex-basis: 100%; font-size: 14px; font-weight: 500; }
.optin input { flex: 1 1 220px; min-width: 0; font: 400 16px/1 var(--sans); padding: 15px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); }
.optin .btn { flex: 0 0 auto; border: 0; cursor: pointer; }
.magnet .hook { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.works { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.works li { border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; font-size: 15px; background: #fff; }
.short-bio { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .short-bio { grid-template-columns: 200px 1fr; gap: 48px; } }
.short-bio img { width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: grayscale(1); }
.short-bio .body { display: grid; gap: 14px; max-width: 60ch; }

/* Phone: the flow becomes a vertical sequence on a rail; the kit cover stays small */
@media (max-width: 700px) {
  .flow { flex-direction: column; align-items: flex-start; gap: 10px; border-left: 2px solid var(--rule); padding-left: 16px; margin-left: 4px; }
  .flow li + li { margin-left: 0; }
  .flow li + li::before { display: none; }
  .magnet .cover { aspect-ratio: auto; min-height: 0; max-width: 240px; gap: 40px; }
}


/* ---------- Site-wide additions ---------- */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.calendly-inline-widget { min-width: 320px; height: 680px; }
.calendly-wrap { border: 1px solid var(--rule); border-radius: 14px; background: #fff; overflow: hidden; min-height: 680px; }

/* Contact page */
.contact-grid { display: grid; gap: 48px; padding: clamp(40px, 7vw, 88px) 0 var(--space); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.form { display: grid; gap: 22px; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field .hint { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea { font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 13px 14px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-success h2 { margin-bottom: 12px; }
.direct { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.direct a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-size: 17px; }
.direct a:hover { color: var(--green); }
.direct .ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--green-tint); }
.direct svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.direct .via { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
/* Address: a quiet labelled block under a rule, styled like the other mono labels */
.office { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); font-style: normal; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.office b { display: block; margin-bottom: 8px; font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Legal pages */
.prose { max-width: 720px; padding: clamp(40px, 7vw, 88px) 0 var(--space); }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; max-width: none; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0; }
.prose a { color: var(--green); }

/* 404 */
.notfound { padding: clamp(64px, 12vw, 160px) 0; display: grid; gap: 24px; max-width: 640px; }

/* Bridge between "the problem" and "what I build" */
.bridge { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--ink); display: grid; gap: 12px; max-width: 760px; }
.bridge h2 { font-size: clamp(26px, 3vw, 38px); max-width: 26ch; }
.bridge + .builds { margin-top: 32px; }

/* Keep [hidden] working on elements that set their own display (e.g. .btn) */
[hidden] { display: none !important; }

/* Images carry width/height attributes for layout stability; let CSS aspect-ratio decide the shape. */
.short-bio img, .founder img { height: auto; }

/* Pains: a numbered label on each so the four read as separate problems */
.familiar { counter-reset: pain; }
.familiar p { counter-increment: pain; }
.familiar p b { display: block; margin-bottom: 10px; font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.familiar p b::before { content: "0" counter(pain) "  "; white-space: pre; color: var(--ink-2); }

/* Pains, impact variant: each problem as a card with what it costs underneath */
.familiar.impact { border-top: 0; gap: 16px; }
@media (min-width: 860px) { .familiar.impact { column-gap: 16px; } }
.familiar.impact p { display: flex; flex-direction: column; padding: 28px 28px 24px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; }
.familiar.impact p b { color: var(--amber); }
.familiar.impact .cost { margin-top: auto; padding-top: 20px; font: 400 15px/1.5 var(--sans); color: var(--ink-2); }
.familiar.impact .cost::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: var(--amber); }

/* Tools: inbox → automation → TMS strip */
.pipe { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 760px) { .pipe { grid-template-columns: repeat(3, 1fr); gap: 44px; } }
.pipe li { position: relative; display: grid; gap: 6px; align-content: start; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 22px 24px; }
.pipe .k { font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pipe strong { font: 400 26px/1.15 var(--serif); }
.pipe li > span:last-child { font-size: 15px; color: var(--ink-2); }
.pipe .mid { background: var(--green); border-color: var(--green); color: #fff; }
.pipe .mid .k, .pipe .mid > span:last-child { color: rgba(255, 255, 255, .8); }
.pipe li + li::before { content: "↓"; position: absolute; top: -28px; left: 28px; font: 18px/1 var(--mono); color: var(--ink-2); }
@media (min-width: 760px) { .pipe li + li::before { content: "→"; top: 50%; left: -34px; transform: translateY(-50%); } }

/* FAQ: expand / collapse all */
.faq-toggle { display: block; margin: 32px 0 0 auto; padding: 8px 0; background: none; border: 0; cursor: pointer; font: 500 15px/1.2 var(--sans); color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.faq-toggle + .faq { margin-top: 12px; }
/* Desktop: heading on the left, questions filling the right */
@media (min-width: 980px) {
  .faq-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 72px; align-items: start; }
  /* Row 2 with the list, so the heading lines up with the rule above the first question */
  .faq-block h2 { grid-column: 1; grid-row: 2; margin-top: 12px; }
  .faq-block .faq-toggle { grid-column: 2; margin-top: 0; }
  .faq-block .faq { grid-column: 2; max-width: none; }
}

/* Bio: centred as one unit, portrait cropped to the face */
.short-bio { max-width: 920px; margin-inline: auto; }
@media (min-width: 760px) { .short-bio { grid-template-columns: 240px 1fr; } }
.short-bio img { width: 240px; max-width: 100%; object-position: 50% 18%; }
