/* ==========================================================================
   Total Pharma Tech — Design System
   Plain CSS. No build step. Mobile-first.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #06142e;
  --navy-800: #0a1f42;
  --navy-700: #0f2b57;
  --navy-600: #16386d;
  --teal-600: #0d7f8f;
  --teal-500: #1295a6;
  --teal-400: #2bb3c4;
  --teal-100: #e2f6f9;

  --ink: #0d1a2b;
  --body: #48576b;
  --muted: #6b7a90;
  --line: #e3e8ef;
  --line-strong: #cdd6e2;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-navy: #06142e;

  --white: #fff;
  --amber: #f5a623;

  /* Type — system font stack only.
     No webfont = no extra DNS lookups, no render-blocking CSS, no font files.
     Every platform already ships an excellent UI face, so text paints on the
     first frame. Kept as one variable so a webfont can be swapped in later. */
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";

  /* Space */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(6, 20, 46, 0.06),
    0 1px 3px rgba(6, 20, 46, 0.05);
  --shadow: 0 4px 12px rgba(6, 20, 46, 0.07),
    0 12px 28px rgba(6, 20, 46, 0.06);
  --shadow-lg: 0 18px 48px rgba(6, 20, 46, 0.13);

  --max: 1180px;
  --max-narrow: 780px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchors must not land underneath the sticky header (75-81px tall). */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--body);
  background: var(--bg);
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

/* Vector illustrations scale fluidly and never overflow their column. */
svg {
  max-width: 100%;
  height: auto;
}

/* Decorative figures that should scale with the viewport width. */
.figure {
  width: 100%;
  display: block;
}

.figure svg {
  width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.16;
  margin: 0 0 var(--sp-4);
  /* System faces sit tighter than webfonts, so tracking is slightly relaxed. */
  letter-spacing: -0.011em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 5.1vw, 3.7rem);
}

h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

p {
  margin: 0 0 var(--sp-4);
}

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.15rem;
}

li {
  margin-bottom: var(--sp-2);
}

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.wrap-narrow {
  max-width: var(--max-narrow);
}

.section {
  padding: var(--sp-9) 0;
}

.section-sm {
  padding: var(--sp-8) 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-navy {
  background: var(--bg-navy);
  color: rgba(255, 255, 255, 0.76);
}

.section-navy h1,
.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.center {
  text-align: center;
}

.center .lede,
.center .section-head p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  font-size: 1.06rem;
  text-decoration: none;
  flex-shrink: 0;
  /* Comfortable tap target on touch devices without changing visual weight. */
  padding: 6px 0;
  min-height: 44px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--teal-500), var(--navy-700));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav a {
  color: var(--navy-800);
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--teal-600);
  border-bottom-color: var(--teal-400);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--teal-600);
  border-bottom-color: var(--teal-500);
}

/* The app link appears exactly once at any width: as a header button on
   desktop, and as an item in the collapsed menu on small screens, where
   .header-cta .btn is hidden. The two are mutually exclusive on purpose, so
   the link is never duplicated or lost. */
.nav .nav-app {
  display: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  cursor: pointer;
  color: var(--navy-800);
  /* 44x44 is the minimum comfortable touch target; this is the primary
     navigation control on mobile, so it must be easy to hit. */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle span + span {
  margin-top: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 650;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease,
    background-color 0.14s ease, border-color 0.14s ease;
  line-height: 1.2;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(13, 127, 143, 0.3);
}

.btn-primary:hover {
  background: var(--teal-500);
  box-shadow: 0 6px 18px rgba(13, 127, 143, 0.36);
  color: var(--white);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-700);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--teal-500);
  color: var(--teal-600);
}

.btn-onnavy {
  background: var(--white);
  color: var(--navy-900);
}

.btn-onnavy:hover {
  color: var(--navy-900);
  background: #eef4fb;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-lg {
  padding: 16px 30px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.btn-row.center {
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1100px 560px at 82% -12%,
      rgba(43, 179, 196, 0.22),
      transparent 62%
    ),
    radial-gradient(
      820px 480px at 8% 108%,
      rgba(22, 56, 109, 0.42),
      transparent 60%
    ),
    linear-gradient(170deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--sp-10) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-5);
}

.hero h1 .accent {
  background: linear-gradient(96deg, var(--teal-400), #7fe0ea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.76);
  max-width: 60ch;
  margin-bottom: var(--sp-6);
}

.hero-note {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.56);
  margin: var(--sp-5) 0 0;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-7);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-proof div {
  min-width: 110px;
}

.hero-proof dt {
  font-size: 1.5rem;
  font-weight: 750;
  color: var(--white);
  letter-spacing: -0.03em;
}

.hero-proof dd {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 550;
}

/* ---------- Eyebrow / lede ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-navy .eyebrow,
.hero .eyebrow {
  color: var(--teal-400);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  color: var(--body);
  max-width: 62ch;
}

.section-navy .lede {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-8);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: var(--sp-5);
}

/* Grid and flex children default to min-width:auto, which lets wide content
   (long words, tables, SVG figures) force horizontal page scroll on mobile.
   These two rules are the standard guard against that. */
.grid > *,
.split > *,
.hero-grid > *,
.price-grid > *,
.steps > *,
.field-row > *,
.footer-grid > *,
.plan > * {
  min-width: 0;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card h3 {
  margin-bottom: var(--sp-3);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-flush {
  padding: 0;
  overflow: hidden;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--teal-100);
  color: var(--teal-600);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.section-navy .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

.section-navy .card:hover {
  border-color: rgba(43, 179, 196, 0.45);
  background: rgba(255, 255, 255, 0.075);
}

.section-navy .icon {
  background: rgba(43, 179, 196, 0.17);
  color: var(--teal-400);
}

/* ---------- Feature list ---------- */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--sp-3);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--teal-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d7f8f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px 11px no-repeat;
}

.section-navy .checks li::before {
  background-color: rgba(43, 179, 196, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232bb3c4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ---------- Split media ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}

.step {
  position: relative;
  padding-left: 62px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--teal-600);
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 1.02rem;
  box-shadow: var(--shadow-sm);
}

.section-navy .step::before {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--teal-400);
}

/* ---------- Table ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

tbody tr:last-child td {
  border-bottom: none;
}

td strong {
  color: var(--ink);
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  align-items: start;
}

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-6);
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border: 2px solid var(--teal-500);
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: var(--sp-6);
  background: var(--teal-600);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}

.plan h3 {
  font-size: 1.28rem;
  margin-bottom: var(--sp-2);
}

.plan-price {
  font-size: 2.3rem;
  font-weight: 760;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: var(--sp-3) 0 var(--sp-2);
}

.plan-price span {
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0;
}

.plan-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: var(--sp-5);
}

.plan .checks {
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

.plan .checks li {
  font-size: 0.93rem;
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-4) 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  align-items: flex-start;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--teal-600);
  font-weight: 400;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: var(--sp-3) 0 0;
  font-size: 0.96rem;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: var(--sp-5);
}

.field label {
  display: block;
  font-size: 0.87rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 7px;
}

.field .req {
  color: #c0392b;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3.5px rgba(18, 149, 166, 0.16);
}

.field-hint {
  font-size: 0.81rem;
  color: var(--muted);
  margin: 6px 0 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

/* Consent / checkbox rows: control sits inline with its label. */
.field-check {
  margin-bottom: var(--sp-5);
}

.field-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
  cursor: pointer;
}

.field-check input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 4px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--teal-600);
  cursor: pointer;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Notice / callout ---------- */
.notice {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--radius);
  background: var(--teal-100);
  border: 1px solid rgba(13, 127, 143, 0.2);
  font-size: 0.93rem;
}

.notice p {
  margin: 0;
}

.notice-amber {
  background: #fff8ec;
  border-color: rgba(245, 166, 35, 0.35);
}

/* ---------- Page header ---------- */
.page-hero {
  background: linear-gradient(168deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, 0.76);
  padding: var(--sp-9) 0 var(--sp-8);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.page-hero .lede {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--sp-4);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-7);
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--sp-9) 0 var(--sp-6);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand-sub {
  color: rgba(255, 255, 255, 0.45);
}

.footer-about {
  max-width: 42ch;
  margin: var(--sp-4) 0 0;
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 4px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  /* Padded so each footer link clears a 44px touch target on mobile. */
  display: inline-block;
  padding: 9px 0;
  /* The contact addresses are wider than a 1fr footer column at the 900px
     breakpoint, so let them break instead of widening the whole page. Short
     links are unaffected because this only applies when a word cannot fit. */
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--sp-5);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  display: inline-block;
  padding: 10px 0;
}

/* ---------- Utilities ---------- */
.mb-0 {
  margin-bottom: 0;
}

.mt-6 {
  margin-top: var(--sp-6);
}

.mt-7 {
  margin-top: var(--sp-7);
}

.muted {
  color: var(--muted);
  font-size: 0.91rem;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split-wide {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The header only fits brand + six nav items + two buttons side by side above
   roughly 1031px, so the nav collapses below 1080px. This is not cosmetic:
   measured with scripts/measure.py, the old single-button header already
   overflowed a 900px viewport by 20px, and the second button took that to
   131px. .header-cta .btn yields to the menu here, where .nav-app takes over,
   so the app link is present at every width without being duplicated. */
@media (max-width: 1079px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
    display: none;
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .nav a {
    /* 44px minimum tap height for the collapsed navigation. */
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav a:last-of-type {
    border-bottom: none;
  }

  .nav .nav-app {
    display: flex;
  }

  .header-cta .btn {
    display: none;
  }
}

@media (max-width: 899px) {
  .hero {
    padding: var(--sp-7) 0 var(--sp-8);
  }

  /* On a phone the hero should lead with the value proposition, not spend a
     full screen on padding before the headline. */
  .hero-grid {
    gap: var(--sp-7);
  }

  .hero-sub {
    margin-bottom: var(--sp-5);
  }

  .hero-proof {
    gap: var(--sp-4) var(--sp-6);
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
  }

  .btn-row {
    gap: var(--sp-3);
  }

  .btn-row .btn {
    flex: 1 1 auto;
  }

  .section,
  .section-sm {
    padding: var(--sp-8) 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .skip-link,
  .nav-toggle {
    display: none;
  }

  /* Expand collapsed FAQ answers and drop interactive chrome so a printed
     page is complete and legible. */
  .faq details {
    border-bottom: 1px solid #ccc;
  }

  .faq summary::after {
    content: "";
  }

  .btn {
    border: 1px solid #999;
    box-shadow: none;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  a {
    color: #000;
  }
}
