/* ============================================================
   Curon Health Tech — marketing site
   Static: no build step, no dependencies, no web fonts.

   The palette is lifted from the product itself
   (frontend/src/theme/theme.ts) so the site and the app read as
   one brand. Change a token here, the whole page follows.
   ============================================================ */

:root {
  /* Brand — mirrors BRAND in frontend/src/theme/theme.ts */
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --navy: #0b1f33;
  --navy-2: #12314f;
  --sky: #0284c7;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #16a34a;

  /* Neutrals */
  --canvas: #f5f7fa;
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --white: #ffffff;

  /* Scale */
  --wrap: 1140px;
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 18px 50px rgba(11, 31, 51, 0.18);

  /* The logo lockup is near-square (416x400 — emblem above wordmark), so the
     header is sized off the logo's HEIGHT. Setting its width instead makes the
     header ~145px tall. */
  --header-h: 92px;
  --logo-h: 66px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ---------- reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header instead of hiding under it. */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--canvas); }

/* Consecutive tinted sections form ONE band — the three Lab sections read as a
   single product block rather than three stacked pages. */
.section-alt + .section-alt { padding-top: 0; }

.section-head {
  max-width: 660px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section-sub { font-size: 17px; color: var(--muted); }

.eyebrow {
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s,
    transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-dark); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: #a7d9d3;
}
.btn-outline:hover { background: var(--teal-soft); border-color: var(--teal); }

/* On the dark hero / footer, outline buttons invert. */
.hero .btn-outline,
.site-footer .btn-outline {
  color: #d7f2ee;
  border-color: rgba(255, 255, 255, 0.34);
}
.hero .btn-outline:hover,
.site-footer .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* main.js adds .is-stuck once the page has scrolled. */
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: var(--logo-h); width: auto; }
.brand:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 26px;
}
/*
  Scoped to `> ul` on purpose. As `.site-nav a` this out-specifies .btn-primary
  (0,1,1 beats 0,1,0) and repaints the "Request a demo" button's label slate
  grey on teal.
*/
.site-nav > ul a {
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav > ul a:hover { color: var(--ink); text-decoration: none; }
/* main.js sets aria-current on the section in view. */
.site-nav > ul a[aria-current="true"] {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 0 clamp(44px, 6vw, 72px);
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(13, 148, 136, 0.28), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero .eyebrow { color: #5eead4; }

.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 47px);
  margin-bottom: 16px;
}
.hero h1 .accent { color: #5eead4; }

.lede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  max-width: 54ch;
  margin-bottom: 22px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* --- the three products, doubling as the showcase control --- */

.hero-tabs { display: grid; gap: 6px; }

.hero-tab {
  position: relative;
  display: flex;
  width: 100%;
  padding: 10px 13px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.25s;
}
.hero-tab:hover { background: rgba(255, 255, 255, 0.05); }
.hero-tab.is-active { background: rgba(255, 255, 255, 0.07); }

.tab-body { display: grid; gap: 1px; padding-left: 26px; }
.tab-body b {
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  transition: color 0.25s;
}
.tab-body i {
  font-style: normal;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.25s;
}
.hero-tab.is-active .tab-body b { color: #fff; }
.hero-tab.is-active .tab-body i { color: rgba(255, 255, 255, 0.62); }

/* The bullet marker, which fills in on the active product. */
.tab-body::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.3);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.hero-tab.is-active .tab-body::before {
  background: #5eead4;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
}

/* Progress of the auto-advance, so the rotation is legible rather than abrupt.
   main.js restarts the animation by re-adding .is-running. */
.tab-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #5eead4, rgba(94, 234, 212, 0.25));
}
.hero-tab.is-active .tab-bar.is-running {
  animation: tab-fill var(--tab-ms, 5000ms) linear forwards;
}
@keyframes tab-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* --- CSS product mocks: three panels cross-fading in one frame --- */

/*
  The panels stack, so the frame keeps one height and the swap is a cross-fade
  rather than a jump. Height is reserved by the tallest panel via the grid
  below, not hard-coded.
*/
.showcase {
  display: grid;
  perspective: 1400px;
}
.showcase > .mock {
  grid-area: 1 / 1;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
/* [hidden] panels are laid out for sizing but not seen or hit-tested. */
.showcase > .mock[hidden] {
  display: block !important;
  opacity: 0;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) translateY(14px) scale(0.985);
  pointer-events: none;
  visibility: hidden;
}
.showcase > .mock.is-active {
  opacity: 1;
  visibility: visible;
}

.mock {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
}
.mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #eef2f7;
  border-bottom: 1px solid var(--line);
}
.mock-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.mock-body { display: flex; min-height: 268px; }

.mock-side {
  flex: 0 0 74px;
  padding: 14px 10px;
  background: var(--navy);
  display: grid;
  gap: 10px;
  align-content: start;
}
.mock-logo {
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  margin-bottom: 8px;
}
.mock-nav {
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.13);
}
.mock-nav.is-active { background: rgba(94, 234, 212, 0.6); }

.mock-main {
  flex: 1;
  padding: 16px;
  background: var(--canvas);
  display: grid;
  gap: 14px;
  align-content: start;
}
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mock-stat b {
  display: block;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mock-stat i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--muted);
}

.mock-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid #f1f5f9;
}
.mock-row:first-child { border-top: 0; }
.mock-row > span {
  height: 7px;
  border-radius: 4px;
  background: #eaeff5;
}
.mock-head { background: #f8fafc; }
.mock-head > span { background: #d8e0ea; }
.mock-row .pill { height: 14px; border-radius: 7px; }
.pill-ok { background: #d1fae5; }
.pill-warn { background: #fef3c7; }
.pill-crit { background: #fee2e2; }

/* Which product the frame is showing, in its title bar. */
.mock-tag {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- EMR panel --- */

.emr-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.emr-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(140deg, #99f6e4, #5eead4);
}
.emr-name {
  flex: 1;
  height: 8px;
  max-width: 110px;
  border-radius: 4px;
  background: #dbe3ec;
}
.emr-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.rx-row {
  display: grid;
  grid-template-columns: 16px 1fr 46px;
  gap: 9px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid #f1f5f9;
}
.rx-row:first-child { border-top: 0; }
.rx-row > span { height: 7px; border-radius: 4px; background: #eaeff5; }
.rx-head { background: #f8fafc; }
.rx-label {
  background: none !important;
  height: auto !important;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.rx-n {
  background: none !important;
  height: auto !important;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}
.rx-dose { background: #ddeeeb !important; }
.rx-sign {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}
.rx-sign span {
  width: 62px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #99f6e4, #ccfbf1);
}

/* --- Gait & Posture panel --- */

.mock .gait-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  background: var(--canvas);
  overflow: hidden;
}
/* This panel replaces the sidebar layout with a single stage. */
.mock #panel-gait,
#panel-gait .mock-body { display: block; }
#panel-gait .mock-body {
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}

.gait-svg { width: auto; height: 190px; }
.gait-bones {
  fill: none;
  stroke: #0d9488;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.85;
}
.gait-joints circle {
  fill: #fff;
  stroke: #0f766e;
  stroke-width: 2.5;
}
/* The two joints the badges point at, pulsing so the eye finds them. */
.gait-joints .j-key {
  fill: #5eead4;
  animation: joint-pulse 2.2s ease-in-out infinite;
}
.gait-joints .j-key:nth-of-type(2) { animation-delay: 1.1s; }
@keyframes joint-pulse {
  0%, 100% { r: 5; opacity: 1; }
  50% { r: 7; opacity: 0.75; }
}
.gait-neck {
  fill: none;
  stroke: #0d9488;
  stroke-width: 3;
  opacity: 0.85;
}

/* A capture line sweeping the figure — reads as "being measured". */
.gait-scan {
  stroke: #0d9488;
  stroke-width: 1.5;
  opacity: 0.5;
  animation: scan 3.4s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(18px); opacity: 0; }
  12% { opacity: 0.6; }
  88% { opacity: 0.6; }
  50% { transform: translateY(224px); }
}

.gait-badge {
  position: absolute;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #b9e2dd;
  color: var(--teal-dark);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  animation: badge-float 4.5s ease-in-out infinite;
}
.gait-badge-a { top: 58%; right: 14%; }
.gait-badge-b { top: 34%; left: 12%; animation-delay: 1.4s; }
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.gait-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* ---------- cards ---------- */

.card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
/* NB: no `.section-alt .card { background: #fff }` here — .card already paints
   white, and that extra descendant selector out-specifies .contact-card, which
   silently repainted the dark contact panel white. */

.grid-3 .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cfe3e0;
}

.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { font-size: 15px; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.icon svg { width: 22px; height: 22px; }

/* ---------- product overview cards ---------- */

/* The three top-level products. Heavier than a feature card, with a teal rule
   on top so the row reads as the site's spine. */
.products .product-card {
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  border-top: 3px solid var(--teal);
}
.product-card h3 { font-size: 21px; margin-bottom: 6px; }
.product-card .product-for {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-dark);
}
.product-card > p:not(.product-for) { flex: 1; }

.product-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--teal-dark);
}
.product-link:hover { text-decoration: none; color: var(--teal); }
.product-link span {
  display: inline-block;
  transition: transform 0.15s;
}
.product-link:hover span { transform: translateX(3px); }

/* ---------- workflow steps ---------- */

/* 130px min so all seven steps sit on one row at full width — the journey
   reads as a pipeline, and at 150px the seventh wrapped on its own. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}
.steps li {
  position: relative;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 16px; margin-bottom: 5px; }
.steps p { font-size: 14px; color: var(--muted); }

.roles {
  margin-top: clamp(32px, 5vw, 52px);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.roles-title {
  font-size: 17px;
  margin-bottom: 18px;
  text-align: center;
}
.role-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}
.role-list li {
  padding-left: 14px;
  border-left: 3px solid var(--teal-soft);
}
.role-list b { display: block; color: var(--ink); font-size: 15px; }
.role-list span { font-size: 13.5px; color: var(--muted); }

/* ---------- split sections ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split-copy h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.split-copy > p { font-size: 17px; margin-bottom: 22px; }

.ticks { display: grid; gap: 11px; margin-bottom: 26px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-soft) center / 11px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* --- report panel mock --- */

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.panel-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.panel-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}
.panel-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.panel-table th,
.panel-table td {
  padding: 11px 18px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
.panel-table th {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.panel-table td:first-child { font-family: var(--mono); font-size: 13px; }
.panel-table .ta-r { text-align: right; font-variant-numeric: tabular-nums; }
.panel-table .is-refund td { color: var(--danger); background: #fffbfb; }
.panel-table tfoot td {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 0;
}

/* ---------- pricing ---------- */

/* Cards stretch to the tallest, and .ticks below takes the slack — so the three
   "Request a quote" buttons sit on one line however many bullets a tier has. */
.plans { align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan h3 { font-size: 20px; }
.plan-for { font-size: 14px; color: var(--muted); margin: 6px 0 18px; }

/*
  No amounts are published — quotes are given on enquiry. This block sits where
  a price would and has to look deliberate rather than like a missing number,
  so it keeps the same weight and the same rule beneath it.
*/
.plan-quote {
  display: grid;
  gap: 3px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.plan-quote .quote-main {
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-quote .quote-sub {
  font-size: 13.5px;
  color: var(--muted);
}

.plans-note {
  max-width: 620px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}
.plans-note a { font-weight: 600; }

.plan .ticks { flex: 1; }

.plan-featured {
  border-color: var(--teal);
  box-shadow: 0 10px 34px rgba(13, 148, 136, 0.16);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- contact ---------- */

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* The call button breathes, so the eye lands on it. */
.contact-cta .btn-primary {
  position: relative;
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

/* --- the dark contact card --- */

.contact-card {
  position: relative;
  padding: 34px 30px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(680px 300px at 88% -10%, rgba(13, 148, 136, 0.42), transparent 60%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
  box-shadow: var(--shadow-lg);
}
/* .card's hover lift would fight the orbs. */
.contact-card:hover { transform: none; }

/* Two soft lights drifting behind the content. */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  pointer-events: none;
  opacity: 0.55;
}
.orb-a {
  width: 210px;
  height: 210px;
  top: -70px;
  right: -50px;
  background: #14b8a6;
  animation: drift-a 13s ease-in-out infinite;
}
.orb-b {
  width: 170px;
  height: 170px;
  bottom: -60px;
  left: -40px;
  background: #0284c7;
  opacity: 0.4;
  animation: drift-b 17s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-26px, 30px) scale(1.14); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.1); }
}

.contact-card-title {
  position: relative;
  color: #fff;
  font-size: 21px;
}
.contact-card-sub {
  position: relative;
  margin: 4px 0 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5eead4;
}

.contact-list { position: relative; display: grid; gap: 8px; }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.contact-list li:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(94, 234, 212, 0.42);
  transform: translateX(4px);
}

.ci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(94, 234, 212, 0.14);
  color: #5eead4;
  transition: background-color 0.2s, transform 0.2s;
}
.contact-list li:hover .ci {
  background: rgba(94, 234, 212, 0.26);
  transform: scale(1.06);
}
.ci svg { width: 18px; height: 18px; }

/* Label over one or more values. */
.ct { display: grid; gap: 2px; min-width: 0; }
.ct b {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.ct a,
.ct span {
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}
.ct a { transition: color 0.15s; }
.ct a:hover { color: #5eead4; text-decoration: none; }

/* ---------- scroll reveal ---------- */

/*
  The hidden state is applied only once JS has added .js-reveal to <html>, so
  with JS off (or broken) every section stays plainly visible.
*/
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
  .contact-cta .btn-primary { animation: none; }
  .orb { animation: none; }
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(44px, 6vw, 68px) 0 26px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  padding-bottom: 34px;
}
.footer-brand img { height: 76px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
}
.footer-nav h4 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav ul { display: grid; gap: 9px; }
.footer-nav a { color: rgba(255, 255, 255, 0.62); }
.footer-nav a:hover { color: #fff; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
}
.footer-base a { color: rgba(255, 255, 255, 0.62); }
.footer-base a:hover { color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
  .mock { transform: none; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; --logo-h: 48px; }

  .nav-toggle { display: flex; }

  /* Collapsed menu: a panel under the header, opened by main.js. */
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }

  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid #f1f5f9;
  }
  .site-nav a[aria-current="true"] { border-bottom-color: var(--teal); }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px;
  }
  .nav-actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .card { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .footer-base { justify-content: flex-start; }
}

/* ---------- print ---------- */

@media print {
  .site-header, .nav-toggle, .hero-visual, .split-visual, .skip-link { display: none; }
  .hero, .site-footer { background: #fff; color: #000; }
  .hero h1, .hero h1 .accent { color: #000; }
  .card, .steps li, .roles { box-shadow: none; }
}
