/* Need status — composition follows the need.sheldy.dev landing: hero, centered sections, plan-style cards. */
/* Preloaded fonts are used when ready; never swap metrics after text is painted. */
@font-face { font-family: Inter; src: url("assets/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: optional; }
@font-face { font-family: Inter; src: url("assets/fonts/Inter-Semibold.woff2") format("woff2"); font-weight: 500 600; font-display: optional; }
@font-face { font-family: Inter; src: url("assets/fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: optional; }

:root {
  color-scheme: dark;
  --canvas: #1d1d1d;
  --surface: #2c2c2e;
  --surface-hover: #333335;
  --surface-active: #38383b;
  --border: #3d3d3f;
  --text: #ffffff;
  --muted: #98989e;
  --accent: #3aa8fc;
  --accent-hover: #4fb2fd;
  --accent-active: #2998ec;
  --on-accent: #05192e;
  --cta-glow: #d5e8f6;
  --radius: 26px;
  --page: 1120px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--text); font: 400 17px/22px var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { display: block; flex-shrink: 0; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px 20px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.page-width { width: min(var(--page), calc(100% - 48px)); margin-inline: auto; }

/* Buttons — same sizes as the landing: 52 px landing, 36 px small. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 20px; border-radius: var(--radius); font-weight: 600; text-align: center; transition: background-color .15s; }
.button-small { min-height: 36px; padding: 0 20px; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-primary:active { background: var(--accent-active); }
.button-tertiary { background: var(--surface); }
.button-tertiary:hover { background: var(--surface-hover); }
.button-tertiary:active { background: var(--surface-active); }
.button-surface { background: var(--text); color: var(--on-accent); }
.button-surface:hover { background: #eef6fd; }
.ghost-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; border-radius: var(--radius); font-weight: 500; }
.ghost-button svg { width: 20px; height: 20px; }
.ghost-button:hover { background: var(--surface); }

/* Header */
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; width: min(1200px, calc(100% - 48px)); margin: 22px auto 0; }
.brand { justify-self: start; display: inline-flex; min-height: 36px; align-items: center; }
.brand img { width: 100px; height: auto; }
.header-nav { display: flex; gap: 28px; font-size: 15px; line-height: 20px; color: var(--muted); }
.header-nav a:hover { color: var(--text); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; padding: 120px 0 96px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 15px; line-height: 20px; font-weight: 600; }
.hero-badge svg { width: 20px; height: 20px; }
.hero-badge.is-degraded { color: #ffb340; }
h1 { margin-top: 12px; font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.4px; }
.hero-lead { margin-top: 20px; max-width: 560px; }
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 274px)); gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 18px; }
.hero-meta time { font-variant-numeric: tabular-nums; }

.summary-card { padding: 20px; border-radius: var(--radius); background: var(--surface); }
.summary-title { padding: 0 4px 8px; font-size: 17px; line-height: 22px; font-weight: 500; }
.service-list { min-height: 194px; }
.service-list li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--border); }
.service-list li:first-child { border-top: 0; }
.service-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #3aa8fc1f; color: var(--accent); }
.service-icon svg { width: 20px; height: 20px; }
.service-name { flex: 1; min-width: 0; }
.status-text { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 14px; line-height: 18px; }
.status-text svg { width: 14px; height: 14px; }
.status-text.is-down { color: #ff6961; }

/* Sections — eyebrow + title, centered, 48 px rhythm like the landing. */
.section { padding: 48px 0; }
.section-head { text-align: center; }
.eyebrow { color: var(--accent); font-size: 22px; line-height: 28px; font-weight: 700; }
.section-head h2 { margin-top: 8px; font-size: 28px; line-height: 35px; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 28px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px 0 6px; border: 1px solid var(--border); border-radius: 50px; font-size: 13px; line-height: 18px; font-weight: 500; }
.chip-dot { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--canvas); }
.chip-dot svg { width: 12px; height: 12px; }

.search-field { position: relative; width: min(360px, 100%); margin: 24px auto 0; }
.search-icon { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search-field input { width: 100%; min-height: 52px; padding: 0 20px 0 48px; border: 0; border-radius: var(--radius); background: var(--surface); outline-offset: 0; }
.search-field input::placeholder { color: var(--muted); }
.search-field input::-webkit-search-cancel-button { filter: invert(1) brightness(.7); }

/* Country cards — the plan cards from #pricing. */
.country-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
.country-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; width: 100%; min-height: 122px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); text-align: left; transition: background-color .15s; }
.country-card:hover { background: var(--surface-hover); }
.country-card[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.country-top { display: flex; align-items: flex-start; gap: 12px; }
.country-top img { width: 28px; height: 28px; border-radius: 50%; }
.country-name { display: block; font-weight: 500; }
.country-top .status-text { margin-top: 2px; }
.chevron { margin-left: auto; width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.country-card[aria-expanded="true"] .chevron { transform: rotate(180deg); color: var(--accent); }
.country-count { display: block; font-size: 22px; line-height: 28px; font-weight: 600; font-variant-numeric: proportional-nums; }
.country-sub { display: block; color: var(--muted); font-size: 14px; line-height: 18px; }

.country-detail { grid-column: 1 / -1; padding: 8px 20px; border-radius: var(--radius); background: var(--surface); }
.node-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; min-height: 56px; border-top: 1px solid var(--border); }
.node-row:first-child { border-top: 0; }
.node-host { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.node-info { min-width: 0; }
.node-checked { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 18px; }
.node-latency { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.node-latency strong { color: var(--text); font-weight: 500; white-space: nowrap; }
.summary-count { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status-text.is-degraded, .service-icon.is-degraded { color: #ffb340; }
.status-text.is-unavailable, .hero-badge.is-unavailable { color: #ff6961; }
.status-text.is-unknown, .service-icon.is-unknown, .hero-badge.is-unknown { color: var(--muted); }
.status-dot, .overall-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.overall-dot { width: 10px; height: 10px; margin-right: 4px; }
.country-globe { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; color: var(--muted); }
.country-globe svg { width: 26px; height: 26px; }
.country-top > span:not(.country-globe) { min-width: 0; overflow-wrap: anywhere; }
.country-top img { flex-shrink: 0; }
.node-row { padding-block: 12px; }
.button:disabled { cursor: wait; opacity: .5; }
#request-hint:empty { display: none; }

.empty-state { display: grid; justify-items: center; gap: 16px; margin-top: 32px; padding: 32px; border-radius: var(--radius); background: var(--surface); color: var(--muted); text-align: center; }

/* CTA — the "Connect Need VPN?" banner. */
.cta-card { display: grid; justify-items: center; gap: 12px; padding: 32px 40px; border-radius: var(--radius); text-align: center; background:
  radial-gradient(93.3% 76% at 100% 100%, #d5e8f699, #9cc9eb00),
  radial-gradient(104% 112% at -30% 0%, var(--cta-glow), #d5e8f600 98%),
  var(--accent); }
.cta-card h2 { font-size: 28px; line-height: 35px; font-weight: 700; }
.cta-card .button { width: min(280px, 100%); min-height: 43px; margin-top: 20px; }

/* Footer */
.site-footer { width: min(1200px, calc(100% - 48px)); margin: 48px auto 0; padding-bottom: 48px; }
.footer-nav { display: flex; gap: 80px; }
.footer-brand { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-weight: 700; }
.footer-columns { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-column { display: grid; align-content: start; gap: 6px; }
.footer-column p { margin-bottom: 4px; font-weight: 500; }
.footer-column a { color: var(--muted); font-size: 15px; line-height: 22px; }
.footer-column a:hover { color: var(--text); }
.copyright { margin-top: 40px; color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 64px 0 48px; }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .hero { padding-top: 48px; }
  h1 { font-size: 32px; line-height: 38px; }
  .hero-actions { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: 1fr; }
  .country-detail { padding: 4px 16px; }
  .node-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; }
  .node-row .node-latency { grid-column: 1 / -1; }
  .cta-card { padding: 32px 20px; }
  .cta-card h2 { font-size: 24px; line-height: 30px; }
  .footer-nav { flex-direction: column; gap: 32px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
