:root {
  --bg: #0a0f1c;
  --bg-raise: #101828;
  --panel: #131c2e;
  --panel-2: #0d1420;
  --line: rgba(255,255,255,0.09);
  --text: #f3f6fc;
  --text-soft: rgba(243,246,252,0.66);
  --text-faint: rgba(243,246,252,0.42);
  --blue: #3d7fff;
  --blue-bright: #6ea1ff;
  --blue-deep: #1c4fd6;
  --green: #2fd8a8;
  --shadow: 0 24px 60px -20px rgba(61,127,255,0.35);
}

/* Deliberately single-theme: this brand is dark navy/blue always, the same way
   nordvpn.com's own marketing site doesn't switch to a light theme with the OS.
   Not adaptive to prefers-color-scheme or a data-theme toggle on purpose. */
:root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #0a0f1c; --bg-raise: #101828; --panel: #131c2e; --panel-2: #0d1420;
  --line: rgba(255,255,255,0.09); --text: #f3f6fc; --text-soft: rgba(243,246,252,0.66); --text-faint: rgba(243,246,252,0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; }
body { font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* IP protection status banner */
.ip-banner { background: var(--bg-raise); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ip-banner-inner { display: flex; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 10px 28px; color: var(--text-soft); }
.ip-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.ip-banner.protected { background: rgba(47,216,168,0.08); border-bottom-color: rgba(47,216,168,0.25); }
.ip-banner.protected .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(47,216,168,0.18); }
.ip-banner.protected #ip-banner-text { color: var(--green); font-weight: 600; }
.ip-banner.unprotected { background: rgba(229,115,95,0.08); border-bottom-color: rgba(229,115,95,0.25); }
.ip-banner.unprotected .dot { background: #e5735f; box-shadow: 0 0 0 3px rgba(229,115,95,0.18); }

/* nav */
header.site-nav { position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 20; }
nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.logo img { width: 28px; height: 28px; }
.logo .u { color: var(--blue-bright); }
nav .links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--text-soft); }
nav .links a { text-decoration: none; }
nav .links a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 700; font-size: 14.5px; padding: 12px 22px; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); }

/* hamburger (mobile nav toggle) */
.nav-toggle {
  -webkit-appearance: none; appearance: none;
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background-color: transparent; background-image: none;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: 0;
  color: inherit; outline: none;
}
.nav-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero - centered single column, mockup below rather than beside so the
   whole page reads centered instead of hugging the left half on wide screens */
.hero { padding: 64px 0 90px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 48px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); background: rgba(47,216,168,0.12); border: 1px solid rgba(47,216,168,0.3); padding: 6px 12px; border-radius: 100px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; margin: 0 0 20px; text-align: center; }
.hero h1 .accent { color: var(--blue-bright); }
.hero p.lede { font-size: 18px; line-height: 1.6; color: var(--text-soft); max-width: 46ch; margin: 0 auto 32px; text-align: center; }
.hero .ctas { display: flex; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; justify-content: center; }
.trust-row { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.trust-row .item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-faint); }
.trust-row .item svg { flex-shrink: 0; }

/* app mockup */
.mock { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; max-width: 480px; width: 100%; text-align: left; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; margin-right: 6px; }
.mock-bar .title { margin-left: 6px; font-size: 13px; color: var(--text-faint); font-weight: 600; }
.mock-body { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.mock-plan { display: flex; justify-content: space-between; align-items: center; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 100px; background: rgba(61,127,255,0.16); color: var(--blue-bright); }
.conn-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.conn-card .row1 { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.conn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,216,168,0.18); }
.conn-card .ip { font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }
.server-list { display: flex; flex-direction: column; gap: 10px; }
.server-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.server-row .name { font-weight: 600; }
.server-row .tag { color: var(--text-faint); font-size: 12px; }
.server-row button { background: var(--blue); color: white; border: none; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; }

section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin: 0 auto 40px; text-align: center; }
.section-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.section-head p { color: var(--text-soft); font-size: 16px; line-height: 1.6; margin: 0; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feat-card .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(61,127,255,0.14); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-card h3 { font-size: 16px; margin: 0 0 8px; }
.feat-card p { font-size: 13.5px; color: var(--text-soft); line-height: 1.55; margin: 0; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.price-card.highlight { border-color: var(--blue); box-shadow: var(--shadow); position: relative; }
.price-card.highlight::before { content: "MOST POPULAR"; position: absolute; top: -12px; left: 24px; background: var(--blue); color: white; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 100px; }
.price-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); font-weight: 700; }
.price-card .amount { font-size: 34px; font-weight: 800; }
.price-card .amount span { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--text-soft); flex-grow: 1; }
.price-card li { display: flex; gap: 8px; align-items: flex-start; }
.price-card li svg { flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: auto; }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 2px; max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-faint); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; margin: 12px 0 0; max-width: 65ch; }

/* final cta */
.final-cta { text-align: center; padding: 90px 0; }
.final-cta h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.final-cta p { color: var(--text-soft); font-size: 16px; margin-bottom: 30px; }
.final-cta .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer.site-footer { border-top: 1px solid var(--line); padding: 46px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-grid .links { display: flex; gap: 26px; font-size: 13.5px; color: var(--text-faint); }
.footer-grid .links a { text-decoration: none; }
.footer-grid .links a:hover { color: var(--text-soft); }
.footer-note { font-size: 12.5px; color: var(--text-faint); margin-top: 18px; }

@media (max-width: 860px) {
  .feat-grid, .price-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  nav .links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  nav .links a { padding: 10px 20px; width: 100%; text-align: center; }
  nav .links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
@media (max-width: 560px) {
  .feat-grid, .price-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; gap: 32px; }
  section { padding: 48px 0; }
  .wrap { padding: 0 18px; }
  .final-cta { padding: 56px 0; }
  .mock-body { padding: 18px; }
}

/* Short/landscape viewports (phones held sideways) - vertical space is the
   scarce resource there, not width, so this tightens vertical rhythm instead
   of changing the column layout the width-based breakpoints already handle. */
@media (max-height: 480px) and (orientation: landscape) {
  header.site-nav nav { padding: 10px 0; }
  .hero { padding: 24px 0 32px; gap: 24px; }
  section { padding: 32px 0; }
  .final-cta { padding: 40px 0; }
  .auth-shell { min-height: auto; padding: 24px 20px; }
}

/* floating support bubble - injected by app.js on every page */
.support-bubble {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.support-bubble:hover { filter: brightness(1.08); }
.support-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 50; padding: 20px;
}
.support-modal-backdrop.open { display: flex; }
.support-modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; width: 100%; max-width: 380px;
}
.support-modal h3 { font-size: 17px; margin-bottom: 6px; }
.support-modal p.sub { color: var(--text-faint); font-size: 13px; margin: 0 0 18px; }
.support-modal input, .support-modal textarea {
  width: 100%; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); padding: 10px 12px;
  font-family: inherit; font-size: 13.5px; margin-bottom: 10px;
}
.support-modal textarea { min-height: 80px; resize: vertical; }
.support-modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* shared by the support bubble (app.js) and my-tickets.html's ticket/reply forms */
.attach-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-faint); }
.attach-row input[type="file"] { font-size: 12px; color: var(--text-faint); max-width: 220px; }

/* auth pages (login/signup/account) */
.auth-shell { min-height: calc(100vh - 65px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand-row { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 28px; }
.auth-card .brand-row img { width: 48px; height: 48px; }
.auth-card h1 { font-size: 22px; text-align: center; }
.auth-card .sub { color: var(--text-soft); font-size: 14.5px; text-align: center; margin-top: 6px; }
.auth-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.field input { background: transparent; border: none; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; padding: 8px 0; font-family: inherit; }
.field input:focus { outline: none; border-bottom-color: var(--blue); }
.field input::placeholder { color: var(--text-faint); }
.auth-panel .btn { width: 100%; }
.auth-error { color: #e5735f; font-size: 13.5px; display: none; }
.auth-error.show { display: block; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-soft); }
.auth-foot a { color: var(--blue-bright); font-weight: 600; text-decoration: none; }

/* account dashboard - .account-shell is reused by narrow single-column pages
   (account.html) and wide data-table pages (admin/support/audit), so it stays
   a plain block; centering is done per-page via max-width + margin:auto on
   the narrow pages' content wrapper instead of forcing every child to
   shrink-wrap, which would squash the admin tables down to content width. */
.account-shell { padding: 40px 0 90px; }
.account-header { text-align: center; margin-bottom: 28px; }
.account-header h1 { font-size: 24px; }
.account-grid { display: grid; gap: 16px; max-width: 640px; margin: 0 auto; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.info-card .label { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.info-card .value { font-size: 17px; font-weight: 700; }
.server-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.server-item .tag { color: var(--text-faint); font-size: 12.5px; }
.lock-pill { font-size: 11.5px; font-weight: 700; color: var(--text-faint); background: var(--bg-raise); padding: 4px 10px; border-radius: 100px; }
.unlock-pill { font-size: 11.5px; font-weight: 700; color: var(--green); background: rgba(47,216,168,0.14); padding: 4px 10px; border-radius: 100px; }
