/* Colour tokens. Tailwind's white/gray/brand/red/amber/emerald classes read these
   (see the config in base.html), so every page follows the theme without dark: variants.
   The dark set is the light scale turned around: gray-50 is the page, gray-900 the text. */
:root {
  --white: 255 255 255;
  --gray-50: 248 250 249; --gray-100: 241 244 243; --gray-200: 227 232 230; --gray-300: 206 213 211;
  --gray-400: 152 162 159; --gray-500: 103 114 111; --gray-600: 73 84 81; --gray-700: 52 62 60;
  --gray-800: 30 38 37; --gray-900: 15 22 21; --gray-950: 6 10 10;
  --brand-50: 236 253 245; --brand-100: 209 250 229; --brand-200: 167 243 208; --brand-300: 110 231 183;
  --brand-400: 52 211 153; --brand-500: 16 185 129; --brand-600: 5 150 105; --brand-700: 4 120 87;
  --brand-800: 6 95 70; --brand-900: 6 78 59;
  --red-50: 254 242 242; --red-100: 254 226 226; --red-200: 254 202 202; --red-400: 248 113 113;
  --red-500: 239 68 68; --red-600: 220 38 38; --red-700: 185 28 28; --red-800: 153 27 27;
  --amber-50: 255 251 235; --amber-100: 254 243 199; --amber-200: 253 230 138; --amber-400: 251 191 36;
  --amber-500: 245 158 11; --amber-700: 180 83 9; --amber-800: 146 64 14; --amber-900: 120 53 15;
  --on-brand: 255 255 255;
  --shadow: 15 22 21;
  color-scheme: light;
}
:root[data-theme="dark"] {
  /* Surfaces step up in brightness: page (gray-50) < card (white) < raised (gray-100),
     with borders (gray-200) bright enough to draw an edge on both. */
  --white: 25 32 34;
  --gray-50: 10 13 14; --gray-100: 33 42 44; --gray-200: 50 62 64; --gray-300: 66 78 80;
  --gray-400: 110 121 122; --gray-500: 146 156 156; --gray-600: 176 185 184; --gray-700: 206 213 212;
  --gray-800: 226 231 230; --gray-900: 242 246 245; --gray-950: 250 252 251;
  --brand-50: 9 38 30; --brand-100: 12 54 42; --brand-200: 18 84 64; --brand-300: 27 122 90;
  --brand-400: 52 211 153; --brand-500: 25 196 138; --brand-600: 45 212 155; --brand-700: 110 231 183;
  --brand-800: 167 243 208; --brand-900: 209 250 229;
  --red-50: 46 17 19; --red-100: 64 21 23; --red-200: 98 30 32; --red-400: 248 113 113;
  --red-500: 239 68 68; --red-600: 248 113 113; --red-700: 252 165 165; --red-800: 254 202 202;
  --amber-50: 43 31 8; --amber-100: 61 43 10; --amber-200: 94 66 14; --amber-400: 251 191 36;
  --amber-500: 245 158 11; --amber-700: 252 211 77; --amber-800: 253 230 138; --amber-900: 254 243 199;
  --on-brand: 4 28 20;
  --shadow: 0 0 0;
  color-scheme: dark;
}
html { background: rgb(var(--gray-50)); }
body { background: rgb(var(--gray-50)); color: rgb(var(--gray-900)); }

[x-cloak] { display: none !important; }
.font-display { font-family: "Geist", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.035em; }
.text-balance { text-wrap: balance; }
.nav-link { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: .5rem; color: rgb(var(--gray-600)); font-weight: 500; }
.nav-link:hover { background: rgb(var(--gray-100)); color: rgb(var(--gray-900)); }
.nav-active { background: rgb(var(--gray-100)); color: rgb(var(--gray-900)); }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); font-weight: 600; padding: .5rem 1rem; border-radius: .6rem; font-size: .875rem; transition: background .15s, transform .15s; }
.btn-primary:hover { background: rgb(var(--brand-700)); }
:root[data-theme="dark"] .btn-primary:hover { background: rgb(var(--brand-500)); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: rgb(var(--white)); color: rgb(var(--gray-700)); border: 1px solid rgb(var(--gray-300)); font-weight: 500; padding: .5rem .9rem; border-radius: .6rem; font-size: .875rem; }
.btn-secondary:hover { background: rgb(var(--gray-100)); }
.btn-ghost { display: inline-flex; align-items: center; gap: .4rem; color: rgb(var(--gray-700)); font-weight: 500; padding: .5rem .8rem; border-radius: .6rem; font-size: .875rem; }
.btn-ghost:hover { background: rgb(var(--gray-100)); }
.btn-danger { display: inline-flex; align-items: center; gap: .4rem; color: rgb(var(--red-600)); border: 1px solid rgb(var(--red-200)); background: rgb(var(--white)); font-weight: 500; padding: .45rem .8rem; border-radius: .6rem; font-size: .875rem; }
.btn-danger:hover { background: rgb(var(--red-50)); }
.btn-lg { font-size: 1rem; padding: .8rem 1.4rem; border-radius: .75rem; }
.card { background: rgb(var(--white)); border: 1px solid rgb(var(--gray-200)); border-radius: .9rem; }
.input { width: 100%; border: 1px solid rgb(var(--gray-300)); border-radius: .5rem; padding: .55rem .8rem; font-size: .9rem; background: rgb(var(--white)); color: rgb(var(--gray-900)); }
.input:focus { outline: 2px solid rgb(var(--brand-500)); outline-offset: -1px; border-color: rgb(var(--brand-500)); }
select.input option, select option { background: rgb(var(--white)); color: rgb(var(--gray-900)); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-green { background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); border: 1px solid rgb(var(--brand-200)); }
.badge-red { background: rgb(var(--red-50)); color: rgb(var(--red-700)); border: 1px solid rgb(var(--red-200)); }
.badge-gray { background: rgb(var(--gray-100)); color: rgb(var(--gray-600)); border: 1px solid rgb(var(--gray-200)); }
.badge-amber { background: rgb(var(--amber-50)); color: rgb(var(--amber-700)); border: 1px solid rgb(var(--amber-200)); }
.dot { width: .5rem; height: .5rem; border-radius: 9999px; display: inline-block; }
.th { text-align: left; font-size: .75rem; font-weight: 600; color: rgb(var(--gray-700)); padding: .6rem 1rem; }
.td { padding: .8rem 1rem; font-size: .875rem; color: rgb(var(--gray-700)); vertical-align: middle; }
.mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-box { display: flex; align-items: center; gap: .5rem; background: rgb(var(--gray-50)); border: 1px solid rgb(var(--gray-200)); border-radius: .5rem; padding: .4rem .6rem; font-size: .8rem; }
.copy-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.step-num { width: 1.4rem; height: 1.4rem; border-radius: 9999px; background: rgb(var(--brand-100)); color: rgb(var(--brand-700)); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.toast { position: fixed; right: 1rem; bottom: 1rem; background: rgb(var(--gray-900)); color: rgb(var(--gray-50)); padding: .6rem 1rem; border-radius: .5rem; font-size: .85rem; z-index: 60; }
:focus-visible { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; }

/* Theme switch: shows the moon in light mode and the sun in dark mode. */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; color: rgb(var(--gray-600)); border: 1px solid rgb(var(--gray-200)); background: rgb(var(--white)); }
.theme-btn:hover { color: rgb(var(--gray-900)); background: rgb(var(--gray-100)); }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }

/* ---------------- public pages ---------------- */
.eyebrow { font: 600 .75rem/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--brand-600)); }
.section-title { font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.035em; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; text-wrap: balance; }
.hero-bg { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgb(var(--gray-200) / .55) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--gray-200) / .55) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero-title { font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; font-size: clamp(2.6rem, 6.6vw, 4.9rem); text-wrap: balance; }
.hero-title .accent { background: linear-gradient(100deg, rgb(var(--brand-600)), rgb(var(--brand-400))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glass { background: rgb(var(--white) / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgb(var(--gray-200)); border-radius: 1.1rem; box-shadow: 0 30px 60px -20px rgb(var(--shadow) / .25), 0 10px 20px -10px rgb(var(--shadow) / .12); }
.signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.signal i { width: 3px; border-radius: 1px; background: rgb(var(--brand-500)); }
.signal i:nth-child(1) { height: 5px } .signal i:nth-child(2) { height: 8px } .signal i:nth-child(3) { height: 11px } .signal i:nth-child(4) { height: 14px }
.ip-flash { animation: ipflash .7s ease; }
@keyframes ipflash { 0% { background: rgb(var(--brand-200)); } 100% { background: transparent; } }
.pulse-dot { position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 9999px; border: 2px solid rgb(var(--brand-500)); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
.feature-icon { width: 2.6rem; height: 2.6rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); border: 1px solid rgb(var(--brand-200)); }
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-plus { transition: transform .2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.plan-pop { border-color: rgb(var(--brand-500)); box-shadow: 0 0 0 4px rgb(var(--brand-100)), 0 30px 60px -30px rgb(var(--brand-600) / .45); }
.cta-band { background: radial-gradient(60rem 30rem at 80% -10%, rgb(var(--brand-400) / .35), transparent), linear-gradient(135deg, rgb(var(--brand-800)), rgb(var(--gray-900))); color: #fff; }
:root[data-theme="dark"] .cta-band { background: radial-gradient(60rem 30rem at 80% -10%, rgb(var(--brand-400) / .25), transparent), linear-gradient(135deg, rgb(var(--brand-50)), rgb(var(--gray-100))); color: rgb(var(--gray-900)); }
.cmp td, .cmp th { padding: .85rem 1rem; border-bottom: 1px solid rgb(var(--gray-200)); text-align: left; }
.cmp th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: rgb(var(--gray-500)); font-weight: 600; }
.cmp .hl { background: rgb(var(--brand-50)); }
@media (prefers-reduced-motion: reduce) { .pulse-dot::after, .ip-flash { animation: none; } }

/* ---------------- blog article body ----------------
   Class names follow the SEO Hub editorial vocabulary (callout-*, cta-box,
   stats-grid, pullquote, article-image) so hub-written posts would render the same. */
.prose { font-size: 1.075rem; line-height: 1.75; color: rgb(var(--gray-700)); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-size: 1.65rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; color: rgb(var(--gray-900)); margin-top: 2.2em; scroll-margin-top: 5rem; text-wrap: balance; }
.prose h3 { font-size: 1.2rem; font-weight: 650; color: rgb(var(--gray-900)); margin-top: 1.8em; scroll-margin-top: 5rem; }
.prose a { color: rgb(var(--brand-600)); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: rgb(var(--gray-900)); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: rgb(var(--brand-500)); }
.prose code { overflow-wrap: anywhere; font-family: "Geist Mono", ui-monospace, monospace; font-size: .88em; background: rgb(var(--gray-100)); border: 1px solid rgb(var(--gray-200)); padding: .1em .35em; border-radius: .35rem; }
.prose pre { background: rgb(var(--gray-900)); color: rgb(var(--gray-100)); padding: 1rem 1.2rem; border-radius: .75rem; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
:root[data-theme="dark"] .prose pre { background: rgb(var(--gray-100)); color: rgb(var(--gray-800)); border: 1px solid rgb(var(--gray-200)); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose .table-wrap { overflow-x: auto; border: 1px solid rgb(var(--gray-200)); border-radius: .8rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose .table-wrap tr:last-child td { border-bottom: 0; }
.prose th, .prose td { border-bottom: 1px solid rgb(var(--gray-200)); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.prose th { color: rgb(var(--gray-900)); font-weight: 650; background: rgb(var(--gray-100)); }
.prose blockquote, .prose .pullquote { border-left: 3px solid rgb(var(--brand-500)); padding-left: 1.1rem; font-size: 1.2rem; color: rgb(var(--gray-900)); font-style: italic; }
.prose aside.callout { border: 1px solid rgb(var(--gray-200)); background: rgb(var(--gray-100)); border-radius: .8rem; padding: 1rem 1.2rem; font-size: 1rem; }
.prose aside.callout > * + * { margin-top: .6em; }
.prose aside.callout > p:first-child strong:first-child { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.prose aside.callout-tip, .prose aside.callout-success { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-200)); }
.prose aside.callout-tip strong:first-child, .prose aside.callout-success strong:first-child { color: rgb(var(--brand-700)); }
.prose aside.callout-warning { background: rgb(var(--amber-50)); border-color: rgb(var(--amber-200)); }
.prose aside.callout-warning strong:first-child { color: rgb(var(--amber-800)); }
.prose aside.callout-danger { background: rgb(var(--red-50)); border-color: rgb(var(--red-200)); }
.prose aside.callout-danger strong:first-child { color: rgb(var(--red-700)); }
.prose .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.prose .stat { border: 1px solid rgb(var(--gray-200)); background: rgb(var(--white)); border-radius: .8rem; padding: .9rem 1rem; }
.prose .stat-value { display: block; font-family: "Geist", ui-sans-serif, sans-serif; font-size: 1.6rem; font-weight: 750; letter-spacing: -0.03em; color: rgb(var(--gray-900)); }
.prose .stat-label { display: block; font-size: .85rem; color: rgb(var(--gray-500)); line-height: 1.4; }
.prose .cta-box { border-radius: 1rem; padding: 1.4rem 1.5rem; background: linear-gradient(135deg, rgb(var(--brand-50)), rgb(var(--white))); border: 1px solid rgb(var(--brand-200)); }
.prose .cta-box > * + * { margin-top: .6em; }
.prose .cta-box p:first-child { font-family: "Geist", ui-sans-serif, sans-serif; font-weight: 700; font-size: 1.2rem; color: rgb(var(--gray-900)); }
.prose a.cta-button { display: inline-flex; text-decoration: none; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); font-weight: 600; padding: .6rem 1.1rem; border-radius: .6rem; font-size: .95rem; }
.prose a.cta-button:hover { background: rgb(var(--brand-700)); }
.prose figure.article-image img { border-radius: .8rem; border: 1px solid rgb(var(--gray-200)); }
.prose figure figcaption { font-size: .85rem; color: rgb(var(--gray-500)); margin-top: .5rem; }
.toc a { display: block; padding: .3rem 0 .3rem .8rem; border-left: 2px solid rgb(var(--gray-200)); color: rgb(var(--gray-500)); font-size: .875rem; line-height: 1.35; }
.toc a:hover { color: rgb(var(--gray-900)); border-color: rgb(var(--gray-400)); }
.toc a.active { color: rgb(var(--brand-700)); border-color: rgb(var(--brand-500)); }
.prose .faq-item h3 { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.prose .faq-item p { margin: .75rem 0 0; }

/* ---------------- layout width ---------------- */
.wrap { width: 100%; max-width: 90rem; margin-inline: auto; padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
@media (min-width: 640px) { .wrap { padding-left: max(1.5rem, env(safe-area-inset-left, 0px)); padding-right: max(1.5rem, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1024px) { .wrap { padding-left: 2.5rem; padding-right: 2.5rem; } }
/* Homepage sections: one vertical rhythm, so every gap between sections matches. */
.section-y { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 1024px) { .section-y { padding-top: 8.5rem; padding-bottom: 8.5rem; } }

/* ---------------- motion ----------------
   Hero pieces fade up once on load (a CSS animation that ends visible).
   Sections below get .reveal; the script at the end of base.html hides them only
   when it can also observe them, so without JS everything is simply visible. */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-up { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.fade-in { animation: fadeIn .5s ease both; }
.d-1 { animation-delay: .08s; } .d-2 { animation-delay: .16s; } .d-3 { animation-delay: .26s; } .d-4 { animation-delay: .36s; } .d-5 { animation-delay: .5s; }
.reveal-armed .reveal { opacity: 0; transform: translateY(24px); }
.reveal-armed .reveal.is-in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
main, .page-in { animation: fadeIn .45s ease both; }
.faq-body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-in, main, .page-in { animation: none; }
  .reveal-armed .reveal { opacity: 1; transform: none; }
}

/* ---------------- illustrations (pure CSS) ---------------- */
.mini { border: 1px solid rgb(var(--gray-200)); background: rgb(var(--gray-50)); border-radius: .9rem; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .8rem; border-bottom: 1px solid rgb(var(--gray-200)); font-size: .8rem; }
.mini-row:last-child { border-bottom: 0; }
.code-dots::before { content: ""; display: inline-block; width: 36px; height: 8px; margin-right: .6rem; vertical-align: middle;
  background: radial-gradient(circle at 4px 4px, #f87171 3.5px, transparent 4px), radial-gradient(circle at 18px 4px, #fbbf24 3.5px, transparent 4px), radial-gradient(circle at 32px 4px, #34d399 3.5px, transparent 4px); }
.phone-shape { width: 7.5rem; height: 13rem; border-radius: 1.4rem; border: 6px solid rgb(var(--gray-800)); background: rgb(var(--white)); position: relative; box-shadow: 0 18px 40px -18px rgb(var(--shadow) / .45); }
:root[data-theme="dark"] .phone-shape { border-color: rgb(var(--gray-300)); }
.phone-shape::before { content: ""; position: absolute; top: 6px; left: 50%; width: 2.2rem; height: .35rem; border-radius: 9999px; transform: translateX(-50%); background: rgb(var(--gray-300)); }
.digit { width: 1.35rem; height: 1.8rem; border-radius: .35rem; display: inline-flex; align-items: center; justify-content: center; font: 600 .85rem "Geist Mono", monospace; border: 1px solid rgb(var(--brand-300)); background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); }
.bar-track { height: .6rem; border-radius: 9999px; background: rgb(var(--gray-200)); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--brand-500)), rgb(var(--brand-400))); }
.avatar { width: 2.1rem; height: 2.1rem; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .75rem; border: 2px solid rgb(var(--white)); color: rgb(var(--on-brand)); }
.seg { display: inline-flex; padding: .25rem; border-radius: .7rem; background: rgb(var(--gray-100)); border: 1px solid rgb(var(--gray-200)); }
.seg span { padding: .35rem .9rem; border-radius: .5rem; font-size: .8rem; font-weight: 600; color: rgb(var(--gray-500)); }
.seg span.on { background: rgb(var(--white)); color: rgb(var(--gray-900)); box-shadow: 0 1px 3px rgb(var(--shadow) / .15); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; border: 1px solid rgb(var(--gray-200)); background: rgb(var(--white)); color: rgb(var(--gray-700)); }
.ring-art { position: absolute; border-radius: 9999px; border: 1px solid rgb(var(--brand-500) / .35); }
.nat-dot { width: .7rem; height: .7rem; border-radius: 9999px; background: rgb(var(--gray-300)); }
.nat-dot.on { background: rgb(var(--brand-500)); box-shadow: 0 0 0 4px rgb(var(--brand-500) / .18); }
.photo { position: relative; overflow: hidden; border-radius: .9rem; background: rgb(var(--gray-200)); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(6 10 10 / .78)), linear-gradient(135deg, rgb(var(--brand-600) / .28), transparent 60%); }
.group:hover .photo img { transform: scale(1.04); }

/* ---------------- footer: always dark, like a page base ----------------
   Redefines the colour tokens inside the footer so its Tailwind classes resolve to dark values in both themes. */
.footer-dark {
  --white: 18 23 24; --gray-50: 9 12 13; --gray-100: 24 30 31; --gray-200: 38 46 47; --gray-300: 58 68 69;
  --gray-400: 110 121 122; --gray-500: 140 150 150; --gray-600: 170 179 178; --gray-700: 200 207 206;
  --gray-800: 225 230 229; --gray-900: 244 247 246;
  --brand-50: 9 38 30; --brand-100: 12 54 42; --brand-200: 18 84 64; --brand-300: 27 122 90; --brand-500: 25 196 138;
  --brand-600: 45 212 155; --brand-700: 110 231 183; --on-brand: 4 28 20;
  background: #070a0b; color: rgb(var(--gray-700)); color-scheme: dark;
}
.footer-dark a.flink { color: rgb(var(--gray-600)); transition: color .15s; }
.footer-dark a.flink:hover { color: rgb(var(--gray-900)); }
.footer-dark .fhead { color: rgb(var(--gray-900)); font-weight: 650; font-size: .95rem; }

/* Logo: show the variant that matches the theme. */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* ---------------- page glow ----------------
   Soft radial blobs and orbit rings behind every public page (templates/_glow.html).
   Radial gradients instead of filter: blur, so scrolling stays cheap. */
:root { --glow-green: 16 185 129; --glow-teal: 20 184 166; --glow-blue: 14 165 233; --glow-a: .26; --orbit-a: .28; }
:root[data-theme="dark"] { --glow-green: 52 211 153; --glow-teal: 45 212 191; --glow-blue: 56 189 248; --glow-a: .24; --orbit-a: .24; }
.page-glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-glow .glow { position: absolute; border-radius: 9999px; animation: glowDrift 26s ease-in-out infinite alternate; }
.page-glow .glow:nth-child(2n) { animation-duration: 32s; animation-direction: alternate-reverse; }
.page-glow .glow:nth-child(3n) { animation-duration: 38s; }
.g-green { background: radial-gradient(closest-side, rgb(var(--glow-green) / var(--glow-a)), rgb(var(--glow-green) / calc(var(--glow-a) * .35)) 45%, transparent); }
.g-teal { background: radial-gradient(closest-side, rgb(var(--glow-teal) / var(--glow-a)), rgb(var(--glow-teal) / calc(var(--glow-a) * .35)) 45%, transparent); }
.g-blue { background: radial-gradient(closest-side, rgb(var(--glow-blue) / calc(var(--glow-a) * .8)), rgb(var(--glow-blue) / calc(var(--glow-a) * .25)) 45%, transparent); }
.page-glow .orbit { position: absolute; border-radius: 9999px; border: 1px solid rgb(var(--glow-green) / var(--orbit-a));
  -webkit-mask-image: linear-gradient(115deg, transparent 10%, #000 45%, #000 60%, transparent 90%); mask-image: linear-gradient(115deg, transparent 10%, #000 45%, #000 60%, transparent 90%); }
.page-glow .orbit-tilt { transform: rotate(-18deg); border-color: rgb(var(--glow-teal) / var(--orbit-a)); }
@keyframes glowDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(3rem, -2.5rem, 0) scale(1.08); } }
/* Sections sit on one continuous canvas: no fills or rules of their own, so the
   glow never stops at a section edge. Spacing and cards carry the structure. */
.band { background: transparent; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .page-glow .glow { animation: none; } }

/* ---------------- dark surfaces: cards, inputs, the phone drawer ---------------- */
:where(:root[data-theme="dark"]) .card { box-shadow: inset 0 1px 0 rgb(255 255 255 / .045), 0 12px 32px -20px rgb(0 0 0 / .9); }
:where(:root[data-theme="dark"]) .input { background: rgb(var(--gray-50)); border-color: rgb(var(--gray-300)); }
:where(:root[data-theme="dark"]) .copy-box { background: rgb(var(--gray-50)); }

/* ---------------- phone drawer: the "vault" look ----------------
   A near-black panel with an emerald aurora at the top; every panel has a hairline
   gradient edge (two backgrounds: fill on padding-box, gradient on border-box). */
.lux-scrim { background: rgb(2 4 5 / .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s ease both; }
.drawer-panel.lux { background: #070a0b; border-left: 1px solid rgb(255 255 255 / .07);
  box-shadow: -40px 0 80px -20px rgb(0 0 0 / .8); animation: luxIn .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes luxIn { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.lux-aurora { position: absolute; inset: 0 0 auto 0; height: 26rem; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 0%, rgb(16 185 129 / .22), transparent 70%), radial-gradient(50% 60% at 10% 0%, rgb(20 184 166 / .12), transparent 70%); }
.lux-head { background: linear-gradient(180deg, rgb(7 10 11 / .86), rgb(7 10 11 / .7)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / .06); }
.lux-device { width: 3rem; height: 3rem; flex: none; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; color: rgb(148 163 160);
  background: linear-gradient(#0e1314, #0e1314) padding-box, linear-gradient(140deg, rgb(255 255 255 / .18), rgb(255 255 255 / .04)) border-box; border: 1px solid transparent; }
.lux-device.is-on { color: #6ee7b7; background: linear-gradient(#0b1a15, #0b1a15) padding-box, linear-gradient(140deg, #34d399, rgb(52 211 153 / .1)) border-box;
  box-shadow: 0 0 24px -4px rgb(52 211 153 / .45); }
.lux-name { font-family: "Geist", ui-sans-serif, sans-serif; font-size: 1.6rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; color: #f4f7f6; }
/* Tags: small squared mono labels (were rounded pills until 2026-11-03) */
.lux-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .55rem; border-radius: .4rem;
  font: 600 .64rem/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase;
  color: rgb(196 205 203); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.lux-pill i { width: .38rem; height: .38rem; border-radius: 9999px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.lux-pill.is-green { color: #6ee7b7; background: rgb(16 185 129 / .09); box-shadow: inset 0 0 0 1px rgb(52 211 153 / .16); }
.lux-pill.is-red { color: #fca5a5; background: rgb(239 68 68 / .09); box-shadow: inset 0 0 0 1px rgb(248 113 113 / .16); }
.lux-pill.is-amber { color: #fcd34d; background: rgb(245 158 11 / .08); box-shadow: inset 0 0 0 1px rgb(251 191 36 / .16); }
.lux-close { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; color: rgb(170 180 178);
  border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .03); transition: all .2s; }
.lux-close:hover { color: #fff; border-color: rgb(255 255 255 / .25); transform: rotate(90deg); }

.lux .stat-tile { position: relative; border-radius: 1.2rem; padding: 1.15rem 1.25rem 1.2rem; min-width: 0; overflow: hidden;
  background: linear-gradient(165deg, #10191a, #0b0f10 70%) padding-box, linear-gradient(150deg, rgb(52 211 153 / .55), rgb(255 255 255 / .06) 45%, rgb(255 255 255 / .03)) border-box;
  border: 1px solid transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 18px 40px -24px rgb(0 0 0 / .9); }
.lux .stat-tile::after { content: ""; position: absolute; width: 7rem; height: 7rem; right: -3rem; top: -3rem; border-radius: 9999px; background: radial-gradient(closest-side, rgb(52 211 153 / .16), transparent); }
.lux .stat-tile-label { font: 600 .64rem/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: rgb(52 211 153 / .85); }
.lux .stat-tile-value { margin-top: .7rem; font-family: "Geist", ui-sans-serif, sans-serif; font-size: 1.4rem; font-weight: 650; letter-spacing: -0.02em; color: #f4f7f6; overflow-wrap: anywhere; line-height: 1.25; }
.lux .stat-tile-value.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 1.25rem; letter-spacing: -0.01em; }
.lux .stat-tile-sub { margin-top: .25rem; font-size: .72rem; color: rgb(140 151 150); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lux .card.lux-panel { position: relative; border-radius: 1.4rem; padding: 1.6rem 1.6rem 1.7rem;
  background: linear-gradient(180deg, #101617, #0b1011) padding-box, linear-gradient(160deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05) 30%, rgb(255 255 255 / .03) 70%, rgb(52 211 153 / .22)) border-box;
  border: 1px solid transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 30px 60px -36px rgb(0 0 0 / .95); }
.lux .card.lux-panel.is-feature { background: radial-gradient(80% 90% at 100% 0%, rgb(16 185 129 / .14), transparent 60%) padding-box, linear-gradient(180deg, #0f1817, #0a0f10) padding-box,
  linear-gradient(150deg, rgb(52 211 153 / .6), rgb(255 255 255 / .06) 40%, rgb(52 211 153 / .2)) border-box; }
.lux-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lux-eyebrow { font: 600 .66rem/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: rgb(52 211 153 / .9); }
.lux-title { margin-top: .5rem; font-family: "Geist", ui-sans-serif, sans-serif; font-size: 1.35rem; font-weight: 650; letter-spacing: -0.025em; color: #f4f7f6; }
.lux-count { margin-left: .4rem; font: 500 .75rem "Geist Mono", monospace; color: rgb(140 151 150); letter-spacing: 0; vertical-align: middle; }
.lux-meta { text-align: right; font-size: .78rem; color: rgb(200 209 207); line-height: 1.5; }
.lux-dim { color: rgb(140 151 150); }
.lux-divider { border-top: 1px solid rgb(255 255 255 / .06); }
.lux-label { display: block; margin-bottom: .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: rgb(190 199 197); }
.lux-label i { font-style: normal; font-weight: 400; letter-spacing: 0; margin-left: .35rem; color: rgb(120 131 130); }

.lux-vault { border-radius: 1.05rem; padding: 1.1rem 1.15rem; background: rgb(0 0 0 / .32); border: 1px solid rgb(255 255 255 / .06); box-shadow: inset 0 1px 0 rgb(255 255 255 / .03); }
.lux-kv { display: inline-flex; align-items: baseline; gap: .55rem; padding: .4rem .75rem; border-radius: .7rem; background: rgb(255 255 255 / .035); border: 1px solid rgb(255 255 255 / .07); }
.lux-kv span { font: 600 .62rem/1 "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: rgb(120 131 130); }
.lux-kv b { font-size: .92rem; font-weight: 600; color: #f4f7f6; }
.lux-rows { border-top: 1px solid rgb(255 255 255 / .06); }
.lux-row { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid rgb(255 255 255 / .06); min-width: 0; }
.lux-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: rgb(220 228 226); }
.lux-row.is-boxed { padding: .55rem .6rem .55rem .9rem; border: 1px solid rgb(255 255 255 / .08); border-radius: .85rem; background: rgb(0 0 0 / .32); }
.lux-row-label { width: 3.6rem; flex: none; font: 600 .6rem/1 "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: rgb(52 211 153 / .75); }
.lux-icon-btn { width: 2rem; height: 2rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: .65rem; color: rgb(150 161 160);
  border: 1px solid transparent; transition: all .18s; }
.lux-icon-btn:hover { color: #6ee7b7; background: rgb(52 211 153 / .1); border-color: rgb(52 211 153 / .3); }
.lux-icon-btn.is-danger:hover { color: #fca5a5; background: rgb(239 68 68 / .1); border-color: rgb(248 113 113 / .3); }

.lux .input { height: 2.9rem; padding: 0 .95rem; border-radius: .85rem; font-size: .9rem; color: #eef3f1;
  background: rgb(0 0 0 / .38); border: 1px solid rgb(255 255 255 / .09); box-shadow: inset 0 1px 2px rgb(0 0 0 / .4); transition: border-color .18s, box-shadow .18s; }
.lux textarea.input { height: auto; padding: .75rem .95rem; line-height: 1.6; }
.lux .input:hover { border-color: rgb(255 255 255 / .16); }
.lux .input:focus { outline: none; border-color: rgb(52 211 153 / .7); box-shadow: 0 0 0 4px rgb(52 211 153 / .14), inset 0 1px 2px rgb(0 0 0 / .4); }
.lux .input:disabled { opacity: .5; cursor: not-allowed; }
.lux select.input { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 1rem; }
.lux select.input option, .lux select.input optgroup { background: #0e1314; color: #eef3f1; }

.lux .btn-primary { height: 2.75rem; padding: 0 1.25rem; border-radius: .9rem; font-weight: 650; letter-spacing: -0.005em; color: #03140d;
  background: linear-gradient(180deg, #4ee4ae, #10b981); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 10px 28px -8px rgb(16 185 129 / .55); transition: transform .18s, box-shadow .18s, filter .18s; }
.lux .btn-primary:hover { background: linear-gradient(180deg, #6ef0c0, #14c58b); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 14px 34px -8px rgb(16 185 129 / .7); }
.lux .btn-primary:disabled { filter: grayscale(.6); opacity: .45; transform: none; }
.lux .btn-secondary { height: 2.75rem; padding: 0 1.1rem; border-radius: .9rem; font-weight: 600; color: #eef3f1;
  background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .14); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); transition: all .18s; }
.lux .btn-secondary:hover { background: rgb(255 255 255 / .08); border-color: rgb(52 211 153 / .5); color: #fff; }
.lux .btn-danger { height: 2.6rem; padding: 0 1rem; border-radius: .9rem; color: #fca5a5; background: transparent; border: 1px solid rgb(248 113 113 / .3); }
.lux .btn-danger:hover { background: rgb(239 68 68 / .1); border-color: rgb(248 113 113 / .6); }

.lux-note { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-radius: 1rem; font-size: .88rem; }
.lux-note.is-green { color: #a7f3d0; background: rgb(16 185 129 / .1); border: 1px solid rgb(52 211 153 / .3); }
.lux-note.is-red { color: #fecaca; background: rgb(239 68 68 / .1); border: 1px solid rgb(248 113 113 / .3); }
.lux-note.is-amber { color: #fde68a; background: rgb(245 158 11 / .08); border: 1px solid rgb(251 191 36 / .3); }

.lux-price { font-family: "Geist", ui-sans-serif, sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; color: #f4f7f6; line-height: 1; }
.lux-price span { margin-left: .3rem; font-size: .85rem; font-weight: 500; letter-spacing: 0; color: rgb(140 151 150); }
.lux-spec { padding: .8rem .5rem; border-radius: .9rem; background: rgb(0 0 0 / .3); border: 1px solid rgb(255 255 255 / .06); }
.lux-spec b { display: block; font-family: "Geist", ui-sans-serif, sans-serif; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; color: #f4f7f6; }
.lux-spec span { font-size: .7rem; color: rgb(140 151 150); }
.lux .text-gray-800 { color: #eef3f1; }
@media (prefers-reduced-motion: reduce) { .drawer-panel.lux, .lux-scrim { animation: none; } .lux-close:hover { transform: none; } }
@media (max-width: 639px) {
  .lux .card.lux-panel { padding: 1.2rem 1.1rem 1.3rem; border-radius: 1.2rem; }
  .lux .stat-tile { padding: 1rem; }
  .lux .stat-tile-value { font-size: 1.15rem; }
  .lux .stat-tile-value.mono { font-size: .92rem; letter-spacing: -0.03em; overflow-wrap: normal; white-space: nowrap; }
  .lux-meta { text-align: left; }
  .lux-name { font-size: 1.35rem; }
  .lux-vault { padding: .95rem; }
}

/* ---------------- homepage "vault" cards: why mobile IPs, comparison ----------------
   Same gradient hairline edge as the phone drawer (fill on padding-box, gradient on border-box). */
.edge-card { position: relative; overflow: hidden; border: 1px solid transparent; border-radius: 1.6rem;
  background: linear-gradient(180deg, #111819, #0b1011) padding-box,
              linear-gradient(160deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05) 35%, rgb(255 255 255 / .03) 70%, rgb(52 211 153 / .28)) border-box;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 40px 80px -50px rgb(0 0 0 / .95); }

.nat-card { padding: 2.2rem; }
.nat-card::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 30% 35%, rgb(16 185 129 / .14), transparent 70%); }
.nat-card > * { position: relative; }
.nat-grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: clamp(.55rem, 1.6vw, 1.05rem); justify-items: center; }
.nat-grid .nat-dot { width: clamp(.5rem, 1.3vw, .8rem); height: clamp(.5rem, 1.3vw, .8rem); background: rgb(255 255 255 / .14); }
.nat-grid .nat-dot.on { background: #34d399; box-shadow: 0 0 0 5px rgb(52 211 153 / .18), 0 0 22px rgb(52 211 153 / .7); }
.nat-ip { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; color: #f4f7f6; line-height: 1; }
.nat-count { font-family: "Geist", ui-sans-serif, sans-serif; font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 750; letter-spacing: -0.04em; color: #f4f7f6; line-height: 1; }
.nat-count span { font-size: .45em; font-weight: 500; letter-spacing: 0; color: rgb(140 151 150); }
.point-card { padding: 1.6rem 1.7rem; }

.cmp-lux { width: 100%; min-width: 50rem; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.cmp-lux th, .cmp-lux td { padding: 1.15rem 1.4rem; text-align: left; vertical-align: middle; }
.cmp-lux thead th { padding-top: 1.6rem; padding-bottom: 1.3rem; }
.cmp-lux tbody td { border-top: 1px solid rgb(255 255 255 / .06); }
.cmp-lux tbody tr:hover td:not(.hl) { background: rgb(255 255 255 / .02); }
.cmp-col { display: block; font-family: "Geist", ui-sans-serif, sans-serif; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; color: #eef3f1; }
.cmp-sub { display: block; margin-top: .2rem; font-size: .8rem; color: rgb(130 141 140); font-weight: 400; }
.cmp-label { font: 600 .68rem/1.3 "Geist Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: rgb(140 151 150); }
.cmp-cell { display: inline-flex; align-items: center; gap: .65rem; color: rgb(205 213 211); }
.cmp-dot { width: .5rem; height: .5rem; border-radius: 9999px; flex: none; }
.cmp-dot.is-bad { background: #f87171; box-shadow: 0 0 10px rgb(248 113 113 / .5); }
.cmp-dot.is-mid { background: #fbbf24; box-shadow: 0 0 10px rgb(251 191 36 / .45); }
.cmp-dot.is-good { background: #34d399; box-shadow: 0 0 10px rgb(52 211 153 / .5); }
.cmp-cell.is-good { color: #f4f7f6; font-weight: 600; }
.cmp-cell.is-good svg { color: #34d399; padding: .15rem; width: 1.3rem; height: 1.3rem; border-radius: 9999px; background: rgb(52 211 153 / .14); border: 1px solid rgb(52 211 153 / .35); }
/* The lifted column: one lit strip from header to last row. */
.cmp-lux .hl { position: relative; background: linear-gradient(180deg, rgb(16 185 129 / .13), rgb(16 185 129 / .07));
  border-left: 1px solid rgb(52 211 153 / .35); border-right: 1px solid rgb(52 211 153 / .35); }
.cmp-lux tbody td.hl { border-top-color: rgb(52 211 153 / .14); }
.cmp-lux .hl-top { border-top: 1px solid rgb(52 211 153 / .5); border-radius: 1.3rem 1.3rem 0 0; box-shadow: 0 -20px 60px -30px rgb(16 185 129 / .55); }
.cmp-lux .hl-bottom { border-bottom: 1px solid rgb(52 211 153 / .5); border-radius: 0 0 1.3rem 1.3rem; box-shadow: 0 30px 60px -30px rgb(16 185 129 / .45); }
/* Scrolls sideways on narrow screens; the padding gives the lit column's glow room inside the scroll box,
   and from lg up the table fits, so nothing clips it at all. */
.cmp-scroll { margin: 0 -1rem; padding: 3.5rem 1rem 4.5rem; overflow-x: auto; }
@media (min-width: 1024px) { .cmp-scroll { margin: -1rem 0 -2rem; overflow: visible; } }
.cmp-badge { position: absolute; top: -.75rem; left: 1.4rem; padding: .22rem .7rem; border-radius: 9999px; font: 700 .62rem/1.2 "Geist Mono", monospace;
  letter-spacing: .14em; text-transform: uppercase; color: #03140d; background: linear-gradient(180deg, #4ee4ae, #10b981); box-shadow: 0 6px 18px -6px rgb(16 185 129 / .8); }
.cmp-lux thead th.hl-top { padding-top: 1.9rem; }
@media (max-width: 639px) {
  .nat-card, .point-card { padding: 1.4rem; }
  .nat-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .nat-grid .nat-dot:nth-child(n+33) { display: none; }
}

/* ---------------- My Phones: the drawer's vault look on the list page ---------------- */
.fleet { position: relative; isolation: isolate; }
/* closest-side blobs fade out inside their own boxes, so the glow never meets an edge */
.fleet-aurora { position: absolute; z-index: -1; inset: -3rem 0 auto; height: 28rem; pointer-events: none;
  background: radial-gradient(closest-side, rgb(16 185 129 / .17), transparent) 100% 0 / 62% 100% no-repeat,
              radial-gradient(closest-side, rgb(20 184 166 / .09), transparent) 0 10% / 46% 90% no-repeat; }
.fleet-title { font-family: "Geist", ui-sans-serif, sans-serif; font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #f4f7f6; }
.fleet-of { font-size: .62em; font-weight: 500; letter-spacing: 0; color: rgb(140 151 150); }
.fleet-meter { height: .3rem; border-radius: 9999px; background: rgb(255 255 255 / .07); overflow: hidden; }
.fleet-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10b981, #6ee7b7); box-shadow: 0 0 12px rgb(52 211 153 / .6); }
.lux-pill.is-plan { color: #eef3f1; background: rgb(255 255 255 / .05); border-color: rgb(52 211 153 / .35); }
.lux-pill b { margin-left: .1rem; padding: 0 .35rem; border-radius: 9999px; font-weight: 650; color: #03140d; background: #34d399; }
.lux-pill.is-amber b { background: #fbbf24; }

.lux .card.fleet-list { padding: 0; overflow: hidden; }
.fleet-list-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; border-bottom: 1px solid rgb(255 255 255 / .06);
  background: radial-gradient(60% 140% at 100% 0%, rgb(16 185 129 / .09), transparent 70%); }
.fleet-table { width: 100%; min-width: 72rem; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.fleet-table th { padding: .9rem 1rem; text-align: left; font: 600 .62rem/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: rgb(120 131 130);
  border-bottom: 1px solid rgb(255 255 255 / .06); white-space: nowrap; }
.fleet-table th:first-child, .fleet-table td:first-child { padding-left: 1.5rem; }
.fleet-table td { padding: 1.05rem 1rem; vertical-align: middle; color: rgb(205 213 211); border-top: 1px solid rgb(255 255 255 / .045); white-space: nowrap; }
.fleet-table tbody tr:first-child td { border-top: 0; }
.fleet-row { cursor: pointer; transition: background .2s; }
.fleet-row td:first-child { box-shadow: inset 2px 0 0 transparent; transition: box-shadow .2s; }
.fleet-row:hover { background: linear-gradient(90deg, rgb(16 185 129 / .07), rgb(255 255 255 / .015) 60%); }
.fleet-row:hover td:first-child { box-shadow: inset 2px 0 0 #34d399; }
.fleet-device { width: 2.6rem; height: 2.6rem; border-radius: .85rem; }
.fleet-name { font-family: "Geist", ui-sans-serif, sans-serif; font-size: .98rem; font-weight: 650; letter-spacing: -0.015em; color: #f4f7f6; }
.fleet-sub { font-size: .74rem; color: rgb(130 141 140); }
.fleet-net { margin-left: .2rem; padding: .05rem .35rem; border-radius: .35rem; font: 600 .6rem/1.4 "Geist Mono", monospace; letter-spacing: .08em; color: #6ee7b7; background: rgb(52 211 153 / .1); }
.fleet-ip { font-family: "Geist Mono", ui-monospace, monospace; font-size: .86rem; color: #eef3f1; letter-spacing: -0.01em; }
.fleet-traffic { display: grid; gap: .2rem; font-family: "Geist Mono", ui-monospace, monospace; font-size: .76rem; }
.fleet-traffic span:first-child { color: #6ee7b7; }
.fleet-traffic span:last-child { color: #7dd3fc; }
.fleet-go { width: 3rem; color: rgb(110 121 120); transition: color .2s, transform .2s; }
.fleet-go svg { transition: transform .2s; }
.fleet-row:hover .fleet-go, .fleet-card:hover .fleet-go { color: #6ee7b7; }
.fleet-row:hover .fleet-go svg, .fleet-card:hover .fleet-go svg { transform: translateX(3px); }
.fleet-card { display: block; width: 100%; padding: 1.1rem; border-radius: 1.1rem; cursor: pointer; transition: border-color .2s;
  background: linear-gradient(170deg, #10191a, #0b0f10 70%) padding-box, linear-gradient(150deg, rgb(255 255 255 / .14), rgb(255 255 255 / .04) 50%, rgb(52 211 153 / .2)) border-box; border: 1px solid transparent; }
.fleet-kv { padding: .65rem .75rem; border-radius: .8rem; background: rgb(0 0 0 / .3); border: 1px solid rgb(255 255 255 / .06); min-width: 0; }
.fleet-kv span { display: block; font: 600 .58rem/1 "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: rgb(52 211 153 / .8); }
.fleet-kv b { display: block; margin-top: .45rem; font-weight: 600; color: #eef3f1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fleet-kv small { font-weight: 400; color: rgb(130 141 140); }
.fleet-empty { padding: 3.5rem 1.5rem; text-align: center; }
@media (max-width: 639px) { .fleet-list-head { padding: 1.1rem; } }

/* ---------------- Billing: same vault look as My Phones ---------------- */
.bill-balance { font-family: "Geist", ui-sans-serif, sans-serif; font-size: clamp(2.8rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: #f4f7f6; }
.lux .lux-spec span { display: block; }
.bill-chip { height: 2.4rem; padding: 0 1.1rem; border-radius: 9999px; font-weight: 600; font-size: .9rem; color: rgb(205 213 211);
  background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .1); transition: all .2s; }
.bill-chip:hover { border-color: rgb(52 211 153 / .5); color: #fff; }
.bill-chip.is-on { color: #6ee7b7; background: rgb(16 185 129 / .12); border-color: rgb(52 211 153 / .55); box-shadow: 0 0 18px -6px rgb(52 211 153 / .7); }
.bill-plan { display: flex; flex-direction: column; }
.bill-features { display: grid; gap: .7rem; font-size: .9rem; color: rgb(190 199 197); }
.bill-features li { position: relative; padding-left: 1.75rem; line-height: 1.45; }
.bill-features svg { position: absolute; left: 0; top: .12rem; padding: .12rem; width: 1.1rem; height: 1.1rem; border-radius: 9999px; color: #34d399; background: rgb(52 211 153 / .12); border: 1px solid rgb(52 211 153 / .3); }
.bill-features b { color: #f4f7f6; font-weight: 600; }
.bill-plus { color: #6ee7b7; }

/* QR codes stay black on white in the dark theme so every scanner reads them */
.qr-img { background: #fff; border-radius: .9rem; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 18px 40px -20px rgb(0 0 0 / .9); }

/* phones list: status as a lit dot + word, plan as name + time left, battery and signal bars */
.st { display: inline-flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 600; letter-spacing: -0.005em; }
.st i { width: .5rem; height: .5rem; border-radius: 9999px; background: currentColor; box-shadow: 0 0 0 3px rgb(255 255 255 / .04), 0 0 10px currentColor; }
.st.is-green { color: #6ee7b7; } .st.is-red { color: #fca5a5; } .st.is-amber { color: #fcd34d; }
.st.is-busy i { animation: stBlink 1.4s ease-in-out infinite; }
@keyframes stBlink { 50% { opacity: .35; } }
.st.is-red i { box-shadow: 0 0 0 3px rgb(248 113 113 / .1); }
.pl { display: inline-flex; align-items: center; gap: .5rem; font-family: "Geist", ui-sans-serif, sans-serif; font-weight: 650; font-size: .92rem; color: #f4f7f6; }
.pl::before { content: ""; width: .55rem; height: .55rem; border-radius: .15rem; transform: rotate(45deg); background: linear-gradient(135deg, #6ee7b7, #10b981); box-shadow: 0 0 10px rgb(52 211 153 / .5); }
.pl.is-off { color: rgb(150 160 158); }
.pl.is-off::before { background: rgb(255 255 255 / .18); box-shadow: none; }
.pl small { margin-left: .2rem; font: 500 .72rem/1 "Geist Mono", monospace; color: rgb(130 141 140); }
.pl-note.is-red { color: #fca5a5; } .pl-note.is-amber { color: #fcd34d; }
.batt { display: inline-flex; flex-direction: column; align-items: center; gap: .35rem; width: 2.9rem; flex: none; }
.batt-body { position: relative; display: flex; gap: 2px; width: 2.05rem; height: 1rem; padding: 2px; border-radius: .3rem; border: 1.5px solid rgb(255 255 255 / .32); }
.batt-body::after { content: ""; position: absolute; right: -4.5px; top: 50%; width: 2.5px; height: .42rem; transform: translateY(-50%); border-radius: 0 2px 2px 0; background: rgb(255 255 255 / .32); }
.batt-body i { flex: 1; border-radius: 1.5px; background: rgb(255 255 255 / .06); }
.batt-body i.on { background: #34d399; box-shadow: 0 0 6px rgb(52 211 153 / .55); }
.batt.is-mid .batt-body i.on { background: #fbbf24; box-shadow: 0 0 6px rgb(251 191 36 / .5); }
.batt.is-low .batt-body i.on { background: #f87171; box-shadow: 0 0 6px rgb(248 113 113 / .5); }
.batt.is-stale { opacity: .5; }
.batt-pct { font: 600 .66rem/1 "Geist Mono", ui-monospace, monospace; color: rgb(205 213 211); white-space: nowrap; }
.batt-pct b { margin-left: 1px; color: #fcd34d; font-weight: 700; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: .75rem; }
.sig i { width: 3px; border-radius: 1px; background: rgb(255 255 255 / .12); }
.sig i:nth-child(1) { height: 25%; } .sig i:nth-child(2) { height: 50%; } .sig i:nth-child(3) { height: 75%; } .sig i:nth-child(4) { height: 100%; }
.sig i.on { background: #6ee7b7; }

/* ---------------- new-password strength meter (templates/_forms.html, static/app.js) ---------------- */
.pw-meter { display: flex; align-items: center; gap: .75rem; }
.pw-bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.pw-bar i { height: .3rem; border-radius: 9999px; background: rgb(255 255 255 / .1); transition: background .2s; }
.pw-label { min-width: 4.5rem; text-align: right; font-size: .75rem; color: rgb(var(--gray-500)); }
.pw-meter[data-level="1"] .pw-bar i:nth-child(-n+1),
.pw-meter[data-level="2"] .pw-bar i:nth-child(-n+2) { background: #f87171; }
.pw-meter[data-level="3"] .pw-bar i:nth-child(-n+3) { background: #fbbf24; }
.pw-meter[data-level="4"] .pw-bar i,
.pw-meter[data-level="5"] .pw-bar i { background: rgb(var(--brand-500)); }
.pw-meter[data-level="5"] .pw-bar i { box-shadow: 0 0 8px rgb(52 211 153 / .6); }
.pw-meter[data-level="1"] .pw-label, .pw-meter[data-level="2"] .pw-label { color: #f87171; }
.pw-meter[data-level="3"] .pw-label { color: #fbbf24; }
.pw-meter[data-level="4"] .pw-label, .pw-meter[data-level="5"] .pw-label { color: rgb(var(--brand-600)); }
.pw-rules { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .75rem; font-size: .75rem; color: rgb(var(--gray-500)); }
.pw-rules li { display: flex; align-items: center; gap: .4rem; }
.pw-rules li::before { content: ""; width: .45rem; height: .45rem; border-radius: 9999px; flex: none; border: 1px solid rgb(var(--gray-400)); }
.pw-rules li.ok { color: rgb(var(--gray-700)); }
.pw-rules li.ok::before { background: rgb(var(--brand-500)); border-color: rgb(var(--brand-500)); }
.pw-match { min-height: 1rem; font-size: .75rem; }
.pw-match.ok { color: rgb(var(--brand-600)); }
.pw-match.bad { color: #f87171; }
/* Room for the widget on the auth forms before Cloudflare draws it (no jump). */
.cf-turnstile { min-height: 65px; }

/* ---------------- payment marks (templates/_payments.html): footer + billing method switch ---------------- */
.pay-chip { display: inline-flex; align-items: center; gap: .6rem; height: 2.5rem; padding: 0 .85rem; border-radius: .8rem;
  border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .04); font-size: .8rem; color: rgb(var(--gray-600)); }
.pay-chip.is-paypal { background: #fff; border-color: #fff; padding: 0 .9rem; }
.pay-coins { display: inline-flex; }
.pay-coins > svg { border-radius: 9999px; box-shadow: 0 0 0 2px #0c1112; }
.pay-coins > svg + svg { margin-left: -.35rem; }
.bill-methods { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.bill-method { display: flex; align-items: center; justify-content: center; gap: .6rem; height: 3.1rem; border-radius: .9rem;
  border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .03); color: rgb(205 213 211); font-weight: 600; font-size: .9rem;
  transition: border-color .15s, background .15s, box-shadow .15s; }
.bill-method:hover { border-color: rgb(52 211 153 / .45); }
.bill-method.is-on { border-color: rgb(52 211 153 / .6); background: rgb(16 185 129 / .1); box-shadow: 0 0 22px -8px rgb(52 211 153 / .8); color: #fff; }
.bill-method .pay-pp { display: inline-flex; align-items: center; height: 1.6rem; padding: 0 .5rem; border-radius: .45rem; background: #fff; }
.bill-sum { display: grid; gap: .35rem; padding: .85rem 1rem; border-radius: .9rem; border: 1px solid rgb(255 255 255 / .08); background: rgb(0 0 0 / .25); font-size: .85rem; }
.bill-sum > div { display: flex; justify-content: space-between; gap: 1rem; color: rgb(var(--gray-500)); }
.bill-sum > div b { color: rgb(var(--gray-800)); font-weight: 600; font-variant-numeric: tabular-nums; }
.bill-sum > div.is-total { padding-top: .45rem; border-top: 1px solid rgb(255 255 255 / .08); color: rgb(var(--gray-800)); }
.bill-sum > div.is-total b { color: #fff; font-size: 1rem; }
