/* ==========================================================================
   Broadband in your Area — flat, tight Tailwind-style build (Skylink's
   live computed metrics: radius 6/12/full, p-8 panels/cards, gap-24 grid,
   shadow-inner instead of drop shadows). Brand color mapped to the site's
   existing blue (var(--brand-blue) / #1E5EFF) instead of the source's own
   blue, so this page still matches the header, pricing section and
   who-we-are section.
   ========================================================================== */
.plans-page{
  --brand:var(--brand-blue);
  --brand-hover:#1a4dd9;
  --hairline:#E3EAF8;
  --ink:#101828;
  --stat:#364153;
  --muted:#6A7282;
  --panel:#F3F4F6;
  --line:#E5E7EB;
  --r-md:6px;
  --r-xl:12px;
  --r-full:9999px;
  --shadow-inner:inset 0 2px 4px rgba(0,0,0,.05);
  font-family:var(--font-manrope);
  color:var(--ink);
  background:radial-gradient(1100px 520px at 50% -8%,#EAF1FF 0%,#FFFFFF 60%);
  position:relative;
}
.plans-page *{box-sizing:border-box}
.plans-page button{font-family:inherit;cursor:pointer}

/* layered backdrop: faint drifting dot-grid texture + drifting brand-blue
   glows, kept behind a soft top-of-page gradient wash so the page reads
   as deliberately designed rather than flat white, without competing
   with the flat/tight card style above it */
.plans-page .plans-bg{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none}
.plans-page .plans-bg::before{
  content:"";position:absolute;inset:-40px;
  background-image:radial-gradient(var(--hairline) 1.5px,transparent 1.5px);
  background-size:28px 28px;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 45%,transparent 85%);
  mask-image:linear-gradient(180deg,#000 0%,#000 45%,transparent 85%);
  animation:plansGridDrift 50s linear infinite;
}
@keyframes plansGridDrift{
  from{background-position:0 0}
  to{background-position:280px 280px}
}
.plans-page .blob{position:absolute;border-radius:50%;filter:blur(80px);opacity:.16;
  background:var(--brand);animation:plansBlobDrift 26s ease-in-out infinite}
.plans-page .blob--1{width:480px;height:480px;top:-160px;left:-130px}
.plans-page .blob--2{width:420px;height:420px;top:26%;right:-180px;background:var(--brand-hover);animation-delay:-9s}
.plans-page .blob--3{width:360px;height:360px;bottom:-140px;left:36%;animation-delay:-18s}
.plans-page .blob--4{width:260px;height:260px;top:55%;left:8%;opacity:.10;animation-delay:-13s}
@keyframes plansBlobDrift{
  0%,100%{transform:translate(0,0) scale(1)}
  50%{transform:translate(26px,-18px) scale(1.08)}
}
@media (prefers-reduced-motion:reduce){.plans-page .blob,.plans-page .plans-bg::before{animation:none}}

.plans-page .wrap{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:56px 16px 80px}

/* ============ CITY SEO BANNER ============ */
.plans-city-banner{
  position:relative;
  z-index:1;
  background:linear-gradient(135deg, #595f68 0%, #434850 100%);
  color:#fff;
  padding:14px 16px;
  text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
}
.plans-city-banner__inner{
  max-width:1200px;
  margin:0 auto;
}
.plans-city-banner__breadcrumb{
  font-size:12px;
  font-weight:600;
  color:rgba(255,255,255,.8);
  margin-bottom:2px;
  letter-spacing:0.3px;
}
.plans-city-banner__breadcrumb a{
  color:rgba(255,255,255,.9);
  text-decoration:none;
  transition:color .2s;
}
.plans-city-banner__breadcrumb a:hover{
  color:#fff;
  text-decoration:underline;
}
.plans-city-banner__sep{
  margin:0 5px;
  color:rgba(255,255,255,.45);
}
.plans-city-banner__title{
  font-size:24px;
  font-weight:700;
  color:#fff;
  margin:0;
  letter-spacing:-0.3px;
}
@media (max-width:640px){
  .plans-city-banner{padding:10px 12px}
  .plans-city-banner__breadcrumb{font-size:11px}
  .plans-city-banner__title{font-size:19px}
}

/* ============ TITLE ============ */
.plans-page .title{font-size:36px;font-weight:700;color:var(--brand);text-align:center;margin-bottom:20px}
.plans-page .subtitle{font-size:16px;color:var(--muted);text-align:center;margin-bottom:20px}

/* ============ TAB PILL ============ */
.plans-page .tabs{display:flex;justify-content:center;margin-bottom:24px}
.plans-page .tabs__pill{display:flex;width:100%;max-width:576px;height:56px;padding:4px;
  background:var(--panel);border-radius:var(--r-full);box-shadow:var(--shadow-inner)}
.plans-page .tab{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
  height:48px;padding:12px 16px;border:0;border-radius:var(--r-full);
  font-size:16px;font-weight:600;color:var(--ink);background:transparent;
  transition:background .2s,color .2s}
.plans-page .tab svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
.plans-page .tab[aria-pressed="true"]{background:var(--brand);color:#fff}

.plans-page .tab:focus-visible,.plans-page .opt:focus-visible,.plans-page .select:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* ============ SELECTOR PANELS ============ */
.plans-page .panel{background:var(--panel);border:1px solid var(--hairline);border-radius:var(--r-xl);
  padding:8px;margin-bottom:16px;text-align:center}
.plans-page .panel h3{font-size:18px;font-weight:600;color:var(--ink);margin:8px 0}

/* speed chips */
.plans-page .opts--speed{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding-bottom:8px}
.plans-page .opts--speed .opt{padding:12px;min-width:112px;border-radius:var(--r-md);
  border:1px solid var(--line);background:#fff;font-size:16px;font-weight:500;color:var(--ink);
  transition:border-color .15s,background .15s,color .15s}
.plans-page .opts--speed .opt:hover{border-color:var(--brand)}

/* package buttons */
.plans-page .opts--pack{display:flex;gap:48px;padding:0 8px 8px}
.plans-page .opts--pack .opt{flex:1;padding:8px 0;border-radius:var(--r-md);
  border:1px solid var(--line);background:#fff;font-size:18px;font-weight:500;color:var(--ink);
  transition:border-color .15s,background .15s,color .15s}
.plans-page .opts--pack .opt:hover{border-color:var(--brand)}

.plans-page .opt[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:#fff}

.plans-page .carousel__head{margin:20px 0 8px}
.plans-page .meta{text-align:center;font-size:14px;color:var(--muted);min-height:18px}
.plans-page .meta b{color:var(--ink)}

/* ============ FANNED COVERFLOW CAROUSEL ============
   Desktop/tablet (>=768px), motion allowed: #grid.grid--fan centers every
   .card on the same anchor point and plans.js (applyFanTransforms) offsets,
   scales, fades and blurs each one by its distance from the active index —
   driven only by clicking the nav arrows, the dots, arrow keys, or tabbing
   focus onto a card, never by page scroll. Only the focused card is
   interactive (pointer-events on the rest is none — see plans.js).
   Reduced motion: #grid.grid--fade cross-fades between slides instead
   (no transform, no blur). Mobile (<768px): #grid falls back to a native
   horizontally scrolling/snapping row instead (overflow-x:auto) — see the
   media queries below. */

.plans-page .carousel{position:relative}
.plans-page .carousel.carousel--empty .carousel__nav{display:none}
.plans-page .carousel.carousel--empty .carousel__dots{display:none}

.plans-page .carousel__track-row{position:relative}
.plans-page .carousel__track-row:focus-visible{outline:2px solid var(--brand);outline-offset:4px;border-radius:var(--r-xl)}
.plans-page .carousel__viewport{position:relative;overflow:hidden}

.plans-page .grid{
  --track-gutter:24px;
  position:relative;display:flex;align-items:center;gap:24px;
  height:auto;
  padding-inline:var(--track-gutter);
}

/* fan mode: cards share one centred anchor point; plans.js sets each
   card's transform/opacity/blur/z-index inline based on offset from active */
.plans-page .grid.grid--fan{display:block;padding-inline:0}
.plans-page .grid.grid--fan .card{
  position:absolute;top:0;left:50%;margin-left:-136px;
  transition:transform .34s cubic-bezier(.16,1,.3,1),opacity .34s cubic-bezier(.16,1,.3,1),filter .34s cubic-bezier(.16,1,.3,1);
}
/* fade mode: cards stack at the same spot, cross-fading — no transform/blur */
.plans-page .grid.grid--fade{display:block;padding-inline:0}
.plans-page .grid.grid--fade .card{
  position:absolute;top:0;left:50%;margin-left:-136px;
  transition:opacity .28s ease!important;
}

/* Hover elevation applies only to the focused card — neighbours are
   pointer-events:none (see plans.js), so :hover can never reach them.
   150ms, independent of the ~340ms position transition above; transform
   needs !important since it's an inline style set by plans.js per-frame. */
.plans-page .grid.grid--fan .card.is-active:hover,
.plans-page .grid.grid--fade .card.is-active:hover{
  transform:translateX(0) scale(1.02)!important;
  border-color:#0060f0;box-shadow:0 14px 32px rgba(0,96,240,.22);
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease!important;
}

/* fixed vertical nav pills — sit at the carousel's edges and never move
   with the cards */
.plans-page .carousel__nav{position:absolute;top:50%;transform:translateY(-50%);
  width:48px;height:70px;border-radius:999px;z-index:200;
  display:flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid var(--line);color:var(--ink);
  box-shadow:0 12px 28px rgba(16,24,40,.16);
  transition:background .2s,border-color .2s,box-shadow .2s,transform .2s,opacity .2s}
.plans-page .carousel__nav svg{width:20px;height:20px}
.plans-page .carousel__nav--prev{left:-8px}
.plans-page .carousel__nav--next{right:-8px}
.plans-page .carousel__nav:hover:not(:disabled){background:var(--brand);border-color:var(--brand);color:#fff;
  box-shadow:0 16px 34px rgba(30,94,255,.28)}
.plans-page .carousel__nav:active:not(:disabled){transform:translateY(-50%) scale(.94)}
.plans-page .carousel__nav:disabled{opacity:.35;cursor:default;box-shadow:none}
.plans-page .carousel__nav:focus-visible{outline:2px solid var(--brand);outline-offset:3px}

/* position dots — always present, jump-to-index on click */
.plans-page .carousel__dots{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:18px}
.plans-page .dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:var(--line);
  transition:background .2s ease,transform .2s ease}
.plans-page .dot.is-active{background:var(--brand);transform:scale(1.35)}
.plans-page .dot:hover:not(.is-active){background:#b7c2d6}
.plans-page .dot:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* ============ CARD ============
   Every card shares one fixed structure — name, speed, type, benefits,
   optional subscriptions teaser, then a footer pinned to the bottom via
   margin-top:auto — so price/CTA sit at an identical height across the
   whole grid regardless of how much content a given plan has above it.
   Width/height are unchanged from the original design at every
   breakpoint — only the layout mechanism (absolute-stacked -> flex row)
   and the active/inactive treatment below are new. */
.plans-page .card{
  flex:0 0 272px;width:272px;min-height:400px;
  padding:8px;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  background:#fff;border:1px solid #dfe3ea;border-radius:var(--r-xl);
  box-shadow:none;overflow:hidden;cursor:pointer;
  opacity:.55;
  transition:opacity .25s ease,border-color .25s ease,box-shadow .25s ease}

/* Active card (scroll-linked, see plans.js) or a real pointer hover —
   hover always wins visually when the two disagree, since it's both
   selectors applying the same end state. No geometry changes here:
   no scale, no size/position shift, ever. */
.plans-page .card.is-active,
.plans-page .card:hover{
  opacity:1;border-color:#0060f0;box-shadow:0 4px 16px rgba(0,96,240,.14)}
.plans-page .card:focus-within{opacity:1;border-color:#1F2937}
@media (prefers-reduced-motion:reduce){.plans-page .card{transition:none}}

/* promoted plans (Most Popular / Best Value) keep their own distinct 2px
   colored border + tinted wash as their permanent identity, regardless of
   active state — only opacity/shadow follow the active/inactive toggle */
.plans-page .card--promo{border-width:2px;box-shadow:0 10px 28px rgba(16,24,40,.12)}
.plans-page .card--promo-blue{border-color:var(--brand)!important;background:linear-gradient(180deg,#EFF6FF 0%,#fff 45%)}
.plans-page .card--promo-gold{border-color:#D97706!important;background:linear-gradient(180deg,#FFFBEB 0%,#fff 45%)}
.plans-page .card--promo.is-active,.plans-page .card--promo:hover{box-shadow:0 4px 16px rgba(0,96,240,.14),0 10px 28px rgba(16,24,40,.12)}

/* admin-managed special-offer banner — only rendered when a plan has an active
   offer, bleeds to the card's inner padding-box edge so it sits flush against
   the border (overflow:hidden on .card clips it to match the rounded corners) */
.plans-page .card__offer{margin:-8px -8px 8px;padding:6px 12px;background:#16A34A;
  color:#fff;font-size:12px;font-weight:700;text-align:center;
  border-radius:var(--r-xl) var(--r-xl) 0 0}

/* top badge (Most Popular / Best Value) — reserves a fixed-height slot on every
   card, badge or not, so titles line up across a row regardless of which cards
   carry a badge */
.plans-page .badge-slot{height:28px;display:flex;align-items:center;justify-content:center;margin-top:8px}
.plans-page .badge{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:#fff;background:var(--brand);border-radius:var(--r-full);
  padding:6px 16px;box-shadow:0 4px 10px rgba(30,94,255,.28)}
.plans-page .badge--gold{background:#D97706;box-shadow:0 4px 10px rgba(217,119,6,.28)}

/* ---- plain small title, big bold speed (primary visual anchor), compact data/type line ---- */
.plans-page .card__head{padding:8px 16px 4px}
.plans-page .card__name{font-size:13px;font-weight:600;font-style:normal;color:var(--stat)}
.plans-page .card__speed{display:flex;align-items:baseline;justify-content:center;gap:6px;margin-top:6px}
.plans-page .card__speed b{font-size:40px;font-weight:900;line-height:1;color:var(--ink)}
.plans-page .card__speed span{font-size:13px;font-weight:600;color:var(--muted)}
.plans-page .card__sub{margin-top:4px;font-size:15px;font-weight:700;color:var(--ink)}

/* ---- perks line: "Free router · Free install", plain text + small icons ---- */
.plans-page .card__perks{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;
  width:100%;padding:10px 4px 0;margin:0;font-size:12.5px;font-weight:500;color:var(--stat)}
.plans-page .perk{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.plans-page .perk svg{width:14px;height:14px;stroke:var(--muted);flex-shrink:0}
.plans-page .perk__sep{color:var(--line)}

.plans-page .upgrade{display:inline-block;font-size:12px;font-weight:600;color:#008236;
  background:#F0FDF4;border:1px dashed #7BF1A8;border-radius:var(--r-full);
  padding:6px 12px;margin:10px 0 0}

/* ---- footer: price + CTA, pinned to the bottom of every card ---- */
.plans-page .card__footer{margin-top:auto;width:100%;display:flex;flex-direction:column;
  align-items:center;padding-top:16px}
.plans-page .priceline{margin:0 0 10px;font-size:16px;color:var(--stat);font-weight:500}
.plans-page .priceline b{font-size:24px;font-weight:700;color:var(--ink)}
.plans-page .priceline sub{font-size:10px;color:var(--muted);vertical-align:baseline;margin-left:3px}

.plans-page .select{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:40px;
  padding:8px 0;border-radius:var(--r-md);font-size:16px;font-weight:600;color:var(--ink);
  text-decoration:none;background:#fff;border:1.5px solid var(--ink);
  transition:background .15s,color .15s,border-color .15s}
.plans-page .select:hover{background:var(--brand);color:#fff;border-color:var(--brand)}
.plans-page .select svg{width:16px;height:16px;fill:currentColor}

/* single shared "prefer to call" line — replaces the per-card call link so
   each card has one dominant action (Select Plan) */
.plans-page .help-line{margin-top:20px;text-align:center;font-size:13px;color:var(--muted)}
.plans-page .help-line a{color:var(--ink);font-weight:700;text-decoration:none}

/* empty state */
.plans-page .empty{position:relative;margin:0 auto;max-width:520px;
  background:var(--panel);border:1px dashed var(--line);
  border-radius:var(--r-xl);padding:32px;text-align:center;font-size:14px;color:var(--stat)}
.plans-page .empty a{color:var(--brand);font-weight:700;cursor:pointer;text-decoration:underline}
.plans-page .clear-filters{display:block;margin:16px auto 0;padding:10px 20px;border-radius:var(--r-md);
  border:1px solid var(--brand);background:#fff;color:var(--brand);font-size:13px;font-weight:600;
  transition:background .15s,color .15s}
.plans-page .clear-filters:hover{background:var(--brand);color:#fff}

/* ============ COMPARE VIEW ============ */
.plans-page .compare{display:none}
.plans-page .compare.show{display:block}
.plans-page .tablecard{background:#fff;border:1px solid var(--line);border-radius:var(--r-xl);
  overflow:auto;box-shadow:var(--shadow-inner)}
.plans-page table{width:100%;border-collapse:collapse;min-width:820px}
.plans-page th,.plans-page td{padding:12px 16px;font-size:14px;text-align:center;border-bottom:1px solid var(--line)}
.plans-page th:first-child,.plans-page td:first-child{text-align:left}
.plans-page thead th{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);background:var(--panel)}
.plans-page tbody tr:last-child td{border-bottom:0}
.plans-page tr.featured-row{background:#EFF6FF}
.plans-page .tname{font-weight:700;color:var(--ink)}
.plans-page .tsub{display:block;font-size:12px;color:var(--muted);font-weight:500;margin-top:2px}
.plans-page .tag{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  background:var(--brand);color:#fff;border-radius:var(--r-full);padding:2px 8px;margin-left:8px;vertical-align:middle}
.plans-page .yes{color:#00A63E;font-weight:700}
.plans-page .no{color:#D1D5DC;font-weight:700}
.plans-page .half{color:#D97706;font-weight:700;font-size:12px}
.plans-page .tprice{font-size:16px;font-weight:700;color:var(--ink)}
.plans-page .tbook{display:inline-block;font-size:13px;font-weight:600;color:#fff;text-decoration:none;
  background:var(--brand);border-radius:var(--r-md);padding:8px 16px;white-space:nowrap}
.plans-page .legend{margin-top:10px;text-align:center;font-size:12px;color:var(--muted)}

.plans-page .footnote{margin-top:28px;text-align:center;font-size:12.5px;color:var(--muted);line-height:1.7}

/* ============ CARD PREVIEW (compact subscriptions teaser) ============ */
.plans-page .card__preview{display:flex;align-items:center;gap:10px;width:100%;
  padding:10px 12px;margin-top:8px;border:1px solid var(--line);border-radius:var(--r-md);
  background:var(--panel);text-align:left;transition:border-color .15s,background .15s}
.plans-page .card__preview:hover{border-color:var(--brand);background:#fff}
.plans-page .preview__icons{display:flex}
.plans-page .picon{width:28px;height:28px;border-radius:50%;border:2px solid #fff;
  display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.12);flex-shrink:0;overflow:hidden}
.plans-page .picon+.picon{margin-left:-8px}
.plans-page .picon img{width:100%;height:100%;border-radius:inherit;object-fit:cover;display:block}
.plans-page .preview__more{flex:1;font-size:14px;font-weight:700;color:var(--muted)}
.plans-page .preview__chevron{width:18px;height:18px;color:var(--muted);flex-shrink:0}

/* ============ PLAN DETAILS MODAL ============ */
body.modal-open{overflow:hidden}
.plans-page .modal-overlay{position:fixed;inset:0;z-index:1000;
  background:rgba(16,24,40,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.plans-page .modal-overlay[hidden]{display:none}
.plans-page .modal{position:relative;width:100%;max-width:420px;max-height:min(640px,90vh);
  overflow-y:auto;background:#fff;border-radius:var(--r-xl);padding:24px;
  box-shadow:0 20px 60px rgba(16,24,40,.25)}

.plans-page .modal__header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:8px}
.plans-page .modal__price{font-size:26px;font-weight:700;color:var(--ink)}
.plans-page .modal__gst{font-size:13px;color:var(--muted);margin-left:6px}
.plans-page .modal__close{width:32px;height:32px;border-radius:50%;border:0;background:var(--panel);
  color:var(--ink);font-size:14px;line-height:1;flex-shrink:0}
.plans-page .modal__close:hover{background:var(--line)}

.plans-page .modal__heading{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;
  color:var(--stat);margin:18px 0 10px}
.plans-page .modal__heading:first-of-type{margin-top:0}

.plans-page .modal__subs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:14px 8px}
.plans-page .modal__sub{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.plans-page .modal__sub span:last-child{font-size:11px;color:var(--stat);line-height:1.2}
.plans-page .picon--lg{width:44px;height:44px;border-radius:12px;font-size:13px;border-width:0}

.plans-page .modal__details{border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
.plans-page .modal__detail{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;
  font-size:13px;background:var(--panel)}
.plans-page .modal__detail:nth-child(even){background:#fff}
.plans-page .modal__detail span{color:var(--muted)}
.plans-page .modal__detail b{color:var(--ink);font-weight:600;text-align:right}

.plans-page .modal__notes{margin:0;padding-left:18px;font-size:12px;color:var(--muted);line-height:1.7}

/* ---- admin-managed media (PlanMedia): Gallery / Downloads, omitted when empty ---- */
.plans-page .modal__gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px}
.plans-page .modal__gallery-item{display:block;width:100%;padding:0;border:0;background:none;border-radius:var(--r-md);
  cursor:zoom-in;transition:opacity .15s}
.plans-page .modal__gallery-item:hover,.plans-page .modal__gallery-item:focus-visible{opacity:.85}
.plans-page .modal__gallery img{width:100%;border-radius:var(--r-md);object-fit:cover;aspect-ratio:1;display:block;pointer-events:none}

/* ---- lightbox: full-size view of a tapped gallery image ---- */
.plans-page .lightbox-overlay{position:fixed;inset:0;z-index:1100;background:rgba(16,24,40,.85);
  display:flex;align-items:center;justify-content:center;padding:24px}
.plans-page .lightbox-overlay[hidden]{display:none}
.plans-page .lightbox__img{max-width:92vw;max-height:92vh;object-fit:contain;border-radius:var(--r-md);
  box-shadow:0 20px 60px rgba(0,0,0,.4)}
.plans-page .lightbox__close{position:absolute;top:16px;right:16px;width:36px;height:36px;border-radius:50%;
  border:0;background:rgba(255,255,255,.15);color:#fff;font-size:16px;line-height:1;cursor:pointer}
.plans-page .lightbox__close:hover{background:rgba(255,255,255,.28)}
.plans-page .modal__downloads{display:flex;flex-direction:column;gap:8px}
.plans-page .modal__download-link{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;
  color:var(--ink);text-decoration:none;padding:10px 12px;border:1px solid var(--line);
  border-radius:var(--r-md);background:var(--panel);transition:border-color .15s,background .15s}
.plans-page .modal__download-link:hover{border-color:var(--brand);background:#fff}

.plans-page .modal__cta{margin-top:20px}

@media (max-width:640px){
  .plans-page .modal-overlay{align-items:flex-end;padding:0}
  .plans-page .modal{max-width:100%;max-height:85vh;border-radius:16px 16px 0 0;
    animation:modalSlideUp .25s ease-out}
}
@keyframes modalSlideUp{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}
@media (prefers-reduced-motion:reduce){.plans-page .modal{animation:none}}

/* ============ RESPONSIVE / FAN TIER ============
   Desktop/tablet (>=768px, motion allowed): fixed-height viewport, tall
   enough to clip a full-height card without cutting off the fanned/scaled
   side cards' shadows. Below 768px, or under reduced motion at any width,
   .grid is a native horizontally scrolling/snapping row instead — a MEDIA
   QUERY, not a JS decision, so it can never disagree with the CSS above. */
.plans-page .carousel__viewport{height:440px}

@media (min-width:768px){
  .plans-page .carousel{padding-block:32px}
  .plans-page .carousel.carousel--empty{padding-block:0}
}

@media (max-width:767px){
  .plans-page .carousel__viewport{
    height:auto;
    overflow-x:auto;overflow-y:hidden;
    -webkit-overflow-scrolling:touch;scroll-behavior:smooth;
    scrollbar-width:none;-ms-overflow-style:none;
  }
  .plans-page .carousel__viewport::-webkit-scrollbar{display:none}
  .plans-page .grid{scroll-snap-type:x mandatory;width:max-content}
  .plans-page .card{
    scroll-snap-align:center;
    width:min(400px,calc(100vw - 64px));flex-basis:min(400px,calc(100vw - 64px));
  }
  .plans-page .carousel__nav{display:none}
}

@media (max-width:820px){
  .plans-page .opts--pack{gap:16px}
}
@media (max-width:640px){
  .plans-page .title{font-size:30px}
  .plans-page .tab{font-size:12px;padding:8px}
  .plans-page .opts--pack{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .plans-page .opts--speed .opt{min-width:90px;font-size:14px}
  .plans-page .carousel__nav{width:40px;height:60px}
  .plans-page .carousel__nav--prev{left:4px}
  .plans-page .carousel__nav--next{right:4px}
}
@media (prefers-reduced-motion:reduce){.plans-page *,.plans-page *::before,.plans-page *::after{transition:none!important}}

/* Desktop refinements (>=1024px only — the <=640px overrides above stay). */
@media (min-width:1024px){
  /* The .title box already spans the full 1200px wrap; the white space was the
     type being small inside it, so this scales the heading with the viewport. */
  .plans-page .title{font-size:clamp(38px,2.9vw,48px)}
  .plans-page .subtitle{font-size:22px}
  .plans-page .panel h3{font-size:20px}
  .plans-page .help-line{font-size:16px}
  .plans-page .footnote{font-size:15px}
}
