/* WiFi X-Ray — design system
   One stylesheet for the marketing site and the research library. Tokens first,
   then layout, then components. Light and dark are both first-class: the app
   ships a Light default, so the site must not look like a dark-mode-only product. */

:root {
  color-scheme: light dark;

  /* Brand green, matched to Theme.accent in the app. Darkened from the first
     pass because #1d8a44 measured 4.4:1 on white, just under the WCAG AA 4.5:1
     floor for body text and button labels. #15803d clears it at 5.0:1. */
  --accent:        #15803d;
  --accent-hover:  #126b31;
  --accent-soft:   rgba(21, 128, 61, 0.10);
  --accent-line:   rgba(21, 128, 61, 0.24);

  --fg:            #14161a;
  --fg-strong:     #05070a;
  --muted:         #5c636e;
  --bg:            #ffffff;
  --bg-alt:        #f6f8f7;
  --card:          #ffffff;
  --line:          #e3e7e5;
  --shadow:        0 1px 2px rgba(10,20,15,.04), 0 12px 32px rgba(10,20,15,.06);
  --shadow-lg:     0 24px 70px rgba(10,20,15,.14);

  --radius:        14px;
  --radius-lg:     20px;
  --maxw:          1120px;
  --readw:         720px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent:       #34c759;
    --accent-hover: #4cd971;
    --accent-soft:  rgba(52, 199, 89, 0.12);
    --accent-line:  rgba(52, 199, 89, 0.26);
    --fg:           #e9edf0;
    --fg-strong:    #ffffff;
    --muted:        #98a1ad;
    --bg:           #0b0d10;
    --bg-alt:       #12151a;
    --card:         #14181d;
    --line:         #232830;
    --shadow:       0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.36);
    --shadow-lg:    0 24px 70px rgba(0,0,0,.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }

/* overflow-x on the root rather than on body: setting it on body alone gets
   propagated to the viewport and then body stops clipping its own children,
   which is how a decorative glow ends up widening the document. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--fg-strong); letter-spacing: -0.021em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 6vw, 62px); letter-spacing: -0.033em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 21px; }
p  { margin: 0 0 1.15em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--readw); margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--fg-strong); font-size: 16px; white-space: nowrap; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  overflow: hidden; display: grid; place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 15px; }
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg-strong); text-decoration: none; }
/* `.site-nav a` outranks `.btn` on specificity, which silently stripped the
   button's white label down to muted grey on green. Restate it here. */
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; }
@media (max-width: 640px) {
  .site-nav { gap: 14px; font-size: 14px; }
  .site-nav .hide-sm { display: none; }
}
@media (max-width: 460px) {
  .site-head .wrap { gap: 10px; }
  .site-nav { gap: 10px; }
  .site-nav .hide-xs { display: none; }
  .theme-toggle b { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent); color: #fff; font-weight: 620; font-size: 16px;
  padding: 13px 26px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.10);
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-line); }
.btn:active { transform: translateY(0); }
.btn.alt { background: transparent; color: var(--fg-strong); border-color: var(--line); box-shadow: none; }
.btn.alt:hover { background: var(--bg-alt); color: var(--fg-strong); border-color: var(--accent-line); }
.btn.sm { padding: 9px 17px; font-size: 14.5px; border-radius: 10px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
  font-size: 13px; font-weight: 620; padding: 5px 13px; border-radius: 999px;
  letter-spacing: .01em;
}
.tag {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 20% auto; height: 460px;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 68%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { margin: 20px auto 16px; max-width: 15ch; }
.hero .lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 60ch; margin: 0 auto 30px; }
.hero .fineprint { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin: 0 auto clamp(34px, 5vw, 52px); text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.eyebrow {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 15px;
}
.card .ico svg { width: 20px; height: 20px; }

a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
a.card:hover h3 { color: var(--accent); }

/* ---------- Screenshot figures ---------- */
figure.shot { margin: 0; }
figure.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
figure.shot figcaption { margin-top: 13px; color: var(--muted); font-size: 15px; text-align: center; }
.hero-shot { margin: clamp(30px, 5vw, 54px) auto 0; max-width: 980px; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
.tbl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
td.yes, td .yes { color: var(--accent); font-weight: 650; }
td.no,  td .no  { color: var(--muted); }

/* ---------- Article typography ---------- */
.article { padding: clamp(34px, 5vw, 56px) 0 clamp(56px, 8vw, 88px); }
.article-head { max-width: var(--readw); margin: 0 auto clamp(28px, 4vw, 40px); }
.article-head h1 { font-size: clamp(31px, 4.6vw, 46px); margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--muted); font-size: 14.5px; }

.prose { max-width: var(--readw); margin: 0 auto; font-size: 18px; line-height: 1.72; }
.prose h2 { font-size: clamp(23px, 2.7vw, 29px); margin: 2em 0 .55em; }
.prose h3 { font-size: 20px; margin: 1.7em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--fg-strong); font-weight: 640; }
.prose code {
  font: 15px/1.5 var(--mono); background: var(--bg-alt);
  border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px;
}
.prose table { margin: 0 0 1.5em; font-size: 16.5px; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  color: var(--muted); font-style: italic;
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* Answer block — the passage AI answer engines are most likely to lift. */
.answer {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius); padding: 22px 24px; margin: 0 0 30px;
  font-size: 18.5px; line-height: 1.6;
}
.answer p:last-child { margin-bottom: 0; }
.answer .lbl { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }

.takeaways { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 34px; }
.takeaways h2 { font-size: 15px !important; text-transform: uppercase; letter-spacing: .075em; color: var(--muted); margin: 0 0 12px !important; }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { margin-bottom: .45em; }
.takeaways li:last-child { margin-bottom: 0; }

.faq { margin-top: 2.6em; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 11px; background: var(--card);
}
.faq details[open] { border-color: var(--accent-line); }
.faq summary { cursor: pointer; font-weight: 620; color: var(--fg-strong); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Read next: cross-links to topically related articles */
.read-next { margin: 2.6em 0 0; }
.read-next h2 { font-size: 15px !important; text-transform: uppercase; letter-spacing: .075em; color: var(--muted); margin: 0 0 14px !important; }
.read-next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.read-next-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; background: var(--card); text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.read-next-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.read-next-card .tag { margin-bottom: 8px; }
.read-next-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--fg-strong); }
.read-next-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* In-article product callout */
.callout {
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: var(--radius-lg); padding: 24px 26px; margin: 2.4em 0;
}
.callout h3 { margin: 0 0 8px; font-size: 19px; }
.callout p { margin: 0 0 16px; color: var(--muted); font-size: 16.5px; }

/* ---------- Research index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 34px; }
.filters button {
  font: inherit; font-size: 14.5px; font-weight: 560; cursor: pointer;
  background: var(--card); color: var(--muted);
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
  transition: all .15s ease;
}
.filters button:hover { border-color: var(--accent-line); color: var(--fg-strong); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.post-list { display: grid; gap: 18px; }
.post {
  display: grid; grid-template-columns: 118px 1fr; gap: 24px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 26px; color: inherit; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.post:hover h3 { color: var(--accent); }
.post time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.post h3 { margin: 0 0 7px; font-size: 20px; }
.post p { margin: 0 0 11px; color: var(--muted); font-size: 16px; }
@media (max-width: 620px) {
  .post { grid-template-columns: 1fr; gap: 10px; }
  .post time { padding-top: 0; }
}

.year-head {
  display: flex; align-items: center; gap: 16px; margin: 44px 0 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.year-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.year-head:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 52px 0 60px; background: var(--bg-alt); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .075em; color: var(--muted); margin-bottom: 13px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; font-size: 15px; }
.foot-grid a { color: var(--fg); }
.foot-grid a:hover { color: var(--accent); }
.foot-note { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* The landing page now carries its own stylesheet (css/home.css); the former
   `body.home` override block lived here and was removed with the redesign. */
