/* ==========================================================================
   NeighborhoodNet — Design system
   Black · white · red. Spacious, quiet, hand-finished.
   ========================================================================== */

:root {
  /* palette — white · red · black */
  --navy-900: #101114;
  --navy-800: #17181c;
  --navy-700: #24262b;
  --navy-100: #d2d4d8;
  --paper: #f9f9f7;
  --paper-soft: #f0f0ed;
  --card: #ffffff;
  --teal: #cc0000;
  --teal-deep: #990000;
  --teal-soft: #fdeaea;
  --ink: #1b1c1e;
  --ink-soft: #5e6065;
  --line: #e6e4df;
  --line-dark: rgba(255, 255, 255, 0.14);
  --green: #57a773;
  --amber: #d9a441;
  --red: #b3261e;

  /* type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  /* rhythm */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 1px 2px rgba(11, 28, 44, 0.05), 0 8px 24px rgba(11, 28, 44, 0.07);
  --shadow-lift: 0 2px 4px rgba(11, 28, 44, 0.06), 0 18px 44px rgba(11, 28, 44, 0.13);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --section-pad: clamp(48px, 6.5vw, 88px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-gutter: stable; /* no layout jump when the drawer locks scrolling */
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy-900); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- utilities ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container-narrow { max-width: 820px; }
[hidden] { display: none !important; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: var(--green); box-shadow: 0 0 0 3px rgba(87, 167, 115, 0.18); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.eyebrow-teal { color: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-navy { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-soft); }
.btn-navy:hover { background: var(--navy-700); box-shadow: var(--shadow-lift); }

.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(204, 0, 0, 0.32); }
.btn-teal:hover { background: var(--teal-deep); box-shadow: 0 10px 26px rgba(204, 0, 0, 0.4); }

.btn-ghost { color: var(--navy-800); border-color: transparent; }
.btn-ghost:hover { background: var(--paper-soft); }

.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.38); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }

.btn-outline-dark { color: var(--navy-800); border-color: var(--line); background: #fff; }
.btn-outline-dark:hover { border-color: var(--navy-100); }

.btn-paper { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-soft); }
.btn-paper:hover { background: var(--paper); }

.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* loading state used by coverage button */
.btn .btn-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 18px 0;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.is-scrolled {
  /* solid, NOT backdrop-filter: a filter on the header traps the fixed drawer inside it */
  background: #f7f4ee;
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
/* Pages that open on a dark section (connect.html): keep the light bar from load */
.site-header.site-header--solid {
  background: #f7f4ee;
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-900); }
.brand-mark { color: inherit; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand-accent { color: var(--teal-deep); }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-light { color: #f2efe8; }
.brand-light .brand-accent { color: var(--teal); }
/* dark footer: seat the logo on a white chip so the black N stays visible */
.footer-brand .brand-logo { height: 20px; background: #fff; border-radius: 7px; padding: 3px 7px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover { color: var(--navy-900); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--navy-900); font-weight: 600; }
.nav-cta { margin-left: 6px; box-shadow: none; padding: 11px 22px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: none; }
.nav-cta:hover { background: #101114; box-shadow: 0 8px 20px rgba(16, 17, 20, 0.28); }

/* Plans is the money link — glowing red text in the nav */
.nav-link.nav-hot:not(.nav-cta) {
  color: var(--teal);
  font-weight: 700;
  animation: nav-glow 2.6s ease-in-out infinite;
}
.nav-link.nav-hot:not(.nav-cta):hover { color: var(--teal-deep); }
.nav-link.nav-hot:not(.nav-cta).is-active { color: var(--teal-deep); }
@keyframes nav-glow {
  0%, 100% { text-shadow: 0 0 10px rgba(204, 0, 0, 0.4), 0 0 22px rgba(204, 0, 0, 0.2); }
  50% { text-shadow: 0 0 16px rgba(204, 0, 0, 0.7), 0 0 38px rgba(204, 0, 0, 0.35); }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; transition: opacity 0.3s var(--ease); }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 20px; padding: 88px 28px 28px;
    background: var(--paper);
    border-radius: 22px 0 0 22px;
    box-shadow: -24px 0 64px rgba(11, 28, 44, 0.28);
    transform: translateX(100%);
    transition: transform 0.38s var(--ease);
  }
  .main-nav.is-open { transform: translateX(0); }
  /* the drawer is the overlay — the rest of the header bar fades away */
  .site-header:has(.main-nav.is-open) .brand { opacity: 0; pointer-events: none; }
  .site-header.is-scrolled:has(.main-nav.is-open),
  .site-header.site-header--solid:has(.main-nav.is-open) { background: transparent; box-shadow: none; }
  /* header stops swallowing taps outside the drawer — only the X and the panel stay clickable */
  .site-header:has(.main-nav.is-open) { pointer-events: none; }
  .site-header:has(.main-nav.is-open) .nav-toggle,
  .site-header:has(.main-nav.is-open) .main-nav { pointer-events: auto; }
  .nav-link { font-size: 1.05rem; }
  .nav-cta { margin-left: 0; margin-top: 8px; font-size: 0.95rem; }
}

/* drawer backdrop — dims the page, tap to close */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(16, 17, 20, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
body.nav-locked { overflow: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(204, 0, 0, 0.10), transparent 65%),
    var(--paper);
  padding: calc(120px + var(--section-pad) * 0.55) 0 var(--section-pad);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.28;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-title em { font-style: italic; color: var(--teal-deep); }
.hero-sub { margin-top: 22px; font-size: 1.08rem; color: var(--ink-soft); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; align-items: center; }

/* hero CTAs — iOS style: pill shapes, soft elevation */
.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-weight: 600;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.cta-primary {
  gap: 10px;
  background: var(--teal);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 26px rgba(204, 0, 0, 0.28);
  width: 320px;
  max-width: 100%;
}
.cta-primary:hover { background: #101114; box-shadow: 0 12px 30px rgba(16, 17, 20, 0.3); transform: translateY(-2px); }
.cta-primary .cta-icon { transition: transform 0.3s var(--ease); }
.cta-primary:hover .cta-icon { transform: translate(2px, -2px); }
.cta-secondary {
  gap: 8px;
  background: #fff;
  color: #000;
  border: 1px solid #e2e2e7;
  box-shadow: 0 4px 14px rgba(16, 17, 20, 0.06);
  width: 240px;
  max-width: 100%;
}
.cta-secondary:hover { background: #fafafa; border-color: var(--teal); color: var(--teal-deep); box-shadow: 0 8px 22px rgba(16, 17, 20, 0.1); transform: translateY(-2px); }
.cta-secondary .cta-icon { color: #a3a3a3; transition: transform 0.3s var(--ease); }
.cta-secondary:hover .cta-icon { transform: translateY(4px); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 46px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats li { padding-right: 40px; margin-right: 40px; border-right: 1px solid var(--line); }
.hero-stats li:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-900); }
.hero-stats span { font-size: 0.83rem; color: var(--ink-soft); }

/* hero visual — live status card */
.hero-visual { text-align: center; }
.signal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-lift);
  text-align: left;
  transform: rotate(-1.2deg);
  transition: transform 0.5s var(--ease);
}
.signal-card:hover { transform: rotate(0deg) translateY(-4px); }
.signal-card-header {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.signal-card-badge {
  margin-left: auto; font-size: 0.7rem; font-weight: 700;
  color: var(--green); background: rgba(87, 167, 115, 0.12);
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.06em;
}
.signal-wave { margin: 18px -6px 8px; }
.signal-wave svg { width: 100%; height: 84px; }
.signal-wave path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.6s var(--ease) forwards 0.4s; }
.signal-wave path:nth-child(2) { animation-delay: 0.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.signal-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.meter { background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.meter-label { display: block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.meter-value { font-family: var(--font-display); font-size: 1.45rem; color: var(--navy-900); font-weight: 600; }
.meter-unit { font-size: 0.75rem; color: var(--ink-soft); margin-left: 3px; }
.signal-card-footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 0.78rem; color: var(--ink-soft);
}
.hero-visual-note { margin-top: 18px; font-size: 0.83rem; color: var(--ink-soft); font-style: italic; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: 2; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-secondary { width: 100%; }
}
/* phones: tighten the hero so the stats row (1 Gbps · 99.9% · 4 areas) is on first load */
@media (max-width: 640px) {
  .hero { padding-top: calc(84px + var(--section-pad) * 0.3); }
  .hero-title { font-size: 1.95rem; line-height: 1.18; }
  .hero-sub { margin-top: 14px; font-size: 1rem; }
  .hero-actions { margin-top: 22px; gap: 12px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; padding-top: 16px; }
  .hero-stats li { padding-right: 12px; margin-right: 0; }
  .hero-stats li:last-child { padding-right: 0; }
  .hero-stats strong { font-size: 1.15rem; }
  .hero-stats span { font-size: 0.7rem; }
}

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.section { padding: var(--section-pad) 0; }
.section-paper { background: var(--paper); }
.section-paper-tight { padding-top: calc(var(--section-pad) * 0.55); }
.section-navy { background: var(--navy-800); color: var(--navy-100); }
.section-deep { background: var(--navy-900); color: var(--navy-100); }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 68px); }
.section-head h2 { color: var(--navy-900); }
.section-sub { margin-top: 16px; font-size: 1.04rem; color: var(--ink-soft); }
.section-head-light h2 { color: #f5f2ec; }
.section-head-light .section-sub { color: rgba(245, 242, 236, 0.66); }

/* ==========================================================================
   WHY — benefits grid
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--teal-soft);
}
.benefit-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--teal-soft);
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease);
}
.benefit-card:hover .benefit-icon { transform: scale(1.08) rotate(-3deg); }
.benefit-icon svg { width: 24px; height: 24px; stroke: var(--teal-deep); stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.benefit-card h3 { margin-bottom: 8px; font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; }
.benefit-card p { font-size: 0.92rem; color: var(--ink-soft); }

@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   PLANS — NNet data-sale design (sharp corners, hard shadows, one red)
   ========================================================================== */
.section-plans {
  background:
    radial-gradient(940px 420px at 50% -80px, rgba(204, 0, 0, 0.08), transparent 70%),
    #f4f7fb;
  border-top: 1px solid #101114;
  border-bottom: 1px solid #101114;
  color: var(--ink);
}

/* promo ribbon — animated attention hook above the title */
.plans-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #b30000, #e61414, #b30000);
  background-size: 220% 100%;
  color: #fff;
  border-radius: 999px;
  padding: 9px 20px;
  margin-bottom: 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(204, 0, 0, 0.35);
  animation: promo-flow 4.5s linear infinite;
}
.promo-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; animation: promo-blink 1.3s ease-in-out infinite; }
/* phones: drop the ribbon so the pricing grid comes above the fold (ipad/laptop keep it) */
@media (max-width: 640px) { .plans-promo { display: none; } }
@keyframes promo-flow { from { background-position: 0 0; } to { background-position: -220% 0; } }
@keyframes promo-blink { 50% { opacity: 0.25; } }

.plans-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.plans-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #101114;
  line-height: 1.1;
}
.plans-title-bar { width: 80px; height: 4px; border-radius: 999px; background: var(--teal); margin-top: 12px; }
.plans-sub { margin-top: 14px; font-size: 0.95rem; color: var(--ink-soft); max-width: 62ch; }
.plans-sub strong { color: #101114; }

.currency-toggle {
  display: flex;
  gap: 4px;
  background: #ececf0;
  border: 1px solid #e2e2e7;
  padding: 4px;
  border-radius: 14px;
}
.currency-toggle button {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6e6e73;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.currency-toggle button.is-active { background: #101114; color: #fff; box-shadow: 0 4px 12px rgba(16, 17, 20, 0.25); }

/* toolbar: segmented-control tabs + search */
.sale-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8e8ed;
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 44px;
  box-shadow: 0 4px 16px rgba(16, 17, 20, 0.05);
}
.sale-tabs { display: flex; gap: 4px; background: #f2f2f5; padding: 5px; border-radius: 15px; }
.sale-tab {
  padding: 10px 20px;
  min-height: 44px;
  border: none;
  background: transparent;
  border-radius: 11px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6e6e73;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.sale-tab:hover { background: #e9e9ee; color: #101114; }
.sale-tab.is-active { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(204, 0, 0, 0.3); }
.sale-search {
  margin-left: auto;
  width: 300px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid #e2e2e7;
  border-radius: 13px;
  background: #f7f7f9;
  font-size: 0.85rem;
  color: #000;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.sale-search::placeholder { color: #a3a3a8; }
.sale-search:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(204, 0, 0, 0.12); }

/* sub-sections */
.sale-group { margin-bottom: 44px; }
.sale-group:last-of-type { margin-bottom: 0; }
.sale-group-title {
  display: flex;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #262626;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8ed;
  margin-bottom: 24px;
}
.sale-group-title .slashes { color: var(--teal); }

.sale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sale-grid--special { grid-template-columns: repeat(2, 1fr); }

/* plan card — soft iOS surfaces */
.pcard {
  position: relative;
  background: #fff;
  border: 1px solid #e8e8ed;
  border-radius: 22px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(16, 17, 20, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(16, 17, 20, 0.12); }
.pcard-featured { border: 2px solid var(--teal); box-shadow: 0 8px 28px rgba(204, 0, 0, 0.12); }
.pcard-featured:hover { box-shadow: 0 22px 48px rgba(204, 0, 0, 0.2); }
/* breathing ring pulse on featured cards */
.pcard-featured::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 22px;
  pointer-events: none;
  animation: ring-pulse 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
@keyframes ring-pulse {
  0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.35); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(204, 0, 0, 0); }
}
.pcard-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--teal); color: #fff;
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
  animation: badge-pop 3.2s ease-in-out infinite;
}
@keyframes badge-pop {
  0%, 86%, 100% { transform: scale(1) rotate(0deg); }
  90% { transform: scale(1.14) rotate(-2deg); }
  94% { transform: scale(1) rotate(0deg); }
}
.pcard-validity {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #a3a3a3;
}
.pcard-featured .pcard-validity { color: var(--teal); }
.pcard--special .pcard-validity { color: #d97706; }
.pcard-data {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 6px 0 8px;
}
.pcard--unlimited .pcard-data { color: var(--teal); }
.pcard-price {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #171717;
  transition: color 0.3s var(--ease);
}
.pcard:hover .pcard-price { color: var(--teal); }
.pcard--unlimited:hover .pcard-price { color: #000; }
.pcard-desc {
  font-size: 0.85rem;
  color: #525252;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dotted #d4d4d4;
}
.pcard-chips {
  display: flex; flex-direction: column; gap: 8px;
  margin: 28px 0 24px;
  flex: 1;
}
.pcard-chip {
  display: flex; align-items: center; gap: 8px;
  background: #f7f7f9;
  border: 1px solid #ececf0;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: #52525a;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.chip-dot-green { background: #10b981; }
.chip-dot-red { background: var(--teal); }
.chip-dot-indigo { background: #6366f1; }

.pcard-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #e01010, #b30000);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(204, 0, 0, 0.3);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
/* light sheen sweeping across every Subscribe button */
.pcard-btn::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  animation: btn-shine 4.2s ease-in-out infinite;
  pointer-events: none;
}
.pcard-featured .pcard-btn::after { animation-duration: 3.1s; }
@keyframes btn-shine {
  0%, 55% { left: -70%; }
  78%, 100% { left: 130%; }
}
.pcard-btn:hover { background: #101114; box-shadow: 0 10px 24px rgba(16, 17, 20, 0.32); transform: translateY(-1px); }
.pcard-featured .pcard-btn { background: linear-gradient(135deg, #ff1f1f, #cc0000); box-shadow: 0 6px 18px rgba(204, 0, 0, 0.4); }
.pcard-featured .pcard-btn:hover { background: #101114; box-shadow: 0 10px 24px rgba(16, 17, 20, 0.28); }
.pcard-btn.plan-subscribe.is-selected {
  background: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.25), 0 6px 16px rgba(153, 0, 0, 0.45);
}

.sale-empty {
  border: 1px dashed #d2d2d7;
  border-radius: 18px;
  background: #fff;
  padding: 28px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.plans-footnote { margin-top: 48px; font-size: 0.92rem; color: var(--ink-soft); }
.plans-footnote a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .sale-grid { grid-template-columns: repeat(2, 1fr); }
  .sale-grid--special { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .sale-grid, .sale-grid--special { grid-template-columns: 1fr; }
  .sale-search { margin-left: 0; width: 100%; }
  .pcard { padding: 24px; }
}
/* small phones: let the tab strip scroll instead of overflowing the toolbar */
@media (max-width: 560px) {
  .sale-toolbar { padding: 12px; }
  .sale-tabs {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sale-tabs::-webkit-scrollbar { display: none; }
  .sale-tab { flex: none; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px 30px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.service-media {
  width: 100%; height: 150px;
  display: grid; place-items: center;
  background: var(--paper);
  border-radius: 12px;
  margin-bottom: 22px;
  overflow: hidden;
}
.service-media svg { width: 130px; height: 88px; transition: transform 0.4s var(--ease); }
.service-card:hover .service-media svg { transform: scale(1.07); }
.service-media .sv-navy { fill: var(--navy-800); }
.service-media .sv-teal { fill: var(--teal); stroke: none; }
path.service-media .sv-teal, .service-media path.sv-teal { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.service-media .sv-teal-soft { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; opacity: 0.55; }
.service-media rect.sv-teal-soft { fill: var(--teal-soft); stroke: none; }
.service-media .sv-line { stroke: var(--navy-100); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.service-media .sv-dot { fill: var(--teal-deep); }
.service-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.service-price {
  margin-top: 18px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 900px) { .services-row { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* installation reach line */
.services-cta {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: var(--navy-900);
  border-radius: 22px;
  padding: 28px 32px;
  box-shadow: 0 20px 44px rgba(16, 17, 20, 0.18);
}
.services-cta-copy h4 { color: #fff; font-size: 1.18rem; }
.services-cta-copy p { color: var(--navy-100); font-size: 0.95rem; margin-top: 6px; max-width: 48ch; }
.services-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .services-cta { flex-direction: column; text-align: center; padding: 26px 22px; }
  .services-cta-actions { width: 100%; flex-direction: column; }
  .services-cta .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   HOW TO SUBSCRIBE
   ========================================================================== */
/* first section on standalone pages — clear the fixed header */
.section-first { padding-top: calc(var(--section-pad) + 100px); }

.connect-more {
  display: flex;
  gap: 14px 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}
.connect-more a { color: var(--teal); font-weight: 600; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.connect-more a:hover { color: #ff4d4d; }

.subscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.steps-list { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(204, 0, 0, 0.5); transform: translateX(4px); }
.step-num {
  flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  box-shadow: 0 0 0 6px rgba(204, 0, 0, 0.15);
}
.step h4 { color: #f0ede6; font-family: var(--font-body); font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 0.9rem; color: rgba(240, 237, 230, 0.62); }
.step p strong { color: #f0ede6; }
.step a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* area panel */
.area-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.area-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.area-panel-head h3 { color: #f0ede6; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.area-hint { font-size: 0.82rem; color: rgba(240, 237, 230, 0.5); transition: color 0.3s var(--ease); }
.area-hint.is-done { color: var(--teal); }

.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.area-chip {
  text-align: left;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 16px 18px;
  color: #f0ede6;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.area-chip:hover { border-color: var(--teal); background: rgba(204, 0, 0, 0.1); transform: translateY(-2px); }
.area-chip-dot {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); opacity: 0.5; margin-bottom: 9px;
  transition: opacity 0.25s, box-shadow 0.25s;
}
.area-chip.is-selected { border-color: var(--teal); background: rgba(204, 0, 0, 0.16); box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.22); }
.area-chip.is-selected .area-chip-dot { opacity: 1; box-shadow: 0 0 0 4px rgba(204, 0, 0, 0.25); }
.area-chip.is-soon .area-chip-dot { background: var(--amber); opacity: 0.95; }
.area-chip.is-soon.is-selected .area-chip-dot { box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.3); }
.area-chip-name { display: block; font-weight: 700; font-size: 0.98rem; }
.area-chip-sub { display: block; font-size: 0.76rem; color: rgba(240, 237, 230, 0.5); margin-top: 2px; }

/* result card */
.area-result {
  margin-top: 20px;
  scroll-margin-top: 96px; /* clears the fixed header when the view glides here */
  background: var(--card);
  color: var(--ink);
  border-radius: 14px;
  padding: 24px;
  animation: rise 0.45s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.area-result-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.area-result-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.area-result-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy-900); }
.area-result-hours { font-size: 0.8rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }

.area-number-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--paper);
  border: 1px dashed var(--teal);
  border-radius: 12px;
  padding: 18px 20px;
}
.area-number-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 4px; }
.area-number-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--navy-900); letter-spacing: 0.01em; transition: color 0.2s; }
.area-number-value:hover { color: var(--teal-deep); }
.area-number-value.is-soon { color: var(--ink-soft); font-style: italic; cursor: default; }
.area-number-value.is-soon:hover { color: var(--ink-soft); }
.result-number.is-soon { color: var(--ink-soft); font-style: italic; cursor: default; }
.result-number.is-soon:hover { color: var(--ink-soft); }
.btn:disabled, .btn.is-disabled { opacity: 0.45; pointer-events: none; box-shadow: none; }
.cov-note { align-self: center; font-size: 0.8rem; font-style: italic; color: var(--ink-soft); }
.area-number-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.area-message { margin-top: 16px; position: relative; }
.area-message-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 8px; }
.message-bubble {
  background: var(--teal-soft);
  color: var(--navy-800);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 90px 14px 18px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.msg-copy {
  position: absolute; right: 26px; top: 34px;
  font-size: 0.76rem; font-weight: 700; color: var(--teal-deep);
  padding: 5px 12px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 4px rgba(11, 28, 44, 0.12);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.msg-copy:hover { transform: translateY(-1px); background: var(--paper); }
.area-result-note { margin-top: 16px; font-size: 0.82rem; color: var(--ink-soft); }

@media (max-width: 960px) {
  .subscribe-layout { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .area-grid { grid-template-columns: 1fr; }
  .message-bubble { padding-right: 18px; }
  .msg-copy { position: static; display: inline-block; margin-top: 8px; }
}

/* ==========================================================================
   COVERAGE
   ========================================================================== */
.coverage-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-soft);
  max-width: 880px;
  margin-inline: auto;
}
.coverage-copy h2 { margin-bottom: 12px; }
.coverage-copy p { color: var(--ink-soft); max-width: 58ch; }
.coverage-form { display: flex; gap: 14px; margin-top: 28px; align-items: flex-start; }
.coverage-form .field { flex: 1; }
.coverage-form input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.coverage-form input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(204, 0, 0, 0.15);
}
.coverage-form input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.12); }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-soft); }
.field-error { display: block; margin-top: 8px; font-size: 0.83rem; color: var(--red); }
@media (max-width: 620px) { .coverage-form { flex-direction: column; } .coverage-form .btn { width: 100%; } }

.coverage-result { margin-top: 24px; animation: rise 0.45s var(--ease); }
.cov-card {
  border-radius: 14px;
  padding: 22px 24px;
  display: flex; gap: 18px; align-items: flex-start;
}
.cov-card-success { background: var(--teal-soft); border: 1px solid rgba(204, 0, 0, 0.4); }
.cov-card-waitlist { background: #faf3e3; border: 1px solid rgba(217, 164, 65, 0.4); }
.cov-card-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.2rem; font-weight: 700; }
.cov-card-success .cov-card-icon { background: var(--teal-deep); }
.cov-card-waitlist .cov-card-icon { background: var(--amber); }
.cov-card h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: 6px; }
.cov-card p { font-size: 0.9rem; color: var(--ink-soft); }
.cov-card p strong { color: var(--navy-900); }
.cov-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq-item:hover { border-color: var(--navy-100); }
.faq-item[open] { border-color: var(--teal); box-shadow: var(--shadow-soft); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  font-weight: 600; font-size: 0.98rem; color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--paper); }
.faq-chevron { flex: none; width: 20px; height: 20px; color: var(--teal-deep); transition: transform 0.3s var(--ease); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { padding: 0 24px 22px; font-size: 0.93rem; color: var(--ink-soft); max-width: 68ch; }
.faq-body p strong { color: var(--navy-900); }
.faq-item[open] .faq-body { animation: rise 0.35s var(--ease); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta-band {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  border-top: 1px solid var(--line-dark);
  padding: clamp(44px, 6vw, 68px) 0;
}
.cta-band-inner { text-align: center; }
.cta-band h2 { color: #f5f2ec; margin-bottom: 10px; }
.cta-band p { color: rgba(245, 242, 236, 0.6); margin-bottom: 28px; font-size: 1.05rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-900); color: rgba(240, 237, 230, 0.68); padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 4vw, 56px);
  padding-bottom: 54px;
}
.footer-blurb { margin-top: 16px; font-size: 0.88rem; max-width: 34ch; }
.footer-col h4 { color: #f0ede6; font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.9rem; padding: 5px 0; transition: color 0.2s, transform 0.2s var(--ease); }
.footer-col a:hover { color: var(--teal); transform: translateX(3px); }
.footer-areas li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 0.88rem; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.footer-areas li:last-child { border-bottom: none; }
.footer-areas a { display: inline; padding: 0; color: var(--teal); font-weight: 600; }
.footer-areas a:hover { transform: none; text-decoration: underline; text-underline-offset: 3px; }
.footer-areas li em { color: rgba(255, 255, 255, 0.45); font-size: 0.82rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0 30px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(240, 237, 230, 0.4);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(11, 28, 44, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; }
.modal {
  position: relative;
  width: min(540px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(4, 12, 20, 0.45);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; color: var(--ink-soft);
  display: grid; place-items: center;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.modal-close:hover { background: var(--paper-soft); color: var(--navy-900); transform: rotate(90deg); }
.modal-body, .modal-success { padding: 34px 34px 30px; }
.modal-success { text-align: center; }
.modal-sub { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }
.modal-sub strong { color: var(--navy-900); }

.modal-steps { display: flex; gap: 8px; margin: 22px 0 24px; }
.mstep {
  flex: 1; text-align: center;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 4px; border-radius: 8px;
  background: var(--paper-soft); color: var(--ink-soft);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.mstep-active, .mstep-done { background: var(--teal); color: #fff; }
.mstep-done { background: var(--teal-soft); color: var(--teal-deep); }

.modal-label, .modal-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select {
  width: 100%;
  appearance: none;
  padding: 14px 44px 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.select-wrap select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(204, 0, 0, 0.15); }
.modal-field { margin: 18px 0 22px; }
.modal-field input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.modal-field input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(204, 0, 0, 0.15); }
.modal-fineprint { margin-top: 14px; font-size: 0.76rem; color: var(--ink-soft); }

.result-check { width: 64px; height: 64px; margin: 4px auto 16px; }
.result-check svg { width: 100%; height: 100%; }
.result-check circle { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2; }
.result-check path {
  fill: none; stroke: var(--teal-deep); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw-check 0.5s var(--ease) forwards 0.2s;
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }
#modalPaneResult { text-align: center; animation: rise 0.4s var(--ease); }
#modalPaneResult h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; }
.result-summary { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 20px; }
.result-number-card {
  background: var(--paper);
  border: 1px dashed var(--teal);
  border-radius: 14px;
  padding: 22px;
  font-size: 0.85rem; color: var(--ink-soft);
}
.result-number {
  display: block;
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 600;
  color: var(--navy-900); margin: 8px 0 16px;
  transition: color 0.2s;
}
.result-number:hover { color: var(--teal-deep); }
.result-number-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.modal-msg { text-align: left; margin-top: 18px; }
#modalPaneResult .btn-block, .modal-success .btn { margin-top: 20px; }
.modal-success p { color: var(--ink-soft); font-size: 0.95rem; margin: 10px auto 0; max-width: 40ch; }
.modal-success h4 { font-family: var(--font-display); font-size: 1.3rem; }
.modal-success strong { color: var(--navy-900); }

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toast-stack {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; flex-direction: column-reverse; gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  background: var(--navy-800); color: #f0ede6;
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 14px 20px 14px 16px;
  font-size: 0.88rem; font-weight: 500;
  box-shadow: 0 16px 40px rgba(4, 12, 20, 0.35);
  max-width: 340px;
  animation: toast-in 0.4s var(--ease);
}
.toast.is-leaving { animation: toast-out 0.35s var(--ease) forwards; }
.toast-icon {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
}
.toast-error { border-left-color: var(--red); }
.toast-error .toast-icon { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px) scale(0.96); } }
@media (max-width: 520px) { .toast-stack { left: 16px; right: 16px; bottom: 16px; } .toast { max-width: none; } }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
