/* Tabs */
.tabs{
  min-width:0;
}
.tab-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  width:max-content;
  max-width:100%;
  padding:6px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-pill);
  background:var(--color-surface);
}
.tab-list [role="tab"]{
  min-height:40px;
  padding:8px 18px;
  border:0;
  border-radius:var(--radius-pill);
  background:transparent;
  color:var(--color-muted);
  font-weight:750;
}
.tab-list [role="tab"][aria-selected="true"]{
  background:var(--color-text);
  color:var(--color-surface);
}
.tab-panel{padding-top:24px}
.tab-panel[hidden]{display:none}

/* Sticky table of contents */
.toc-tabs{
  position:sticky;
  top:12px;
  z-index:45;
  display:flex;
  gap:8px;
  max-width:100%;
  margin-bottom:36px;
  padding:8px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  border:1px solid var(--color-border);
  border-radius:var(--radius-pill);
  background:var(--color-surface);
  box-shadow:var(--shadow-card);
  scrollbar-width:thin;
}
.toc-tabs a{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  min-height:36px;
  padding:7px 15px;
  border-radius:var(--radius-pill);
  color:var(--color-muted);
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
}
.toc-tabs a.is-current,
.toc-tabs a[aria-current="location"]{
  background:var(--color-text);
  color:var(--color-surface);
}

/* FAQ */
.faq-list{
  display:grid;
  gap:12px;
}
.faq-item{
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  background:var(--color-surface);
  box-shadow:var(--shadow-card);
}
.faq-item summary{
  position:relative;
  min-height:56px;
  padding:16px 52px 16px 20px;
  cursor:pointer;
  list-style:none;
  font-weight:800;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:"+";
  position:absolute;
  top:50%;
  right:20px;
  width:24px;
  height:24px;
  color:var(--color-muted);
  font-family:var(--font-mono);
  font-size:20px;
  line-height:24px;
  text-align:center;
  transform:translateY(-50%);
}
.faq-item[open] summary::after{content:"−"}
.faq-answer{
  padding:0 20px 18px;
  color:var(--color-muted);
}

/* Pricing */
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.price-card{
  position:relative;
  display:flex;
  min-width:0;
  min-height:100%;
  flex-direction:column;
  padding:30px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-card);
  background:var(--color-surface);
  box-shadow:var(--shadow-card);
  transform-style:preserve-3d;
}
.price-card.is-featured{
  border:2px solid var(--color-text);
  background:var(--color-surface-strong);
  box-shadow:var(--shadow-lift);
}
.price-ribbon{
  position:absolute;
  top:16px;
  right:16px;
  padding:5px 11px;
  border-radius:var(--radius-pill);
  background:var(--color-accent);
  color:var(--color-text);
  font-size:11px;
  font-weight:900;
}
.price-card h3{padding-right:64px}
.price-value{
  display:flex;
  align-items:baseline;
  gap:5px;
  margin:20px 0 2px;
  font-family:var(--font-display);
  font-size:44px;
  font-weight:900;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.price-period{
  color:var(--color-muted);
  font-size:13px;
  font-weight:700;
}
.price-features{
  display:grid;
  gap:9px;
  margin:22px 0 28px;
  padding:0;
  list-style:none;
}
.price-features li{
  display:flex;
  gap:9px;
  color:var(--color-muted);
  font-size:14px;
}
.price-features li::before{
  content:"";
  width:7px;
  height:7px;
  flex:0 0 auto;
  margin-top:.62em;
  border-radius:2px;
  background:var(--color-success);
}
.price-card .btn{margin-top:auto}

/* Tables */
.table-scroll{
  max-width:100%;
  overflow-x:auto;
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  background:var(--color-surface);
  -webkit-overflow-scrolling:touch;
}
.data-table{
  width:100%;
  min-width:680px;
}
.data-table th,
.data-table td{
  padding:14px 17px;
  border-bottom:1px solid var(--color-border);
  text-align:left;
  vertical-align:middle;
}
.data-table th{
  background:var(--color-surface-strong);
  color:var(--color-text);
  font-size:12px;
  font-weight:850;
  letter-spacing:.04em;
}
.data-table td{
  color:var(--color-muted);
  font-size:14px;
}
.data-table th:first-child,
.data-table td:first-child{
  color:var(--color-text);
  font-weight:750;
}
.data-table tr:last-child td{border-bottom:0}
.table-group td{
  background:var(--color-page);
  color:var(--color-text);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
}
.prose>.data-table{
  display:block;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.prose>.data-table tbody{
  display:table;
  min-width:680px;
  width:100%;
}

/* Platform cards */
.platform-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.platform-card{
  display:flex;
  min-width:0;
  flex-direction:column;
  align-items:flex-start;
  gap:15px;
  padding:22px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  background:var(--color-surface);
  box-shadow:var(--shadow-card);
}
.platform-icon{
  display:grid;
  width:42px;
  height:42px;
  flex:0 0 auto;
  place-items:center;
  border-radius:var(--radius-sm);
  background:var(--color-surface-strong);
  color:var(--color-text);
}
.platform-icon svg{width:24px;height:24px}
.platform-card h3{font-size:17px}
.platform-card .btn{width:100%;margin-top:auto}

/* Article cards */
.article-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.article-card{
  display:flex;
  min-width:0;
  flex-direction:column;
  padding:25px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-card);
  background:var(--color-surface);
  box-shadow:var(--shadow-card);
}
.article-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  margin-bottom:17px;
  color:var(--color-muted);
  font-family:var(--font-mono);
  font-size:11px;
}
.article-card h3{font-size:20px}
.article-card p{color:var(--color-muted);font-size:14px}
.article-card>a:last-child{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  margin-top:auto;
  font-weight:800;
}

/* Callouts and promotional block */
.callout{
  padding:20px 24px;
  border-left:5px solid var(--color-accent);
  border-radius:0 var(--radius-md) var(--radius-md) 0;
  background:var(--color-surface-strong);
}
.callout-title{
  margin-bottom:5px;
  font-weight:850;
}
.callout p:last-child{margin-bottom:0}
.article-promo{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:24px;
  margin-top:48px;
  padding:30px;
  overflow-x:clip;
  border-radius:var(--radius-card);
  background:var(--color-text);
  color:var(--color-surface);
  box-shadow:var(--shadow-lift);
}
.article-promo h2,
.article-promo h3,
.article-promo p{color:var(--color-surface)}
.article-promo h2,
.article-promo h3{font-size:26px}
.article-promo p{margin-bottom:0}

/* Floating conversion link */
.float-cta{
  position:fixed;
  right:28px;
  bottom:calc(28px + env(safe-area-inset-bottom,0px));
  z-index:80;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:11px 24px;
  border-radius:var(--radius-pill);
  background:var(--color-text);
  color:var(--color-surface);
  box-shadow:var(--shadow-lift);
  font-size:14px;
  font-weight:850;
  transition:transform var(--transition-fast);
}
.float-cta:hover{transform:translateY(-2px)}
.float-cta svg{width:18px;height:18px;flex:0 0 auto}
body:has(.float-cta)::after{
  content:"";
  display:block;
  height:calc(88px + env(safe-area-inset-bottom,0px));
}

/* Bento hero used by the approved first screen */
.hero-bento{
  padding-top:24px;
  padding-bottom:26px;
  overflow-x:clip;
}
.hero-bento-grid{
  display:grid;
  grid-template-columns:1.04fr .47fr .53fr;
  grid-template-areas:
    "visual main main"
    "visual refund facts";
  gap:16px;
}
.hero-cell{
  min-width:0;
  border:1px solid var(--color-border);
  border-radius:var(--radius-card);
  background:var(--color-surface);
  box-shadow:var(--shadow-card);
  transition:transform var(--transition-base),box-shadow var(--transition-base);
}
.hero-cell:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-lift);
}
.hero-main{
  grid-area:main;
  padding:34px 38px 30px;
}
.hero-main h1{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:16px 0 0;
}
.hero-key{
  font-size:66px;
  font-weight:900;
  line-height:1.02;
}
.hero-line{
  font-size:31px;
  font-weight:850;
  line-height:1.15;
}
.hero-main .button-row{margin-top:22px}
.hero-copy{
  max-width:54ch;
  margin-top:18px;
  color:var(--color-muted);
  font-size:15px;
}
.hero-copy strong{color:var(--color-text)}
.hero-trust{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin:15px 0 0;
  padding:0;
  list-style:none;
}
.hero-trust li{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--color-muted);
  font-size:12px;
  font-weight:700;
}
.hero-trust li::before{
  content:"";
  width:6px;
  height:6px;
  flex:0 0 auto;
  border-radius:2px;
  background:var(--color-muted);
}
.hero-platforms{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 17px;
  margin-top:17px;
  padding-top:15px;
  border-top:1px dashed var(--color-border);
}
.hero-platform-label{
  color:var(--color-muted);
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.13em;
}
.hero-platform{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--color-muted);
  font-size:12px;
  font-weight:700;
}
.hero-platform svg{
  width:17px;
  height:17px;
  flex:0 0 auto;
}
.hero-mini{
  padding:20px 24px 18px;
}
.hero-mini-refund{grid-area:refund}
.hero-mini-facts{grid-area:facts;background:var(--color-surface-strong)}
.hero-mini .mono{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--color-muted);
  font-size:10px;
  letter-spacing:.13em;
}
.hero-mini h3{margin:7px 0 3px;font-size:17px}
.hero-mini p{margin:0;color:var(--color-muted);font-size:12px}
.hero-visual{
  grid-area:visual;
  display:flex;
  min-height:0;
  flex-direction:column;
  padding:22px 24px 20px;
  overflow:hidden;
}
.relay-cap{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--color-muted);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.12em;
}
.relay-cap strong{
  color:var(--color-text);
  font-family:var(--font-body);
  font-size:12px;
  letter-spacing:0;
}
.relay-svg{
  width:100%;
  height:auto;
  min-height:0;
  flex:1 1 auto;
}
.relay-dot{fill:var(--color-dot-strong)}
.relay-line{fill:none;stroke:var(--color-text);stroke-linecap:round}
.relay-line-main{stroke-width:2.4}
.relay-line-thin{stroke-width:1.2;opacity:.75}
.relay-arc{fill:none;stroke-linecap:round}
.relay-arc-inner{stroke:var(--color-text);stroke-width:2.2}
.relay-arc-current{stroke:var(--color-text);stroke-width:3.6}
.relay-arc-outer{stroke:var(--color-muted);stroke-width:2}
.relay-emitter{fill:var(--color-text)}
.relay-halo{fill:none;stroke:var(--color-muted);stroke-width:1.4}
.relay-drop{fill:none;stroke:var(--color-muted);stroke-width:1.6;stroke-dasharray:3 6}
.relay-label{fill:var(--color-muted);font-family:var(--font-mono);font-size:11px;letter-spacing:.1em}
.relay-signal{transform-box:view-box;transform-origin:120px 150px;animation:relayOrbit 6.4s linear infinite}
.relay-signal-ring{fill:none;stroke:var(--color-muted);stroke-width:1.2}
.relay-signal-core{fill:var(--color-text)}
.relay-arc-inner,
.relay-arc-current,
.relay-arc-outer{animation:relayBreath 6.4s ease-in-out infinite}
.relay-arc-current{animation-delay:1.1s}
.relay-arc-outer{animation-delay:2.2s}
.station-row{
  display:flex;
  justify-content:space-between;
  gap:7px;
}
.station-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  padding:6px 9px 6px 7px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-pill);
  background:var(--color-surface-strong);
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.station-pill svg{
  width:24px;
  height:17px;
  flex:0 0 auto;
  overflow:hidden;
  border-radius:4px;
}
@keyframes relayOrbit{
  0%{opacity:0;transform:rotate(0deg)}
  8%,92%{opacity:1}
  100%{opacity:0;transform:rotate(62deg)}
}
@keyframes relayBreath{
  0%,100%{opacity:.95}
  50%{opacity:.42}
}

/* Feature tuner */
.feature-tuner{
  display:grid;
  grid-template-columns:minmax(220px,.36fr) 30px minmax(0,1fr);
  align-items:stretch;
}
.channel-list{
  display:grid;
  gap:4px;
}
.channel-button{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:56px;
  padding:12px 16px;
  border:0;
  border-radius:var(--radius-sm);
  background:transparent;
  color:var(--color-muted);
  text-align:left;
}
.channel-button::before{
  content:"";
  width:4px;
  align-self:stretch;
  flex:0 0 auto;
  border-radius:var(--radius-pill);
  background:transparent;
}
.channel-button[aria-selected="true"]{
  background:var(--color-surface-strong);
  color:var(--color-text);
  font-weight:800;
}
.channel-button[aria-selected="true"]::before{background:var(--color-text)}
.channel-code{font-family:var(--font-mono);font-size:11px}
.tuner-wire{
  align-self:center;
  border-top:1px dashed var(--color-muted);
}
.channel-panel{
  min-height:340px;
  padding:34px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-card);
  background:var(--color-surface);
  box-shadow:var(--shadow-card);
}

/* Preview-only layouts */
.preview-shell{padding-bottom:80px}
.preview-section{
  padding-top:74px;
  padding-bottom:74px;
  border-top:1px solid var(--color-border);
}
.preview-heading{margin-bottom:30px}
.preview-heading h2{font-size:38px}
.swatch-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.swatch{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  background:var(--color-surface);
}
.swatch-color{height:86px;border-bottom:1px solid var(--color-border)}
.swatch-page{background:var(--color-page)}
.swatch-surface{background:var(--color-surface)}
.swatch-surface-strong{background:var(--color-surface-strong)}
.swatch-border{background:var(--color-border)}
.swatch-accent{background:var(--color-accent)}
.swatch-accent-dark{background:var(--color-accent-dark)}
.swatch-text{background:var(--color-text)}
.swatch-muted{background:var(--color-muted)}
.swatch-success{background:var(--color-success)}
.swatch-warning{background:var(--color-warning)}
.swatch-error{background:var(--color-error)}
.swatch-label{padding:12px;font-family:var(--font-mono);font-size:11px}
.type-samples{
  display:grid;
  gap:18px;
}
.type-sample{
  padding:24px;
  border-bottom:1px dashed var(--color-border);
}
.type-display{font-family:var(--font-display);font-size:60px;font-weight:900;line-height:1.08}
.type-title{font-family:var(--font-display);font-size:38px;font-weight:900}
.type-body{color:var(--color-muted);font-size:17px}
.type-mono{font-family:var(--font-mono);font-size:13px;letter-spacing:.08em}
.preview-button-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.preview-static-head .desktop-nav{margin-left:8px}
.preview-table-note{margin-top:10px;color:var(--color-muted);font-size:12px}
.preview-footer{margin-top:0}
.preview-footer .site-footer{margin-top:0}

/* Flag paint */
.flag-white{fill:var(--color-white)}
.flag-red{fill:var(--color-flag-red)}
.flag-blue{fill:var(--color-flag-blue)}

@media (max-width:1050px){
  .hero-bento-grid{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "main main"
      "visual visual"
      "refund facts";
  }
  .platform-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
  .pricing-grid{grid-template-columns:1fr}
  .platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-main{padding:27px 24px}
  .hero-key{font-size:40px;line-height:1.08}
  .hero-line{font-size:24px}
  .hero-cell:hover{transform:none}
  .feature-tuner{grid-template-columns:1fr}
  .tuner-wire{display:none}
  .channel-list{margin-bottom:14px}
  .channel-panel{min-height:0}
  .article-promo{grid-template-columns:1fr}
  .swatch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .type-display{font-size:40px}
}
@media (max-width:640px){
  .tab-list{
    width:100%;
    flex-wrap:nowrap;
    overflow-x:auto;
    border-radius:var(--radius-md);
  }
  .hero-bento-grid{
    grid-template-columns:1fr;
    grid-template-areas:"main" "visual" "refund" "facts";
  }
  .hero-main .button-row .btn{width:100%}
  .relay-cap{font-size:9px}
  .relay-cap strong{font-size:10px}
  .station-row{
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom:4px;
  }
  .station-pill{flex:0 0 auto}
  .hero-visual{padding-inline:16px}
  .platform-grid,
  .article-grid{grid-template-columns:1fr}
  .toc-tabs{top:8px;border-radius:var(--radius-md)}
  .float-cta{
    right:16px;
    bottom:calc(16px + env(safe-area-inset-bottom,0px));
  }
}
@media (prefers-reduced-motion:reduce){
  .relay-signal,
  .relay-arc-inner,
  .relay-arc-current,
  .relay-arc-outer{animation:none!important}
  .hero-cell,
  .float-cta{transition:none!important}
}