/* ============================================================
   Sublidyne — Commercial Freeze Dryers
   Design system v2.0 — "Apple.com for freeze dryers"
   Typography-first, deep-cold dark sections, frost-blue
   accents, ONE high-contrast CTA accent (electric blue).

   Color system:
   --bg-deep / --bg-dark   near-black & deep-navy cold sections
   --frost / --frost-mid   frost-blue accents on dark
   --accent                electric blue — CTAs ONLY
   No external libraries. Vanilla CSS.
   ============================================================ */

:root {
  --bg-deep: #05080d;
  --bg-dark: #0a1624;
  --bg-dark-soft: #0e2034;
  --frost: #9fd8ff;
  --frost-mid: #4aa8e8;
  --accent: #0071e3;        /* CTA fill — white text = 4.7:1 */
  --accent-bright: #2997ff; /* CTA hover / glow */
  --accent-deep: #0a5fbe;   /* links & accents on white = 6.2:1 */
  --ink: #16202a;
  --ink-soft: #4b5763;
  --ice: #f5f9fd;
  --ice-dim: #a9c2d8;
  --paper: #ffffff;
  --paper-alt: #f5f7fa;
  --line: #e2e9f0;
  --line-dark: rgba(159, 216, 255, 0.16);
  --radius: 14px;
  --radius-lg: 24px;
  --pill: 980px;
  --shadow: 0 2px 14px rgba(10, 22, 36, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 22, 36, 0.16);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.028em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin-bottom: 0.55em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 0.45em; letter-spacing: -0.018em; line-height: 1.25; }
h4 { font-size: 1.05rem; margin-bottom: 0.4em; letter-spacing: -0.01em; }

p { margin-bottom: 1.05em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.3em; margin-bottom: 1em; }
li { margin-bottom: 0.45em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* One idea per viewport: generous vertical rhythm */
.section { padding: clamp(80px, 11vw, 130px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-alt { background: var(--paper-alt); }
.section-navy { background: var(--bg-dark); color: var(--ice-dim); }
.section-navy h2, .section-navy h3 { color: var(--ice); }
.section-navy a { color: var(--frost); }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.lead {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: -0.008em;
}
.section-navy .lead { color: var(--ice-dim); }

.muted { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Buttons (pill, Apple-style) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  padding: 14px 30px;
  border-radius: var(--pill);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-align: center;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #fff !important; border-color: var(--accent);
  box-shadow: 0 8px 26px rgba(0, 113, 227, 0.28);
}
.btn-primary:hover {
  background: var(--accent-bright); border-color: var(--accent-bright);
  box-shadow: 0 10px 34px rgba(41, 151, 255, 0.42);
  transform: translateY(-1px);
}
.btn-secondary { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff !important; }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--ice) !important; border-color: rgba(159,216,255,0.4); }
.btn-ghost:hover { background: rgba(159,216,255,0.12); border-color: var(--frost); }
.btn-lg { padding: 17px 38px; font-size: 1.08rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 18px; z-index: 300;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Scroll progress (injected by JS) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 220;
  background: linear-gradient(90deg, var(--accent) 0%, var(--frost-mid) 70%, var(--frost) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Header — slim translucent dark bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 9, 15, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(159, 216, 255, 0.10);
  transition: background 0.3s var(--ease-out);
}
.site-header.scrolled { background: rgba(5, 9, 15, 0.86); }
.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 64px;
}
.logo {
  text-decoration: none;
  display: flex; flex-direction: column; line-height: 1.1;
  flex-shrink: 0;
}
.logo-mark {
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.015em;
  color: var(--ice);
}
.logo-mark .logo-bracket { color: var(--frost-mid); }
.logo-sub {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ice-dim); margin-top: 2px;
}

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; padding: 0; margin: 0; align-items: center; }
.main-nav > ul > li { margin: 0; position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 0.92rem; font-weight: 500;
  color: rgba(245, 249, 253, 0.85); text-decoration: none;
  padding: 9px 14px; background: none; border: none; cursor: pointer;
  border-radius: var(--pill);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-link .caret { width: 10px; height: 10px; transition: transform 0.2s ease; }

.dropdown {
  list-style: none; padding: 10px; margin: 0;
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 290px;
  background: rgba(10, 18, 30, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line-dark); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 11px 14px; text-decoration: none;
  font-size: 0.93rem; font-weight: 500; color: var(--ice); border-radius: 10px;
  transition: background 0.15s ease;
}
.dropdown a:hover { background: rgba(159, 216, 255, 0.10); color: #fff; }
.dropdown a span { display: block; font-size: 0.78rem; color: var(--ice-dim); font-weight: 400; }

@media (min-width: 921px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown.open .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .has-dropdown:hover .caret, .has-dropdown.open .caret { transform: rotate(180deg); }
}

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone {
  font-weight: 600; font-size: 0.9rem; color: var(--ice); text-decoration: none;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.header-phone:hover { color: var(--frost); }
.header-phone svg { width: 15px; height: 15px; }
.header-cta { padding: 9px 20px; font-size: 0.9rem; white-space: nowrap; box-shadow: none; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--ice);
  border-radius: 2px; transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}
body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (homepage) — full-viewport cold dark stage ---------- */
.hero {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(20, 56, 90, 0.55), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 70%, #0c1b2c 100%);
  color: var(--ice-dim);
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero .container { position: relative; z-index: 2; will-change: transform, opacity; }
.hero .eyebrow { color: var(--frost); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.2vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin: 0 auto 26px;
  max-width: 1040px;
}
.hero .lead {
  max-width: 700px; margin-left: auto; margin-right: auto;
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  color: var(--ice-dim);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; justify-items: center; }
.hero .btn-group { justify-content: center; }

/* Parallax layers injected by JS */
.hero-glow {
  position: absolute; left: 50%; top: -28%;
  width: 1300px; height: 1300px; max-width: 200vw;
  margin-left: -650px;
  background: radial-gradient(circle,
    rgba(74, 168, 232, 0.30) 0%,
    rgba(74, 168, 232, 0.10) 38%,
    rgba(74, 168, 232, 0) 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

.trust-strip {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 30px;
  margin-top: 34px; font-size: 0.9rem; font-weight: 500; color: var(--ice-dim);
  justify-content: center;
}
.trust-strip li { display: flex; align-items: center; gap: 8px; margin: 0; }
.trust-strip svg { width: 14px; height: 14px; color: var(--frost-mid); flex-shrink: 0; }

/* Page hero (interior) — compact dark band with cold glow */
.page-hero {
  background:
    radial-gradient(ellipse 80% 70% at 50% -20%, rgba(20, 56, 90, 0.5), transparent 62%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
  color: var(--ice-dim);
  min-height: 46vh;
  display: flex; align-items: center;
  padding: 110px 0 70px;
  position: relative; overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; will-change: transform, opacity; }
.page-hero .eyebrow { color: var(--frost); }
.page-hero h1 {
  color: #fff; margin-bottom: 18px; max-width: 880px;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  letter-spacing: -0.032em;
}
.page-hero .lead { max-width: 720px; }
.breadcrumb { font-size: 0.82rem; margin-bottom: 20px; color: rgba(169, 194, 216, 0.75); letter-spacing: 0.01em; }
.breadcrumb a { color: var(--ice-dim); }
.breadcrumb a:hover { color: var(--frost); }

/* ---------- Photo placeholders — intentional dark frost panels ---------- */
.photo-placeholder {
  background:
    radial-gradient(ellipse 120% 90% at 50% -20%, rgba(74, 168, 232, 0.14), transparent 60%),
    linear-gradient(165deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
  border: 1px solid rgba(159, 216, 255, 0.30);
  border-radius: var(--radius-lg);
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  padding: 28px; text-align: center;
  color: var(--frost); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1.9;
  box-shadow: inset 0 0 60px rgba(74, 168, 232, 0.06);
}
.hero .photo-placeholder {
  background:
    radial-gradient(ellipse 120% 90% at 50% -20%, rgba(74, 168, 232, 0.16), transparent 60%),
    linear-gradient(165deg, rgba(14, 32, 52, 0.85) 0%, rgba(5, 8, 13, 0.6) 100%);
  border-color: rgba(159, 216, 255, 0.28);
  min-height: 300px; width: 100%; max-width: 780px;
}
.photo-placeholder.tall { min-height: 380px; }
.photo-placeholder.short { min-height: 180px; }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.card h3, .card h4 { margin-top: 16px; }
.card .icon {
  width: 48px; height: 48px; color: var(--accent-deep);
  background: linear-gradient(160deg, #eaf4fe 0%, #f5faff 100%);
  border: 1px solid rgba(74, 168, 232, 0.25);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 24px; height: 24px; }

a.card-link {
  text-decoration: none; color: inherit; display: block;
}
a.card-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 168, 232, 0.45);
  color: inherit;
}
.card-cta { font-weight: 600; color: var(--accent-deep); font-size: 0.92rem; margin-top: 14px; display: inline-block; }

/* Pull-quote — the flagship statement, Apple-massive */
.pullquote {
  border: 0;
  background: none;
  padding: 14px 0;
  margin: 44px 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--accent-deep);
  background-image: linear-gradient(100deg, #0a3d7c 0%, var(--accent-deep) 45%, #1d86d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Capacity ladder */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.ladder-step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.ladder-step.accent {
  border-color: rgba(74, 168, 232, 0.55);
  box-shadow: 0 16px 48px rgba(74, 168, 232, 0.18);
}
.ladder-step.in-focus { border-color: rgba(74, 168, 232, 0.55); box-shadow: 0 16px 48px rgba(74, 168, 232, 0.18); }
.ladder-step .range {
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 700; color: var(--ink); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ladder-step .range small { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); display: block; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.ladder-step h3 { margin-top: 18px; }
.ladder-step ul { font-size: 0.94rem; color: var(--ink-soft); margin-top: 14px; }

/* Pinned product-style stage (homepage, built by JS) */
.ladder-stage { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: start; }
.ladder-stage .ladder { grid-template-columns: 1fr; margin-top: 40px; gap: 28px; }
.ladder-visual {
  position: sticky; top: 104px;
  margin-top: 40px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 110% 80% at 50% -10%, rgba(74, 168, 232, 0.16), transparent 62%),
    linear-gradient(170deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  aspect-ratio: 1 / 1.02;
  box-shadow: inset 0 0 80px rgba(74, 168, 232, 0.05), var(--shadow-lg);
}
.ladder-visual svg {
  position: absolute; inset: 9%;
  width: 82%; height: 82%;
  opacity: 0;
  transform: scale(0.94) translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.ladder-visual svg.active { opacity: 1; transform: none; }
.ladder-visual .stage-dots {
  position: absolute; bottom: 22px; left: 0; right: 0;
  display: flex; gap: 8px; justify-content: center;
}
.ladder-visual .stage-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(159, 216, 255, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}
.ladder-visual .stage-dots i.active { background: var(--frost); transform: scale(1.3); }
@media (max-width: 920px) {
  .ladder-stage { display: block; }
  .ladder-visual { display: none; }
}

.spec-note {
  display: inline-block;
  background: #eef6ff; border: 1px dashed var(--frost-mid);
  color: var(--accent-deep); font-weight: 600; font-size: 0.85rem;
  padding: 1px 9px; border-radius: 6px;
}

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding-left: 34px; position: relative; margin-bottom: 14px;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 19px; height: 19px;
  background: var(--accent-deep);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
}

/* Numbered steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  padding: 28px 28px 28px 88px; position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 28px; top: 28px;
  font-size: 1.25rem; font-weight: 700; color: var(--frost-mid);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- CTA bands ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 90% 130% at 85% -20%, rgba(74, 168, 232, 0.22), transparent 60%),
    linear-gradient(120deg, var(--bg-deep) 0%, var(--bg-dark-soft) 100%);
  color: var(--ice-dim);
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 5vw, 60px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: 0 24px 70px rgba(5, 8, 13, 0.35);
}
.cta-band h2, .cta-band h3 { color: #fff; margin-bottom: 8px; letter-spacing: -0.025em; }
.cta-band p { color: var(--ice-dim); margin: 0; max-width: 560px; }
.cta-band .btn-group { margin-top: 0; }

/* Finale — full-screen dark close, single giant CTA */
.final-cta {
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(74, 168, 232, 0.20), transparent 65%),
    linear-gradient(180deg, #0c1b2c 0%, var(--bg-deep) 55%, var(--bg-deep) 100%);
  color: var(--ice-dim);
  min-height: 92vh;
  min-height: 92svh;
  display: flex; align-items: center;
  padding: clamp(90px, 12vw, 150px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.35em;
}
.final-cta h3 {
  color: var(--frost);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  letter-spacing: -0.012em;
  margin-bottom: 26px;
}
.final-cta p { max-width: 640px; margin: 0 auto 12px; color: var(--ice-dim); }
.final-cta .btn-group { justify-content: center; margin-top: 40px; }
.final-cta .btn-primary {
  padding: 20px 48px; font-size: 1.18rem;
  box-shadow: 0 14px 48px rgba(0, 113, 227, 0.45);
}
.final-cta .btn-primary:hover { box-shadow: 0 18px 60px rgba(41, 151, 255, 0.6); }

/* ---------- Tables ---------- */
table.data { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.96rem; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--bg-dark); color: #fff; font-weight: 600; letter-spacing: 0.01em; }
table.data tr:nth-child(even) td { background: var(--paper-alt); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(28px, 4vw, 44px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--ink); letter-spacing: -0.005em; }
.form-field label .req { color: var(--accent-deep); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: 1.02rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid #d6dee7; border-radius: 12px;
  background: var(--paper); width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}
.form-field input.invalid, .form-field select.invalid, .form-field textarea.invalid { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: 0.82rem; margin-top: 5px; display: none; }
.form-field.show-error .field-error { display: block; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 18px; }
.form-banner {
  background: #eef8f0; border: 1px solid #9dc8a8; color: #1d5a2e;
  border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-size: 0.95rem;
}
.form-error-summary {
  background: #fcefec; border: 1px solid #e0a8a0; color: #8c2f23;
  border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-size: 0.95rem; display: none;
}

/* ---------- Calculator — the tool is the hero ---------- */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.calc-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg); padding: clamp(30px, 4vw, 46px);
}
.calc-panel h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.calc-results {
  background:
    radial-gradient(ellipse 120% 70% at 50% -15%, rgba(74, 168, 232, 0.18), transparent 60%),
    linear-gradient(170deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
  color: var(--ice-dim);
  border: 1px solid var(--line-dark);
  border-radius: 28px; padding: clamp(30px, 4vw, 46px);
  position: sticky; top: 88px;
  box-shadow: 0 24px 70px rgba(5, 8, 13, 0.3);
}
.calc-results h2, .calc-results h3 { color: #fff; }
.result-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(159, 216, 255, 0.14);
}
.result-row .label { font-size: 0.92rem; color: var(--ice-dim); }
.result-row .value {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem); font-weight: 700; color: #fff;
  white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.result-row .value small { font-size: 0.78rem; font-weight: 600; color: var(--frost); letter-spacing: 0.04em; }
.size-class-box {
  margin-top: 24px; padding: 20px 22px; border-radius: 16px;
  background: rgba(74, 168, 232, 0.12); border: 1px solid rgba(159, 216, 255, 0.45);
}
.size-class-box .label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--frost); }
.size-class-box .class-name { font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -0.015em; }
.calc-warning {
  display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px;
  background: rgba(240, 178, 122, 0.12); border: 1px solid rgba(240, 178, 122, 0.55);
  color: #f6cf9e; font-size: 0.92rem;
}
.calc-warning.visible { display: block; }
.calc-disclaimer { font-size: 0.85rem; color: rgba(169, 194, 216, 0.8); margin-top: 24px; line-height: 1.55; }
.calc-empty { color: var(--ice-dim); font-size: 0.95rem; padding: 18px 0; }

/* Animated result reveal (triggered by JS) */
@media (prefers-reduced-motion: no-preference) {
  .calc-animate .result-row,
  .calc-animate .size-class-box,
  .calc-animate .btn-group,
  .calc-animate .calc-disclaimer {
    animation: calcRise 0.55s var(--ease-out) both;
  }
  .calc-animate .result-row:nth-child(2) { animation-delay: 0.07s; }
  .calc-animate .result-row:nth-child(3) { animation-delay: 0.14s; }
  .calc-animate .result-row:nth-child(4) { animation-delay: 0.21s; }
  .calc-animate .size-class-box { animation-delay: 0.3s; }
  .calc-animate .btn-group { animation-delay: 0.4s; }
  .calc-animate .calc-disclaimer { animation-delay: 0.45s; }
}
@keyframes calcRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep); color: var(--ice-dim);
  border-top: 1px solid var(--line-dark);
  padding: 72px 0 0; font-size: 0.93rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 52px;
}
.footer-logo { font-weight: 700; font-size: 1.12rem; color: #fff; margin-bottom: 10px; letter-spacing: -0.015em; }
.footer-logo .logo-bracket { color: var(--frost-mid); }
.footer-tagline { color: var(--ice); font-weight: 500; }
.site-footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--ice-dim); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--frost); }
.footer-bottom {
  border-top: 1px solid rgba(159, 216, 255, 0.1);
  padding: 22px 0; font-size: 0.84rem; color: rgba(169, 194, 216, 0.7);
}
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Escalating quote CTA pill (all viewports) ---------- */
.sticky-cta {
  position: fixed; right: 20px; bottom: 20px; left: auto; z-index: 90;
  padding: 0; background: none;
  display: block;
  opacity: 0;
  transform: translateY(160%);
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.sticky-cta.visible { opacity: 0.92; transform: none; pointer-events: auto; }
.sticky-cta.cta-hidden { opacity: 0; transform: translateY(160%); pointer-events: none; }
.sticky-cta .btn {
  display: block; width: auto;
  font-size: 0.86rem; padding: 12px 22px;
  border-radius: var(--pill);
  transform-origin: 100% 100%;
  box-shadow: 0 6px 24px rgba(0, 113, 227, 0.35);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out), background 0.3s ease;
}
.sticky-cta.s1 { opacity: 1; }
.sticky-cta.s1 .btn { transform: scale(1.07); }
.sticky-cta.s2 { opacity: 1; }
.sticky-cta.s2 .btn {
  transform: scale(1.15);
  background: var(--accent-bright); border-color: var(--accent-bright);
  box-shadow: 0 10px 36px rgba(41, 151, 255, 0.55);
}
.sticky-cta.s3 { opacity: 1; }
.sticky-cta.s3 .btn { transform: scale(1.24); }
@media (prefers-reduced-motion: no-preference) {
  .sticky-cta.s3 .btn { animation: ctaPulse 2.4s ease-in-out infinite; }
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 36px rgba(41, 151, 255, 0.45); }
  50% { box-shadow: 0 14px 52px rgba(41, 151, 255, 0.85); }
}

/* ---------- FAQ-ish definition blocks ---------- */
.def-block { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; margin-bottom: 18px; background: var(--paper); box-shadow: var(--shadow); }
.def-block h3 { margin-bottom: 8px; }

/* ============================================================
   Scroll choreography — reveal on entry (opt-in via JS).
   Content is fully visible without JS: these rules only apply
   to elements the script tags with .reveal AFTER the
   IntersectionObserver is successfully created, and only when
   <html> carries the .js class. No-JS = everything visible.
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion: calm everything down ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .hero-canvas, .hero-glow { display: none; }
  .hero .container, .page-hero .container { transform: none !important; opacity: 1 !important; }
  .sticky-cta .btn { animation: none !important; }
}

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

@media (max-width: 920px) {
  .header-phone span.phone-label { display: none; }
  .hamburger { display: flex; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(5, 8, 13, 0.97);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-top: 1px solid var(--line-dark);
    padding: 22px 28px 140px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s var(--ease-out);
    margin-left: 0; z-index: 95;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(159, 216, 255, 0.1); }
  .nav-link {
    width: 100%; justify-content: space-between; padding: 18px 4px;
    font-size: 1.25rem; font-weight: 600; color: var(--ice);
    letter-spacing: -0.015em; border-radius: 0;
  }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; min-width: 0; background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    display: none; padding: 0 0 14px 14px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown.open .caret { transform: rotate(180deg); }
  .mobile-nav-cta { display: block; margin-top: 26px; border-bottom: none !important; }
  .mobile-nav-cta .btn { display: block; }

  .hero { text-align: left; padding: 110px 0 70px; }
  .hero h1, .hero .lead { margin-left: 0; }
  .hero .btn-group, .trust-strip { justify-content: flex-start; }
  .hero-grid { justify-items: stretch; }

  .hero-grid, .calc-wrap, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .calc-results { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .final-cta { min-height: 80vh; }
  .sticky-cta { right: 14px; bottom: 14px; }
  .sticky-cta .btn { font-size: 0.8rem; padding: 11px 18px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .btn-group .btn { width: 100%; }
  .sticky-cta .btn { white-space: normal; line-height: 1.3; }
}

@media (min-width: 921px) {
  .mobile-nav-cta { display: none; }
}

/* Print: keep it readable */
@media print {
  .site-header, .sticky-cta, .site-footer, .btn, .scroll-progress { display: none !important; }
  .hero, .page-hero, .final-cta { background: #fff !important; color: #000 !important; min-height: 0; }
  .hero h1, .page-hero h1, .final-cta h2 { color: #000; }
}
