:root {
  --ink: #0f2430;
  --ink-2: #3a5260;
  --muted: #6b7f8a;
  --line: #dde5e9;
  --bg: #ffffff;
  --bg-soft: #f4f8f9;
  --porcelain: #fbfaf7;
  --brand: #0e5c63;
  --brand-2: #127a83;
  --brand-soft: #e3f1f2;
  --accent: #c8873a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 36, 48, .06), 0 8px 24px rgba(15, 36, 48, .06);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; }
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.menu-btn { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
@media (min-width: 900px) { .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: .15s ease;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.nav .btn { display: none; }
@media (min-width: 900px) { .nav .btn { display: inline-flex; } }

/* hero */
.hero { background: linear-gradient(180deg, var(--porcelain), #fff); padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; padding: 24px 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--brand);
  background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
@media (min-width: 600px) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 3px; color: var(--brand); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px;
}
.hero-card h3 { margin-bottom: 14px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.flow li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.flow li:last-child { border-bottom: 0; }
.flow .n {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800;
}
.flow b { display: block; }
.flow span { color: var(--muted); font-size: .92rem; }

/* sections */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }

.grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem; }
.card ul li { margin: 3px 0; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }

.product-card { display: flex; flex-direction: column; }
.product-card .tag { font-size: .78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.product-card .foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 18px; }
.product-card .foot small { color: var(--muted); font-weight: 600; }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }

.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--bg-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.compare td:first-child { font-weight: 700; }
.compare .yes { color: var(--brand); font-weight: 700; }
.table-scroll { overflow-x: auto; }

.steps { counter-reset: s; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-weight: 800; color: var(--brand); font-size: .9rem; letter-spacing: .06em; display: block; margin-bottom: 10px;
}
.step p { color: var(--ink-2); margin: 0; font-size: .95rem; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 6px; }

.cta-band { background: var(--ink); color: #fff; border-radius: 22px; padding: 44px 28px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; padding: 52px; } }
.cta-band p { color: #c3d3da; margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--brand-soft); }

/* page hero */
.page-hero { padding: 56px 0 24px; background: linear-gradient(180deg, var(--porcelain), #fff); }
.page-hero p { color: var(--ink-2); font-size: 1.08rem; max-width: 44em; }

/* form */
.form-wrap { display: grid; gap: 32px; }
@media (min-width: 960px) { .form-wrap { grid-template-columns: 1.5fr 1fr; align-items: start; } }
form.inquiry { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.row { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
label .opt { color: var(--muted); font-weight: 500; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink); padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 110px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px; margin: 0; cursor: pointer;
}
.checks input { width: auto; margin: 0; accent-color: var(--brand); }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.form-note { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.form-status { margin-top: 14px; font-weight: 700; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }

.side-card { background: var(--bg-soft); border-radius: 18px; padding: 26px; }
.side-card h3 { margin-top: 0; }
.side-card ul { padding-left: 18px; color: var(--ink-2); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; color: var(--ink-2); font-size: .92rem; margin-top: 40px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--ink); margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* breadcrumbs */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* key facts — short, quotable answers */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 0; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts div { background: #fff; padding: 16px 18px; }
.facts dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }

/* long-form articles */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.03rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { margin: 18px 0; }
.prose .callout { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 16px 18px; margin: 22px 0; }
.prose .callout p { margin: 0; color: var(--ink); }
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.byline { color: var(--muted); font-size: .9rem; margin-top: -6px; }
.toc { background: var(--bg-soft); border-radius: 12px; padding: 16px 20px; margin: 22px 0; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; }

/* starting prices + fee schedule capture */
.price-card b { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; margin-bottom: 8px; }
.price-card .from { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price-card h3 { margin-bottom: 2px; }
.fee-band { margin-top: 28px; display: grid; gap: 22px; align-items: center; background: var(--bg-soft); border-radius: 20px; padding: 26px; }
@media (min-width: 900px) { .fee-band { grid-template-columns: 1fr 1.1fr; padding: 36px; } }
.fee-band h2 { margin-bottom: .3em; }
.fee-band p { color: var(--ink-2); margin: 0; }
.fee-form { box-shadow: none; }

/* workflow diagram */
.workflow { margin: 0 0 28px; overflow-x: auto; }
.workflow svg { min-width: 620px; width: 100%; height: auto; }
.wf-dot { fill: var(--brand-soft); }
.wf-icon { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wf-line { stroke: var(--line); stroke-width: 2.5; }
.wf-t { font: 700 17px Manrope, system-ui, sans-serif; fill: var(--ink); text-anchor: middle; }
.wf-s { font: 500 13px Manrope, system-ui, sans-serif; fill: var(--muted); text-anchor: middle; }

/* photo gallery (shown once real partner-lab photos are added) */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--line); }
.gallery figcaption { font-size: .88rem; color: var(--ink-2); margin-top: 8px; font-weight: 600; }
