/* Design tokens, copied as-is from the VPNPriceCheck design system (design_handoff tokens/*.css).
   Only fonts.css differs: the families are bundled under assets/fonts (SIL OFL, licences beside them)
   instead of loaded from Google Fonts, so opening an extension page makes no third-party request. */

/* ---- fonts ---- */
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:300 700;font-display:swap;src:url(assets/fonts/space-grotesk-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:300 700;font-display:swap;src:url(assets/fonts/space-grotesk-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Space Mono";font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/space-mono-400-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Space Mono";font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/space-mono-400-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Space Mono";font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/space-mono-700-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Space Mono";font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/space-mono-700-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---- colors ---- */
/* Cool-concrete neutrals + one burnt-orange signal.
   Dark is the default ink set; light is a real second palette, not an inversion.
   The theme follows the browser unless [data-theme] pins it.

   RULE: ink on a coloured ground is ALWAYS full opacity. Never soften text with
   rgba()/opacity/color-mix to make it secondary — on a saturated ground that lands
   under 4.5:1 every time. Use a lighter or darker step of the ramp instead
   (e.g. --sig-200 on --sig-600). Alpha is for surfaces and borders, not for type. */
:root{
/* --- neutral ramp: cool concrete, a touch of blue in the greys --- */
--con-1000:#0C0E0F;--con-950:#131618;--con-900:#181B1E;--con-850:#1D2124;--con-800:#23282B;
--con-700:#2D3337;--con-600:#3A4145;--con-500:#545C61;--con-400:#6E767C;--con-300:#98A1A7;
--con-200:#C3CACE;--con-150:#DFE3E5;--con-100:#ECEEEF;--con-050:#F4F5F6;--con-000:#FFFFFF;

/* --- signal: burnt orange. One accent, warm, used sparingly --- */
/* Ink for use ON the signal colour. Full opacity, always. */
--sig-700:#8F2F08;--sig-600:#A3360A;--sig-500:#C2410C;--sig-400:#E05616;--sig-300:#F97316;--sig-200:#FDBA74;
--on-signal:#FFF3EC;
--on-signal-secondary:var(--sig-200);

/* --- status: kept distinguishable from the signal orange --- */
--pos-600:#0F7A3D;--pos-500:#199150;--pos-400:#35C274;
--cau-600:#8A6100;--cau-500:#B98A00;--cau-400:#E3B341;
--neg-600:#A81F23;--neg-500:#CC2E33;--neg-400:#F2686C;
}

/* ============ DARK (default) ============ */
:root,[data-theme="dark"]{
color-scheme:dark;
--surface-base:var(--con-950);
--surface-panel:var(--con-900);
--surface-raised:var(--con-800);
--surface-sunken:var(--con-1000);
--surface-head:var(--con-850);
--surface-hover:rgba(255,255,255,.05);
--surface-active:rgba(255,255,255,.08);
--surface-selected:rgba(194,65,12,.14);
--surface-best:rgba(25,145,80,.14);

--border-subtle:#272C30;
--border-strong:#394045;
--border-focus:var(--sig-400);

--text-primary:#EEF1F2;
--text-secondary:var(--con-300);
--text-muted:#8B949B;
/* --text-disabled is for inert control labels only. Never use it for content a user reads —
   it does not meet 4.5:1. Metadata, timestamps and captions take --text-muted. */
--text-disabled:var(--con-500);
--text-accent:var(--sig-300);

--action-primary:var(--sig-500);
--action-primary-hover:var(--sig-400);
--action-primary-press:var(--sig-600);
--action-primary-fg:#FFF3EC;
--action-secondary-bg:var(--con-800);
--action-secondary-hover:var(--con-700);

--status-ok:var(--pos-500);--status-ok-fg:var(--pos-400);--status-ok-bg:rgba(25,145,80,.13);
--status-caveat:var(--cau-500);--status-caveat-fg:var(--cau-400);--status-caveat-bg:rgba(185,138,0,.14);
--status-warn:var(--neg-500);--status-warn-fg:var(--neg-400);--status-warn-bg:rgba(204,46,51,.13);
--status-idle:#8B949B;

--pick-outline:var(--sig-300);
}

/* ============ LIGHT ============ */
[data-theme="light"]{
color-scheme:light;
--surface-base:var(--con-100);
--surface-panel:var(--con-000);
--surface-raised:var(--con-050);
--surface-sunken:var(--con-000);
--surface-head:var(--con-050);
--surface-hover:rgba(12,14,15,.04);
--surface-active:rgba(12,14,15,.07);
--surface-selected:rgba(194,65,12,.09);
--surface-best:rgba(25,145,80,.10);

--border-subtle:var(--con-150);
--border-strong:var(--con-200);
--border-focus:var(--sig-500);

--text-primary:#11161A;
--text-secondary:var(--con-500);
--text-muted:#5F686E;
--text-disabled:var(--con-300);
--text-accent:var(--sig-600);

--action-primary:var(--sig-500);
--action-primary-hover:var(--sig-600);
--action-primary-press:var(--sig-700);
--action-primary-fg:#FFFFFF;
--action-secondary-bg:var(--con-000);
--action-secondary-hover:var(--con-050);

--status-ok:var(--pos-500);--status-ok-fg:var(--pos-600);--status-ok-bg:#E8F6EE;
--status-caveat:var(--cau-500);--status-caveat-fg:var(--cau-600);--status-caveat-bg:#FBF3DF;
--status-warn:var(--neg-500);--status-warn-fg:var(--neg-600);--status-warn-bg:#FCECEC;
--status-idle:#5F686E;

--pick-outline:var(--sig-500);
}

/* Following the browser is a one-liner in the host page, not a media query here:
   duplicating the light set inside @media would register 34 phantom tokens.

   <script>
     const m = matchMedia('(prefers-color-scheme: light)');
     const apply = () => document.documentElement.dataset.theme = m.matches ? 'light' : 'dark';
     apply(); m.addEventListener('change', apply);
   </script>

   Pin a theme by setting data-theme="light" | "dark" and skipping the listener. */

/* ---- typography ---- */
:root{
--font-ui:"Space Grotesk","Helvetica Neue",Arial,sans-serif;
--font-mono:"Space Mono","SFMono-Regular",Consolas,monospace;

--fs-11:11px;--fs-12:12px;--fs-13:13px;--fs-14:14px;--fs-16:16px;--fs-18:18px;--fs-20:20px;--fs-24:24px;--fs-30:30px;
--lh-tight:1.1; /* @kind other */
--lh-snug:1.28; /* @kind other */
--lh-normal:1.5; /* @kind other */
--fw-regular:400; /* @kind font */
--fw-medium:500; /* @kind font */
--fw-semibold:600; /* @kind font */
--fw-bold:700; /* @kind font */
--ls-tight:-0.03em; /* @kind other */
--ls-normal:0; /* @kind other */
--ls-caps:0.10em; /* @kind other */
--ls-mono-tight:-0.04em; /* @kind other */

/* Space Mono is wide; data sizes run a step smaller than the UI sizes to compensate. */
--type-display:var(--fw-bold) var(--fs-30)/var(--lh-tight) var(--font-ui);
--type-h1:var(--fw-bold) var(--fs-20)/var(--lh-tight) var(--font-ui);
--type-h2:var(--fw-semibold) var(--fs-16)/var(--lh-snug) var(--font-ui);
--type-h3:var(--fw-semibold) var(--fs-13)/var(--lh-snug) var(--font-ui);
--type-body:var(--fw-regular) var(--fs-14)/var(--lh-normal) var(--font-ui);
--type-body-sm:var(--fw-regular) var(--fs-13)/var(--lh-normal) var(--font-ui);
--type-label:var(--fw-medium) var(--fs-13)/var(--lh-snug) var(--font-ui);
--type-caption:var(--fw-regular) var(--fs-12)/var(--lh-snug) var(--font-ui);

--type-mono-price-lg:var(--fw-bold) var(--fs-16)/var(--lh-tight) var(--font-mono);
--type-mono-price:var(--fw-regular) var(--fs-13)/var(--lh-snug) var(--font-mono);
--type-mono-code:var(--fw-regular) var(--fs-12)/var(--lh-normal) var(--font-mono);
--type-mono-meta:var(--fw-regular) var(--fs-11)/var(--lh-snug) var(--font-mono);
}

/* ---- spacing ---- */
:root{
--space-1:2px;--space-2:4px;--space-3:6px;--space-4:8px;--space-5:12px;--space-6:16px;
--space-7:20px;--space-8:24px;--space-9:32px;--space-10:40px;

/* control heights. The shipped pages use 6px/8px padding on 14px text ≈ 32px; 26px for the
   small in-row "via VPN" button (2px 8px / 13px). */
--control-h-sm:26px;--control-h-md:32px;--control-h-lg:38px;
--row-h-table:34px;

/* page geometry, verbatim from the shipped pages */
--width-results:1100px;   /* results.html: max-width 1100px */
--width-options:720px;    /* options.html: max-width 720px */
--gutter-page:16px;       /* both pages: padding 0 16px */
--gutter-panel:16px;      /* fieldset: 12px 16px */
--countrylist-max-h:260px;/* options.html #countryList */
--progress-h:8px;         /* results.html progress */
--thumb-size:40px;        /* results.html img.thumb */
}

/* ---- radius ---- */
:root{
/* Square by default. The brief caps radius at 4px; this system spends almost none of it —
   panels and controls are 2px, which reads as machined rather than soft. */
--radius-0:0px;--radius-1:2px;--radius-2:2px;--radius-3:4px;--radius-pill:999px;
--radius-control:2px;--radius-panel:2px;--radius-input:2px;--radius-thumb:2px;
--border-w:1px;--border-w-accent:2px;
--pick-outline-w:3px;
--pick-outline-offset:2px;
}

/* ---- elevation ---- */
:root{
/* Depth is borders and surface value. Shadows exist only where something genuinely floats. */
--shadow-none:none;
--shadow-1:none;
--shadow-2:0 2px 8px rgba(0,0,0,.35);
--shadow-3:0 8px 24px rgba(0,0,0,.45);
--ring-focus:0 0 0 2px rgba(224,86,22,.40);
--ring-error:0 0 0 2px rgba(204,46,51,.35);
--rule-best:inset 3px 0 0 var(--status-ok);
--rule-accent:inset 3px 0 0 var(--action-primary);
}

/* ---- motion ---- */
:root{
--dur-instant:80ms; /* @kind other */
--dur-fast:120ms; /* @kind other */
--dur-base:180ms; /* @kind other */
--dur-slow:280ms; /* @kind other */
--ease-standard:cubic-bezier(.2,0,.2,1); /* @kind other */
--ease-out:cubic-bezier(0,0,.2,1); /* @kind other */
--ease-linear:linear; /* @kind other */
--transition-control:background-color var(--dur-fast) var(--ease-standard),border-color var(--dur-fast) var(--ease-standard),color var(--dur-fast) var(--ease-standard); /* @kind other */
}

/* ---- base ---- */
body{margin:0;background:var(--surface-base);color:var(--text-primary);font:var(--type-body);-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
a{color:var(--text-accent);text-decoration:none}
a:hover{color:var(--sig-400);text-decoration:underline}
::selection{background:var(--surface-selected);color:var(--text-primary)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--border-strong)}
::-webkit-scrollbar-thumb:hover{background:var(--con-500)}
::-webkit-scrollbar-track{background:transparent}

