:root {
  color-scheme: dark;
  --paper: #070707;
  --cream: #1e1c22;
  --ink: #f8f4f1;
  --muted: #b8b0bc;
  --line: #372f3b;
  --accent: #ff9b71;
  --orange: #ff8b5d;
  --ease: cubic-bezier(.22, .72, .25, 1);
  font: 400 100% Manrope, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 3; inset: 8px auto auto 8px; background: var(--cream); padding: 8px 16px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 2; }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.brand b { color: var(--accent); }
.brand img { border-radius: 8px; }
nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: .92rem; font-weight: 700; }
nav a { position: relative; transition: color .22s var(--ease); }
nav a::after { content: ""; position: absolute; inset: auto 0 -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
nav a:hover { color: var(--ink); }
nav a:hover::after { transform: scaleX(1); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; text-align: center; transition: background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease), transform .18s var(--ease); }
.button.small { min-height: 42px; padding: 8px 16px; font-size: .9rem; }
.primary { background: var(--orange); color: #24140e; }
.primary:hover { background: #ffac88; }
.outline { background: transparent; border-color: #605568; color: var(--ink); }
.outline:hover { background: var(--cream); border-color: var(--ink); }
.button:active:not(:disabled) { transform: scale(.975); }
.button:disabled { opacity: .55; cursor: wait; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 64px); padding-block: 40px; }
.hero-copy { padding-block: 16px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--accent); font-size: .9rem; font-weight: 800; }
.kicker::before { content: ""; display: block; width: 20px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: .99; letter-spacing: -.06em; }
h1 { font-size: clamp(3.25rem, 6.4vw, 6.6rem); margin-bottom: 24px; font-weight: 800; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2.75rem, 5vw, 4.9rem); margin-bottom: 20px; font-weight: 750; }
h3 { font-size: clamp(1.65rem, 3vw, 2.7rem); margin-bottom: 20px; font-weight: 750; }
.intro, .body-copy { color: var(--muted); max-width: 41ch; }
.intro { font-size: clamp(1rem, 1.45vw, 1.2rem); margin-bottom: 28px; }
.body-copy { margin-bottom: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-art { aspect-ratio: 1.34; border-radius: 24px; overflow: hidden; background: var(--orange); }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.facts { border-block: 1px solid var(--line); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact-grid div { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; padding: 20px 16px 20px 0; }
.fact-grid div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.fact-grid strong { font-size: clamp(1.12rem, 2.35vw, 2rem); font-weight: 800; letter-spacing: -.035em; }
.fact-grid span { color: var(--muted); font-size: .9rem; }
.section { padding-block: clamp(64px, 8vw, 120px); scroll-margin-top: 76px; }
.tariff-layout, .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 104px); align-items: start; }
.tariff-layout { align-items: center; }
.text-link, .guide article a, details p a { color: var(--accent); text-underline-offset: .25em; text-decoration: underline; transition: color .2s var(--ease); }
.text-link:hover, details p a:hover { color: var(--ink); }
.price-card, .guide, .status-card { border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 40px); background: var(--cream); min-width: 0; }
fieldset { padding: 0; margin: 0 0 20px; border: 0; min-inline-size: 0; }
legend { color: var(--muted); font-size: .9rem; font-weight: 700; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; padding: 4px; background: #17151a; border-radius: 10px; }
.choices label { position: relative; }
.choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choices span { display: block; padding: 8px 0; border: 1px solid transparent; border-radius: 7px; text-align: center; color: var(--muted); cursor: pointer; font-size: .88rem; font-weight: 800; transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease); }
.choices label:hover span { color: var(--ink); }
.choices input:checked + span { background: var(--cream); color: var(--accent); border-color: var(--line); }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.amount { margin-bottom: 4px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
.amount strong { font-size: clamp(3.3rem, 6.5vw, 6rem); line-height: 1.02; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.amount span, .subtle, .small-note { color: var(--muted); }
.full { width: 100%; }
.small-note { margin: 12px 0 0; text-align: center; font-size: .87rem; }
.device-zone { background: #19171d; color: var(--ink); border-block: 1px solid var(--line); }
.device-layout { margin-top: 36px; display: grid; grid-template-columns: minmax(160px, .35fr) 1fr; gap: 20px; }
.device-list { display: flex; flex-direction: column; gap: 8px; }
.device-list a { color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-weight: 750; transition: background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease); }
.device-list a:hover { color: var(--ink); border-color: var(--muted); }
.device-list a[aria-current="true"] { color: #251a11; background: var(--accent); border-color: transparent; }
.guide { background: var(--cream); }
.guide .text-link:hover { color: var(--ink); }
.guide article + article { margin-top: 24px; }
.guide ol { list-style: none; counter-reset: step; margin: 0 0 20px; padding: 0; color: var(--muted); }
.guide li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.guide li::before { content: counter(step, decimal-leading-zero); color: var(--accent); font-size: .86rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.guide li > span { min-width: 0; }
.status-card { padding-block: 24px; }
.status-card ul { list-style: none; padding: 0; margin: 0; }
.status-card p { margin: 0; }
.status-card li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.status-card li:first-child { margin-top: 12px; }
.status-card li:last-child { padding-bottom: 0; }
.healthy, .unhealthy { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .9rem; }
.healthy { color: #9bdcb0; }
.unhealthy { color: #ff9e8b; }
.healthy::before, .unhealthy::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; padding: 16px 0; font-weight: 750; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; display: grid; place-content: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--cream); color: var(--accent); font-size: 1.35rem; font-weight: 500; transition: transform .26s var(--ease); }
details[open] > summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 16px; }
footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner nav { flex-wrap: wrap; gap: 12px 20px; }
@media (max-width: 1024px) {
  .wrap { width: calc(100% - 56px); }
  .actions .button { padding-inline: 12px; font-size: .9rem; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .top { position: static; }
  .top-inner { flex-wrap: wrap; min-height: auto; padding-block: 12px; gap: 8px; }
  .top-inner nav { order: 3; width: 100%; justify-content: space-between; min-height: 28px; gap: 8px; }
  .top-inner .brand { font-size: .92rem; }
  .top-inner .button { padding-inline: 12px; }
  .hero, .tariff-layout, .split, .device-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .hero { padding-block: 28px 20px; }
  .hero-copy { padding: 0; }
  .hero-art { aspect-ratio: 1.38; border-radius: 16px; }
  h1 { font-size: clamp(3.55rem, 13vw, 5.35rem); margin-bottom: 16px; }
  .intro { margin-bottom: 20px; }
  .section { scroll-margin-top: 0; padding-block: 52px; }
  .fact-grid div { display: block; padding: 12px 4px 12px 0; }
  .fact-grid div + div { padding-left: 8px; }
  .fact-grid strong, .fact-grid span { display: block; }
  .fact-grid span { font-size: .8rem; }
  .device-layout { margin-top: 24px; }
  .device-list { flex-direction: row; flex-wrap: wrap; }
  .device-list a { padding: 8px 12px; font-size: .9rem; }
  .actions .button { font-size: .87rem; padding-inline: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy > * { animation: rise .65s var(--ease) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .07s; }
  .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4) { animation-delay: .21s; }
  .hero-art { animation: reveal-art .8s var(--ease) backwards; }
  .hero-art img { animation: settle .95s var(--ease) backwards; }
  @media (hover: hover) and (pointer: fine) {
    .hero-art img { transition: scale .48s var(--ease); }
    .hero-art:hover img { scale: 1.035; }
  }
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal-ready [data-reveal].in-view, .reveal-ready [data-reveal]:focus-within { opacity: 1; transform: none; }
  .guide article.is-current, details[open] > p, .status-card li { animation: rise .38s var(--ease) backwards; }
  .guide article.is-current li { animation: rise .36s var(--ease) backwards; }
  .guide article.is-current li:nth-child(2), .status-card li:nth-child(2) { animation-delay: 55ms; }
  .guide article.is-current li:nth-child(3), .status-card li:nth-child(3) { animation-delay: 110ms; }
  .status-card li:nth-child(4) { animation-delay: 165ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes reveal-art { from { clip-path: inset(8% 4% 8% 4% round 24px); opacity: 0; } to { clip-path: inset(0 round 24px); opacity: 1; } }
  @keyframes settle { from { transform: scale(1.065); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
.hero { padding-block: clamp(44px, 7vw, 96px) 48px; }
.hero h1 { line-height: .98; text-wrap: balance; }
.hero-art { position: relative; border: 1px solid #f08a58; border-radius: 22px; aspect-ratio: 1.42; box-shadow: 0 16px 48px #09070b; }
.facts { background: #17151a; }
.features { padding-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 18px; overflow: hidden; }
.feature-grid article { background: var(--cream); padding: clamp(20px, 3vw, 32px); min-width: 0; transition: background .25s var(--ease); }
.feature-grid article:hover { background: #28232c; }
.feature-grid article small { display: block; font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.feature-grid h3 { font-size: clamp(1.55rem, 2.7vw, 2.4rem); margin-bottom: 12px; }
.feature-grid p { margin-bottom: 12px; color: var(--muted); }
.feature-grid p:last-child { margin-bottom: 0; }
.section-head { margin-bottom: 28px; }
.faq .button { margin-top: 6px; }
.interior { padding-block: clamp(40px, 7vw, 92px); min-height: 74vh; }
.interior-head { max-width: 800px; }
.interior-head h1 { font-size: clamp(2.65rem, 7vw, 6rem); }
.interior-head .intro { max-width: 54ch; margin-bottom: 32px; }
.network-banner, .location, .help-panel { border: 1px solid var(--line); background: var(--cream); border-radius: 16px; }
.network-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; }
.network-state { color: var(--signal); font-size: clamp(1rem, 2.5vw, 1.4rem); font-weight: 800; display: flex; gap: 10px; align-items: center; }
.network-state::before { content: ""; flex: 0 0 9px; height: 9px; border-radius: 50%; background: currentColor; }
[data-state="online"] { --signal: #a0d8b4; --bar: #547f65; }
[data-state="degraded"], [data-state="stale"] { --signal: #ffc389; --bar: #a76d44; }
[data-state="offline"] { --signal: #ffa390; --bar: #ac5752; }
[data-state="unknown"] { --signal: #c0b6c2; --bar: #49414f; }
.locations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.location { padding: 24px; }
.location-header { display: flex; justify-content: space-between; align-items: start; gap: 10px; flex-wrap: wrap; }
.location-header h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: 8px; letter-spacing: -.035em; }
.location-signal { color: var(--signal); font-weight: 700; font-size: .9rem; }
.location-metrics { margin: 8px 0 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.location-metrics div { display: grid; gap: 2px; }
.location-metrics dt { color: var(--muted); font-size: .9rem; }
.location-metrics dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.timeline { display: grid; grid-template-columns: repeat(24,minmax(0,1fr)); gap: 3px; }
.timeline span { min-width: 0; height: 26px; border-radius: 3px; background: var(--bar); }
.timeline span:hover { outline: 1px solid var(--signal); }
.timeline-range { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.status-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 12px; }
.status-legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.status-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--bar); }
.status-footnote { max-width: 78ch; font-size: .9rem; }
.help-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.help-panel { padding: clamp(20px, 4vw, 36px); }
.help-grid h2 { font-size: clamp(1.6rem, 3vw, 2.55rem); }
@media (max-width: 920px) {
  .top-inner { flex-wrap: wrap; padding-block: 12px; gap: 8px; }
  .top-inner nav { order: 3; width: 100%; min-height: 30px; gap: 8px 18px; flex-wrap: wrap; }
  .section { scroll-margin-top: 108px; }
}
@media (max-width: 740px) {
  .hero { padding-block: 28px 20px; }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 4.4rem); }
  .top-inner nav { justify-content: flex-start; gap: 8px 15px; }
  .section { scroll-margin-top: 0; }
  .feature-grid, .locations, .help-grid { grid-template-columns: 1fr; }
  .network-banner, .location { padding: 16px; }
  .status-legend { gap: 8px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .interior-head, .help-panel, .network-banner { animation: rise .55s var(--ease) backwards; }
  .help-panel, .network-banner { animation-delay: .09s; }
  .location { animation: rise .5s var(--ease) backwards; }
  .location:nth-child(2) { animation-delay: .055s; }
  .location:nth-child(3) { animation-delay: .11s; }
  .location:nth-child(4) { animation-delay: .165s; }
  .location .timeline { animation: spread .6s var(--ease) backwards; transform-origin: left; }
  @keyframes spread { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
}
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) and (pointer: fine) {
    .hero-art img { translate: var(--shift-x, 0px) var(--shift-y, 0px); transition: scale .45s var(--ease), translate .34s var(--ease); }
    .hero-art:hover img { scale: 1.06; }
  }
  @supports (animation-timeline: scroll()) {
    .home .top::after {
      position: absolute; content: ""; inset: auto 0 -1px; height: 1px;
      background: var(--orange); transform-origin: left; pointer-events: none;
      animation: reading-progress linear both; animation-timeline: scroll(root block);
    }
    @keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

.hero-art.original-mascot {
  aspect-ratio: 4 / 3;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-art.original-mascot img {
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent),
              linear-gradient(to bottom, transparent, #000 8%, #000 86%, transparent);
  mask-composite: intersect;
}
