/* ============================================================
   HDShips public website — shared stylesheet
   Tokens: _Brand_System/HDShips_Brand_System.md (canonical)
   Dark-first. Apotek Cond 800 display + Inter body.
   ============================================================ */

:root {
  /* Brand primaries */
  --dark-blue:   #031626;
  --baltic-sea:  #002F46;
  --shell-coral: #066D89;
  --aqua:        #07D9D9;
  --seafoam:     #61FFF7;
  --white:       #FFFFFF;

  /* Neutrals (dark mode) */
  --n900: #0A0F14;
  --n800: #131C24;
  --n700: #2A3440;
  --n600: #3D4F5E;
  --n500: #5A6A78;
  --n400: #7A8D9B;
  --n300: #94A3B3;
  --n200: #C4D0DC;
  --n100: #D4DCE4;

  /* Status */
  --warn:   #fb923c;
  --amber:  #fbbf24;
  --danger: #dc2626;
  --success:#07D9D9;

  /* Type */
  --font-hed:  'apotek-cond', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Motion */
  --t-micro: 0.2s;
  --t-page:  0.3s;
  --ease-accordion: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--n900);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.75;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* Headline sizing referenced from the finalized Tilt Lighthouse site
   (tilt-website: .hero-title and .intro-title/.cta-title) */
.h1 {
  font-family: var(--font-hed);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.h2 {
  font-family: var(--font-hed);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--aqua);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .num { color: var(--seafoam); opacity: 0.85; }
.lede { color: var(--white); font-weight: 500; }
.body-copy { color: var(--n300); font-size: 15.5px; line-height: 1.75; }
.caption { color: var(--n400); font-weight: 300; font-size: 13px; line-height: 1.65; }
.teal { color: var(--aqua); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.section-head .h2 { margin-top: 2px; }
.section-head .body-copy { color: var(--n400); }
.center { text-align: center; }
.surface { background: var(--n800); }
.surface-navy { background: var(--dark-blue); }

/* ---------- Light sections (white background to break up the dark) ---------- */
.section-light { background: #FFFFFF; }
.section-light .section-head .h2 { color: #031626; }
.section-light .section-head .body-copy { color: #5A6A78; }
.section-light .eyebrow { color: #066D89; }
.section-light .eyebrow .num { color: #07D9D9; }
/* mode grid on light */
.section-light .mode-grid { background: #E4EBF1; border-color: #E4EBF1; }
.section-light .mode { background: #FFFFFF; }
.section-light .mode:hover { background: #F3F7FA; }
.section-light .mode-title { color: #031626; }
.section-light .mode-desc { color: #5F7180; }
.section-light .mode-ico { background: rgba(7,217,217,0.12); border-color: rgba(6,109,137,0.28); }
.section-light .mode-ico svg { stroke: #066D89; }
/* tabs on light */
.section-light .tabs { border-top-color: rgba(3,22,38,0.12); }
.section-light .tab { color: #5F7180; }
.section-light .tab:hover { color: #031626; }
.section-light .tab[aria-selected="true"] { color: #031626; border-top-color: var(--aqua); }
.section-light .tp-copy .h2 { color: #031626; }
.section-light .tp-copy .body-copy { color: #5A6A78; }
.section-light .tab-media { border-color: rgba(3,22,38,0.10);
  background: radial-gradient(120% 120% at 70% 20%, rgba(7,217,217,0.16), transparent 55%), linear-gradient(160deg, #DCE7EE, #C6D5E0); }
.section-light .tab-media .ph-note { color: #7A8D9B; }
/* feature row on light */
.section-light .feat-title { color: #031626; }
.section-light .feat-desc { color: #5F7180; }
.section-light .feat-ico { background: rgba(7,217,217,0.12); border-color: rgba(6,109,137,0.28); }
.section-light .feat-ico svg { stroke: #066D89; }
/* cards on light (media + mini) */
.section-light .media-card { background: #FFFFFF; border-color: rgba(3,22,38,0.10); box-shadow: 0 2px 12px rgba(3,22,38,0.05); }
.section-light .media-card:hover { border-color: rgba(6,109,137,0.32); }
.section-light .media-card .ph { background: radial-gradient(120% 120% at 70% 20%, rgba(7,217,217,0.14), transparent 55%), linear-gradient(160deg, #DBE6EE, #C3D4DF); }
.section-light .media-card .ph::after { color: #7A8D9B; }
.section-light .media-card .mc-body { background: linear-gradient(to top, rgba(255,255,255,0.97) 34%, transparent); }
.section-light .media-card .mc-title { color: #031626; }
.section-light .media-card .mc-desc { color: #5F7180; }
.section-light .mini { background: #FFFFFF; border-color: rgba(3,22,38,0.10); box-shadow: 0 2px 12px rgba(3,22,38,0.05); }
.section-light .mini:hover { border-color: rgba(6,109,137,0.32); }
.section-light .mini-ico { background: rgba(7,217,217,0.12); border-color: rgba(6,109,137,0.28); }
.section-light .mini-ico svg { stroke: #066D89; }
.section-light .mini-title { color: #031626; }
.section-light .mini-desc { color: #5F7180; }
/* ghost button on light (safety) */
.section-light .btn-ghost { color: #031626; border-color: rgba(6,109,137,0.35); background: transparent; }
.section-light .btn-ghost:hover { background: rgba(7,217,217,0.10); border-color: #066D89; color: #031626; }

/* ---------- Buttons ---------- */
/* Button sizing referenced from the finalized Tilt Lighthouse site (.btn) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 11px; line-height: 1; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 12px 24px; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; transition: all var(--t-micro) ease;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--aqua); color: var(--dark-blue); border-color: var(--aqua); }
.btn-primary:hover { background: var(--seafoam); border-color: var(--seafoam); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(7,217,217,0.28); }
.btn-ghost:hover { background: rgba(7,217,217,0.1); border-color: var(--aqua); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 12px; }
.btn-sm { padding: 9px 18px; font-size: 10px; }
.btn-arrow { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform var(--t-micro) ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Top nav (mimics tilt.ai) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 80px; display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(7,217,217,0.1);
  transition: border-color var(--t-page) ease;
}
/* Solid, tuned semi-opaque bar instead of a live blur. A backdrop-filter here
   would re-rasterize every frame of the autoplaying hero video behind it,
   which is what caused the nav flicker. This looks nearly identical on the
   dark hero and cannot shimmer. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(3,22,38,0.82);
  transition: background var(--t-page) ease;
}
.nav-logo { display: flex; align-items: center; line-height: 0; position: relative; }
.nav-logo img { height: 48.75px; width: auto; display: block; transition: opacity var(--t-page) ease; }
.nav-logo .logo-dark { opacity: 1; }
.nav-logo .logo-light { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem; list-style: none; margin: 0; padding: 0;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--n300); transition: color var(--t-micro) ease; position: relative;
}
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--aqua); transition: width var(--t-micro) ease; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--aqua); }
.nav-links a.active::after { width: 100%; }
.nav-links.mobile-open {
  position: fixed; top: 80px; left: 0; right: 0; transform: none;
  flex-direction: column; align-items: flex-start; gap: 1.5rem;
  background: rgba(3,22,38,0.98);
  padding: 2rem clamp(1.5rem, 4vw, 3rem); border-bottom: 1px solid rgba(7,217,217,0.15);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: 0; cursor: pointer; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: all var(--t-micro) ease; }

/* Nav light theme — over white sections */
body.theme-light .nav { border-bottom-color: rgba(3,22,38,0.1); }
body.theme-light .nav::before { background: rgba(255,255,255,0.9); }
body.theme-light .nav-links a { color: #334656; }
body.theme-light .nav-links a:hover, body.theme-light .nav-links a.active { color: #066D89; }
body.theme-light .nav-links a:hover::after, body.theme-light .nav-links a.active::after { background: #066D89; }
body.theme-light .nav-logo .logo-dark { opacity: 0; }
body.theme-light .nav-logo .logo-light { opacity: 1; }
body.theme-light .nav-hamburger span { background: #031626; }
body.theme-light .nav .btn-ghost { color: #031626; border-color: rgba(6,109,137,0.35); }
body.theme-light .nav .btn-ghost:hover { background: rgba(7,217,217,0.1); border-color: #066D89; }

/* ---------- Hero (video) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; background: var(--dark-blue);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 112%;
  object-fit: cover; object-position: center; top: -6%; z-index: 0;
  will-change: transform; transform: translateZ(0); backface-visibility: hidden;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    rgba(3,22,38,0.86) 0%, rgba(3,22,38,0.62) 32%,
    rgba(3,22,38,0.22) 58%, rgba(3,22,38,0.02) 100%);
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(10,15,20,0.55) 42%, rgba(10,15,20,0.9) 76%, var(--n900) 100%);
}
.hero-content { position: relative; z-index: 3; max-width: 620px; padding: 120px 0 96px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero .eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 10px var(--aqua); }
.hero-title { margin-bottom: 20px; }
/* Hero sub-copy sized to match the tilt.ai homepage hero descriptor */
.hero-sub { color: rgba(212,220,228,0.85); font-size: clamp(13px, 1.2vw, 16px); line-height: 1.75; letter-spacing: 0.01em; max-width: 460px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--n400); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; }
.hero-scroll svg { width: 16px; height: 16px; stroke: var(--n400); fill: none; stroke-width: 2; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(5px);} }

/* Alternate hero (Agent Program) — gradient, no video */
.hero-grad { min-height: auto; padding-top: 72px; }
.hero-grad::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(7,217,217,0.14), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(6,109,137,0.20), transparent 60%),
    linear-gradient(180deg, var(--dark-blue) 0%, #04121f 55%, var(--n900) 100%);
}
.hero-grad .hero-topo { position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(148,163,179,0.09) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 80%); }
.hero-grad .hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 108px 0 92px; }
.hero-grad .hero-content { padding: 0; max-width: 560px; }

/* ---------- About band ---------- */
.about { text-align: center; }
.about .about-body { max-width: 760px; margin: 22px auto 0; color: var(--n200); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; font-weight: 400; }
.about .about-body .lede { font-weight: 600; color: var(--white); }

/* ---------- Benefit cards (3-up with media) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.media-card {
  position: relative; border-radius: 14px; overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03);
  transition: transform var(--t-micro) ease, border-color var(--t-micro) ease, box-shadow var(--t-micro) ease;
}
/* Portal card pattern: aqua edge-line on hover */
.media-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(7,217,217,0.55), transparent);
  opacity: 0; transition: opacity var(--t-micro) ease; pointer-events: none;
}
.media-card:hover { transform: translateY(-7px); border-color: rgba(7,217,217,0.28); box-shadow: 0 22px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(7,217,217,0.14); }
.media-card:hover::before { opacity: 1; }
.section-light .media-card:hover { box-shadow: 0 18px 40px rgba(3,22,38,0.13), 0 0 0 1px rgba(6,109,137,0.16); }
.cards-3 .media-card:has(.mc-img) { aspect-ratio: 830 / 884; min-height: 0; }
.cards-2 .media-card:has(.mc-img) { aspect-ratio: 1136 / 650; min-height: 0; }
.media-card .mc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* Stacked variant: photo on top, copy in a block below */
.media-card.mc-stacked:has(.mc-img) { aspect-ratio: auto; min-height: 0; justify-content: flex-start; }
.media-card.mc-stacked .mc-img { position: static; inset: auto; width: 100%; height: auto; z-index: auto; }
.cards-2 .media-card.mc-stacked .mc-img { aspect-ratio: 1136 / 650; }
.cards-3 .media-card.mc-stacked .mc-img { aspect-ratio: 830 / 884; }
.media-card.mc-stacked .mc-body { position: static; background: none; padding: 20px 24px 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.section-light .media-card.mc-stacked .mc-body { border-top-color: rgba(3,22,38,0.07); }
.media-card .mc-body { position: relative; z-index: 2; padding: 24px; background: linear-gradient(to top, rgba(3,22,38,0.94) 34%, rgba(3,22,38,0.55) 62%, transparent); }
.media-card .mc-title { font-family: var(--font-body); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 8px; }
.media-card .mc-desc { color: var(--n300); font-size: 14px; line-height: 1.7; }

/* ---------- Mode grid ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden; }
.mode { background: var(--n900); padding: 26px 22px; transition: background var(--t-micro) ease; }
.mode:hover { background: var(--n800); }
.mode-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(7,217,217,0.10); border: 1.5px solid rgba(7,217,217,0.25); }
.mode-ico svg { width: 20px; height: 20px; stroke: var(--aqua); fill: none; stroke-width: 1.8; }
.mode-title { font-family: var(--font-body); font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.mode-desc { color: var(--n400); font-size: 13px; line-height: 1.55; }

/* ---------- Icon feature row ---------- */
.feat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; margin-top: 44px; }
.feat { }
.feat-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(7,217,217,0.10); border: 1.5px solid rgba(7,217,217,0.25); }
.feat-ico svg { width: 19px; height: 19px; stroke: var(--aqua); fill: none; stroke-width: 1.8; }
.feat-title { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.feat-desc { color: var(--n400); font-size: 13px; line-height: 1.55; }

/* ---------- Tabs (services) ---------- */
.tabs { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; }
.tab-strip { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: -1px; }
.tab {
  background: none; border: 0; border-top: 2px solid transparent; cursor: pointer;
  padding: 20px 22px; color: var(--n400); font-family: var(--font-body);
  font-weight: 600; font-size: 13.5px; transition: color var(--t-micro) ease, border-color var(--t-micro) ease;
}
.tab[aria-selected="true"] { color: var(--white); border-top-color: var(--aqua); }
.tab:hover { color: var(--n200); }
.tab-panel { display: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 48px; }
.tab-panel.active { display: grid; animation: tabFade 0.5s ease; }
@keyframes tabFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tab-panel.active { animation: none; } }
.tab-panel .tp-copy .h2 { margin-bottom: 18px; }
.tab-panel .tp-copy .body-copy { margin-bottom: 26px; }
.tab-media { border-radius: 18px; overflow: hidden; min-height: 320px; position: relative; border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(120% 120% at 70% 20%, rgba(7,217,217,0.12), transparent 55%), linear-gradient(160deg, var(--baltic-sea), var(--dark-blue)); }
.tab-media .ph-note { position: absolute; bottom: 14px; right: 16px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n500); }
.tab-media:has(.tm-img) { aspect-ratio: 1280 / 960; min-height: 0; }
.tab-media .tm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Calculator ---------- */
.calc { position: relative; border: 1px solid rgba(7,217,217,0.22);
  border-radius: 18px; padding: 30px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7); }
/* Card blur on its own layer so the animating marks don't force it to
   re-rasterize every frame (that repaint was the calculator flicker). */
.calc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px;
  background: rgba(3,22,38,0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateZ(0); -webkit-transform: translateZ(0);
}
.calc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.calc-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--n400); font-weight: 600; }
.calc-val { font-family: var(--font-hed); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1; }
.calc-val.pos { color: var(--aqua); }
.calc-badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aqua); background: rgba(7,217,217,0.10); border: 1px solid rgba(7,217,217,0.25); vertical-align: middle; }
.calc-badge #calcSplit { font-variant-numeric: tabular-nums; }
.calc-val { font-variant-numeric: tabular-nums; }
.calc-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--aqua) 0%, var(--aqua) 60%, rgba(255,255,255,0.12) 60%); outline: none; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--seafoam); border: 3px solid var(--dark-blue); box-shadow: 0 0 0 4px rgba(7,217,217,0.25); cursor: pointer; }
.calc-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--seafoam); border: 3px solid var(--dark-blue); cursor: pointer; }
/* Dual-mark track: near mark = agent share, far mark = total profit,
   bright teal band spans the gap (the split, wandering 60–75%). */
.calc-track { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12); margin-top: 8px; }
.calc-fill-base { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: var(--shell-coral); transform: translateZ(0); will-change: width; }
.calc-fill { position: absolute; top: 0; height: 100%; border-radius: 999px; background: var(--aqua); box-shadow: 0 0 8px rgba(7,217,217,0.45); transform: translateZ(0); will-change: left, width; }
.calc-thumb { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--seafoam); border: 3px solid var(--dark-blue); box-shadow: 0 0 0 4px rgba(7,217,217,0.25); transform: translate(-50%,-50%) translateZ(0); will-change: left; z-index: 2; }
.calc-scale { display: flex; justify-content: space-between; margin-top: 14px; color: var(--n500); font-size: 11px; }
.calc-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); }
.calc-note { color: var(--n500); font-size: 11.5px; line-height: 1.5; max-width: 60%; }

/* ---------- Split / history panel ---------- */
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; border-radius: 20px; }
.panel-media { border-radius: 18px; min-height: 320px; border: 1px solid rgba(255,255,255,0.08); position: relative;
  background: radial-gradient(120% 120% at 30% 20%, rgba(7,217,217,0.10), transparent 55%), linear-gradient(160deg, var(--baltic-sea), var(--dark-blue)); }
.panel-media .ph-note { position: absolute; bottom: 14px; left: 16px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n500); }

/* ---------- Small cards row ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini {
  background: var(--n800); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 24px;
  transition: transform var(--t-micro) ease, border-color var(--t-micro) ease;
}
.mini:hover { transform: translateY(-3px); border-color: rgba(7,217,217,0.3); }
.mini-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(7,217,217,0.10); border: 1.5px solid rgba(7,217,217,0.25); }
.mini-ico svg { width: 19px; height: 19px; stroke: var(--aqua); fill: none; stroke-width: 1.8; }
.mini-title { font-family: var(--font-body); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.mini-desc { color: var(--n400); font-size: 13px; line-height: 1.55; }

/* ---------- Two big media cards ---------- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- Pull quote / testimonial rotator ---------- */
.quote-text { font-family: var(--font-hed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(20px, 2.6vw, 30px); line-height: 1.18; }
.quote-cite { margin-top: 24px; color: var(--n400); font-size: 13.5px; }
.quote-cite strong { color: var(--white); font-weight: 600; }
/* Testimonial rotator: crossfade slides stacked in one grid cell (height = tallest quote) */
.quote-rotator { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.quote-rotator::before { content: ""; display: block; width: 54px; height: 2px; background: var(--aqua); margin: 0 auto 30px; }
/* Clip the slide travel at the page edges, not the 900px quote column */
#quote { overflow-x: hidden; overflow-x: clip; }
.quote-stack { display: grid; }
/* Carousel: inactive slides park off the right edge of the page (no transition, ready
   to slide in); active slides in from the right, outgoing (is-prev) slides out to the left. */
.quote-slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateX(70vw); }
.quote-slide.is-active { opacity: 1; visibility: visible; transform: translateX(0);
  transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.83,0,0.17,1); }
.quote-slide.is-prev { opacity: 0; visibility: visible; transform: translateX(-70vw);
  transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.83,0,0.17,1); }
.quote-dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.quote-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.22); transition: background var(--t-micro) ease, transform var(--t-micro) ease; }
.quote-dot:hover { background: rgba(255,255,255,0.4); }
.quote-dot.is-active { background: var(--aqua); transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) {
  .quote-slide { transform: none; }
  .quote-slide.is-active { transition: opacity 0.3s linear; transform: none; }
  .quote-slide.is-prev { transition: opacity 0.3s linear; transform: none; }
}

/* ---------- CTA + form ---------- */
.cta { position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(900px 500px at 15% 20%, rgba(7,217,217,0.12), transparent 60%), var(--dark-blue); }
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.cta-copy .h2 { margin-bottom: 16px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--n400); font-weight: 600; }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 13px 14px; color: var(--white); font-family: var(--font-body); font-size: 14px; transition: border-color var(--t-micro) ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--n500); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--aqua); outline: none; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A8D9B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field select:required:invalid { color: var(--n500); }
.field textarea { resize: vertical; min-height: 92px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.consent { display: flex; align-items: center; gap: 9px; color: var(--n400); font-size: 12.5px; }
.consent input { accent-color: var(--aqua); width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--n900) 0%, var(--dark-blue) 100%); border-top: 1px solid rgba(7,217,217,0.12); padding: 76px 0 30px; }
.footer-glow { position: absolute; top: 0; left: 0; right: 0; height: 220px; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 320px at 18% 0%, rgba(7,217,217,0.07), transparent 70%); }
.footer .wrap { position: relative; z-index: 2; }
.footer-main { display: grid; grid-template-columns: 1.4fr 2fr; gap: 64px; padding-bottom: 44px; }
.footer-brand { max-width: 380px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 20px; }
.footer-tagline { color: var(--n300); font-size: 14px; line-height: 1.7; margin-bottom: 26px; }
.footer-phone { display: inline-flex; flex-direction: column; gap: 3px; }
.footer-phone-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--aqua); }
.footer-phone-num { font-family: var(--font-hed); font-weight: 800; font-size: 26px; letter-spacing: 0.02em; color: var(--white); transition: color var(--t-micro) ease; }
.footer-phone:hover .footer-phone-num { color: var(--aqua); }
.footer-nav { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 32px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--n400); margin-bottom: 16px; }
.footer-col a, .footer-addr { display: block; color: var(--n200); font-size: 14px; line-height: 1.5; padding: 7px 0; }
.footer-col a { transition: color var(--t-micro) ease; }
.footer-col a:hover { color: var(--aqua); }
.footer-addr { color: var(--n400); max-width: 200px; }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.footer-copy { color: var(--n500); font-size: 12.5px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.1); transition: all var(--t-micro) ease; }
.footer-social a:hover { border-color: var(--aqua); background: rgba(7,217,217,0.08); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; fill: var(--n300); transition: fill var(--t-micro) ease; }
.footer-social a:hover svg { fill: var(--aqua); }
/* Parent-company (Tilt) links — footer lockup + inline About */
.footer-tilt { display: flex; align-items: center; gap: 7px; margin-top: 22px; font-size: 14.4px; letter-spacing: 0.03em; color: var(--n500); width: fit-content; }
.footer-tilt-label { transition: color var(--t-micro) ease; }
.footer-tilt-logo { height: 16.8px; width: auto; display: block; opacity: 0.9; transition: opacity var(--t-micro) ease; }
.footer-tilt:hover .footer-tilt-label { color: var(--aqua); }
.footer-tilt:hover .footer-tilt-logo { opacity: 1; }
.about-body a { color: var(--aqua); text-decoration: none; transition: color var(--t-micro) ease; }
.about-body a:hover { color: var(--seafoam); }
@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 560px) {
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Legal pages (terms, privacy, cookies) ---------- */
.legal { padding: 148px 0 96px; }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.legal-head { margin-bottom: 44px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.09); }
.legal-head .eyebrow { margin-bottom: 16px; }
.legal-head h1 { font-family: var(--font-hed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.02; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--white); }
.legal-updated { color: var(--n400); font-size: 13px; margin-top: 16px; }
.legal-body { color: var(--n200); font-size: 15px; line-height: 1.8; }
.legal-body > p:first-of-type { color: var(--n100); }
.legal-body h2 { font-family: var(--font-hed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--white); margin: 48px 0 14px; padding-top: 8px; scroll-margin-top: 100px; }
.legal-body > h2:first-child { margin-top: 0; }
.legal-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 17px; color: var(--white); margin: 30px 0 10px; }
.legal-body h4 { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--n100); letter-spacing: 0.01em; margin: 22px 0 8px; }
.legal-body p { margin: 0 0 15px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 7px; }
.legal-body strong { color: var(--white); font-weight: 600; }
.legal-body a { color: var(--aqua); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--seafoam); }
.legal-body hr { border: 0; border-top: 1px solid rgba(255,255,255,0.09); margin: 32px 0; }

/* Sticky left-rail table of contents (long legal pages) */
.legal-wrap--wide { max-width: 1120px; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.legal-side { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 128px); overflow-y: auto; }
.legal-toc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--n400); margin-bottom: 14px; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(255,255,255,0.12); }
.legal-toc li { margin: 0; }
.legal-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--n400); font-size: 12.5px; line-height: 1.45; transition: color var(--t-micro) ease, border-color var(--t-micro) ease; }
.legal-toc a:hover { color: var(--n100); }
.legal-toc a.active { color: var(--aqua); border-left-color: var(--aqua); }
.legal-side::-webkit-scrollbar { width: 6px; }
.legal-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 999px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-side { display: none; }
}

/* Light theme for legal pages — white page, dark text, light nav */
body.page-light { background: #FFFFFF; color: #2A3440; }
body.page-light .legal-head { border-bottom-color: rgba(3,22,38,0.12); }
body.page-light .legal-head h1 { color: #031626; }
body.page-light .legal-head .eyebrow { color: #066D89; }
body.page-light .legal-head .eyebrow-dot { background: #066D89; box-shadow: none; }
body.page-light .legal-updated { color: #5A6A78; }
body.page-light .legal-body { color: #2A3440; }
body.page-light .legal-body > p:first-of-type { color: #0A0F14; }
body.page-light .legal-body h2 { color: #031626; }
body.page-light .legal-body h3 { color: #031626; }
body.page-light .legal-body h4 { color: #1E2A33; }
body.page-light .legal-body strong { color: #031626; }
body.page-light .legal-body a { color: #066D89; }
body.page-light .legal-body a:hover { color: #045066; }
body.page-light .legal-body hr { border-top-color: rgba(3,22,38,0.12); }
body.page-light .legal-toc-title { color: #5A6A78; }
body.page-light .legal-toc ul { border-left-color: rgba(3,22,38,0.14); }
body.page-light .legal-toc a { color: #5A6A78; }
body.page-light .legal-toc a:hover { color: #031626; }
body.page-light .legal-toc a.active { color: #066D89; border-left-color: #066D89; }
body.page-light .legal-side::-webkit-scrollbar-thumb { background: rgba(3,22,38,0.16); }
/* light nav on legal pages */
body.page-light .nav { border-bottom-color: rgba(3,22,38,0.1); }
body.page-light .nav::before { background: rgba(255,255,255,0.92); }
body.page-light .nav-links a { color: #334656; }
body.page-light .nav-links a:hover, body.page-light .nav-links a.active { color: #066D89; }
body.page-light .nav-links a:hover::after, body.page-light .nav-links a.active::after { background: #066D89; }
body.page-light .nav-logo .logo-dark { opacity: 0; }
body.page-light .nav-logo .logo-light { opacity: 1; }
body.page-light .nav-hamburger span { background: #031626; }
body.page-light .nav .btn-ghost { color: #031626; border-color: rgba(6,109,137,0.35); }
body.page-light .nav .btn-ghost:hover { background: rgba(7,217,217,0.1); border-color: #066D89; }
body.page-light .nav-links.mobile-open { background: rgba(255,255,255,0.98); }

/* Broaden light-section theming (used by home sections 3/4 and the referral page) */
.section-light .h1 { color: #031626; }
.section-light .h2 { color: #031626; }
.section-light .h3 { color: #031626; }
.section-light .body-copy { color: #5A6A78; }
.section-light .lede { color: #031626; }

/* ---------- Referral program page ---------- */
.ref-hero { padding-top: 150px; position: relative; overflow: hidden; text-align: center; }
.ref-hero .wrap { position: relative; z-index: 1; max-width: 760px; }
.ref-lines { position: absolute; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(90deg, rgba(3,22,38,0.045) 0 1px, transparent 1px 84px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%); }
.ref-hero .eyebrow { justify-content: center; margin-bottom: 18px; }
.ref-hero .h1 { margin-bottom: 20px; }
.ref-hero-sub { color: #46586A; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7; max-width: 580px; margin: 0 auto 30px; }
.ref-hiw { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ref-hiw .eyebrow { margin-bottom: 14px; }
.ref-hiw .h2 { margin-bottom: 30px; }
.ref-steps { display: flex; flex-direction: column; gap: 22px; }
.ref-step { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; }
.ref-step-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(7,217,217,0.10); border: 1.5px solid rgba(6,109,137,0.28); }
.ref-step-ico svg { width: 20px; height: 20px; stroke: #066D89; fill: none; stroke-width: 1.8; }
.ref-step-title { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: #031626; margin-bottom: 4px; }
.ref-step-desc { color: #5F7180; font-size: 13.5px; line-height: 1.6; }
.ref-hiw-media { border-radius: 18px; min-height: 380px; border: 1px solid rgba(3,22,38,0.1); position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 70% 20%, rgba(7,217,217,0.14), transparent 55%), linear-gradient(160deg, #DBE6EE, #C3D4DF); }
.ref-hiw-media .ph-note { position: absolute; bottom: 14px; right: 16px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #7A8D9B; }
.panel-media:has(img) { aspect-ratio: 1048 / 976; min-height: 0; overflow: hidden; width: 75%; justify-self: center; }
.ref-hiw-media:has(img) { aspect-ratio: 1280 / 960; min-height: 0; }
.panel-media img, .ref-hiw-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Tech scene: truck card with popups that reveal progressively on scroll */
.scene { position: relative; max-width: 1000px; margin: 36px auto 8px; }
.scene-truck { display: block; width: 82%; height: auto; margin: 0 auto; }
.scene-pop { position: absolute; height: auto; opacity: 0; transform: translateY(22px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
  will-change: opacity, transform; pointer-events: none; }
.scene-pop.shown { opacity: 1; transform: none; }
.scene-pop.p1 { left: 0; top: 0; width: 27%; }
.scene-pop.p2 { right: 0; top: 20%; width: 30%; }
.scene-pop.p3 { right: 3%; bottom: 2%; width: 25%; }
@media (max-width: 760px) {
  .scene-truck { width: 100%; margin-bottom: 4px; }
  .scene-pop.p1, .scene-pop.p2, .scene-pop.p3 {
    position: relative; left: auto; right: auto; top: auto; bottom: auto;
    display: block; width: 82%; margin: 12px auto 0;
  }
  .scene-pop.p3 { width: 74%; }
}
@media (prefers-reduced-motion: reduce) { .scene-pop { transition: opacity 0.3s linear; transform: none; } }
.ref-cta { text-align: center; }
.ref-cta .wrap { max-width: 680px; }
.ref-cta .eyebrow { justify-content: center; margin-bottom: 16px; }
.ref-cta .h2 { margin-bottom: 16px; }
.ref-cta .body-copy { color: var(--n300); margin-bottom: 28px; }
.ref-cta .body-copy a { color: var(--aqua); }
@media (max-width: 900px) { .ref-hiw { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links:not(.mobile-open) { display: none; }
  .nav-links.mobile-open a { font-size: 13px; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr 1fr; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .hero-grad .hero-inner, .tab-panel.active, .panel, .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-grad .hero-content { max-width: none; }
  .calc-note { max-width: none; }
}
@media (max-width: 620px) {
  .cards-3, .cards-4, .cards-2, .mode-grid, .feat-row { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
