/* ============================================================
   GLPOneReview.com — Design System
   Editorial dark theme · Emerald accent · Serif/sans pairing
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0a0f0a;
  --bg-2: #0e1410;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.06);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-emerald: rgba(95, 189, 139, 0.35);

  /* Text */
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.42);

  /* Accents */
  --emerald: #5fbd8b;
  --emerald-bright: #7ad7a5;
  --emerald-dim: #2a4a35;
  --emerald-glow: rgba(95, 189, 139, 0.18);
  --cream: #f5efe1;
  --cream-hover: #ede5d2;

  /* Status */
  --warn: #d9a44a;
  --danger: #c8553d;

  /* Type */
  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --sans: 'Manrope', 'Söhne', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  /* Spacing */
  --gutter: clamp(20px, 5vw, 80px);
  --max-w: 1240px;
  --max-w-prose: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: var(--emerald); text-decoration: none; transition: color 140ms ease; }
a:hover { color: var(--emerald-bright); }

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

::selection { background: var(--emerald); color: var(--bg); }

/* Typography ---------------------------------------------------- */

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.8vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); }
h4 { font-size: 1.1rem; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--emerald); font-weight: 400; }

p { color: var(--text-muted); margin-bottom: 1em; }
p strong { color: var(--text); font-weight: 600; }

.lede { font-size: 1.18rem; line-height: 1.55; color: var(--text-muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--emerald);
  padding: 6px 14px;
  border: 1px solid var(--border-emerald);
  border-radius: 999px;
  background: var(--emerald-glow);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Layout -------------------------------------------------------- */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--max-w-prose); }

section { padding: clamp(60px, 8vw, 120px) 0; }
section + section { border-top: 1px solid var(--border); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 28px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Notice bar (top of every page) -------------------------------- */
.notice {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 9px var(--gutter);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.notice strong { color: var(--text); font-weight: 600; }
.notice .sep { margin: 0 12px; color: var(--text-dim); }

/* Top nav ------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 10, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
  letter-spacing: -0.02em; color: var(--text);
}
.brand-mark {
  width: 22px; height: 22px;
  display: inline-block;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-bright) 100%);
  border-radius: 4px;
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 5px;
  border: 1.5px solid var(--bg); border-radius: 1px;
}
.brand em { font-style: italic; color: var(--emerald); }

.nav-links { display: none; gap: 32px; }
.nav-links a {
  color: var(--text-muted); font-size: 0.94rem; font-weight: 400;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-cta {
  font-size: 0.88rem; font-weight: 500;
  color: var(--bg);
  background: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--cream);
  transition: background 160ms;
}
.nav-cta:hover { background: var(--cream-hover); color: var(--bg); }

/* Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  font-family: var(--sans); font-size: 0.96rem; font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cream); color: var(--bg);
  border-color: var(--cream);
}
.btn-primary:hover { background: var(--cream-hover); color: var(--bg); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-emerald);
}
.btn-ghost:hover { background: var(--emerald-glow); color: var(--text); border-color: var(--emerald); }
.btn-emerald {
  background: var(--emerald); color: var(--bg);
  border-color: var(--emerald);
}
.btn-emerald:hover { background: var(--emerald-bright); color: var(--bg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Cards --------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 200ms, background 200ms, transform 200ms;
}
.card:hover { border-color: var(--border-2); background: var(--surface-2); }
.card.linked { display: block; color: inherit; }
.card.linked:hover { transform: translateY(-2px); border-color: var(--border-emerald); color: inherit; }

/* Provider card --------------------------------------------------- */
.provider {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 20px;
  align-items: center;
  grid-template-columns: 1fr;
  transition: all 200ms;
}
.provider:hover { border-color: var(--border-2); }
.provider.featured {
  border: 1px solid var(--border-emerald);
  background: linear-gradient(180deg, rgba(95,189,139,0.04), transparent);
  position: relative;
}
.provider.featured::before {
  content: 'Editor’s #1 Pick';
  position: absolute; top: -12px; left: 24px;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bg);
  background: var(--emerald);
  padding: 4px 12px; border-radius: 999px;
}
@media (min-width: 720px) {
  .provider { grid-template-columns: 1.4fr 1fr 1fr auto; }
}
.provider-name {
  font-family: var(--serif); font-size: 1.4rem; color: var(--text);
  margin-bottom: 4px;
}
.provider-tagline { font-size: 0.86rem; color: var(--text-muted); }
.provider-meta { display: flex; flex-direction: column; gap: 4px; }
.provider-meta-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.provider-meta-val { font-family: var(--sans); font-size: 0.96rem; color: var(--text); font-weight: 500; }
.provider-price {
  font-family: var(--serif); font-size: 1.6rem; color: var(--emerald);
}
.provider-price small { font-size: 0.8rem; color: var(--text-muted); margin-left: 2px; }

/* Score chip -------------------------------------------------------- */
.score {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 4px 12px;
  border: 1px solid var(--border-emerald);
  border-radius: 999px;
  background: var(--emerald-glow);
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--text);
}
.score strong { color: var(--emerald); font-weight: 700; font-size: 0.94rem; }

/* Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table.compare {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
  min-width: 640px;
}
table.compare th, table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.compare th {
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600;
}
table.compare td { color: var(--text-muted); }
table.compare td strong { color: var(--text); font-weight: 600; }
table.compare tr:last-child td { border-bottom: none; }
table.compare tr.hl { background: rgba(95,189,139,0.04); }
table.compare tr.hl td:first-child { color: var(--emerald); font-weight: 600; }

/* FAQ ---------------------------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  padding-right: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--sans); font-weight: 300; font-size: 1.6rem;
  color: var(--emerald);
  transition: transform 200ms;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--text-muted); }

/* Footer -------------------------------------------------------------- */
footer.site {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h5 {
  font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px; font-weight: 600;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--emerald); }

.footer-bottom {
  margin-top: 60px; padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  font-size: 0.82rem; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-muted); }
.disclosure { font-size: 0.78rem; color: var(--text-dim); margin-top: 24px; line-height: 1.6; }

/* Breadcrumb ---------------------------------------------------------- */
.breadcrumb {
  font-size: 0.84rem; color: var(--text-dim);
  padding: 18px var(--gutter);
  max-width: var(--max-w); margin: 0 auto;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--emerald); }
.breadcrumb strong { color: var(--text); font-weight: 500; }
.breadcrumb .sep { color: var(--text-dim); margin: 0 8px; }

/* Hero ---------------------------------------------------------------- */
.hero {
  padding: clamp(60px, 9vw, 140px) 0 clamp(50px, 7vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--emerald-glow) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(95,189,139,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 24px; max-width: 18ch; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Pill tag bar -------------------------------------------------------- */
.tag-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px 0;
  border-block: 1px solid var(--border);
  margin-bottom: 36px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  font-size: 0.84rem;
  border: 1px solid var(--border-emerald);
  border-radius: 999px;
  color: var(--text-muted);
  background: transparent;
}
.tag.active { color: var(--emerald); background: var(--emerald-glow); }

/* Stat strip ----------------------------------------------------------- */
.stats {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding: 24px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.stats > div { display: inline-flex; align-items: center; gap: 8px; }
.stats svg { width: 16px; height: 16px; color: var(--emerald); flex-shrink: 0; }

/* Long-form article styles -------------------------------------------- */
.article {
  max-width: 760px; margin: 0 auto;
}
.article h2 { margin-top: 56px; margin-bottom: 16px; }
.article h3 { margin-top: 36px; margin-bottom: 12px; }
.article p { font-size: 1.04rem; line-height: 1.72; margin-bottom: 1.2em; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 1.2em; color: var(--text-muted); }
.article li { margin-bottom: 8px; line-height: 1.7; }
.article blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 2px solid var(--emerald);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  color: var(--text);
}
.article .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.96rem;
}
.article .callout strong { color: var(--emerald); }

/* Author block --------------------------------------------------------- */
.author {
  display: flex; align-items: center; gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 28px 0;
}
.author-img {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-dim), var(--emerald));
  flex-shrink: 0;
  border: 2px solid var(--border-emerald);
}
.author-meta { font-size: 0.88rem; }
.author-meta strong { color: var(--text); display: block; }
.author-meta span { color: var(--text-muted); }

/* Utility -------------------------------------------------------------- */
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mt-6 { margin-top: 40px; }
.mt-8 { margin-top: 64px; }
.mb-2 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 40px; }
.divider { height: 1px; background: var(--border); margin: 48px 0; border: none; }
.kbd { font-family: var(--mono); font-size: 0.86rem; padding: 2px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--text); }
