/* Bandtide marketing site.
   The redesign system: soft-shadow white cards on a near-white page, dark
   gradient bands for the hero, how-it-works, and security, pill buttons,
   DM Sans for everything readable and Google Sans Code for every measured
   value. Maroon is reserved for the controlled value - the bandwidth tier -
   and the money it moves. */

:root {
  /* Ink */
  --ink: #1a1a20;
  --ink-body: #3d3d47;
  --muted: #6d6d7a;
  --faint: #a0a0ac;

  /* Grounds */
  --bg: #fbfbfd;
  --card: #ffffff;
  --sunk: #f6f6f8;

  /* Accent (maroon) */
  --accent: #9e2436;
  --accent-hover: #b82a3e;
  --accent-deep: #6e1824;
  --accent-wash: #fdf1f2;
  --accent-lift: #e8909c; /* the maroon lifted to read on dark grounds */
  --accent-cell: #f6e3e5; /* the off-hours cell on light grounds */

  /* Live (green) */
  --live: #12715a;
  --live-wash: rgba(18, 113, 90, .1);
  --live-lift: #3fbf95;

  /* The page measure. Backgrounds run full bleed; content does not. */
  --page-max: 1240px;

  /* Lines and shadows */
  --line: rgba(26, 26, 32, .14);
  --hairline: rgba(26, 26, 32, .07);
  --shadow-card: 0 1px 2px rgba(20, 20, 25, .05), 0 10px 26px rgba(20, 20, 25, .05);
  --shadow-panel: 0 1px 2px rgba(20, 20, 25, .05), 0 14px 40px rgba(20, 20, 25, .06);

  /* Type. IBM Plex went; this is the Google Sans look, self-hosted
     (/assets/fonts/fonts.css) with system stacks behind it. */
  --font-ui: 'DM Sans', -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-mono: 'Google Sans Code', ui-monospace, "Cascadia Mono", "SF Mono", Consolas,
    "Liberation Mono", monospace;

  /* The Bandtide mark: the tide-step path, used as a mask so the colour
     comes from the element behind it. */
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 18' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 13.5H7.5V4.5H16V13.5H24'/%3E%3C/svg%3E");
}

/* ---------------- Reset and base ---------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

h1, h2, h3 { margin: 0; color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------- Motion ---------------- */

@keyframes bt-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes bt-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes bt-cell-in {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes bt-tide {
  0%, 42%, 100% { height: 14%; }
  50%, 92% { height: 78%; }
}
@keyframes bt-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-28px, 18px); }
}

/* Scroll reveals: app.js marks [data-reveal] hidden and reveals on
   intersection; without JS (or with reduced motion) nothing is ever
   hidden because the hiding class comes from JS too. */
.reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal-in { opacity: 1; transform: none; }

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

/* ---------------- Shared atoms ---------------- */

.brand-mark {
  display: block;
  width: 26px;
  height: 18px;
  background-color: var(--accent);
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.on-dark { color: var(--accent-lift); }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live-lift);
  animation: bt-pulse 2.4s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-onlight { background: #fff; color: #17171c; padding: 11px 20px; font-size: 14px; }
.btn-onlight:hover { background: #f1f1f4; color: #17171c; }
.btn-outline-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
}
.btn-outline-dark:hover { color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn.is-loading { opacity: .7; pointer-events: none; }

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--live);
  background: var(--live-wash);
  padding: 4px 11px;
  border-radius: 999px;
}
.pill-live .status-dot { width: 6px; height: 6px; background: var(--live); }

/* ---------------- Header (overlays the hero) ---------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 44px;
  max-width: calc(var(--page-max) + 128px);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand .brand-mark { width: 27px; height: 19px; background-color: var(--accent-lift); }

.site-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a { color: rgba(255, 255, 255, .78); }
.site-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.header-signin { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .85); padding: 9px 14px; }
.header-signin:hover { color: #fff; }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 20px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-open .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 720px;
  /* A real network switch under the brand gradient: texture, not subject.
     The gradient stays nearly opaque so the type contrast holds. */
  background:
    linear-gradient(115deg, rgba(18, 18, 22, .93) 0%, rgba(27, 27, 35, .88) 46%, rgba(42, 26, 32, .86) 100%),
    url("/assets/photos/fiber-switch.jpg") center 40% / cover no-repeat #121216;
  overflow: hidden;
}

.hero-tide {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 54%;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding-right: 40px;
  opacity: .9;
  pointer-events: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 14, 17, .88) 26%, rgba(15, 14, 17, .42) 58%, rgba(15, 14, 17, 0) 82%);
  pointer-events: none;
}

/* Tide bars are built by app.js: 20 divs whose color and animation timing
   are set inline per bar. */
.tide-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  height: 14%;
  /* Heights are driven by the speed demo in app.js; the ease makes a
     scheduler fire read as the tide going out, not a cut. */
  transition: height 1.4s cubic-bezier(.22, 1, .36, 1);
}

.hero-frame {
  position: relative;
  z-index: 2;
  max-width: calc(var(--page-max) + 128px);
  margin: 0 auto;
  min-height: 720px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  /* 44px gutter + the reference's 540px copy column. */
  max-width: 584px;
  padding: 170px 0 120px 44px;
}
.hero-copy h1 {
  margin: 20px 0 0;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -.032em;
  font-weight: 700;
  color: #fff;
  text-wrap: pretty;
}
.hero-copy h1 em { font-style: normal; color: var(--accent-lift); }
.hero-copy .lede {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: 17.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .76);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .62);
}

/* The product vignette: a window into the portal, acting out the
   schedule the copy describes. The dark head ties it to the app's rail;
   the step chart below the readout is the day the demo clock walks. */
.hero-card {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 470px;
  z-index: 2;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(15, 14, 17, .45);
  overflow: hidden;
}
.hero-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #17171c, #1c1c24);
}
.hero-card-head .brand-mark { width: 22px; height: 15px; background-color: var(--accent-lift); }
.hero-card-id { min-width: 0; flex: 1; }
.hero-card-title { margin: 0; font-size: 14px; font-weight: 700; color: #fff; }
.hero-card-sub { margin: 1px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.pill-live.on-dark { background: rgba(63, 191, 149, .15); color: var(--live-lift); }
.pill-live.on-dark .status-dot { background: var(--live-lift); }

.hero-card-body { padding: 18px 22px 20px; }
.hero-card-now {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.hero-card-speed {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
  transition: opacity .26s ease;
}
.hero-card-speed.is-swapping { opacity: 0; }
.hero-card-speed small { font-size: 15px; color: var(--muted); font-weight: 400; }
.hero-card-next-wrap { text-align: right; }
.hero-card-running {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}
.hero-card-next { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.hero-card-next b { color: var(--ink); }

.hero-card-chart { margin-top: 16px; }
.hero-card-chart svg { display: block; width: 100%; height: auto; }
.hero-chart-axis {
  display: flex;
  margin-top: 4px;
}
.hero-chart-axis span {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
  text-transform: uppercase;
}
/* Blink and Gecko treat rect x and circle cx/cy as CSS geometry
   properties, so the "now" marker glides between states; engines that do
   not simply jump. */
.hero-now-line { transition: x 1.2s cubic-bezier(.22, 1, .36, 1); }
.hero-now-dot {
  transition: cx 1.2s cubic-bezier(.22, 1, .36, 1), cy 1.2s cubic-bezier(.22, 1, .36, 1);
}

.hero-card-week { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(26, 26, 32, .08); }
.hero-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(26, 26, 32, .08);
  font-size: 12px;
  color: var(--muted);
}
.hero-card-saved {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--live);
}

/* ---------------- Week grid ---------------- */
/* Built by app.js. Variants: default (savings panel: tall cells, axis,
   legend), mini (hero card: no axis, no legend), dark (product demo). */

.weekgrid {
  display: grid;
  grid-template-columns: 34px repeat(24, 1fr);
  gap: 3px;
  align-items: center;
}
.wg-axis { display: none; }
.wg-day {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
  text-transform: uppercase;
}
.wg-cell {
  display: block;
  height: 17px;
  border-radius: 3px;
  background: var(--accent-cell);
}
.wg-cell.is-peak { background: var(--accent); }

.wg-legend {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.wg-key { display: inline-flex; align-items: center; gap: 7px; }
.wg-key::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent-cell);
}
.wg-key.is-peak::before { background: var(--accent); }
.wg-key b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.wg-note { margin-left: auto; }

/* Mini variant (hero card) */
[data-week-profile="mini"] .weekgrid { grid-template-columns: 26px repeat(24, 1fr); gap: 2px; }
[data-week-profile="mini"] .wg-day { font-size: 8.5px; }
[data-week-profile="mini"] .wg-cell { height: 10px; border-radius: 2px; }
[data-week-profile="mini"] .wg-legend { display: none; }

/* Dark variant (product demo) */
[data-week-profile="dark"] .weekgrid { grid-template-columns: 30px repeat(24, 1fr); gap: 2.5px; }
[data-week-profile="dark"] .wg-day { font-size: 9px; color: rgba(255, 255, 255, .4); }
[data-week-profile="dark"] .wg-cell { height: 12px; border-radius: 2px; background: rgba(255, 255, 255, .09); }
[data-week-profile="dark"] .wg-cell.is-peak { background: var(--accent-lift); }
[data-week-profile="dark"] .wg-legend { display: none; }

/* ---------------- Works with ---------------- */

.works-with {
  padding: 22px 64px;
  background: var(--card);
  border-bottom: 1px solid var(--hairline);
}

.works-with-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  max-width: var(--page-max);
  margin: 0 auto;
}
.works-with-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.wordmark-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wordmark-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(26, 26, 32, .1);
  border-radius: 999px;
  padding: 7px 15px;
}
.wordmark-chip.is-live { border-color: rgba(158, 36, 54, .2); background: var(--accent-wash); }
.wordmark-logo { display: block; height: 15px; width: auto; }
.wordmark { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.wordmark-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.wordmark-tag.tag-live { color: var(--accent); }
.works-with-note { margin: 0 0 0 auto; font-size: 13px; color: var(--muted); }

/* ---------------- Sections ---------------- */

.section { padding: 88px 64px; scroll-margin-top: 20px; }

/* One measure for every section's content: full-bleed grounds, centered
   copy. The wrappers differ per section; the rule does not. */
.section-inner,
.product-grid,
.band-inner,
.contact-inner,
.footer-wrap {
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  margin: 16px 0 0;
  max-width: 660px;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  text-wrap: pretty;
}
.section-lede {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* Dark bands (how it works, security) */
.band { position: relative; overflow: hidden; color: #fff; }
.band { background: linear-gradient(165deg, #141419, #1e1e26); }
.band-drift {
  background:
    linear-gradient(160deg, rgba(18, 18, 22, .93), rgba(28, 28, 36, .95)),
    url("/assets/photos/rack-aisle.jpg") center / cover no-repeat #121216;
}
.band-drift::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 144, 156, .1), rgba(232, 144, 156, 0) 62%);
  animation: bt-drift 14s ease-in-out infinite;
  pointer-events: none;
}
.band-inner { position: relative; }
.band .section-lede { color: rgba(255, 255, 255, .65); }
.band-mark {
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: 620px;
  height: 420px;
  background-color: rgba(232, 144, 156, .05);
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
  pointer-events: none;
}

.glass {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
}

/* ---------------- Product ---------------- */

.product-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 60px;
  align-items: center;
}

.product-demo {
  position: relative;
  min-height: 500px;
  background: linear-gradient(150deg, #17171c, #24242e);
  border-radius: 24px;
  /* Extra bottom room so the floating Scheduler chip overlays empty panel,
     not the caption. */
  padding: 34px 36px 96px;
  color: #fff;
}
.demo-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.demo-readouts {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
}
.demo-speed {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.04em;
  color: #fff;
  opacity: .45;
  transition: opacity .8s ease;
}
.demo-speed.is-current { opacity: 1; }
.demo-speed small { font-size: 13px; color: rgba(255, 255, 255, .5); font-weight: 400; }
.demo-speed.is-off { color: var(--accent-lift); margin-left: auto; }
.demo-speed-note { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.demo-tide {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 130px;
  margin-top: 26px;
}
.demo-tide .tide-bar { border-radius: 5px 5px 2px 2px; }
.demo-week { margin-top: 30px; }
.demo-caption {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
}
.demo-chip {
  position: absolute;
  border-radius: 16px;
  animation: bt-float 6s ease-in-out infinite;
}
.demo-chip-dark {
  left: -20px;
  bottom: 32px;
  background: #17171c;
  color: #fff;
  padding: 15px 20px;
  box-shadow: 0 18px 40px rgba(15, 14, 17, .28);
}
.demo-chip-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.demo-chip-text { margin: 3px 0 0; font-size: 13.5px; font-weight: 600; }
.demo-chip-light {
  right: -18px;
  top: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(15, 14, 17, .16);
  animation-duration: 7s;
  animation-delay: 1.4s;
}
.demo-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.feature-list { display: grid; gap: 24px; margin-top: 34px; }
.feature { display: flex; gap: 16px; margin: 0; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--accent-wash);
  color: var(--accent);
}
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 15.5px; font-weight: 700; }
.feature p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------------- How it works ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.step { padding: 26px 28px; margin: 0; }
.step-num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-lift);
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(232, 144, 156, .45);
}
.step h3 { margin-top: 18px; font-size: 17px; font-weight: 700; color: #fff; }
.step p { margin: 9px 0 0; font-size: 14px; line-height: 1.62; color: rgba(255, 255, 255, .62); }

/* ---------------- Savings ---------------- */

.savings-panel {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  margin-top: 40px;
}
.savings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--hairline);
}
.savings-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.savings-scope { margin: 0; font-size: 12.5px; color: var(--muted); }
.savings-week { padding: 30px; }

.savings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline);
}
.savings-col { padding: 28px 30px; }
/* The monthly cost: the one figure the panel leads with. */
.savings-cost { padding: 28px 30px; border-top: 1px solid var(--hairline); background: var(--accent-wash); }
.savings-compare { color: var(--muted); }
.savings-more { border-top: 1px solid var(--hairline); }
.savings-more > summary { padding: 14px 30px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.savings-more > .savings-detail { margin: 0; padding: 0 30px 14px; font-size: 12.5px; }
.savings-more > .savings-math { border-top: 0; padding-top: 0; }
.savings-col.is-highlight { border-left: 1px solid var(--hairline); background: var(--accent-wash); }
.savings-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.is-highlight .savings-label { color: var(--accent); }
.savings-title { margin: 10px 0 0; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.savings-amount {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -.045em;
}
.is-highlight .savings-amount { color: var(--accent); }
.savings-amount small {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 7px;
}
.savings-detail { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.is-highlight .savings-detail { color: var(--accent-deep); }

.savings-result {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 22px 30px;
  background: rgba(18, 113, 90, .08);
  border-top: 1px solid rgba(18, 113, 90, .18);
  color: var(--live);
  font-size: 13.5px;
}
.savings-result strong {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.02em;
}
/* No saving to report: the band drops its green and says so plainly. */
.savings-result.is-negative {
  background: var(--sunk);
  border-top-color: var(--hairline);
  color: var(--muted);
}
.savings-result.is-negative strong { font-size: 13.5px; letter-spacing: 0; }
.savings-math {
  margin: 0;
  padding: 20px 30px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.savings-math .num { font-family: var(--font-mono); color: var(--ink-body); }
.savings-disclaimer {
  margin: 0;
  padding: 18px 30px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.7;
  color: var(--faint);
}

/* ---------------- Security ---------------- */

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 42px;
}
.security-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0;
  padding: 24px 26px;
}
.security-item svg { width: 21px; height: 21px; flex: none; margin-top: 2px; color: var(--accent-lift); }
.security-item h3 { font-size: 15.5px; font-weight: 700; color: #fff; }
.security-item p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.62; color: rgba(255, 255, 255, .62); }

/* ---------------- Contact ---------------- */

.contact-inner {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 64px;
  align-items: start;
}
.contact-points {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.contact-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-body);
}
.contact-points svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }

.lead-card {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow-panel);
  padding: 32px 34px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: block; }
.form-field.wide { grid-column: 1 / -1; }
.form-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-field .optional { font-style: normal; font-weight: 400; color: var(--faint); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
.form-field textarea { resize: vertical; min-height: 108px; }
.reason-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.reason-field legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.reason-options { display: flex; flex-wrap: wrap; gap: 10px; }
.reason-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 14.5px;
  cursor: pointer;
}
.reason-option:has(input:checked) { border-color: var(--accent); }
.reason-option input { accent-color: var(--accent); margin: 0; }
.reason-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Honeypot: visually removed, still serialized. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
}
.form-status.success { background: var(--live-wash); color: var(--live); }
.form-status.error { background: var(--accent-wash); color: var(--accent-deep); }

.form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}
.form-footer .btn { padding: 13px 28px; }
.form-hint { font-size: 12.5px; color: var(--muted); }

/* ---------------- Footer ---------------- */

.site-footer { border-top: 1px solid rgba(26, 26, 32, .08); padding: 34px 64px 44px; }
.footer-wrap { max-width: var(--page-max); margin: 0 auto; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
}
.footer-brand .brand-mark { width: 23px; height: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 26, 32, .08);
  max-width: 900px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--faint);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1280px) {
  .hero-card { display: none; }
  .hero-tide { width: 70%; opacity: .55; }
  .hero-frame { min-height: 0; }
}

@media (max-width: 960px) {
  .section { padding: 64px 28px; }
  .works-with { padding: 22px 28px; }
  .works-with-note { margin-left: 0; }
  .site-header { padding: 18px 24px; }
  .hero-copy { padding: 140px 24px 90px; }
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-demo { min-height: 0; }
  .demo-chip-dark { left: 12px; bottom: -16px; }
  .demo-chip-light { right: 12px; top: -16px; }
  .steps { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .savings-grid { grid-template-columns: 1fr; }
  .savings-col.is-highlight { border-left: 0; border-top: 1px solid var(--hairline); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .site-footer { padding: 30px 28px 40px; }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 4px;
    background: #1c1c24;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  }
  .site-nav a { padding: 10px 12px; border-radius: 9px; }
  .site-nav a:hover { background: rgba(255, 255, 255, .07); }
  .nav-open .site-nav { display: flex; }
  .nav-toggle { display: block; }
  .header-signin { display: none; }
  /* One CTA fits beside the toggle at phone widths; Sign up wins and the
     demo link still lives in the page's contact section. */
  .header-demo { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-copy h1 { font-size: 34px; }
  .weekgrid { grid-template-columns: 26px repeat(24, 1fr); gap: 2px; }
  .wg-cell { height: 10px; }
  .savings-week { padding: 20px 16px; }
}

/* ---------------- Savings calculator ---------------- */
/* The controls echo the portal's quick-add bar: day chips, hour inputs,
   tier selects. Same product, same gestures. */

.calc-bar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 30px 20px;
  background: var(--sunk);
  border-bottom: 1px solid var(--hairline);
}

/* Two questions, in order: what the circuit is, then how the week runs. */
.calc-group { display: flex; flex-direction: column; gap: 10px; }
.calc-group + .calc-group { padding-top: 16px; border-top: 1px solid var(--hairline); }
.calc-group-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-group-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 22px;
}

.calc-field { display: flex; flex-direction: column; gap: 7px; }
.calc-days-field { min-width: 0; }

.calc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
}

.calc-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.calc-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.calc-chip:hover { border-color: var(--accent); color: var(--accent); }
.calc-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A choice the port rules out stays in view, so the row still reads as
   the whole ladder, but it is plainly not on offer. */
.calc-chip:disabled,
.calc-chip:disabled:hover {
  color: var(--faint);
  background: transparent;
  border-color: var(--hairline);
  border-style: dashed;
  cursor: not-allowed;
}
/* Speed ladders: short labels, even widths, so the eye reads a scale. */
.calc-chips.is-speeds .calc-chip { min-width: 48px; padding: 6px 8px; text-align: center; }
.calc-speed-rows { flex-direction: column; align-items: stretch; gap: 12px; }
.calc-speed-field { width: 100%; }
/* Committed term: the commitment is asked for before the flex. */
.calc-speed-rows.is-committed .calc-speed-field:first-child { order: 2; }
.calc-chip.on {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.calc-bar input[type="time"],
.calc-bar select {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}
.calc-bar select { padding-right: 30px; }

@media (max-width: 720px) {
  .calc-bar { padding: 16px; gap: 14px; }
  .calc-group-fields { gap: 12px 16px; }
  .calc-field { flex: 1 1 130px; }
  .calc-days-field { flex-basis: 100%; }
}

/* ---------------- Legal pages (terms, privacy) ----------------
   These two pages fell out of the redesign: they still carried the old
   sheet's class names after the rewrite, so they rendered bare. They now
   share the site's atoms - the band gradient for the header, the brand
   mark, the footer family - with a plain reading measure between. */

.legal-header {
  background: linear-gradient(165deg, #141419, #1e1e26);
}
.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px 28px;
}

.btn-small { padding: 9px 18px; font-size: 13.5px; }

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}
.legal-main h1 {
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
}
.legal-meta {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-intro {
  margin: 18px 0 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-body);
}

.legal-section { margin-top: 38px; }
.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.legal-section p,
.legal-section li {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-body);
}
.legal-section ul { margin: 12px 0 0; padding-left: 22px; }
.legal-section li { margin: 8px 0 0; }

/* The passages a customer is most likely to be shown by a lawyer:
   set off as a sunk callout so they read as quoted policy, not prose. */
.legal-quote {
  background: var(--sunk);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
}

.legal-footer-note {
  margin: 52px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .legal-header-inner { padding: 14px 18px; }
  .legal-main { padding: 40px 20px 64px; }
}
