/* ==========================================================================
   Phlebotomy Software — Design System & Site Styles
   Mobile-first. Single stylesheet, no framework.
   Sections: 1 Tokens · 2 Reset/Base · 3 Layout · 4 Components · 5 Header/Footer
             6 Page sections · 7 Forms · 8 Utilities · 9 Motion/Print
   ========================================================================== */

/* 1 ── TOKENS ============================================================= */
:root {
  /* Brand palette — all text pairings verified for WCAG 2.1 AA */
  --ink:            #0A1B33;  /* headings / body on light — 16.4:1 on white   */
  --ink-2:          #10294B;  /* dark section background                      */
  --ink-3:          #16355E;  /* dark section elevated surface                */
  --muted:          #55677F;  /* secondary text — 5.7:1 on white              */
  --muted-dark:     #A9BBD4;  /* secondary text on dark — 7.4:1 on --ink-2    */

  --brand:          #0B5FD1;  /* primary blue — 5.9:1 on white                */
  --brand-dark:     #0A4CA8;  /* hover / active                               */
  --brand-soft:     #E8F0FD;  /* tinted surface                               */
  --brand-light:    #6FA8F5;  /* links on dark — 6.6:1 on --ink-2             */

  --teal:           #12A594;  /* graphic accent only (not text on white)      */
  --teal-ink:       #0B7A70;  /* teal text — 5.2:1 on white                   */
  --teal-soft:      #E2F5F2;

  --ok:             #0E7C55;
  --ok-soft:        #E4F5EC;
  --warn:           #9A6207;
  --warn-soft:      #FDF1DC;
  --stop:           #B3261E;
  --stop-soft:      #FCEAE8;

  --white:          #FFFFFF;
  --surface:        #F5F8FC;
  --surface-2:      #EDF3FA;
  --border:         #DCE5F0;
  --border-strong:  #C3D2E6;
  --border-dark:    #2A466F;

  /* Typography */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --step--2: 0.75rem;                               /* 12px */
  --step--1: 0.875rem;                              /* 14px */
  --step-0:  1rem;                                  /* 16px */
  --step-1:  clamp(1.0625rem, 0.2vw + 1rem, 1.125rem);
  --step-2:  clamp(1.25rem, 0.5vw + 1.1rem, 1.4375rem);
  --step-3:  clamp(1.5rem, 1vw + 1.25rem, 1.875rem);
  --step-4:  clamp(1.875rem, 1.8vw + 1.4rem, 2.5rem);
  --step-5:  clamp(2.25rem, 3vw + 1.5rem, 3.375rem);

  /* Spacing scale (4px base) */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.5rem;   --sp-8: 3rem;
  --sp-9: 4rem;     --sp-10: 5rem;    --sp-11: 6rem;

  --section-y: clamp(3.25rem, 6vw, 6rem);
  --gutter: clamp(1.125rem, 4vw, 2rem);
  --measure: 68ch;
  --container: 1160px;

  /* Radius */
  --r-xs: 6px;  --r-sm: 10px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation — navy-tinted, restrained */
  --sh-1: 0 1px 2px rgba(10, 27, 51, .06), 0 1px 3px rgba(10, 27, 51, .05);
  --sh-2: 0 2px 6px rgba(10, 27, 51, .06), 0 8px 20px rgba(10, 27, 51, .07);
  --sh-3: 0 8px 18px rgba(10, 27, 51, .08), 0 22px 48px rgba(10, 27, 51, .12);
  --ring: 0 0 0 3px rgba(11, 95, 209, .35);

  --speed: 180ms;
  --ease: cubic-bezier(.2, .6, .3, 1);
}

/* 2 ── RESET / BASE ======================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* sticky header offset for #anchors */
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.03em; }
h2 { font-size: var(--step-4); letter-spacing: -0.025em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol, dl, figure, table, blockquote { margin: 0 0 var(--sp-4); }
p { max-width: var(--measure); }
:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: var(--sp-2); }

strong, b { font-weight: 650; }
small { font-size: var(--step--1); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-7) 0; }

code, kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 0.1em 0.4em;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}
.section--dark :focus-visible { outline-color: var(--brand-light); }

::selection { background: var(--brand-soft); color: var(--ink); }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: var(--white); }

/* 3 ── LAYOUT ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.section--surface { background: var(--surface); }
.section--soft { background: var(--brand-soft); }

.section--dark {
  background: var(--ink-2);
  color: #E8EEF8;
  background-image:
    radial-gradient(60rem 30rem at 90% -10%, rgba(18, 165, 148, .16), transparent 60%),
    radial-gradient(50rem 26rem at 5% 110%, rgba(11, 95, 209, .22), transparent 60%);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p, .section--dark li { color: #D5E0F0; }
.section--dark a:not(.btn) { color: var(--brand-light); }
.section--dark .lede { color: var(--muted-dark); }

.section__head { max-width: 760px; margin-bottom: var(--sp-7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center p { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px)  { .grid--2up { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.08fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .split--reverse > :first-child { order: 2; }
}

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

/* 4 ── COMPONENTS ========================================================= */

/* Eyebrow + lede */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 var(--sp-3);
}
.section--dark .eyebrow { color: #63D6C6; }
.eyebrow::before {
  content: "";
  width: 1.5rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.6; }

/* Buttons */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--white);
  --btn-bd: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.75rem 1.375rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease),
              transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.btn:hover { --btn-bg: var(--brand-dark); --btn-bd: var(--brand-dark); color: var(--white); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { box-shadow: var(--sh-2); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: var(--border-strong); }
.btn--ghost:hover { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-dark); --btn-bd: var(--brand); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--ink-3); --btn-bd: var(--ink-3); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: #E8EEF8; --btn-fg: var(--ink); --btn-bd: #E8EEF8; }

.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.45); }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.1); --btn-fg: var(--white); --btn-bd: var(--white); }

.btn--lg { min-height: 54px; padding: 0.9375rem 1.75rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 400px) { .btn-row .btn { width: 100%; } }

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
}
.arrow-link::after { content: "→"; transition: transform var(--speed) var(--ease); }
.arrow-link:hover { text-decoration: underline; }
.arrow-link:hover::after { transform: translateX(3px); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
}
.card > h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--muted); }

.card--link { transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.card--link:hover, .card--link:focus-within { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--border-strong); }
.card--link a.card__title-link { text-decoration: none; color: inherit; }
.card--link a.card__title-link::after { content: ""; position: absolute; inset: 0; }
.card--link { position: relative; }

.card--flat { box-shadow: none; background: var(--surface); }
.card--pad { padding: clamp(1.5rem, 3vw, 2.25rem); }

.section--dark .card {
  background: rgba(255, 255, 255, .05);
  border-color: var(--border-dark);
  box-shadow: none;
  color: #D5E0F0;
}
.section--dark .card p { color: var(--muted-dark); }

/* Icon tile */
.icon-tile {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: var(--sp-4);
  flex: none;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile--teal { background: var(--teal-soft); color: var(--teal-ink); }
.section--dark .icon-tile { background: rgba(111, 168, 245, .16); color: #9CC5FA; }

/* Chips / badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 550;
  line-height: 1.4;
}
.chip--ok   { background: var(--ok-soft);   border-color: #BCE3D0; color: var(--ok); }
.chip--warn { background: var(--warn-soft); border-color: #F0DCB5; color: var(--warn); }
.chip--stop { background: var(--stop-soft); border-color: #F1C6C2; color: var(--stop); }
.chip--info { background: var(--brand-soft); border-color: #C4DAFA; color: var(--brand-dark); }
a.chip { text-decoration: none; transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease); }
a.chip:hover, a.chip:focus-visible { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }
.chip-row li { margin: 0; }
.section--dark .chip { background: rgba(255,255,255,.08); border-color: var(--border-dark); color: #E8EEF8; }

/* Tick lists */
.ticks { list-style: none; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.85rem;
  margin-top: var(--sp-3);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1.15rem; height: 1.15rem;
  border-radius: var(--r-pill);
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230B7A70' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.section--dark .ticks li::before { background-color: rgba(18,165,148,.22); }

/* Numbered steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--sp-5); }
@media (min-width: 760px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { margin: 0; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
}
.steps h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.steps p { color: var(--muted); font-size: var(--step-0); }
.section--dark .steps li::before { background: var(--brand); }

/* Media frame for product mockups */
.frame {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.frame img { width: 100%; }
.frame--dark { border-color: var(--border-dark); box-shadow: 0 18px 60px rgba(0,0,0,.38); }
.frame--phone { max-width: 300px; margin-inline: auto; border-radius: var(--r-xl); }
.frame figcaption {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--step--1);
}
.frame--dark figcaption { background: rgba(255,255,255,.05); border-color: var(--border-dark); color: var(--muted-dark); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--white); }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: var(--step--1); min-width: 640px; }
caption { text-align: left; padding: var(--sp-4) var(--sp-4) 0; color: var(--muted); font-size: var(--step--1); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface); font-family: var(--font-head); font-size: var(--step--1); color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td .yes { color: var(--ok); font-weight: 650; }
td .no  { color: var(--muted); }

/* Accordion (FAQ) */
.accordion { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.accordion + .accordion { margin-top: var(--sp-3); }
.accordion > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after {
  content: "";
  flex: none;
  width: 1.25rem; height: 1.25rem;
  margin-top: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230B5FD1' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7.5l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--speed) var(--ease);
}
.accordion[open] > summary::after { transform: rotate(-180deg); }
.accordion > summary:hover { background: var(--surface); }
.accordion__body { padding: 0 var(--sp-5) var(--sp-5); }
.accordion__body p, .accordion__body li { color: var(--muted); }

/* Pricing */
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card .btn { margin-top: auto; }
.price-card .ticks { margin: var(--sp-4) 0 var(--sp-5); }
.price-card--featured { border-color: var(--brand); box-shadow: var(--sh-3); position: relative; }

/* Notes / callouts */
.note {
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--sp-4) var(--sp-5);
  color: var(--ink);
}
.note--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.note--teal { border-left-color: var(--teal-ink); background: var(--teal-soft); }
.note p { color: inherit; font-size: var(--step--1); }
.note strong { font-family: var(--font-head); }

/* Stat row */
.stat-row { display: grid; gap: var(--sp-5); }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat { border-left: 3px solid var(--teal); padding-left: var(--sp-4); }
.stat dt { font-family: var(--font-head); font-size: var(--step-1); font-weight: 650; color: var(--ink); }
.stat dd { margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--step--1); }
.section--dark .stat dt { color: var(--white); }
.section--dark .stat dd { color: var(--muted-dark); }

/* 5 ── HEADER / FOOTER ==================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--sh-1); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { flex: none; border-radius: 9px; }
.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  line-height: 1.05;
}
.brand__text b { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; }
.brand__text span { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem .875rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background var(--speed) var(--ease); }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--speed) var(--ease), top var(--speed) var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

.nav {
  position: fixed;
  inset: 68px 0 auto;
  max-height: calc(100dvh - 68px);
  overflow-y: auto;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-2);
  padding: var(--sp-4) var(--gutter) var(--sp-6);
  display: none;
}
.nav.is-open { display: block; }

.nav__list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.nav__list li { margin: 0; border-bottom: 1px solid var(--border); }
.nav__list a {
  display: block;
  padding: .875rem .25rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav__list a:hover { color: var(--brand); }
.nav__list a[aria-current="page"] { color: var(--brand); }
.nav__cta { display: grid; gap: var(--sp-3); }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav__list { display: flex; align-items: center; gap: var(--sp-5); margin: 0; }
  .nav__list li { border: 0; }
  .nav__list a { padding: .25rem 0; font-size: var(--step--1); position: relative; }
  .nav__list a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand); border-radius: 2px;
  }
  .nav__cta { display: flex; gap: var(--sp-3); }
  .nav__cta .btn { min-height: 42px; padding: .5rem 1rem; font-size: var(--step--1); }
}

body.nav-open { overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D6E8; padding-block: var(--sp-9) var(--sp-6); }
.site-footer h2, .site-footer h3 { color: var(--white); }
.footer__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 720px)  { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__brand .brand { color: var(--white); }
.footer__brand .brand__text b { color: var(--white); }
.footer__brand .brand__text span { color: #63D6C6; }
.footer__brand p { color: #A9BBD4; font-size: var(--step--1); margin-top: var(--sp-4); max-width: 34ch; }
.site-footer h3 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-4); }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin: 0 0 var(--sp-3); }
.footer__links a { color: #C9D6E8; text-decoration: none; font-size: var(--step--1); }
.footer__links a:hover { color: var(--white); text-decoration: underline; }
.footer__contact a { color: var(--white); font-weight: 600; text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }
.footer__contact p { color: #A9BBD4; font-size: var(--step--1); }
.footer__bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid #1E3557;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  font-size: var(--step--2);
  color: #91A6C2;
}
.footer__bottom p { max-width: 70ch; }
/* Right-hand cluster of the bottom bar: locale + studio credit. Keeping these
   grouped means .footer__bottom stays a two-part composition (legal text |
   meta), so the existing space-between rhythm is unchanged. */
.footer__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  flex-wrap: wrap;
}

/* Nexavorix studio credit. The crest is a silver/chrome mark built for a dark
   ground — it only ever appears here, on the navy footer, never on the white
   page body where it would wash out. Deliberately subordinate to the product
   brand above it: smaller, dimmed, below the divider, in fine-print territory. */
.studio-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity var(--speed) var(--ease);
}
.studio-credit:hover,
.studio-credit:focus-visible { opacity: 1; }

.studio-credit__mark {
  height: 28px;          /* width follows from the intrinsic 75x112 portrait ratio */
  width: auto;
  flex: none;
}

.studio-credit__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  color: var(--muted-dark);
  line-height: 1.25;
  white-space: nowrap;
}
.studio-credit__lead { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.04em; }
.studio-credit__name { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; }

/* Studio credit inside the dark CTA band. Separated by a hairline and set well
   below the buttons so it reads as a sign-off, not a second call to action. */
.cta-band__credit {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: center;
}

/* "Who builds it" panel on the About page. A dark card inside a light section:
   the crest keeps the dark ground it needs without forcing two dark bands to sit
   next to each other and wreck the page's light/dark rhythm. */
.studio-panel {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  background: var(--ink-2);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--sh-2);
}
.studio-panel__mark {
  height: 76px;
  width: auto;
  flex: none;
  opacity: 0.9;
}
.studio-panel__body { min-width: 0; }
.studio-panel .eyebrow { color: #63D6C6; }
.studio-panel h2 { color: var(--white); font-size: var(--step-2); margin-bottom: var(--sp-3); }
.studio-panel p { color: var(--muted-dark); }
.studio-panel__link { color: var(--brand-light); }
.studio-panel__link:hover { color: var(--white); }

@media (max-width: 560px) {
  .studio-panel { flex-direction: column; gap: var(--sp-5); }
  .studio-panel__mark { height: 60px; }
}

.footer__social { display: flex; gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #1E3557; border-radius: var(--r-sm); color: #C9D6E8; }
.footer__social a:hover { background: #14294A; color: var(--white); }
.footer__social svg { width: 18px; height: 18px; }

/* 6 ── PAGE SECTIONS ====================================================== */

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 78%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 22rem at 88% 4%, rgba(18, 165, 148, .13), transparent 62%),
    radial-gradient(34rem 20rem at 4% 0%, rgba(11, 95, 209, .10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: var(--sp-5); }
.hero .lede { font-size: clamp(1.0625rem, 1vw + .9rem, 1.25rem); max-width: 56ch; }
.hero__actions { margin-top: var(--sp-6); }
.hero__meta { margin-top: var(--sp-5); font-size: var(--step--1); color: var(--muted); }

.page-hero {
  padding-block: clamp(2.25rem, 4vw, 3.75rem) clamp(2.25rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero .lede { max-width: 62ch; }

/* Breadcrumbs */
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--border-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* Logo/trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  align-items: center;
  padding-block: var(--sp-5);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-8);
  list-style: none;
  padding-left: 0;
}
.trust-strip li { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: var(--step--1); color: var(--muted); font-weight: 550; }
.trust-strip svg { width: 18px; height: 18px; color: var(--teal-ink); flex: none; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .container { max-width: 760px; }
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band p { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-6); }
.cta-band__meta { margin-top: var(--sp-4); font-size: var(--step--1); color: var(--muted-dark); }

/* Related pages */
.related { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .related { grid-template-columns: repeat(2, 1fr); } }

/* 404 */
.error-page { display: grid; place-items: center; min-height: 62vh; text-align: center; padding-block: var(--sp-9); }
.error-page__code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brand);
  margin: 0 0 var(--sp-3);
}
.error-page p { margin-inline: auto; }

/* 7 ── FORMS ============================================================== */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--sh-2);
}
.field { margin-bottom: var(--sp-5); }
.field > label, .fieldset__legend {
  display: block;
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.field .req { color: var(--stop); }
.field .hint { display: block; font-size: var(--step--1); color: var(--muted); font-weight: 400; margin-top: var(--sp-1); }
p.hint { font-size: var(--step--1); color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem .875rem;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  appearance: none;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2355677F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1.15rem;
  padding-right: 2.5rem;
}
input::placeholder, textarea::placeholder { color: #8496AE; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--ring); outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--stop); }

.field__error { display: none; margin-top: var(--sp-2); font-size: var(--step--1); font-weight: 600; color: var(--stop); }
.field__error.is-visible { display: block; }

.checkbox { display: flex; align-items: flex-start; gap: .7rem; }
.checkbox input[type="checkbox"] {
  flex: none;
  width: 22px; height: 22px;
  margin-top: .15rem;
  accent-color: var(--brand);
}
.checkbox label { font-size: var(--step--1); color: var(--muted); font-family: var(--font-body); font-weight: 400; margin: 0; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--r-sm); padding: var(--sp-4); margin-bottom: var(--sp-5); font-size: var(--step--1); }
.form-status[hidden] { display: none; }
.form-status--error { background: var(--stop-soft); border: 1px solid #F1C6C2; color: var(--stop); }
.form-status--ok { background: var(--ok-soft); border: 1px solid #BCE3D0; color: var(--ok); }

.contact-methods { display: grid; gap: var(--sp-4); }
.contact-methods .card { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-methods .icon-tile { margin-bottom: 0; }
.contact-methods a { font-weight: 600; text-decoration: none; }
.contact-methods a:hover { text-decoration: underline; }

/* 8 ── UTILITIES ========================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.center-x { justify-content: center; }   /* flex rows: .btn-row, .eyebrow */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); }
.full { max-width: none; }
.nowrap { white-space: nowrap; }

/* 9 ── MOTION / PRINT ===================================================== */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 520ms var(--ease), transform 520ms var(--ease); }

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

@media print {
  .site-header, .site-footer, .nav, .cta-band, .skip-link { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
