/* Corwen Systems
   Ink #111827 / Slate #334155 / White / Mist #F8FAFC / Blue #2563EB
   Satoshi (headings) / Inter (body) / IBM Plex Mono (numbers) */

/* ---------- Self-hosted fonts ---------- */

@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
}

:root {
  --ink: #111827;
  --slate: #334155;
  --white: #ffffff;
  --mist: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --success: #10b981;
  --warning: #f59e0b;
  --line: #e4e9f0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --muted: #64748b;
  --muted-dark: #94a3b8;
  --max: 1200px;
  --header-h: 69px;
  --sans: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1, h2, h3, h4 { font-family: var(--sans); letter-spacing: -0.03em; line-height: 1.1; margin: 0; font-weight: 700; }
h1 { font-size: clamp(36px, 4.6vw, 54px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.35; }
h4 { font-size: 15.5px; letter-spacing: -0.01em; }

.accent { color: var(--blue); }

.eyebrow {
  font-family: var(--body);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 16px;
}

.lede { font-size: 17.5px; color: var(--muted); max-width: 40em; margin: 18px 0 0; }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: 8px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #0a0f1a; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-out { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-out:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 17px; font-size: 14px; }
.btn .ar { font-size: 15px; line-height: 1; }

/* ---------- Skip link ---------- */

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); text-decoration: none;
  padding: 12px 18px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
  transition: top 0.15s ease;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.masthead { border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 40; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.masthead nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 500; }
.masthead nav a { color: var(--slate); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); }
.masthead nav a.btn { color: var(--white); }

/* Hamburger — hidden on desktop, shown under 900px */
.navtoggle {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 8px; padding: 0; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center; flex: none; color: var(--ink);
}
.navtoggle:hover { border-color: var(--ink); }
.navtoggle span {
  display: block; position: relative; width: 19px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: background 0.18s ease;
}
.navtoggle span::before, .navtoggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.18s ease, top 0.18s ease;
}
.navtoggle span::before { top: -6px; }
.navtoggle span::after { top: 6px; }
.navtoggle[aria-expanded="true"] span { background: transparent; }
.navtoggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.navtoggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo .lockup { display: flex; flex-direction: column; line-height: 1; }
.logo .n { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0.16em; color: var(--ink); }
.logo .s { font-family: var(--body); font-weight: 600; font-size: 8.5px; letter-spacing: 0.34em; color: var(--blue); margin-top: 3px; }
.logo svg { display: block; flex: none; }

/* ---------- Sections ---------- */

.band { padding: 88px 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.band-mist { background: var(--mist); }
.band-ink { background: var(--ink); color: var(--white); }
.band-ink h2, .band-ink h3, .band-ink h4 { color: var(--white); }
.band-ink .lede { color: var(--muted-dark); }
.band-ink .fine { color: var(--muted-dark); }
.band-ink .checks li { color: #cbd5e1; }
.band-tight { padding: 34px 0; }

/* ---------- Hero ---------- */

.hero { padding: 76px 0 84px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.06fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-top: 0; font-size: 17px; max-width: 30em; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; }
.checks li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; color: var(--slate); font-weight: 500; }
.checks svg { flex: none; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Audit card (hero) ---------- */

.audit-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; box-shadow: 0 18px 40px -22px rgba(17,24,39,0.28); }
.audit-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; }
.audit-head h4 { font-size: 16px; }
.audit-head .per { font-size: 13px; color: var(--muted); }
.ac-row { display: grid; grid-template-columns: 92px 1fr 78px; gap: 14px; align-items: center; padding: 9px 0; }
.ac-row .k { font-size: 13.5px; color: var(--slate); }
.ac-row .v { font-family: var(--mono); font-size: 13.5px; text-align: right; color: var(--ink); }
.track { height: 7px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.audit-foot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); align-items: center; }
.audit-foot .k { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.audit-foot .n { font-family: var(--sans); font-weight: 700; font-size: 25px; letter-spacing: -0.03em; }
.audit-foot .n.good { color: var(--success); }
.dial { display: flex; align-items: center; gap: 10px; }
.dial svg { flex: none; }

/* ---------- Industry strip ---------- */

.strip-label { text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.strip { display: grid; grid-template-columns: repeat(9, auto); justify-content: center; gap: 18px 40px; }
.strip div { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--slate); white-space: nowrap; }
.strip svg { flex: none; }

/* ---------- Problem cards ---------- */

.prob-head { max-width: 30em; }
.prob-head h2 { margin-bottom: 14px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.card:hover { border-color: #c9d4e4; box-shadow: 0 10px 28px -20px rgba(17,24,39,0.4); }
.card .ic { margin-bottom: 18px; display: block; }
.card h3 { font-size: 17px; }
.card p { margin: 9px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Estimator ---------- */

.est { background: var(--ink); border-radius: 16px; padding: 38px 40px; color: var(--white); }
.est-grid { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 44px; }
.est h3 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 12px; }
.est .sub { color: var(--muted-dark); font-size: 14.5px; margin: 0; }
.est-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }

.est-inputs { display: grid; grid-template-columns: 0.78fr 0.78fr 1fr 1.24fr; gap: 20px; align-items: start; }
.field label { display: block; font-size: 12.5px; color: var(--muted-dark); margin-bottom: 9px; min-height: 32px; line-height: 1.35; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; }
.stepper input {
  flex: 1; width: 100%; min-width: 0; background: transparent; border: 0; color: var(--white);
  font-family: var(--mono); font-size: 14.5px; padding: 11px 4px; text-align: center;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button {
  background: transparent; border: 0; color: var(--muted-dark); font-size: 16px;
  cursor: pointer; line-height: 1; flex: none;
  min-width: 42px; min-height: 44px; padding: 0;
}
.stepper button:hover { color: var(--white); }
.stepper button:active { background: rgba(255,255,255,0.06); }

.checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.checkgrid label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted-dark); cursor: pointer; }
.checkgrid input { accent-color: var(--blue); width: 15px; height: 15px; }
.checkgrid input:checked + span { color: var(--white); }

.est-out { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 24px; align-items: end; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.est-out .k { font-size: 12px; color: var(--muted-dark); display: block; margin-bottom: 6px; min-height: 30px; line-height: 1.3; }
.est-out .dial .k { min-height: 0; margin-bottom: 2px; }
.est-out .n { font-family: var(--sans); font-weight: 700; font-size: 30px; letter-spacing: -0.035em; }
.est-out .n.good { color: var(--success); }
.est-note { margin: 20px 0 0; font-size: 12.5px; color: var(--muted-dark); line-height: 1.55; }

/* ---------- Process ---------- */

.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 50px; }
.pstep { text-align: center; position: relative; padding: 0 6px; }
.pstep .num {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  font-family: var(--mono); font-size: 13px; color: var(--slate); background: var(--white);
}
.pstep p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.pstep .num { position: relative; z-index: 1; }
.pstep::after {
  content: ""; position: absolute; top: 22px; left: calc(50% + 34px); right: calc(-50% + 34px);
  height: 1px; background: var(--line);
}
.pstep:last-child::after { display: none; }

/* ---------- Solutions grid ---------- */

.sol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.sol a { display: flex; align-items: center; gap: 13px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color 0.15s ease, transform 0.15s ease; }
.sol a:hover { border-color: var(--blue); transform: translateY(-2px); }
.sol svg { flex: none; }

/* ---------- Versus + results ---------- */

.vs-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 46px; align-items: stretch; }
.vs-col { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--white); }
.vs-col.bad { background: var(--mist); }
.vs-col .h { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 16px; }
.vs-col.bad .h { color: var(--muted); }
.vs-col.good .h { color: var(--blue); }
.vs-col ul { list-style: none; padding: 0; margin: 0; }
.vs-col li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; color: var(--slate); }
.vs-col li span:first-child { flex: none; font-weight: 700; }
.vs-col.bad li span:first-child { color: #ef4444; }
.vs-col.good li span:first-child { color: var(--success); }

.bench { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.bcard { border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px; background: var(--white); }
.bcard .n { font-family: var(--sans); font-weight: 700; font-size: 38px; letter-spacing: -0.04em; color: var(--blue); line-height: 1; display: block; }
.bcard .k { font-size: 14.5px; color: var(--slate); margin-top: 12px; display: block; line-height: 1.5; font-weight: 500; }
.bcard .src { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: block; letter-spacing: 0.02em; }

/* ---------- Industries ---------- */

.ind { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.ind div { border: 1px solid var(--line); border-radius: 12px; padding: 22px 12px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--slate); background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 96px; line-height: 1.35; }
.ind svg { display: block; margin: 0 auto 12px; }

/* ---------- Case study ---------- */

.case { background: var(--ink); border-radius: 16px; padding: 38px 40px; color: var(--white); display: grid; grid-template-columns: 0.85fr 2fr; gap: 44px; align-items: center; }
.case .tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.case h3 { font-size: 24px; letter-spacing: -0.03em; }
.case .desc { color: var(--muted-dark); font-size: 14.5px; margin: 10px 0 22px; }
.case-flow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; }
.case-flow .k { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); display: block; margin: 12px 0 7px; }
.case-flow p { margin: 0; font-size: 14px; color: var(--muted-dark); line-height: 1.55; }

/* ---------- FAQ ---------- */

.faq-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; position: relative; font-weight: 600; font-size: 15.5px; font-family: var(--sans); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 17px; font-size: 22px; font-weight: 400; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 20px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--white); display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--ink); }
.plan .tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.plan .amount { font-family: var(--sans); font-weight: 700; font-size: 36px; letter-spacing: -0.035em; margin: 12px 0 3px; }
.plan .per { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--slate); }
.plan li span:first-child { color: var(--success); font-weight: 700; flex: none; }
.plan .btn { margin-top: 22px; justify-content: center; }

/* ---------- Final CTA ---------- */

.cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.cta h2 { max-width: 12em; }

/* ---------- Calendly booking ---------- */

.book-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.book-copy h2 { max-width: 11em; }
.book-copy .lede { margin-bottom: 26px; }
.book-alt {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  font-size: 14px; color: var(--muted-dark); line-height: 1.6;
}
.book-alt a { color: var(--white); font-weight: 600; }

.cal-shell {
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.6);
  min-height: 700px; position: relative;
}
.calendly-inline-widget { min-width: 0; width: 100%; height: 700px; }

/* Fallback shown until (or unless) the widget takes over */
.cal-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 40px 28px; background: var(--white);
}
.cal-shell.is-loaded .cal-fallback { display: none; }
.cal-fallback p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 26em; line-height: 1.6; }
.cal-fallback .spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--blue);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cal-fallback .spinner { animation: none; } }

/* ---------- Contact details ---------- */

.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.detail { border: 1px solid var(--line-dark); border-radius: 12px; padding: 20px; }
.detail .k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 8px; }
.detail .v { font-size: 14.5px; color: var(--white); line-height: 1.55; }
.detail .v a { color: var(--white); }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: var(--muted-dark); padding: 56px 0 34px; font-size: 14px; }
.footer .logo .n { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; }
.foot-grid h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; font-family: var(--body); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 5px 0; }
.foot-grid a { color: var(--muted-dark); text-decoration: none; }
.foot-grid a:hover { color: var(--white); }
.foot-tag { margin: 18px 0 0; max-width: 24em; font-size: 13.5px; line-height: 1.6; }
.foot-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 12.5px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */

.legal { max-width: 46em; padding: 60px 0 40px; }
.legal h1 { margin-bottom: 10px; }
.legal h2 { font-size: 21px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--slate); font-size: 15.5px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .strip { grid-template-columns: repeat(5, auto); gap: 16px 32px; }
  .book-grid { grid-template-columns: 1fr; gap: 34px; }
  .book-copy h2 { max-width: none; }
}

@media (max-width: 1080px) {
  .cards4 { grid-template-columns: 1fr 1fr; }
  .sol { grid-template-columns: 1fr 1fr; }
  .ind { grid-template-columns: 1fr 1fr 1fr; }
  .est-inputs { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
  .field label { min-height: 0; }
  .est-grid { grid-template-columns: 1fr; gap: 30px; }
  .process { grid-template-columns: 1fr 1fr 1fr; gap: 34px 26px; }
  .pstep::after { display: none; }
  .bench { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile navigation ---------- */

@media (max-width: 900px) {
  .navtoggle { display: flex; }

  .masthead .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }

  .masthead nav {
    display: none;
    order: 3; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 12px -20px -12px;
    padding: 6px 20px 14px;
    border-top: 1px solid var(--line);
    font-size: 16px;
  }
  .masthead nav.open { display: flex; }
  .masthead nav a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--ink); font-weight: 500;
  }
  .masthead nav a.btn {
    border-bottom: 0; margin-top: 14px;
    justify-content: center; color: var(--white);
    padding: 15px 22px; font-size: 15px;
  }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 52px 0 64px; }
  .case { grid-template-columns: 1fr; gap: 28px; padding: 30px 26px; }
  .case-flow { grid-template-columns: 1fr; gap: 16px; }
  .faq { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .band { padding: 62px 0; }
  .strip { grid-template-columns: repeat(3, auto); gap: 16px 28px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
  .band { padding: 54px 0; }
  .est { padding: 26px 20px; }
  .est-inputs { grid-template-columns: 1fr; gap: 18px; }
  .est-out { grid-template-columns: 1fr 1fr; gap: 22px; }
  .est-out .k { min-height: 0; }
  .est-out .btn { grid-column: 1 / -1; justify-content: center; }
  .cards4 { grid-template-columns: 1fr; }
  .bench { grid-template-columns: 1fr; }
  .sol { grid-template-columns: 1fr; }
  .ind { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: repeat(2, auto); gap: 14px 24px; }

  /* Stacked process: vertical connector between steps */
  .process { grid-template-columns: 1fr; gap: 0; }
  .pstep { text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; padding: 0 0 26px; }
  .pstep .num { margin: 0; }
  .pstep h3, .pstep p { grid-column: 2; }
  .pstep p { margin-top: 6px; }
  .pstep::after {
    display: block; content: ""; position: absolute;
    top: 48px; bottom: 6px; left: 22px; right: auto;
    width: 1px; height: auto; background: var(--line);
  }
  .pstep:last-child { padding-bottom: 0; }
  .pstep:last-child::after { display: none; }

  .vs-wrap { grid-template-columns: 1fr; }
  .audit-card { padding: 20px 18px; }
  .ac-row { grid-template-columns: 74px 1fr auto; gap: 10px; }
  .ac-row .k, .ac-row .v { font-size: 12.5px; }
  .audit-foot { grid-template-columns: 1fr 1fr; gap: 16px; }
  .audit-foot .dial { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; }
  .cal-shell, .calendly-inline-widget { min-height: 1000px; height: 1000px; }
  .plan { padding: 24px 22px; }
  .est-out .n { font-size: 26px; }
}

@media (max-width: 400px) {
  .strip { grid-template-columns: 1fr; justify-content: start; }
  .ind { grid-template-columns: 1fr; }
  .logo .n { font-size: 15px; letter-spacing: 0.13em; }
  .logo .s { font-size: 7.5px; letter-spacing: 0.28em; }
}
