/* Palette sampled from the logo: navy #2C5E84, cyan #5CE1E6, green #7BDA63. */
:root {
  --navy: #2c5e84;
  --ink: #163049;
  --cyan: #5ce1e6;
  --green: #7bda63;
  --teal-text: #1d6f74;
  --text: #1f2d3a;
  --muted: #4a5b6b;
  --paper: #ffffff;
  --mist: #f4f8fa;
  --line: #d9e3ea;
  --ph-bg: #fff3c4;
  --radius: 10px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Placeholders: easy to spot and swap */
.ph { background: var(--ph-bg); color: #5a4300; padding: 1px 6px; border-radius: 4px; font-style: normal; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

.eyebrow { font: 600 .82rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--teal-text); margin-bottom: 14px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--green); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.eyebrow-light { color: var(--cyan); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { width: 150px; }
nav { margin-left: auto; }
.nav-links { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav-links a:hover { color: var(--teal-text); text-decoration: underline; }
@media (max-width: 820px) {
  nav { display: none; }
  .header-inner .btn { margin-left: auto; }
  .brand img { width: 128px; }
}

/* Hero */
.hero { padding: 64px 0 72px; background:
  radial-gradient(600px 300px at 92% 8%, rgba(92,225,230,.22), transparent 70%),
  radial-gradient(500px 260px at 70% 100%, rgba(123,218,99,.16), transparent 70%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 96px 0 104px; } .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; } }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36em; }

.hero-panel { margin: 0; background: var(--ink); color: #e8f1f6; border-radius: 16px; padding: 26px 24px 22px; box-shadow: 0 24px 50px -28px rgba(22,48,73,.6); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.14); }
.panel-label { font: 700 1.05rem/1.2 var(--display); color: #fff; }
.hero-panel figcaption { margin-top: 14px; font-size: .9rem; color: #b9cad7; }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section-head { max-width: 46em; margin-bottom: 44px; }

.offers { display: grid; gap: 8px 56px; }
@media (min-width: 760px) { .offers { grid-template-columns: 1fr 1fr; } }
.offer { padding: 26px 0 18px; border-top: 2px solid var(--ink); }
.offer-num { display: block; font: 700 .9rem/1 var(--display); color: var(--navy); margin-bottom: 12px; }
.offer p { color: var(--muted); max-width: 34em; }

/* Process */
.process { background: var(--ink); color: #dde8ef; }
.process h2, .process h3 { color: #fff; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 36px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem/1 var(--display); color: var(--ink); background: var(--cyan); }
.steps li:nth-child(4)::before { background: var(--green); }
.steps p { color: #c7d6e2; }

/* Products */
.product-tag { font: 600 1.25rem/1.4 var(--display); color: var(--navy); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding: 0 0 14px 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 3px solid var(--teal-text); border-bottom: 3px solid var(--teal-text); transform: rotate(-45deg); }

/* Case study */
.case-grid { display: grid; gap: 32px; margin-top: 28px; }
@media (min-width: 900px) { .case-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.case-col h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--body); color: var(--navy); }
.case-col p { color: var(--muted); }
.case-result { border-left: 4px solid var(--green); padding-left: 22px; }


/* About */
.about { border-top: 1px solid var(--line); }
.about p { max-width: 40em; }

/* Contact */
.contact { background: var(--ink); color: #dde8ef; }
.contact h2 { color: #fff; }
.contact a { color: var(--cyan); }
.contact a:hover { color: #fff; }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.details { margin: 28px 0 0; display: grid; grid-template-columns: 6em 1fr; gap: 12px 16px; }
.details dt { font-weight: 600; color: #fff; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details address { font-style: normal; }
.contact-form { background: #fff; color: var(--text); border-radius: 16px; padding: 28px 22px; }
@media (min-width: 720px) { .contact-form { padding: 32px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1.5px solid #8a9aa8; border-radius: 8px; padding: 11px 12px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.form-note.error { color: #b3261e; font-weight: 600; }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-inner p { margin: 0; }
.footer-inner p:last-child { margin-left: auto; }
@media (max-width: 600px) { .footer-inner p:last-child { margin-left: 0; } }

/* Hero bill illustration */
.bill-row { padding-top: 18px; }
.bill-name { font-weight: 600; color: #fff; margin: 0 0 10px; font-size: .95rem; }
.bill-name-us { color: var(--green); }
.bill-note { font-size: .9rem; color: #b9cad7; margin: 8px 0 0; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 76px; border-bottom: 1px solid rgba(255,255,255,.24); }
.bars span { display: block; border-radius: 2px 2px 0 0; }
.bars-lump span { height: 5%; background: #7f97a9; }
.bars-lump span:first-child { height: 100%; }
.bars-even span { height: 24%; background: var(--green); }
.hero-panel figcaption { margin-top: 18px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.14); font-size: .85rem; }

/* Pricing comparison */
.pricing { background: var(--mist); }
.section-intro { font-size: 1.1rem; color: var(--muted); max-width: 38em; margin: 0; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.compare th, .compare td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 700 1.05rem/1.25 var(--display); color: var(--ink); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td { color: var(--muted); }
.compare .us { background: var(--ink); color: #fff; font-weight: 600; }
.compare thead .us { color: var(--green); }
.compare tbody tr:not(:last-child) .us { border-bottom-color: rgba(255,255,255,.16); }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 18px 18px 8px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare td { padding: 0; border: 0; }
  .compare tbody th { font: 700 1.1rem/1.25 var(--display); margin-bottom: 10px; }
  .compare td { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 10px; }
  .compare td::before { content: attr(data-label); font-size: .88rem; font-weight: 600; color: var(--ink); }
  .compare td.us { border-radius: 8px; margin-bottom: 10px; }
  .compare td.us::before { color: var(--green); }
}

/* Enterprise-grade list */
.grade { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 48px; padding: 0; }
.grade li { padding: 8px 14px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .97rem; }

/* Product blocks */
.product + .product { margin-top: 72px; }
.product { scroll-margin-top: 84px; }
.product-name { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3em; }
.product { padding-top: 40px; border-top: 2px solid var(--ink); }
.product-intro { display: grid; gap: 24px; align-items: start; margin-bottom: 32px; }
.product-intro p { max-width: 40em; }
.cta-col .btn { white-space: nowrap; }
.cta-note { font-size: .92rem; color: var(--muted); margin: 10px 0 0; }
@media (min-width: 900px) { .product-intro { grid-template-columns: 1fr auto; gap: 56px; } }

/* Clip tabs. Without JavaScript the tab bar stays hidden and all three clips show in a stack. */
.tablist[hidden] { display: none; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tablist button { min-height: 44px; padding: 8px 18px; font: 600 .97rem/1.2 var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.tablist button:hover { border-color: var(--ink); }
.tablist button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.clip-panel + .clip-panel { margin-top: 40px; }
.tabs.ready .clip-panel + .clip-panel { margin-top: 0; }
.clip-panel[hidden] { display: none; }
.clip-copy { max-width: 46em; margin-bottom: 20px; }
h4 { font: 700 1.2rem/1.2 var(--display); color: var(--ink); margin: 0 0 .5em; }
.clip { margin: 0; }
.clip img { width: 100%; border-radius: 12px; background: var(--ink); }
.clip figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.audiences { display: grid; gap: 28px; margin-top: 44px; }
@media (min-width: 820px) { .audiences { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.audiences ul { margin: 0; padding-left: 18px; color: var(--muted); }
.audiences li { margin-bottom: 8px; }

/* AskyDoc */
.askydoc-grid { display: grid; gap: 32px; align-items: center; }
.askydoc-art { width: 100%; max-width: 440px; margin: 0 auto; }
@media (min-width: 900px) { .askydoc-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

/* 404 */
.logo-404 { width: 180px; }
.title-404 { margin-top: 48px; }
