/* ============================================================
   SnagDesk shared styles
   One stylesheet for the whole site. Tokens + components.
   ============================================================ */

:root {
  --bg: #EFF2E8;
  --surface: #FFFFFF;
  --border: #DCE0D2;
  --text: #1F2A22;
  --text-muted: #5A6B5F;
  --text-subtle: #8A9690;
  --brand: #1F3A2B;
  --lime: #C8E64A;
  --lime-ink: #1F2A06;
  --danger: #C2362B;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 34, 0.04), 0 4px 16px rgba(31, 42, 34, 0.05);
  --shadow-md: 0 2px 4px rgba(31, 42, 34, 0.05), 0 12px 36px rgba(31, 42, 34, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessible focus ring on every interactive element */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(239, 242, 232, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
header.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand .logo { width: 36px; height: 36px; border-radius: 9px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 20px;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease;
}
.btn-lime {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 1px 2px rgba(31,42,6,.12);
}
.btn-lime:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(200, 230, 74, .45); }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-1px); }

.nav .btn { padding: 9px 18px; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 24px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(200,230,74,.25); }

h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 22px;
  color: var(--brand);
}
h1 .accent {
  background: linear-gradient(180deg, transparent 62%, var(--lime) 62%);
  padding: 0 4px;
}

.subhead {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Apple App Store badge: official unmodified artwork */
.appstore-badge {
  display: inline-flex;
  border-radius: 9px;
  transition: transform .12s ease, box-shadow .2s ease;
}
.appstore-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.badge-svg { height: 52px; width: 155.6px; display: block; }

/* ---------- Phone mockups ---------- */
.mockups {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 22px;
  margin-top: 72px;
  padding-bottom: 8px;
}
.phone {
  width: 232px;
  aspect-ratio: 9 / 19.5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-md);
  flex: none;
}
.phone.center { transform: translateY(-26px) scale(1.04); z-index: 2; }
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 29px;
  display: block;
  border: 1px solid var(--border);
}
@media (max-width: 880px) {
  .mockups { gap: 14px; }
  .mockups .phone { width: 30vw; }
  .mockups .phone.center { transform: translateY(-16px) scale(1.04); }
}
@media (max-width: 560px) {
  .mockups { gap: 12px; }
  .mockups .phone { width: 40vw; padding: 7px; border-radius: 30px; }
  .mockups .phone:first-child { display: none; }
  .mockups .phone.center { transform: none; }
  .fh-shot .phone, .sample-shot .phone { width: 66vw; max-width: 300px; }
}

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-tag {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-subtle);
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--brand);
}
.section-head p { color: var(--text-muted); font-size: 18px; margin: 0; }

/* ---------- The problem (3 columns) ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.problem-card .pc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(194, 54, 43, 0.08);
  color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.problem-card .pc-icon svg { width: 24px; height: 24px; }
.problem-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text); letter-spacing: -0.01em; }
.problem-card p { color: var(--text-muted); font-size: 15.5px; margin: 0; }
@media (max-width: 820px) { .problem-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
a.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--lime-ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.feature p { color: var(--text-muted); font-size: 15.5px; margin: 0; }
.feature .arrow { color: var(--text-subtle); transition: transform .15s ease; }
a.feature:hover .arrow { transform: translateX(3px); color: var(--brand); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- How it works (dark) ---------- */
.how { background: var(--brand); color: #EAF0E4; }
.how h2, .how .section-tag { color: #fff; }
.how .section-tag { color: var(--lime); }
.how .section-head p { color: rgba(234,240,228,.72); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; color: #fff; letter-spacing: -0.01em; }
.step p { color: rgba(234,240,228,.72); font-size: 15.5px; margin: 0 0 20px; }
.step-img {
  margin-top: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #000;
  aspect-ratio: 9 / 12;
}
.step-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ---------- Sample report ---------- */
.sample { text-align: center; }
.sample-shot { display: flex; justify-content: center; }
.sample-shot .phone { width: 286px; }
.sample .note { color: var(--text-subtle); font-size: 14px; margin-top: 24px; }

/* ---------- Who it's for ---------- */
.who {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.who-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.who-card .wc-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--bg); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.who-card .wc-icon svg { width: 22px; height: 22px; }
.who-card h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.who-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
@media (max-width: 860px) { .who { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .who { grid-template-columns: 1fr; } }

/* ---------- Comparison table ---------- */
.compare-wrap { max-width: 820px; margin: 0 auto; overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 520px;
}
.compare th, .compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.compare thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-subtle);
  background: var(--bg);
}
.compare thead th.snagdesk { color: var(--brand); }
.compare tbody th { font-weight: 600; color: var(--text); }
.compare td { color: var(--text-muted); }
.compare td.yes { color: var(--brand); font-weight: 600; }
.compare col.snagdesk-col { background: rgba(200,230,74,.10); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }

/* ---------- Pricing teaser ---------- */
.pricing-teaser {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 32px;
  box-shadow: var(--shadow-sm);
}
.pricing-teaser .price { font-size: 44px; font-weight: 800; color: var(--brand); letter-spacing: -0.03em; margin: 6px 0 4px; }
.pricing-teaser .price-sub { color: var(--text-muted); font-size: 16px; margin: 0 0 24px; }
.pricing-teaser .kicker { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--text-subtle); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
details[open] { box-shadow: var(--shadow-md); }
summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary .chev { flex: none; width: 22px; height: 22px; color: var(--text-subtle); transition: transform .2s ease; }
details[open] summary .chev { transform: rotate(180deg); color: var(--brand); }
details .faq-body { padding: 0 0 24px; }
details .faq-body p { margin: 0; color: var(--text-muted); font-size: 15.5px; max-width: 92%; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 64px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.final-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% -20%, rgba(200,230,74,.18), transparent 55%);
  pointer-events: none;
}
.final-cta h2 { margin-bottom: 12px; }
.final-cta p { color: var(--text-muted); font-size: 18px; max-width: 480px; margin: 0 auto 32px; }
.final-cta .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; margin-bottom: 12px; }
.footer-brand .logo { width: 28px; height: 28px; border-radius: 7px; }
.footer-blurb { color: var(--text-muted); font-size: 14.5px; max-width: 320px; margin: 0; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-subtle); margin: 0 0 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: color .15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-copy { color: var(--text-subtle); font-size: 13.5px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { text-decoration: none; color: var(--text-subtle); font-size: 13.5px; font-weight: 500; }
.footer-legal a:hover { color: var(--text); }
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Breadcrumbs (used on sub-pages) ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--text-subtle); padding-top: 24px; }
.breadcrumbs a { text-decoration: none; color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 8px; opacity: .6; }

/* ---------- Prose (article / legal / feature body) ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(24px, 3.5vw, 32px); margin: 44px 0 14px; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--brand); margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p { color: var(--text-muted); font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.prose ul, .prose ol { color: var(--text-muted); font-size: 17px; line-height: 1.7; padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); font-weight: 600; }
.prose strong { color: var(--text); }

/* ---------- Feature / content page ---------- */
.feature-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0 56px;
}
.fh-text h1 { text-align: left; font-size: clamp(30px, 4.6vw, 50px); margin-bottom: 18px; }
.fh-text .lead { font-size: 19px; color: var(--text-muted); margin: 0 0 28px; line-height: 1.6; }
.fh-shot { display: flex; justify-content: center; }
.fh-shot .phone { width: 260px; }
.fh-shot .phone.center { transform: none; }
@media (max-width: 820px) {
  .feature-hero { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .fh-text h1 { text-align: center; }
  .fh-shot { order: -1; }
}

.content { padding: 24px 0 72px; }

.works-with {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 720px;
  margin: 12px auto 0;
}
.ww-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
  display: block;
}
.ww-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ww-card .ww-label { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; color: var(--text-subtle); }
.ww-card h3 { font-size: 17px; font-weight: 700; margin: 6px 0 4px; color: var(--brand); letter-spacing: -0.01em; }
.ww-card p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
@media (max-width: 560px) { .works-with { grid-template-columns: 1fr; } }

/* ---------- Professional nav (dropdowns + mobile) ---------- */
.nav { position: relative; }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-menu { display: flex; align-items: center; gap: 10px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.nav-list > li > a:hover,
.nav-trigger:hover { color: var(--text); background: rgba(31,42,34,.05); }
.nav-trigger .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.has-dropdown:hover .nav-trigger .chev,
.has-dropdown.open .nav-trigger .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.dropdown a:hover { background: var(--bg); }
.dropdown a strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.dropdown a span { display: block; font-size: 12.5px; color: var(--text-subtle); margin-top: 2px; }
.dropdown-wide {
  display: flex;
  gap: 8px;
  width: 560px;
  min-width: 0;
  left: 50%;
  margin-left: -280px;
}
.dd-col { flex: 1; min-width: 0; }
.dd-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subtle);
  padding: 8px 12px 6px;
}
.dropdown a.dd-all {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand);
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  margin-top: 6px;
}
.feature-hero-solo { grid-template-columns: 1fr; max-width: 760px; }
@media (max-width: 900px) {
  .dropdown-wide { display: block; width: auto; left: auto; margin-left: 0; }
  .dd-label { padding: 10px 8px 4px; }
}
.nav-cta { margin-left: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 14px 24px 22px;
  }
  .nav-menu.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-list > li > a,
  .nav-trigger { width: 100%; justify-content: space-between; padding: 13px 6px; font-size: 16px; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 2px 0 8px 10px; min-width: 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown:not(.forced) { }
  .dropdown a { padding: 9px 8px; }
  .nav-cta { width: 100%; margin: 12px 0 0; }
}

/* ---------- Blog & glossary ---------- */
.article-head { padding: 28px 0 8px; }
.article-head h1 { text-align: left; font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.article-head .lead { font-size: 19px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.6; }
.post-meta { color: var(--text-subtle); font-size: 14px; font-weight: 500; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-meta .dot-sep { opacity: .6; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card .pc-tag { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; color: var(--text-subtle); margin-bottom: 10px; }
.post-card h3 { font-size: 18px; font-weight: 700; color: var(--brand); margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.25; }
.post-card p { font-size: 14.5px; color: var(--text-muted); margin: 0 0 14px; }
.post-card .pc-meta { margin-top: auto; font-size: 13px; color: var(--text-subtle); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.glossary-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.glossary-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.glossary-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.glossary-item h3 { font-size: 17px; font-weight: 700; color: var(--brand); margin: 0 0 6px; }
.glossary-item p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
@media (max-width: 620px) { .glossary-list { grid-template-columns: 1fr; } }

.prose .definition { font-size: 18px; color: var(--text); border-left: 3px solid var(--lime); padding-left: 16px; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 32px 0 8px;
  box-shadow: var(--shadow-sm);
}
.callout h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--brand); }
.callout ul { margin: 0; padding-left: 20px; }
.callout li { font-size: 15.5px; color: var(--text-muted); margin-bottom: 6px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
