/*
 * vdscom.us — design A "Clear Spec".
 * Loaded on every page after the page stylesheet (app/css-assets.php → vds_emit_main_css).
 * 1) tokens and type for the whole site, 2) header and shared elements, 3) footer,
 * 4) homepage (.us-home), 5) shared building blocks (.us-…).
 */

:root {
  --us-ink: #0e1726;
  --us-text: #2a3646;
  --us-body: #4a5768;
  --us-muted: #5b6878;
  --us-line: #e3e8ee;
  --us-line-2: #dde3ea;
  --us-border: #c9d2dc;
  --us-soft: #f6f8fa;
  --us-soft-2: #fafbfc;
  --us-blue: #1460b0;
  --us-blue-dark: #0d4682;
  --us-blue-tint: #f3f8fd;
  --us-blue-line: #b9d0ea;
  --us-sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --us-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* the page stylesheets read these */
  --primary: #1460b0;
  --primary-dark: #0d4682;
  --text: #0e1726;
  --muted: #5b6878;
  --line: #e3e8ee;
  --bg: #ffffff;
  --primary-2: #1460b0;
  --accent-teal: #1460b0;
  --accent-teal-dark: #0d4682;
  --accent-mint: #1460b0;
  --accent-amber-soft: #f6f8fa;
  --section-soft: #f6f8fa;
  --section-soft-strong: #eef2f6;
  --surface-soft: #fafbfc;
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, .05);
  --shadow-lg: 0 1px 2px rgba(14, 23, 38, .05), 0 8px 24px rgba(14, 23, 38, .06);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
}

/* 1. Type ------------------------------------------------------------------------------ */
body { font-family: var(--us-sans); color: var(--us-ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--us-sans); letter-spacing: -0.02em; }
code, kbd, pre, samp { font-family: var(--us-mono); }

/* 2. Header and shared controls --------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--us-line); box-shadow: none; }
.site-header .nav-link { font-weight: 500; color: var(--us-text); }
.site-header .nav-link:hover, .site-header .nav-link[aria-expanded="true"] { color: var(--us-blue); }
.button { border-radius: 6px; font-weight: 600; box-shadow: none; }
.button--primary { background: var(--us-blue); box-shadow: none; }
.button--primary:hover { background: var(--us-blue-dark); box-shadow: none; transform: none; }
.button--secondary { border: 1px solid var(--us-border); background: #fff; color: var(--us-ink); box-shadow: none; }
.mega-menu { border-radius: 0 0 8px 8px; box-shadow: 0 16px 40px rgba(14, 23, 38, .10); border-top: 1px solid var(--us-line); }
.menu-tile, .mega-promo, .mega-help, .mega-location-count, .language-menu__dropdown { border-radius: 8px; }
.country-flag, .location-link img, .mobile-links img { border-radius: 50%; object-fit: cover; }
.skip-link:focus { z-index: 1000; }
.us-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 3. Footer ---------------------------------------------------------------------------- */
.us-footer { background: var(--us-ink); color: #c5cfdb; font-size: 14px; line-height: 1.6; padding: 64px 0 32px; }
.us-footer a { color: #c5cfdb; text-decoration: none; }
.us-footer a:hover { color: #fff; }
.us-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px; }
.us-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.us-footer__brand img { height: 38px; width: auto; display: block; }
.us-footer address { font-style: normal; }
.us-footer__contacts { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.us-footer__col { display: flex; flex-direction: column; gap: 9px; }
.us-footer__head { margin: 0 0 4px; color: #fff; font-weight: 600; }
.us-footer__bottom { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.us-footer__bottom p { margin: 0; }
.us-footer__lang { display: flex; gap: 8px; align-items: center; font-family: var(--us-mono); font-size: 13px; }
.us-footer__lang span { color: #8a97a8; }
.us-footer__lang a[aria-current] { color: #fff; font-weight: 600; }
.us-footer__pay { display: flex; gap: 8px; align-items: center; }
.us-footer__pay span { background: #fff; border-radius: 4px; height: 24px; padding: 0 8px; display: inline-flex; align-items: center; }
.us-footer__pay img { display: block; width: auto; height: 14px; }

/* 4–5. Building blocks and homepage ---------------------------------------------------- */
.us-home { color: var(--us-ink); font-size: 16px; line-height: 1.55; }
.us-home h1, .us-home h2, .us-home h3 { color: var(--us-ink); margin: 0; font-weight: 600; }
.us-home p { margin: 0; }
.us-home a { color: var(--us-blue); text-decoration: none; }
.us-home a:hover { color: var(--us-blue-dark); }
.us-mono { font-family: var(--us-mono); }
.us-muted { color: var(--us-muted); font-size: 13px; }
.us-num { text-align: right; }
.us-eyebrow { font-family: var(--us-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--us-blue); font-weight: 500; }
.us-lead { font-size: 18px; color: var(--us-body); max-width: 560px; text-wrap: pretty; }
.us-lead--sm { font-size: 17px; }
.us-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.us-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; font-weight: 600; font-size: 16px; line-height: 1.2; border: 1px solid transparent; box-sizing: border-box; transition: background-color .15s ease, border-color .15s ease; }
.us-home a.us-btn--primary, .us-btn--primary { background: var(--us-blue); color: #fff; }
.us-home a.us-btn--primary:hover { background: var(--us-blue-dark); color: #fff; }
.us-home a.us-btn--outline, .us-btn--outline { border-color: var(--us-border); color: var(--us-ink); background: #fff; }
.us-home a.us-btn--outline:hover { border-color: var(--us-ink); color: var(--us-ink); }
.us-btn--block { width: 100%; }
.us-tag { display: inline-block; font-family: var(--us-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--us-blue); border: 1px solid var(--us-blue-line); border-radius: 4px; padding: 0 6px; line-height: 18px; vertical-align: 1px; }
.us-flag { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; display: inline-flex; box-shadow: 0 0 0 1px rgba(14, 23, 38, .12); }
.us-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.us-flag--lg { width: 32px; height: 32px; }
.us-scroll { overflow-x: auto; }
.us-card { border: 1px solid var(--us-line-2); border-radius: 8px; background: #fff; }
.us-icon-btn { width: 44px; height: 44px; border: 1px solid var(--us-border); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--us-blue); }
.us-icon-btn:hover { border-color: var(--us-blue); }

/* Tables */
.us-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.us-table thead th { font-family: var(--us-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--us-muted); background: #f8fafc; text-align: left; padding: 10px 20px; }
.us-table thead th.us-num { text-align: right; }
.us-table tbody th, .us-table tbody td { padding: 14px 20px; border-top: 1px solid #edf1f5; text-align: left; vertical-align: middle; font-weight: 400; }
.us-table tbody td.us-num { text-align: right; }
.us-table td.us-mono { white-space: nowrap; }
.us-table tbody tr.is-featured { background: var(--us-blue-tint); }
.us-table--plans { min-width: 560px; }
.us-table--locations { min-width: 640px; }
.us-plan-name { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.us-table th .us-muted { display: block; }
.us-plan-specs { display: none; font-size: 12px; color: var(--us-body); margin-top: 4px; }
.us-price-cell { display: inline-flex; align-items: center; gap: 14px; }
.us-price-cell > span { display: flex; flex-direction: column; align-items: flex-end; }
.us-price-cell strong { font-size: 18px; font-weight: 600; }
.us-place { display: flex; align-items: center; gap: 12px; }
.us-place strong { display: block; font-weight: 600; }

/* Hero */
.us-hero { border-bottom: 1px solid var(--us-line); }
.us-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.us-hero__copy { display: flex; flex-direction: column; gap: 24px; }
.us-hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.us-pay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--us-muted); }
.us-pay__logos { display: inline-flex; gap: 10px; align-items: center; }
.us-pay__logos img { width: auto; height: 18px; display: block; }
.us-pay__logos img[alt="Visa"] { height: 13px; }
.us-plans { border: 1px solid var(--us-line-2); border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 16px 40px rgba(14, 23, 38, .07); overflow: hidden; scroll-margin-top: 96px; }
.us-plans__head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--us-line); }
.us-plans__where { display: flex; align-items: center; gap: 12px; }
.us-plans__where h2 { font-size: 16px; letter-spacing: 0; }
.us-plans__where p { font-size: 13px; color: var(--us-muted); }
.us-toggle { display: flex; border: 1px solid var(--us-border); border-radius: 6px; padding: 3px; gap: 3px; background: #f5f7fa; }
.us-toggle button { border: 0; border-radius: 4px; padding: 0 14px; min-height: 40px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; background: transparent; color: var(--us-body); }
.us-toggle button[aria-pressed="true"] { background: #fff; color: var(--us-ink); box-shadow: 0 1px 2px rgba(14, 23, 38, .12); }
.us-plans__foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--us-line); font-size: 14px; color: var(--us-body); }
.us-plans__foot a { font-weight: 500; }

/* Facts strip */
.us-facts { background: var(--us-soft-2); border-bottom: 1px solid var(--us-line); }
.us-facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 0 32px; padding-top: 8px; padding-bottom: 8px; }
.us-facts__grid > div { padding: 24px 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--us-body); }
.us-facts__value { font-family: var(--us-mono); font-size: 22px; font-weight: 600; color: var(--us-ink); }

/* Sections */
.us-section { padding: 96px 0; }
.us-section--soft { background: var(--us-soft); border-top: 1px solid var(--us-line); border-bottom: 1px solid var(--us-line); }
.us-section--flush { padding-top: 0; }
.us-section__head { display: flex; flex-direction: column; gap: 12px; max-width: 660px; margin-bottom: 40px; }
.us-section__head--split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.us-section__head--split > div:first-child { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.us-section h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.us-h3 { font-size: clamp(22px, 2.2vw, 28px) !important; }
.us-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.us-tabs button { border: 1px solid var(--us-border); background: #fff; color: var(--us-ink); border-radius: 6px; padding: 0 16px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.us-tabs button span { font-size: 13px; color: var(--us-muted); }
.us-tabs button[aria-selected="true"] { background: var(--us-ink); border-color: var(--us-ink); color: #fff; }
.us-tabs button[aria-selected="true"] span { color: #b8c4d2; }
.us-note { margin-top: 20px !important; font-size: 15px; color: var(--us-body); }
.us-note a { font-weight: 500; }

/* Dedicated cards */
.us-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.us-server { background: #fff; border: 1px solid var(--us-line-2); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.us-server.is-featured { border-color: var(--us-blue); box-shadow: 0 0 0 3px #e3eef9; }
.us-server h3 { font-size: 20px; margin-top: 6px; letter-spacing: -0.01em; }
.us-server .us-muted { font-size: 14px; }
.us-specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.us-specs dt { color: var(--us-muted); }
.us-specs dd { margin: 0; }
.us-server__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid #edf1f5; }
.us-server__foot strong { font-size: 28px; font-weight: 600; }
.us-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px !important; font-size: 15px; font-weight: 500; }

/* Included */
.us-included { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.us-included > div { display: flex; flex-direction: column; gap: 12px; }
.us-included h3 { font-size: 18px; letter-spacing: -0.01em; }
.us-included p { font-size: 15px; color: var(--us-body); }
.us-icon { width: 44px; height: 44px; border: 1px solid var(--us-line-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--us-blue); }

/* 300 Gbps band */
.us-band { border: 1px solid var(--us-line-2); border-radius: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); overflow: hidden; }
.us-band__copy { padding: 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.us-band__copy h2 { font-size: 30px; line-height: 1.15; }
.us-band__copy p:not(.us-eyebrow) { color: var(--us-body); }
.us-band__copy .us-btn { margin-top: 8px; }
.us-band__stat { background: var(--us-ink); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 240px; box-sizing: border-box; }
.us-band__label { font-family: var(--us-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #9fc0e3; }
.us-band__value { font-family: var(--us-mono); font-size: clamp(72px, 8vw, 112px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.us-band__value span { font-size: .32em; letter-spacing: 0; margin-left: 10px; color: #9fc0e3; }

/* About + FAQ */
.us-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: start; }
.us-about > div:first-child { display: flex; flex-direction: column; gap: 18px; }
.us-about h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; text-wrap: balance; }
.us-about > div:first-child p:not(.us-eyebrow) { color: #33404f; text-wrap: pretty; }
.us-faq { border-top: 1px solid var(--us-line-2); margin-top: 18px; }
.us-faq details { border-bottom: 1px solid var(--us-line-2); padding: 4px 0; }
.us-faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; list-style: none; position: relative; }
.us-faq summary::-webkit-details-marker { display: none; }
.us-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--us-mono); font-size: 18px; color: var(--us-muted); }
.us-faq details[open] summary::after { content: "−"; }
.us-faq details p { margin: 0 0 16px; font-size: 15px; color: var(--us-body); }

/* Final call to action */
.us-cta { border-top: 1px solid var(--us-line); padding: 88px 0; }
.us-cta__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px; align-items: center; }
.us-cta__grid > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.us-cta h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.us-cta__actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.us-cta .us-muted { font-size: 14px; }

@media (max-width: 640px) {
  /* Plans become two-column rows: name, specs and price stay on screen without sideways scrolling. */
  .us-table--plans { min-width: 0; }
  .us-table--plans thead, .us-table--plans tbody td[data-label] { display: none; }
  .us-table--plans tbody th { padding-right: 8px; }
  .us-table--plans .us-plan-specs { display: block; }
  .us-table--plans .us-price-cell { gap: 10px; }
  .us-table--locations { min-width: 0; font-size: 14px; }
  .us-table--locations th:last-child, .us-table--locations td:last-child { display: none; }
  .us-table--locations .us-flag { width: 24px; height: 24px; }
  .us-plans__head { padding: 14px 16px; }
}

@media (max-width: 720px) {
  .us-hero__grid { padding-top: 40px; padding-bottom: 48px; gap: 40px; }
  .us-section { padding: 64px 0; }
  .us-section--flush { padding-top: 0; }
  .us-band__copy, .us-band__stat { padding: 28px; }
  .us-cta { padding: 64px 0; }
  .us-table tbody th, .us-table tbody td, .us-table thead th { padding-left: 14px; padding-right: 14px; }
}

/* Round country flags everywhere (menus, catalogs, country pages). */
img[src*="/flags/"] { aspect-ratio: 1 / 1; height: auto !important; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(14, 23, 38, .12); }
.us-flag img[src*="/flags/"] { box-shadow: none; }
