/* ==========================================================================
   ConvertID — site styles
   Built on the ConvertID Brand Guide: navy, ice and brand blue; DM Sans;
   sentence-case bold headlines; small wide-tracked labels.
   Colours are tokens on :root so the palette is easy to adjust.
   ========================================================================== */

/* ---------- Tokens (from the Brand Guide) ---------- */
:root {
  --navy: #0F2846;        /* headlines, body on light, dark backgrounds */
  --deep: #0B5F8A;        /* second stop of the dark gradient, hover */
  --brand: #0877A6;       /* buttons, links, labels on light backgrounds */
  --cyan: #00D2FF;        /* highlights on navy only, never text on white */
  --ice: #F2F8FC;         /* page and section backgrounds */
  --mist: #E6F4FA;        /* soft panels, banding */
  --line: #D5E3EC;        /* borders and dividers */
  --slate: #3F5168;       /* body text on white or ice */
  --muted: #55667A;       /* captions and footers (≥ 4.5:1 on ice) */
  --white: #FFFFFF;

  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 36px rgba(15, 40, 70, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ice);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--navy); color: var(--white); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--white);
}
h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 20ch;
}
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 700; line-height: 1.2; }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.hero .eyebrow, .dark-section .eyebrow, .plan-featured .eyebrow { color: var(--cyan); }

.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.45; color: var(--white); margin-top: 22px; font-weight: 500; }
.lead-sm { font-size: 1.2rem; line-height: 1.5; color: var(--navy); margin-top: 18px; font-weight: 500; }
.body-copy { margin-top: 16px; color: #C9DCEA; max-width: 56ch; }
.section-intro { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.fine-print { margin-top: 24px; font-size: 14.5px; color: #B9D2E3; max-width: 56ch; border-left: 3px solid var(--cyan); padding-left: 14px; }
.note { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 24px;
  font: inherit; font-size: 16px; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: normal; text-align: center;
  border: 2px solid transparent; border-radius: 999px;
  background: transparent; color: var(--navy);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--deep); color: var(--white); }
.btn-outline { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-text { min-height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--brand); text-decoration: underline; text-underline-offset: 5px; font-size: 15px; }
.btn-text:hover { background: none; color: var(--deep); transform: none; }
.btn-small { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }

/* Shared card surface */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 18px -14px rgba(15, 40, 70, .4); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--navy); text-decoration: none;
}
.brand-mark { width: 40px; height: auto; flex: none; }
.brand:hover { color: var(--navy); }
.brand-light { color: var(--white); }
.brand-light:hover { color: var(--white); }
.brand-chip { background: var(--white); border-radius: 12px; padding: 8px 10px; display: inline-grid; place-items: center; }
.brand-chip img { width: 40px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--navy); padding: 6px 0; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0 10px 12px;
  font: inherit; font-size: 15px; color: var(--navy); cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 22px; height: 10px; }
.nav-toggle-bars span { position: absolute; left: 0; right: 0; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle-bars span:first-child { top: 0; }
.nav-toggle-bars span:last-child { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { top: 4px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep) 100%);
  color: var(--white);
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-media { position: relative; height: 420px; max-width: 520px; width: 100%; justify-self: center; }
.hero-shot {
  position: absolute; width: 33%; height: auto; border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .15);
  animation: float-in .9s var(--ease) both;
}
.shot-a { left: 0; top: 40px; transform: rotate(-5deg); }
.shot-b { left: 33.5%; top: 0; z-index: 2; width: 36%; transform: rotate(1deg); }
.shot-c { right: 0; top: 60px; transform: rotate(6deg); animation-delay: .15s; }
@keyframes float-in { from { opacity: 0; transform: translateY(18px) rotate(var(--r, 0deg)); } }
.shot-a { --r: -5deg; } .shot-b { --r: 1deg; } .shot-c { --r: 6deg; }

.marquee { background: var(--navy); color: #BBD7E8; overflow: hidden; white-space: nowrap; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); }
.marquee p { display: inline-block; padding-left: 100%; font-size: 15px; letter-spacing: .04em; animation: marquee 42s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 860px; }

.problem .problem-list { display: grid; gap: 20px; }
.problem-item { padding: 32px 30px; display: grid; gap: 10px; align-content: start; }
.numeral { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.problem-item p { color: var(--muted); }
.pull-statement {
  margin-top: clamp(44px, 6vw, 72px); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; font-weight: 500;
  color: var(--navy); max-width: 30ch; padding-left: 22px; border-left: 4px solid var(--cyan);
}

.services { background: var(--white); }
.service-grid { display: grid; gap: 20px; }
.service { padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: border-color .3s, transform .3s var(--ease); }
.service:hover { border-color: var(--brand); transform: translateY(-2px); }
.service-index { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.service p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--navy); }

.process .steps { display: grid; gap: 16px; counter-reset: step; }
.step { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; align-content: start; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.step p { color: var(--muted); }
.ownership {
  margin-top: clamp(40px, 5vw, 56px);
  background: var(--navy); color: #D5E6F2;
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  display: grid; gap: 10px; max-width: 760px;
}
.ownership h3 { color: var(--white); font-size: 1.5rem; }
.ownership p { color: #D5E6F2; }

/* Tools */
.tools { background: var(--white); border-block: 1px solid var(--line); }
.tool-grid { display: grid; gap: 20px; }
.tool { padding: 34px; display: grid; gap: 10px; align-content: start; }
.tool-label { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.tool h3 { font-size: 1.8rem; }
.tool-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 6px; }
.check-list { display: grid; gap: 10px; margin-top: 6px; }
.check-list li { position: relative; padding-left: 28px; color: var(--slate); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 5px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}

/* ---------- Work / projects ---------- */
.work { background: var(--ice); }
.project-grid { display: grid; gap: 24px; }
.project { overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-thumb {
  position: relative; background: var(--mist); padding: 26px 26px 0;
  display: flex; justify-content: center; gap: 14px; height: 300px; overflow: hidden;
}
.project-thumb img {
  width: 46%; max-width: 200px; height: auto; align-self: flex-start;
  border-radius: 12px; box-shadow: 0 14px 30px -14px rgba(15, 40, 70, .45);
}
.project-thumb img:last-child { align-self: flex-end; margin-top: 46px; }
.project-body { padding: 22px 26px 26px; display: grid; gap: 6px; justify-items: start; }
.project-tag { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.project h3 { font-size: 1.45rem; margin-top: 2px; }
.project-meta { color: var(--navy); font-size: 15px; }
.project-stats { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

.project-dialog {
  width: min(94vw, 960px); max-height: 90vh; padding: 0;
  border: 0; border-radius: 20px; background: var(--white); color: var(--slate);
  box-shadow: 0 40px 80px -30px rgba(15, 40, 70, .55);
}
.project-dialog::backdrop { background: rgba(15, 40, 70, .6); backdrop-filter: blur(3px); }
.project-dialog[open] { animation: dialog-in .4s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dialog-close-form { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 16px 18px 0; margin: 0; background: var(--white); z-index: 1; }
.dialog-close {
  font: inherit; font-size: 15px; font-weight: 500; background: var(--white); border: 2px solid var(--navy); color: var(--navy);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
}
.dialog-close:hover { background: var(--navy); color: var(--white); }
.dialog-body { padding: 0 clamp(20px, 4vw, 44px) clamp(28px, 4vw, 44px); }
.dialog-body h3 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 6px; }
.dialog-lede { margin-top: 10px; font-size: 1.1rem; color: var(--navy); }
.project-facts { display: grid; margin-top: 24px; border-top: 1px solid var(--line); }
.project-facts > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 500; padding-top: 3px; }
.project-facts dd { margin: 0; color: var(--slate); }
.designed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.designed li { background: var(--mist); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--navy); }
.designed b { color: var(--brand); font-size: 1.1rem; margin-right: 4px; }
.dialog-previews { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 26px; justify-items: center; }
.dialog-previews figure { width: 100%; max-width: 300px; }
.dialog-previews figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.dialog-previews img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.dialog-previews figcaption { font-size: 14px; color: var(--muted); line-height: 1.4; }
.dialog-previews figcaption b { display: block; color: var(--navy); font-size: 15px; }
.dialog-note { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Copy table */
.copy-goals { background: var(--white); border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--white); }
th, td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
thead th { background: var(--navy); color: var(--white); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
tbody th { color: var(--navy); font-weight: 700; width: 20%; }
tbody td { color: var(--slate); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- Measurement (navy band) ---------- */
.measure { background: var(--navy); color: #D5E6F2; }
.measure h2 { color: var(--white); }
.measure .eyebrow { color: var(--cyan); }
.measure .section-intro { color: #B9D2E3; }
.measure-grid { display: grid; gap: 48px; }
.metric-list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.metric-list li {
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18);
  color: var(--white); font-size: 1.1rem; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.metric-list li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); flex: none; }
.goal-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: clamp(26px, 4vw, 44px); display: grid; gap: 16px; align-content: start; }
.goal-box h3 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.goal-box > p:not(.eyebrow) { color: #CFE2EF; max-width: 58ch; }
.goal-chart { margin-top: 10px; display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.goal-bar { display: grid; gap: 6px; }
.goal-bar span { font-size: 13px; color: #B9D2E3; }
.goal-bar i { display: block; height: 14px; width: var(--w); border-radius: 999px; background: rgba(255,255,255,.2); }
.goal-bar-target i { background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.goal-caption { font-size: 13px; font-style: italic; color: #9FBCD0; margin-top: 2px; }
.fallback { font-size: 15px; color: #CFE2EF; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.fallback b { color: var(--white); }

/* ---------- About ---------- */
.about { background: var(--ice); }
.about-grid { display: grid; gap: 48px; align-items: start; }
.founder-media { margin: 0; max-width: 480px; }
.founder-media img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }
.founder-copy h2 { margin-bottom: 4px; }
.founder-role { color: var(--brand); font-weight: 500; margin-top: 12px; font-size: 1.05rem; }
.founder-role strong { color: var(--navy); }
.credentials { display: grid; margin-top: 26px; border-top: 1px solid var(--line); }
.credentials li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--slate); }
.credentials b { color: var(--brand); font-weight: 500; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.founder-quote { margin: 34px 0 0; padding: 22px 26px; background: var(--white); border-left: 4px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; display: grid; gap: 12px; }
.founder-quote p { color: var(--navy); font-size: 1.05rem; line-height: 1.55; }
.founder-copy .cta-row { margin-top: 30px; }

/* ---------- Pricing ---------- */
.pricing { background: var(--white); border-top: 1px solid var(--line); }
.plan-grid { display: grid; gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.plan h3 { font-size: 1.6rem; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-amount { font-size: 2.4rem; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.price-unit { color: var(--muted); font-size: 15px; }
.plan-intro { color: var(--muted); font-size: 15px; }
.plan-list { display: grid; margin-bottom: auto; }
.plan-list li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); color: var(--slate); font-size: 15.5px; }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 5px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.plan-cta { margin-top: 10px; width: 100%; }
.plan-featured { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow); }
.plan-featured h3, .plan-featured .price-amount { color: var(--white); }
.plan-featured .price-unit, .plan-featured .plan-intro { color: #B9D2E3; }
.plan-featured .plan-list li { color: #E3EEF6; border-color: rgba(255,255,255,.14); }
.plan-featured .plan-list li::before { border-color: var(--cyan); }
.plan-featured .btn-primary { background: var(--cyan); color: var(--navy); }
.plan-featured .btn-primary:hover { background: var(--white); color: var(--navy); }
.plan-badge {
  position: absolute; top: -13px; left: 32px;
  background: var(--cyan); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.pricing-notes { margin-top: 26px; color: var(--muted); font-size: 15px; }
.pricing-notes b { color: var(--navy); }

.founding {
  margin-top: 36px; padding: clamp(26px, 4vw, 40px);
  background: var(--mist); border-color: var(--brand);
  display: grid; gap: 22px; align-items: center;
}
.founding h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 6px 0 10px; }
.founding p { color: var(--slate); max-width: 60ch; }
.founding-rate { font-size: 1.25rem; font-weight: 700; color: var(--navy) !important; }

/* ---------- Audit ---------- */
.audit { background: var(--ice); }
.audit-grid { display: grid; gap: 48px; align-items: start; }
.audit-grid > header .section-intro { max-width: 52ch; }
.audit-card { padding: clamp(28px, 4vw, 44px); display: grid; gap: 14px; }
.audit-price { font-size: clamp(3.2rem, 6vw, 4.4rem); font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.03em; }
.audit-credit { color: var(--slate); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.audit-card h3 { margin-top: 6px; }
.audit-delivery { font-size: 14.5px; color: var(--muted); margin-top: 6px; }

/* ---------- FAQ (navy band) ---------- */
.faq { background: var(--navy); }
.faq h2 { color: var(--white); }
.faq .eyebrow { color: var(--cyan); }
.faq-grid { display: grid; gap: 40px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.faq-list details[open] { background: rgba(255,255,255,.1); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-size: 1.1rem; font-weight: 500; color: var(--white); line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 300; color: var(--cyan); line-height: 1; transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--cyan); }
.faq-list details p { padding: 0 22px 20px; color: #CFE2EF; max-width: 64ch; }

/* ---------- Final CTA + form ---------- */
.final { background: var(--ice); }
.final-grid { display: grid; gap: 48px; align-items: start; }
.final-copy h2 { margin-bottom: 4px; }
.cta-stack { display: grid; gap: 12px; margin-top: 28px; max-width: 360px; }
.next-steps { display: grid; gap: 10px; margin-top: 30px; counter-reset: next; }
.next-steps li { position: relative; padding-left: 44px; color: var(--slate); min-height: 32px; display: flex; align-items: center; }
.next-steps li::before {
  counter-increment: next; content: counter(next);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--white);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.next-steps b { color: var(--navy); margin-right: 4px; }
.contact-links { margin-top: 36px; display: grid; border-top: 1px solid var(--line); max-width: 480px; }
.contact-links li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-links span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 500; padding-top: 3px; }
.contact-links a { overflow-wrap: anywhere; color: var(--navy); }

.form-card { padding: clamp(24px, 4vw, 40px); }
.form-card h3 { font-size: clamp(1.6rem, 3vw, 2rem); }
.form-intro { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.contact-form { margin-top: 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 500; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--navy);
  background: var(--white); border: 1.5px solid #B4C9D8; border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%; min-height: 48px;
  transition: border-color .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(8, 119, 166, .18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A3322A; background: #FDF2F0; }
.field-error { font-size: 13.5px; color: #9A2A21; font-weight: 500; }
.field-error[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--navy); font-size: 15px; line-height: 1.5; background: var(--white); color: var(--slate); }
.form-status[hidden] { display: none; }
.form-status.is-success { border-color: #2F6B3E; background: #EEF7F0; color: #1F4A2A; }
.form-status.is-error { border-color: #A3322A; background: #FDF2F0; color: #7A2219; }
.form-status.is-info { border-color: var(--brand); background: var(--mist); color: var(--navy); }
.form-status a { color: inherit; font-weight: 500; }
#submit-btn.is-loading { pointer-events: none; opacity: .75; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B9D2E3; padding: clamp(56px, 7vw, 80px) 0 28px; }
.site-footer a { color: #E3EEF6; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand p { margin-top: 18px; max-width: 36ch; font-size: 15px; color: #B9D2E3; }
.footer-col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 500; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; font-size: 15px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #9FBCD0;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .06s; }
.js .reveal:nth-child(3) { transition-delay: .12s; }
.js .reveal:nth-child(4) { transition-delay: .18s; }

/* ==========================================================================
   Responsive: tablet (≥ 720px)
   ========================================================================== */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .project-grid, .service-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .process .steps { grid-template-columns: repeat(2, 1fr); }
  .metric-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid > .plan:nth-child(3) { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
  .founding { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .dialog-previews { grid-template-columns: repeat(4, 1fr); justify-items: stretch; }
  .dialog-previews figure { max-width: none; }
  .project-facts > div { grid-template-columns: 200px 1fr; }
}

/* ==========================================================================
   Responsive: desktop (≥ 960px)
   ========================================================================== */
@media (min-width: 960px) {
  body { font-size: 18px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .hero-media { height: 500px; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .process .steps { grid-template-columns: repeat(5, 1fr); }
  .problem .problem-list { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .measure-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .measure-grid > .section-head { grid-column: 1 / -1; }
  .metric-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .audit-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .final-grid { grid-template-columns: 1fr 1.05fr; gap: 80px; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .plan-grid > .plan:nth-child(3) { grid-column: auto; max-width: none; }
  .plan-featured { transform: translateY(-12px); }
  .plan-featured:hover { transform: translateY(-14px); }
  .ownership { margin-left: 0; }
  .founding { padding: 44px 52px; }
  .site-nav { display: flex; }
}

/* ==========================================================================
   Responsive: mobile navigation (< 960px)
   ========================================================================== */
@media (max-width: 959.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--white); flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 24px var(--gutter) 40px; gap: 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { display: block; font-size: 1.35rem; font-weight: 500; padding: 16px 0; color: var(--navy); }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { width: 100%; min-height: 52px; font-size: 16px; }
  .hero-media { height: 380px; }
}

@media (max-width: 719.98px) {
  .project-facts > div { grid-template-columns: 1fr; gap: 6px; }
  .designed { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  h1 { font-size: 2.3rem; }
  .btn { width: 100%; }
  .project-thumb { height: 260px; }
  .credentials li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee p { animation: none; padding-left: 0; }
}

/* Copy table: stacked cards on phones, full table from tablet up */
@media (max-width: 719.98px) {
  .copy-goals .table-wrap { border: 0; overflow: visible; }
  .copy-goals table { min-width: 0; background: transparent; }
  .copy-goals thead { display: none; }
  .copy-goals tbody, .copy-goals tr { display: block; }
  .copy-goals tbody tr {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; margin-bottom: 14px;
  }
  .copy-goals tbody th { width: auto; border: 0; padding: 0 0 10px; font-size: 17px; }
  .copy-goals td { display: block; border: 0; padding: 8px 0 0; }
  .copy-goals td::before {
    content: attr(data-label); display: block; font-size: 11px; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 2px;
  }
}
