/* Header actions: theme switch next to the cabinet button. */
.header-actions{display:flex;align-items:center;gap:10px;flex:none}
.theme-toggle{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #181818;background:transparent;color:#181818;cursor:pointer;transition:background .15s steps(2,end),color .15s steps(2,end)}
.theme-toggle:hover,.theme-toggle:focus-visible{background:#181818;color:#f2f2ef}
.theme-toggle svg{width:20px;height:20px;fill:currentColor;animation:theme-pop .32s steps(4,end)}
/* The language switch is the theme toggle's twin: same square frame, a pixel label instead of the icon. */
.lang-toggle{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #181818;background:transparent;color:#181818;font:10px/1 Pixel,monospace;cursor:pointer;transition:background .15s steps(2,end),color .15s steps(2,end)}
.lang-toggle:hover,.lang-toggle:focus-visible{background:#181818;color:#f2f2ef}
html[data-theme=dark] .lang-toggle{border-color:#ececec;color:#ececec}
html[data-theme=dark] .lang-toggle:hover,html[data-theme=dark] .lang-toggle:focus-visible{background:#ececec;color:#121212}
@media(max-width:480px){.lang-toggle{width:38px;height:38px;font-size:9px}}
@keyframes theme-pop{from{transform:rotate(-90deg) scale(.3);opacity:0}}
@media(max-width:480px){.header-actions{gap:6px}.theme-toggle{width:38px;height:38px}.theme-toggle svg{width:17px;height:17px}}

/* Live counter: the dot blinks, the number flashes on change. */
.hero-screen .live-dot{animation:live-blink 1.6s steps(2,jump-none) infinite}
@keyframes live-blink{50%{opacity:.25}}
#online-count{display:inline-block;min-width:2ch}
#online-count.is-bump-a{animation:live-bump-a .6s steps(4,end)}
#online-count.is-bump-b{animation:live-bump-b .6s steps(4,end)}
@keyframes live-bump-a{30%{color:#e76791;transform:translateY(-4px)}}
@keyframes live-bump-b{30%{color:#e76791;transform:translateY(-4px)}}

/* Countries: real flag images with visible names. */
.geo-flags{display:flex;flex-wrap:wrap;justify-content:center;gap:24px 22px;max-width:780px;margin:30px auto 0;padding:10px 0}
.geo-flags li{width:92px;display:flex;flex-direction:column;align-items:center;gap:10px}
.geo-flag-img{display:block;width:64px;height:48px;object-fit:cover;border:2px solid #171717;box-shadow:3px 3px 0 #9a9a9a;background:#fff;transition:transform .18s steps(3,end),box-shadow .18s steps(3,end)}
.geo-flags li:hover .geo-flag-img{transform:translateY(-3px);box-shadow:3px 6px 0 #777}
.geo-flag-label{font:8px/1.5 Pixel,monospace;color:#171717;text-align:center}
.geo-flags small{margin-top:-6px;color:#626262;font:6px/1.5 Pixel,monospace}
@media(max-width:520px){.geo-flags{gap:18px 8px}.geo-flags li{width:76px}.geo-flag-img{width:54px;height:40px}.geo-flag-label{font-size:7px}}
@media(prefers-reduced-motion:reduce){.geo-flag-img,#online-count,.theme-toggle svg,.hero-screen .live-dot{animation:none;transition:none}}

/* Pricing: plan and device switches, then one card per term. */
.pricing-state{margin:44px 0 0;color:var(--muted);font:10px/1.8 Pixel,monospace}
.pricing-controls{display:flex;flex-wrap:wrap;gap:28px 56px;margin-top:46px}
.pricing-field{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;flex:0 1 auto}
.pricing-field:first-child{flex:1 1 360px;max-width:520px}
.pricing-label{color:var(--muted);font:9px/1.5 Pixel,monospace}
.pricing-tabs{display:inline-flex;flex-wrap:wrap;border:2px solid var(--navy);background:var(--paper);box-shadow:4px 4px 0 var(--navy)}
.pricing-tabs button{min-height:46px;min-width:46px;padding:0 18px;border:0;border-right:2px solid var(--navy);background:transparent;color:var(--navy);font:10px/1 Pixel,monospace;cursor:pointer}
.pricing-tabs button:last-child{border-right:0}
.pricing-tabs button:hover{background:var(--pale)}
.pricing-tabs button[aria-selected=true],.pricing-tabs button[aria-checked=true]{background:var(--navy);color:var(--cream)}
.pricing-devices button{padding:0 14px}
.pricing-hint{max-width:460px;margin:2px 0 0;color:var(--muted);font:8px/1.9 Pixel,monospace}
.plans{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding-top:190px}
.plan{min-height:330px;padding:24px 22px 0}
.plan-top{align-items:center;min-height:22px}
.plan h3{margin:44px 0 14px}
.plan-discount{padding:4px 6px 3px;background:var(--navy);color:var(--cream)}
.plan>p.plan-total{margin:16px 0 0}
.plan>p.plan-saving{margin:6px 0 22px;color:#c7336c}
.plan-buy{margin:auto -22px 0;min-height:54px;border:0;border-top:2px solid var(--navy);background:transparent;color:inherit;font:10px/1 Pixel,monospace;cursor:pointer;transition:background .15s steps(2,end),color .15s steps(2,end)}
.plan-buy:hover,.plan-buy:focus-visible{background:var(--navy);color:var(--cream)}
.plan-best .plan-discount{background:#fff;color:#181818}
.plan-best>p.plan-saving{color:#ff9cc0}
.plan-best .plan-buy{border-color:#777}
.plan-best .plan-buy:hover,.plan-best .plan-buy:focus-visible{background:#fff;color:#181818}
.price-note{max-width:760px;line-height:1.9}
@media(max-width:1100px){.plans{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:180px}.plan-best{order:-1}}
@media(max-width:760px){.pricing-controls{margin-top:34px;gap:24px}.pricing-field:first-child{flex-basis:100%}.plans{padding-top:175px}.plan-best{margin-top:0}.plan h3{margin-top:34px}}
@media(max-width:560px){.plans{grid-template-columns:1fr}.plan{min-height:0}.pricing-tabs button{padding:0 13px;font-size:9px}.pricing-devices button{padding:0 10px}}

/* Dark theme for the landing (toggle in the header, defaults to the system setting). */
html[data-theme=dark]{color-scheme:dark;background:#121212;--cream:#121212;--paper:#1a1a1a;--navy:#ececec;--blue:#cfcfcf;--pale:#262626;--pink:#9a9a9a;--line:#3a3a3a;--muted:#a3a3a3}
html[data-theme=dark] .site-header{background:#121212;border-bottom-color:#2e2e2e}
html[data-theme=dark] .site-header .brand-mark img{filter:brightness(0) invert(1)}
html[data-theme=dark] .account-button{background:#ececec;border-color:#ececec;color:#121212}
html[data-theme=dark] .account-button:hover,html[data-theme=dark] .account-button:focus-visible{background:transparent;color:#ececec}
html[data-theme=dark] .theme-toggle{border-color:#ececec;color:#ececec}
html[data-theme=dark] .theme-toggle:hover,html[data-theme=dark] .theme-toggle:focus-visible{background:#ececec;color:#121212}
html[data-theme=dark] .hero h1 span,html[data-theme=dark] .hero h1 .internet-word{color:#8c8c8c}
html[data-theme=dark] .primary-button{color:#121212}
html[data-theme=dark] .hero-screen .live-band{background:linear-gradient(100deg,#1b1b1b 0%,#252525 50%,#1c1c1c 100%);border-top-color:#2e2e2e;color:#ececec}
html[data-theme=dark] .hero-screen .live-count{color:#ececec}
html[data-theme=dark] .hero-screen .live-count .live-label{color:#b5b5b5}
html[data-theme=dark] .benefits-section{border-block-color:#2a2a2a}
html[data-theme=dark] .geo-section{background:#181818;color:#ececec;border-block-color:#2a2a2a}
html[data-theme=dark] .geo-dot-map{filter:invert(1);opacity:.3}
html[data-theme=dark] .geo-copy h2,html[data-theme=dark] .geo-flag-label{color:#ececec}
html[data-theme=dark] .geo-copy>p{color:#ababab}
html[data-theme=dark] .geo-note,html[data-theme=dark] .geo-flags small{color:#8c8c8c}
html[data-theme=dark] .geo-flag-img{border-color:#ececec;box-shadow:3px 3px 0 #000}
html[data-theme=dark] .geo-flags li:hover .geo-flag-img{box-shadow:3px 6px 0 #000}
html[data-theme=dark] .plan>p.plan-saving{color:#ff8db5}
html[data-theme=dark] .plan-best{background:#ececec;color:#121212;box-shadow:8px 8px 0 #000}
html[data-theme=dark] .plan-best .plan-top,html[data-theme=dark] .plan-best .plan-price span,html[data-theme=dark] .plan-best>p{color:#4a4a4a}
html[data-theme=dark] .plan-best .plan-discount{background:#121212;color:#ececec}
html[data-theme=dark] .plan-best>p.plan-saving{color:#c7336c}
html[data-theme=dark] .plan-best .plan-buy{border-color:#bdbdbd}
html[data-theme=dark] .plan-best .plan-buy:hover,html[data-theme=dark] .plan-best .plan-buy:focus-visible{background:#121212;color:#ececec}
html[data-theme=dark] .devices-section{background:#161616;color:#ececec}
html[data-theme=dark] .devices-head p{color:#ababab}
html[data-theme=dark] .devices-head p strong{color:#ececec}
/* Monochrome Apple logos would vanish on the dark background. */
html[data-theme=dark] .device-logo-grid img:is([src$="/ios.png"],[src$="/apple-tv.png"],[src$="/macos.png"]){filter:invert(1)}
html[data-theme=dark] .faq-section{border-block-color:#2e2e2e}
html[data-theme=dark] .faq-list,html[data-theme=dark] .faq-list details{border-color:#333}
html[data-theme=dark] .footer{background:#0b0b0b;color:#ececec;border-top:1px solid #222}

/* Hero mascot: idle breathing; butterflies drift and flap, sparkles twinkle (pixel-style stepped motion). */
.hero-screen .hero-art .hero-reach{aspect-ratio:2/3}
.hero-screen .hero-art .hero-reach img{position:absolute;inset:auto;bottom:auto;left:0;top:0;display:block;width:100%;height:auto;max-width:none;object-fit:fill;image-rendering:pixelated;filter:none}
.hero-screen .hero-art .hero-reach .hero-reach-body{height:100%;transform-origin:50% 100%;animation:hero-breathe 2.8s steps(1,end) infinite}
.hero-sprite{position:absolute;display:block;z-index:2}
.hero-screen .hero-art .hero-reach .hero-sprite img{position:static}
.hero-butterfly{animation:hero-drift calc(4.6s + var(--i) * .7s) ease-in-out calc(var(--i) * -1.3s) infinite}
.hero-butterfly img{transform-origin:50% 55%;animation:hero-flap calc(.34s + var(--i) * .05s) steps(1,end) calc(var(--i) * -.11s) infinite}
.hero-sparkle img{animation:hero-twinkle 1.9s steps(3,end) calc(var(--i) * -.37s) infinite}
@keyframes hero-breathe{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.012)}}
@keyframes hero-flap{0%,100%{transform:scaleX(1)}50%{transform:scaleX(.42)}}
@keyframes hero-drift{0%,100%{transform:translate(0,0)}25%{transform:translate(9%,-13%)}50%{transform:translate(-4%,-21%)}75%{transform:translate(-11%,-8%)}}
@keyframes hero-twinkle{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.2;transform:scale(.55)}}
@media(prefers-reduced-motion:reduce){.hero-screen .hero-art .hero-reach .hero-reach-body,.hero-butterfly,.hero-butterfly img,.hero-sparkle img{animation:none}}

/* Footer: brand | year | to the top in white; below, the brand footnote and the documents in grey. */
.footer-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;min-height:104px;font-size:9px}
.footer-top .footer-up{justify-self:end}
.footer-bottom{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;padding:22px 0 28px;border-top:1px solid #2a2a2a}
.footer-note{max-width:620px;margin:0;color:#9a9a9a;font:7px/1.9 Pixel,monospace}
.footer-docs{display:grid;justify-items:end;gap:10px;flex:none}
.footer-docs a{color:#9a9a9a;font:7px/1.5 Pixel,monospace;white-space:nowrap}
.footer .footer-docs a:hover{color:#fff}
html[data-theme=dark] .footer-note,html[data-theme=dark] .footer-docs a{color:#7a7a7a}
html[data-theme=dark] .footer .footer-docs a:hover{color:#ececec}
@media(max-width:760px){.footer-top{grid-template-columns:1fr auto;min-height:0;padding:28px 0 22px;row-gap:14px}.footer-top .footer-copy{grid-row:2;grid-column:1/-1;color:#9a9a9a;font-size:7px}.footer-top .footer-up{grid-row:1;grid-column:2}.footer-bottom{flex-direction:column-reverse;gap:22px;padding:20px 0 26px}.footer-docs{justify-items:start;gap:14px}.footer-docs a{font-size:8px}}

/* Free trial: an outlined twin of the hero button, and a link in the note under the tariffs. */
.hero-actions{display:flex;flex-wrap:wrap;column-gap:14px}
.hero-trial-button{border:2px solid var(--navy);background:transparent;color:var(--navy);cursor:pointer;font-family:inherit}
.hero-trial-button:hover{background:var(--navy);color:#fff}
html[data-theme=dark] .hero-trial-button{color:var(--navy)}
html[data-theme=dark] .hero-trial-button:hover{color:#121212}
@media(max-width:760px){.hero-actions{flex-wrap:nowrap;column-gap:8px}.hero-actions .primary-button{flex:1 1 0;min-width:0;padding-inline:10px}}
.price-note-trial{padding:0;border:0;background:none;color:var(--navy);font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
