/* Swift Network - public website.
   -------------------------------------------------------------------------
   The palette tokens are written into an inline <style> by base_public.html
   from the CMS theme row, so an editor changing the brand colour changes the
   whole site. Everything here consumes those tokens. */

:root {
  --w-primary:   #0B5FFF;
  --w-secondary: #00C2FF;
  --w-accent:    #FF6B00;
  --w-dark:      #0A1A33;
  --w-ink:       #10192B;
  --w-body:      #4A5568;
  --w-line:      #E5EAF2;
  --w-surface:   #FFFFFF;
  --w-tint:      #F5F8FF;
  --w-radius:    16px;
  --w-heading:   "Poppins", system-ui, sans-serif;
  --w-font:      "Inter", system-ui, sans-serif;
}

body {
  font-family: var(--w-font);
  color: var(--w-body);
  background: var(--w-surface);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-1, .display-4, .display-5 {
  font-family: var(--w-heading);
  color: var(--w-ink);
  font-weight: 700;
  letter-spacing: -.015em;
}

a { color: var(--w-primary); text-decoration: none; }
a:hover { color: var(--w-primary); text-decoration: underline; }

.section { padding: 72px 0; }
.section-tint { background: var(--w-tint); }
.section-dark { background: var(--w-dark); color: #C8D6EA; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--w-primary); background: rgba(11, 95, 255, .08);
  padding: 5px 13px; border-radius: 20px; margin-bottom: 12px;
}
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--w-body); font-size: 1.01rem; margin: 0; }

/* ---- Header ------------------------------------------------------------ */

.promo-strip { font-size: .8rem; padding: 7px 0; text-align: center; }
.promo-strip a { color: inherit; text-decoration: underline; }

.site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--w-line);
}
.site-header.sticky { position: sticky; top: 0; z-index: 1030; }
.site-header .navbar-brand { font-family: var(--w-heading); font-weight: 700; color: var(--w-ink); font-size: 1.1rem; }
.site-header .nav-link {
  color: var(--w-ink); font-weight: 550; font-size: .93rem; padding: .55rem .85rem !important;
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--w-primary); }
.brand-logo { width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--w-primary), var(--w-secondary));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; }

.btn-brand {
  background: var(--w-primary); border: 0; color: #fff; font-weight: 600;
  border-radius: 10px; padding: .6rem 1.25rem;
}
.btn-brand:hover { background: var(--w-primary); color: #fff; filter: brightness(.92); }
.btn-brand-outline {
  background: transparent; border: 1.5px solid var(--w-primary); color: var(--w-primary);
  font-weight: 600; border-radius: 10px; padding: .55rem 1.2rem;
}
.btn-brand-outline:hover { background: var(--w-primary); color: #fff; }
.btn-accent { background: var(--w-accent); border: 0; color: #fff; font-weight: 600; border-radius: 10px; }
.btn-accent:hover { background: var(--w-accent); color: #fff; filter: brightness(.93); }

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

.hero {
  position: relative;
  background: linear-gradient(150deg, var(--w-dark) 0%, #10305C 55%, var(--w-primary) 130%);
  color: #fff;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(760px 380px at 88% 8%, rgba(0, 194, 255, .28), transparent 62%),
    radial-gradient(620px 360px at 4% 96%, rgba(255, 107, 0, .16), transparent 60%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; }
.hero p.lead { color: rgba(255, 255, 255, .86); font-size: 1.08rem; max-width: 560px; }
.hero .hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  padding: 6px 14px; border-radius: 30px; font-size: .8rem; font-weight: 600; color: #fff;
}

.hero-slide {
  position: relative; min-height: 460px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
}
.hero-slide .slide-overlay { position: absolute; inset: 0; background: var(--w-dark); }
.hero-slide .slide-inner { position: relative; z-index: 2; padding: 72px 0; }

/* ---- Coverage widget --------------------------------------------------- */

.coverage-card {
  background: #fff; border-radius: var(--w-radius); padding: 24px;
  box-shadow: 0 22px 50px rgba(6, 16, 36, .3); color: var(--w-body);
}
.coverage-card h3 { font-size: 1.1rem; }

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

.pkg-card {
  background: #fff; border: 1.5px solid var(--w-line); border-radius: var(--w-radius);
  padding: 26px 24px; height: 100%; position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.pkg-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(11, 95, 255, .13); border-color: var(--w-primary); }
.pkg-card.featured { border-color: var(--w-primary); box-shadow: 0 12px 34px rgba(11, 95, 255, .14); }
.pkg-card .pkg-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--w-accent); color: #fff; font-size: .68rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase;
  white-space: nowrap;
}
.pkg-card .pkg-name { font-family: var(--w-heading); font-weight: 700; font-size: 1.05rem; color: var(--w-ink); }
.pkg-card .pkg-speed {
  font-family: var(--w-heading); font-weight: 800; line-height: 1;
  font-size: 2.7rem; color: var(--w-primary); margin: 10px 0 2px;
}
.pkg-card .pkg-speed small { font-size: .95rem; font-weight: 600; color: var(--w-body); }
.pkg-card .pkg-price { font-size: 1.5rem; font-weight: 700; color: var(--w-ink); }
.pkg-card .pkg-price small { font-size: .8rem; font-weight: 500; color: var(--w-body); }
.pkg-card ul { list-style: none; padding: 0; margin: 16px 0; font-size: .875rem; flex: 1; }
.pkg-card ul li { padding: 5px 0 5px 25px; position: relative; }
.pkg-card ul li::before {
  content: '\F26E'; font-family: 'bootstrap-icons';
  position: absolute; left: 0; top: 5px; color: #16A34A; font-size: .85rem;
}

.term-switch { display: inline-flex; background: var(--w-tint); border-radius: 30px; padding: 4px; gap: 3px; }
.term-switch a {
  padding: 7px 20px; border-radius: 30px; font-size: .84rem; font-weight: 650;
  color: var(--w-body); text-decoration: none;
}
.term-switch a.active { background: var(--w-primary); color: #fff; }

/* ---- Feature / stat / testimonial cards -------------------------------- */

.feature-card {
  background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-radius);
  padding: 26px 22px; height: 100%; transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(6, 16, 36, .09); }
.feature-card .fi {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(11, 95, 255, .12), rgba(0, 194, 255, .12));
  color: var(--w-primary); font-size: 1.35rem; margin-bottom: 14px;
}
.feature-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.feature-card p { font-size: .885rem; margin: 0; }

.stat-tile { text-align: center; padding: 20px 12px; }
.stat-tile .sv { font-family: var(--w-heading); font-size: 2.2rem; font-weight: 800; color: var(--w-primary); line-height: 1; }
.stat-tile .sl { font-size: .84rem; color: var(--w-body); margin-top: 6px; }
.section-dark .stat-tile .sv { color: var(--w-secondary); }
.section-dark .stat-tile .sl { color: rgba(255, 255, 255, .72); }

.quote-card {
  background: #fff; border: 1px solid var(--w-line); border-radius: var(--w-radius);
  padding: 24px; height: 100%;
}
.quote-card .stars { color: #F59E0B; font-size: .85rem; }
.quote-card p { font-size: .92rem; font-style: italic; color: var(--w-ink); }
.quote-card .who { display: flex; align-items: center; gap: 11px; margin-top: 15px; }
.quote-card .who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote-card .who .ini {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--w-tint); color: var(--w-primary); font-weight: 700; font-size: .85rem;
}

/* ---- Coverage / FAQ ---------------------------------------------------- */

.coverage-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--w-line); border-radius: 30px;
  padding: 8px 16px; font-size: .87rem; font-weight: 550; color: var(--w-ink); margin: 0 6px 10px 0;
}
.coverage-pill.soon { opacity: .6; }
.coverage-pill i { color: var(--w-primary); }

.accordion-item { border: 1px solid var(--w-line); border-radius: 12px !important; margin-bottom: 10px; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: .95rem; color: var(--w-ink); background: #fff; }
.accordion-button:not(.collapsed) { background: var(--w-tint); color: var(--w-primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--w-line); }
.accordion-body { font-size: .9rem; }

.notice-banner {
  background: #FFF4E5; border: 1px solid #FFD9A8; border-radius: 12px;
  padding: 13px 16px; font-size: .875rem; color: #8A4B00;
}

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

.cta-band {
  background: linear-gradient(120deg, var(--w-primary), var(--w-secondary));
  color: #fff; border-radius: 22px; padding: 42px 40px;
}
.cta-band h2 { color: #fff; }

.site-footer { background: var(--w-dark); color: #92A6C2; padding: 58px 0 26px; font-size: .885rem; }
.site-footer h5 { color: #fff; font-size: .9rem; font-weight: 650; margin-bottom: 15px; letter-spacing: .3px; }
.site-footer a { color: #92A6C2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 34px; padding-top: 20px; font-size: .8rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: #fff; font-size: .95rem;
}
.social-btn:hover { background: var(--w-primary); color: #fff; }

.float-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 1050;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .42);
}
.float-whatsapp:hover { color: #fff; transform: scale(1.06); }

.partner-logo { max-height: 42px; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: all .2s; }
.partner-logo:hover { filter: none; opacity: 1; }

.post-card { border: 1px solid var(--w-line); border-radius: var(--w-radius); overflow: hidden; background: #fff; height: 100%; }
.post-card img { width: 100%; height: 190px; object-fit: cover; }
.post-card .pc-body { padding: 18px; }
.post-card h4 { font-size: 1rem; margin-bottom: 7px; }

.page-hero {
  background: linear-gradient(135deg, var(--w-dark), #12345F);
  color: #fff; padding: 62px 0;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, .82); margin: 0; }

.prose { font-size: .96rem; line-height: 1.8; color: var(--w-body); }
.prose h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose img { max-width: 100%; border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.prose table th, .prose table td { border: 1px solid var(--w-line); padding: 9px 12px; }

@media (max-width: 767.98px) {
  .section { padding: 48px 0; }
  .hero { padding: 58px 0 66px; }
  .cta-band { padding: 30px 24px; }
}


/* =========================================================================
   Craft layer — public site
   -------------------------------------------------------------------------
   Motion, materials, depth and type. Same three rules as the staff app: react
   on the press, settle rather than stop, and stand down entirely when the
   visitor has asked for less. Nothing below is load-bearing — strip all of it
   and the site still reads and still converts.
   ========================================================================= */

:root {
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-return: cubic-bezier(0.64, 0, 0.78, 0);
  --ease-throw:  cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-instant: 90ms;
  --t-quick:   200ms;
  --t-move:    340ms;
}

/* ---- Type ---------------------------------------------------------------
   The old rule put a single `-.015em` on every heading. That is too loose for
   a 3.3rem hero and too tight for a 1rem card title — tracking has to move
   with size, always negative as text grows and near zero as it shrinks. */

h1, .display-1, .display-4, .display-5 { letter-spacing: -.028em; line-height: 1.08; }
h2 { letter-spacing: -.022em; line-height: 1.18; }
h3 { letter-spacing: -.016em; line-height: 1.25; }
h4, h5 { letter-spacing: -.011em; line-height: 1.35; }

.hero h1 { letter-spacing: -.032em; }

body { letter-spacing: .002em; -webkit-font-smoothing: antialiased; }
.lead, .section-head p { line-height: 1.62; }

/* The eyebrow is small and upper-case, which is the one case that genuinely
   wants extra tracking rather than less. */
.eyebrow { letter-spacing: .12em; }

.stat-tile .sv, .pkg-card .pkg-speed, .pkg-card .pkg-price, [data-count] {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}

/* ---- Response -----------------------------------------------------------
   Every control acknowledges the press itself, not the navigation that
   follows it. */

.btn, .btn-brand, .btn-brand-outline, .btn-accent,
.coverage-pill, .term-switch a, .social-btn, .accordion-button {
  transition:
    background-color var(--t-quick) var(--ease-settle),
    border-color var(--t-quick) var(--ease-settle),
    color var(--t-quick) var(--ease-settle),
    box-shadow var(--t-quick) var(--ease-settle),
    transform var(--t-instant) var(--ease-settle);
}

.btn:active, .btn-brand:active, .btn-brand-outline:active, .btn-accent:active,
.is-pressed { transform: scale(.968); }
.btn-lg:active { transform: scale(.982); }

.btn-brand { box-shadow: 0 6px 18px rgba(11, 95, 255, .22); }
.btn-brand:hover { box-shadow: 0 10px 26px rgba(11, 95, 255, .3); transform: translateY(-1px); }
.btn-brand:active { box-shadow: 0 3px 10px rgba(11, 95, 255, .24); transform: scale(.968); }

.coverage-pill:hover { border-color: var(--w-primary); transform: translateY(-2px); }

.social-btn:active, .float-whatsapp:active { transform: scale(.92); }

/* ---- Focus --------------------------------------------------------------
   Visible for the keyboard, invisible for the mouse. */

:focus-visible {
  outline: 2px solid var(--w-primary);
  outline-offset: 3px;
  border-radius: 8px;
}
.section-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible,
.cta-band :focus-visible { outline-color: #fff; }

.form-control:focus, .form-select:focus {
  border-color: var(--w-primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, .16);
}

/* ---- Header material ----------------------------------------------------
   Content passes under the header rather than stopping at it, and the edge
   only appears once something is actually behind it. */

.site-header {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-quick) var(--ease-settle),
              border-color var(--t-quick) var(--ease-settle),
              box-shadow var(--t-quick) var(--ease-settle);
}
.site-header.is-floating {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: var(--w-line);
  box-shadow: 0 1px 20px rgba(6, 16, 36, .07);
}
/* Text over a translucent surface needs more contrast and a touch more weight
   than the same text over a solid one, or it dissolves into whatever is
   scrolling underneath. */
.site-header .nav-link { font-weight: 600; letter-spacing: -.004em; }

/* ---- Hero: the fibre mesh ----------------------------------------------
   The canvas sits between the gradient and the copy. `pointer-events: none` is
   not optional — without it the mesh would swallow taps meant for the buttons
   sitting on top of it. */

.hero { isolation: isolate; }
.hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: .85;
}
.hero::after { z-index: 1; }
.hero > .container { position: relative; z-index: 4; }

/* A soft floor under the hero so the section below does not start with a hard
   horizontal seam. */
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 3;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .06));
  pointer-events: none;
}

/* ---- Depth: tilt and glare ---------------------------------------------
   A card that leans a few degrees toward the cursor. Two things keep it from
   feeling like a gimmick: the angle is small, and the highlight tracks the
   same pointer, so the light and the geometry agree with each other. */

[data-tilt] {
  transform: perspective(900px)
             rotateX(var(--tilt-x, 0deg))
             rotateY(var(--tilt-y, 0deg));
  transition: transform 420ms var(--ease-settle), box-shadow var(--t-quick) var(--ease-settle);
  transform-style: preserve-3d;
}
/* While the pointer is on the card the transform is rewritten every move, so
   it has to land on the very next frame. The transition is for the trip back. */
[data-tilt].is-tilting { transition-duration: 0ms, var(--t-quick); }

.pkg-card[data-tilt], .feature-card[data-tilt] { position: relative; }
.pkg-card[data-tilt]::after,
.feature-card[data-tilt]::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  /* Plain white at low alpha rather than a blend mode: `overlay` against a
     white card blows the highlight out to a flat blank patch. */
  background: radial-gradient(300px circle at var(--glare-x, 50%) var(--glare-y, 50%),
                              rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transition: opacity var(--t-quick) var(--ease-settle);
  pointer-events: none;
}
.pkg-card[data-tilt].is-tilting::after,
.feature-card[data-tilt].is-tilting::after { opacity: .5; }

/* Lift the card's own content off its surface so the tilt has something to be
   a tilt *of* rather than just a skewed rectangle. */
.pkg-card[data-tilt] .pkg-speed { transform: translateZ(26px); }
.pkg-card[data-tilt] .pkg-badge { transform: translateX(-50%) translateZ(26px); }
.pkg-card[data-tilt] .pkg-name { transform: translateZ(14px); }
.feature-card[data-tilt] .fi { transform: translateZ(22px); }

/* ---- A real 3D object: the ONU --------------------------------------------
   Six faces in `preserve-3d`, rotating slowly. It is the box that actually
   arrives in the customer's house, which is more honest than a stock photo and
   costs about 40 lines instead of a 600KB WebGL runtime.

   The animation is ~24s per revolution. Slow enough to read as ambient rather
   than as something demanding attention, and nowhere near the 5-second cycle
   that starts to feel like a pulse. */

.device-stage {
  position: relative;
  perspective: 1100px;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.device-3d {
  position: relative;
  width: 180px;
  height: 116px;
  transform-style: preserve-3d;
  animation: device-spin 24s linear infinite;
}
.device-3d .face {
  position: absolute;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.device-3d .front, .device-3d .back  { width: 180px; height: 116px; }
.device-3d .right, .device-3d .left  { width: 56px;  height: 116px; left: 62px; }
.device-3d .top,   .device-3d .bottom { width: 180px; height: 56px; top: 30px; }

.device-3d .front  { transform: translateZ(28px); }
.device-3d .back   { transform: rotateY(180deg) translateZ(28px); }
.device-3d .right  { transform: rotateY(90deg) translateZ(90px); }
.device-3d .left   { transform: rotateY(-90deg) translateZ(90px); }
.device-3d .top    { transform: rotateX(90deg) translateZ(58px); }
.device-3d .bottom { transform: rotateX(-90deg) translateZ(58px); }

/* The status lights. Staggered so they blink like a real router rather than in
   lockstep like a decoration. */
.device-3d .leds {
  position: absolute; left: 16px; bottom: 14px; display: flex; gap: 9px;
  transform: translateZ(29px);
}
.device-3d .led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--w-secondary);
  box-shadow: 0 0 10px var(--w-secondary);
  animation: led-blink 3.4s ease-in-out infinite;
}
.device-3d .led:nth-child(2) { animation-delay: .7s; background: #4ADE80; box-shadow: 0 0 10px #4ADE80; }
.device-3d .led:nth-child(3) { animation-delay: 1.5s; }

.device-3d .brand-mark {
  position: absolute; top: 16px; left: 16px;
  transform: translateZ(29px);
  font-family: var(--w-heading); font-weight: 800; font-size: .78rem;
  letter-spacing: .1em; color: rgba(255, 255, 255, .82);
}

/* The glow it casts on the surface behind it. */
.device-stage::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, .28), transparent 68%);
  filter: blur(18px);
  animation: device-glow 9s ease-in-out infinite;
}

@keyframes device-spin {
  from { transform: rotateX(-16deg) rotateY(0deg); }
  to   { transform: rotateX(-16deg) rotateY(360deg); }
}
@keyframes led-blink {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}
@keyframes device-glow {
  0%, 100% { opacity: .7;  transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* ---- Reveal on scroll --------------------------------------------------- */

.will-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms var(--ease-settle), transform 620ms var(--ease-settle);
}
.will-reveal.is-revealed { opacity: 1; transform: none; }

/* ---- Cards -------------------------------------------------------------- */

.pkg-card, .feature-card, .quote-card, .post-card {
  transition: transform var(--t-quick) var(--ease-settle),
              box-shadow var(--t-quick) var(--ease-settle),
              border-color var(--t-quick) var(--ease-settle);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(6, 16, 36, .1); }
.post-card img { transition: transform 600ms var(--ease-settle); }
.post-card:hover img { transform: scale(1.045); }

/* The featured package should sit a step in front of the others rather than
   just being outlined differently. */
.pkg-card.featured { transform: translateY(-6px); }
.pkg-card.featured:hover { transform: translateY(-10px); }

/* ---- CTA band ----------------------------------------------------------- */

.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(520px 260px at 88% 12%, rgba(255, 255, 255, .22), transparent 62%),
    radial-gradient(420px 240px at 6% 92%, rgba(255, 255, 255, .12), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }

/* =========================================================================
   Accessibility preferences
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* Keep the state, drop the travel. */
  .btn:active, .btn-brand:hover, .coverage-pill:hover,
  .post-card:hover, .post-card:hover img,
  .pkg-card.featured, .pkg-card.featured:hover,
  [data-tilt] { transform: none !important; }

  /* The looping ambient pieces stop where they are rather than snapping to a
     frame nobody chose. */
  .device-3d { animation: none; transform: rotateX(-16deg) rotateY(-28deg); }
  .device-3d .led, .device-stage::before { animation: none; opacity: 1; }
  .hero-mesh { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-floating {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--w-line);
  }
  .device-3d .face {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-mesh { opacity: .4; }
}

@media (prefers-contrast: more) {
  :root { --w-line: #9AA7BC; --w-body: #2B3648; }
  .pkg-card, .feature-card, .quote-card, .post-card, .coverage-pill { border-width: 2px; }
  .site-header { background: #fff; backdrop-filter: none; }
  .hero-mesh { display: none; }
  .hero p.lead { color: #fff; }
  :focus-visible { outline-width: 3px; }
}

/* ---- Phones -------------------------------------------------------------
   The 3D object is a desktop flourish. On a phone the hero has to be a
   headline and a button, and everything else is in the way. */

@media (max-width: 991.98px) {
  .device-stage { max-width: 240px; }
  .device-3d { width: 150px; height: 96px; }
}
@media (max-width: 767.98px) {
  .device-stage { display: none; }
  .hero-mesh { opacity: .55; }
}

/* ---- Inner page heroes --------------------------------------------------
   The same treatment as the home hero at a smaller scale, so the site does not
   change character on the first click. */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 92% 0%, rgba(0, 194, 255, .26), transparent 60%),
    radial-gradient(460px 260px at 0% 100%, rgba(255, 107, 0, .14), transparent 58%);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { letter-spacing: -.028em; }

/* ---- Section rhythm -----------------------------------------------------
   The old 44px gap under a section head was the same whether the head was one
   line or three. Tie it to the type instead so the spacing scales with it. */

.section-head { margin-bottom: 2.75rem; }
.section-head h2 { margin-bottom: .5rem; }

/* ---- Forms --------------------------------------------------------------
   The public forms are the conversion path, so they get the same care as the
   buttons: a real focus state, a comfortable target, and no iOS zoom-on-tap. */

.coverage-card .form-control,
.coverage-card .form-select,
.section .form-control,
.section .form-select {
  border-radius: 10px;
  border-color: var(--w-line);
  padding: .62rem .85rem;
  transition: border-color var(--t-quick) var(--ease-settle),
              box-shadow var(--t-quick) var(--ease-settle);
}

@media (pointer: coarse) {
  /* Anything under 16px makes iOS Safari zoom the page on focus, which throws
     the visitor out of the layout mid-form. */
  .form-control, .form-select { font-size: 16px; }
  .btn { min-height: 44px; }
  .coverage-pill { padding: 10px 18px; }
}

/* ---- Depth on the coverage card ----------------------------------------- */

.coverage-card {
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 24px 60px rgba(6, 16, 36, .34), 0 2px 6px rgba(6, 16, 36, .12);
}

/* ---- Coverage map -------------------------------------------------------
   The map is a second way to read the area list, never the only way. It is
   sized generously because a coverage map the size of a postage stamp answers
   nobody's question, and it keeps its aspect on a phone rather than becoming a
   letterbox. */

.coverage-map-wrap {
  border: 1px solid var(--w-line);
  border-radius: var(--w-radius);
  overflow: hidden;
  background: var(--w-surface);
  box-shadow: 0 10px 34px rgba(6, 16, 36, .08);
}

.coverage-map {
  height: 420px;
  width: 100%;
  /* Leaflet paints its own grey until tiles arrive; matching it to the page
     stops a dark slab flashing in on load. */
  background: var(--w-tint);
  z-index: 1;
}

.coverage-map-key {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid var(--w-line);
  font-size: .8rem;
  color: var(--w-body);
}
.coverage-map-key .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; vertical-align: -1px;
}
.coverage-map-key .dot.live { background: var(--w-primary); }
.coverage-map-key .dot.planned { background: var(--w-accent); }

/* Leaflet's own chrome, brought into the site's palette. */
.leaflet-container { font-family: var(--w-font); }
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(6, 16, 36, .22);
}
.leaflet-popup-content { margin: 12px 14px; font-size: .85rem; line-height: 1.5; }
.leaflet-control-attribution { font-size: .68rem; }
.leaflet-bar a {
  color: var(--w-ink);
  border-radius: 6px;
}

/* ---- The area list ------------------------------------------------------
   Each row pairs with a marker. It only advertises itself as clickable once
   the map has actually claimed it (`is-mapped`), so an area with no
   coordinates does not look like a broken button. */

.coverage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--w-line);
  border-radius: 10px;
  font-size: .87rem;
  background: var(--w-surface);
  transition: border-color var(--t-quick) var(--ease-settle),
              background-color var(--t-quick) var(--ease-settle),
              transform var(--t-instant) var(--ease-settle);
}
.coverage-row .map-hint { color: var(--w-primary); opacity: 0; transition: opacity var(--t-quick); }

.coverage-row.is-mapped { cursor: pointer; }
.coverage-row.is-mapped:hover,
.coverage-row.is-mapped:focus-visible {
  border-color: var(--w-primary);
  background: var(--w-tint);
}
.coverage-row.is-mapped:hover .map-hint,
.coverage-row.is-mapped:focus-visible .map-hint { opacity: 1; }
.coverage-row.is-mapped:active { transform: scale(.99); }

/* When a marker sends the reader back to the list, the row says so briefly -
   otherwise the page scrolls and nothing appears to have happened. */
.coverage-row.is-flashing {
  border-color: var(--w-primary);
  background: var(--w-tint);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, .16);
}

@media (max-width: 767.98px) {
  .coverage-map { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .coverage-row, .coverage-row .map-hint { transition: none; }
}

@media (prefers-contrast: more) {
  .coverage-row { border-width: 2px; }
}
