/* Network Switcher website: shared styles for the home page, guide and privacy page. */
:root {
  --bg: #FBFBFC;
  --surface: #FFFFFF;
  --surface-2: #F3F4F7;
  --text: #1D1D1F;
  --muted: #5F636A;
  --line: rgba(0,0,0,0.09);
  --accent: #2F6FE4;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(47,111,228,0.09);
  --note: #FFF7E6;
  --note-line: #F0D9A8;
  --kbd: #F1F2F5;
  --shot-shadow: 0 24px 60px rgba(20,30,60,0.16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17181B; --surface: #1F2024; --surface-2: #24262B; --text: #ECECEF; --muted: #A1A4AB;
    --line: rgba(255,255,255,0.10); --accent: #6A9BFF; --accent-ink: #0E1116; --accent-soft: rgba(106,155,255,0.12);
    --note: #2A2418; --note-line: #5A4A28; --kbd: #2A2C31; --shot-shadow: 0 24px 60px rgba(0,0,0,0.45);
  }
}
:root[data-theme="dark"] {
  --bg: #17181B; --surface: #1F2024; --surface-2: #24262B; --text: #ECECEF; --muted: #A1A4AB;
  --line: rgba(255,255,255,0.10); --accent: #6A9BFF; --accent-ink: #0E1116; --accent-soft: rgba(106,155,255,0.12);
  --note: #2A2418; --note-line: #5A4A28; --kbd: #2A2C31; --shot-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .container { padding: 0 32px; } }

/* Site header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 16px; }
.brand:hover { text-decoration: none; }
.app-icon {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(160deg, #3D7BEA, #1F55BD);
  display: flex; align-items: center; justify-content: center;
}
.app-icon svg { width: 60%; height: 60%; }
.app-icon.large { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 22px rgba(31,85,189,0.28); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
@media (max-width: 520px) { .site-nav .hide-small { display: none; } }

.button {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 9px;
  font-size: 15px; font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.button.small { height: 32px; padding: 0 14px; font-size: 14px; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button:hover { text-decoration: none; filter: brightness(1.05); }
.button[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Home page */
.hero { padding-top: 64px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 88px; padding-bottom: 56px; } }
.hero h1 { font-size: clamp(34px, 5.2vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 20px 0 0; }
.hero .lede { color: var(--muted); font-size: 19px; margin: 18px 0 0; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero .small-print { color: var(--muted); font-size: 13px; margin-top: 14px; }
.hero-shot { justify-self: center; max-width: 420px; width: 100%; }
.hero-shot img { filter: drop-shadow(0 18px 40px rgba(20,30,60,0.18)); }

.audience { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.audience .container { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; color: var(--muted); font-size: 15px; }

.feature { padding: 72px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature > *, .hero > * { min-width: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .feature.flip > .text { order: 2; }
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0; }
.feature h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.01em; margin: 8px 0 12px; }
.feature p { color: var(--muted); margin: 0 0 12px; max-width: 34em; }
.feature ul { color: var(--muted); padding-left: 20px; margin: 0; }
.feature li { margin: 6px 0; }
.shot { border-radius: 12px; box-shadow: var(--shot-shadow); }
.shot-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.shot-stack img { width: 100%; }
.shot-stack .notice { max-width: 400px; justify-self: end; filter: drop-shadow(0 12px 28px rgba(20,30,60,0.16)); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; }
.tile h3 { font-size: 16px; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; }
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section > .container > h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em; margin: 0 0 8px; }
.section .intro { color: var(--muted); margin: 0 0 28px; max-width: 40em; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.cta { text-align: center; padding: 80px 0; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin: 16px 0 10px; letter-spacing: -0.015em; }
.cta p { color: var(--muted); margin: 0 auto 26px; max-width: 34em; }
.cta .app-icon.large { margin: 0 auto; }

/* Guide and privacy pages */
/* Only top and bottom: the side padding comes from .container. */
.doc-hero { padding-top: 48px; padding-bottom: 24px; }
.doc-hero h1 { font-size: 36px; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.doc-hero p { color: var(--muted); font-size: 18px; margin: 12px 0 0; max-width: 640px; }
.doc { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .doc { grid-template-columns: 210px 1fr; } }
nav.toc ol { list-style: none; margin: 0; padding: 0; font-size: 14px; border-left: 1px solid var(--line); }
@media (min-width: 900px) { nav.toc ol { position: sticky; top: 80px; } }
nav.toc li a { display: block; padding: 4px 0 4px 14px; color: var(--muted); }
nav.toc li a:hover { color: var(--text); text-decoration: none; }
main.doc-body { min-width: 0; padding-bottom: 80px; }
main.doc-body section { padding-top: 8px; margin-bottom: 44px; scroll-margin-top: 72px; }
main.doc-body h2 { font-size: 24px; margin: 0 0 12px; letter-spacing: -0.005em; }
main.doc-body h3 { font-size: 17px; margin: 26px 0 6px; }
main.doc-body p, main.doc-body li { max-width: 68ch; }
main.doc-body ul, main.doc-body ol { padding-left: 22px; }
main.doc-body li { margin: 4px 0; }
.narrow { max-width: 760px; }
kbd {
  font: 13px/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--kbd);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; white-space: nowrap;
}
code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; background: var(--kbd); border-radius: 4px; padding: 1px 5px; word-break: break-word; }
pre { background: var(--kbd); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.ui { font-weight: 600; }
.note { background: var(--note); border: 1px solid var(--note-line); border-radius: 10px; padding: 12px 16px; margin: 16px 0; max-width: 68ch; }
.note p { margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin: 14px 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
table { border-collapse: collapse; width: 100%; max-width: 680px; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; max-width: 760px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.card h4 { margin: 0 0 4px; font-size: 15px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .container { padding-top: 24px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; margin-left: auto; }
.site-footer a { color: var(--muted); }
