:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #5e6b68;
  --line: #d9e2de;
  --paper: #f7f5ee;
  --surface: #ffffff;
  --sage: #2f7b66;
  --mint: #d9eee5;
  --coral: #d7634f;
  --amber: #d79922;
  --plum: #6a4b7a;
  --sky: #dbeaf2;
  --cream: #f4efe5;
  --shadow: 0 18px 60px rgba(36, 48, 44, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  top: -42px;
  left: 16px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(24, 32, 31, 0.08);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(47, 123, 102, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 760;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.language-switcher a {
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 760;
}

.language-switcher a.is-active {
  background: var(--ink);
  color: #fff;
}

.language-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  width: min(520px, calc(100% - 32px));
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 32, 31, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(24, 32, 31, 0.16);
  transform: translateX(-50%);
}

.language-banner a,
.language-banner button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font: inherit;
  font-weight: 760;
}

.language-banner a {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.language-banner button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.button {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(24, 32, 31, 0.18);
}

.button:hover {
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button-small {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #eef5f0;
  color: var(--sage);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(24, 32, 31, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(217, 238, 229, 0.75), rgba(219, 234, 242, 0.45) 44%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(circle at 88% 18%, rgba(215, 99, 79, 0.12), transparent 28%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 70px);
  padding: 64px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.hero-kicker span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 32, 31, 0.08);
  color: #4b5955;
  font-size: 0.9rem;
  font-weight: 680;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
}

h1 span {
  display: block;
}

.lead {
  margin: 24px 0 0;
  max-width: 660px;
  color: #3f4d49;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-note {
  margin-top: 12px;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.94rem;
}

.reading-path {
  margin-top: 30px;
  max-width: 680px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.reading-path strong,
.reading-path a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.reading-path strong {
  padding-right: 6px;
  color: #33413d;
}

.reading-path a {
  padding: 0 12px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #34413d;
  font-weight: 720;
  text-decoration: none;
  max-width: 100%;
  white-space: normal;
}

.reading-path a:hover {
  border-color: rgba(47, 123, 102, 0.38);
  color: var(--ink);
}

.trust-row {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
}

.metric {
  min-height: 94px;
  padding: 15px;
  border: 1px solid rgba(47, 123, 102, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.editor-note {
  margin-top: 22px;
  max-width: 680px;
  padding: 18px 20px;
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #43504d;
}

.metric strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.15;
}

.metric span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.phone-stack {
  position: relative;
  height: 670px;
}

.phone {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
  border: 8px solid #202624;
}

.phone.primary {
  width: min(360px, 72vw);
  right: 8%;
  top: 0;
  z-index: 2;
}

.hero .phone.primary {
  right: 0;
}

.phone.secondary {
  width: min(286px, 54vw);
  left: 0;
  bottom: 0;
  opacity: 0.96;
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 64px;
  z-index: 3;
  width: 220px;
  padding: 16px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(24, 32, 31, 0.12);
}

.floating-note b,
.floating-note span {
  display: block;
}

.floating-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.band {
  padding: 82px 0;
}

.band.alt {
  background: #edf3ec;
}

.editorial-hero {
  border-bottom: 1px solid rgba(24, 32, 31, 0.1);
  background:
    linear-gradient(110deg, rgba(24, 32, 31, 0.98), rgba(34, 50, 45, 0.96) 56%, rgba(58, 47, 39, 0.92)),
    #17201e;
  color: #fff;
}

.editorial-hero .container {
  min-height: min(760px, calc(100vh - 70px));
  padding: 80px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 46px;
  align-items: center;
}

.editorial-hero .container > * {
  min-width: 0;
  max-width: 100%;
}

.editorial-hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 5.45rem);
  max-width: 760px;
  color: #fff;
}

.editorial-hero .lead {
  color: rgba(255, 255, 255, 0.76);
}

.editorial-hero .eyebrow {
  color: #9ed5bf;
}

.editorial-hero .hero-kicker span {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
}

.editorial-hero .reading-path strong {
  color: rgba(255, 255, 255, 0.74);
}

.editorial-hero .reading-path a {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-deck {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.lead-feature {
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
}

.lead-feature .tag {
  color: var(--sage);
}

.lead-feature h2 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  overflow-wrap: anywhere;
}

.lead-feature p {
  color: var(--muted);
}

.mini-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-feature {
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
  min-width: 0;
  max-width: 100%;
}

.mini-feature span,
.lead-feature .tag {
  font-size: 0.8rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-feature h3 {
  margin-top: 34px;
  font-size: 1.2rem;
}

.content-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.rail-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.rail-panel a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 720;
}

.rail-panel a:last-child {
  border-bottom: 0;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dossier-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dossier-card:hover {
  border-color: rgba(47, 123, 102, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(24, 32, 31, 0.08);
}

.dossier-card code {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f4f2ea;
  color: var(--plum);
}

.dossier-card p {
  color: var(--muted);
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--line);
}

.evidence-strip div {
  padding: 24px;
  background: #fff;
}

.evidence-strip strong {
  display: block;
  margin-bottom: 8px;
}

.evidence-strip p {
  color: var(--muted);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.format-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  border-radius: 8px;
  background: #fff;
}

.format-card span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--sage);
  font-weight: 820;
}

.format-card h3 {
  margin-top: 26px;
  font-size: 1.18rem;
}

.format-card p {
  color: var(--muted);
}

.dossier-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.dossier-summary div {
  padding: 18px;
  background: #fff;
}

.dossier-summary strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sage);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dossier-summary p {
  margin: 0;
  color: #34413d;
}

.container {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile,
.article-card,
.faq-item,
.guide-card,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tile {
  min-height: 260px;
  padding: 24px;
}

.tile .mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--sage);
  font-weight: 820;
}

.tile:nth-child(2) .mark {
  background: #f6e2d7;
  color: var(--coral);
}

.tile:nth-child(3) .mark {
  background: #eee3f2;
  color: var(--plum);
}

.tile h3 {
  margin-top: 24px;
  font-size: 1.32rem;
}

.tile p,
.article-card p,
.guide-card p,
.quote-panel p {
  color: var(--muted);
}

.section-head.wide {
  max-width: 940px;
}

.editorial-visual {
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ingredient-board {
  width: min(520px, 100%);
  border: 1px solid rgba(24, 32, 31, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-header {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: #19211f;
  color: #fff;
}

.board-header span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.ingredient-lines {
  list-style: none;
  margin: 0;
  padding: 14px 0;
}

.ingredient-lines li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(24, 32, 31, 0.08);
}

.ingredient-lines li:last-child {
  border-bottom: 0;
}

.ingredient-lines span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.98rem;
}

.ingredient-lines em {
  font-style: normal;
  color: var(--sage);
  font-size: 0.9rem;
  font-weight: 730;
  white-space: nowrap;
}

.board-note {
  margin: 0 18px 18px;
  padding: 18px;
  border-radius: 8px;
  background: #f2f6ed;
  border: 1px solid rgba(47, 123, 102, 0.16);
}

.board-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(24, 32, 31, 0.12);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.topic-card.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 394px;
  background:
    linear-gradient(135deg, rgba(47, 123, 102, 0.12), rgba(215, 99, 79, 0.08)),
    #fff;
}

.topic-card span {
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 800;
}

.topic-card h3 {
  margin-top: auto;
  font-size: 1.24rem;
}

.topic-card.large h3 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.topic-card p {
  max-width: 440px;
  color: var(--muted);
}

.topic-card:hover,
.keyword-panel a:hover {
  border-color: rgba(47, 123, 102, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(24, 32, 31, 0.08);
}

.topic-card small {
  margin-top: 16px;
  color: var(--muted);
}

.keyword-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.keyword-panel a {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #34413d;
  text-decoration: none;
  font-weight: 680;
}

.intent-lane {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(24, 32, 31, 0.08);
  background: #f2f6ed;
}

.intent-lane .container {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  align-items: start;
}

.intent-lane-head h2 {
  margin-top: 8px;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.intent-lane-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 31, 0.12);
  border-radius: 8px;
  background: rgba(24, 32, 31, 0.12);
}

.intent-lane-grid a {
  min-height: 156px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  text-decoration: none;
}

.intent-lane-grid span {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.intent-lane-grid strong {
  display: block;
  margin-top: 18px;
  color: #24302d;
  line-height: 1.35;
}

.query-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.query-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  border-radius: 8px;
  background: #fff;
}

.query-card span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  background: #eef5f0;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.query-card h3 {
  margin-top: 20px;
  font-size: 1.18rem;
}

.query-card p {
  color: var(--muted);
}

.reading-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.reading-flow div {
  min-height: 150px;
  padding: 20px;
  background: #fff;
}

.reading-flow strong {
  display: block;
  color: var(--ink);
}

.reading-flow p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.source-ladder {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.source-ladder div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.source-ladder strong {
  color: var(--sage);
}

.source-ladder p {
  margin: 0;
  color: var(--muted);
}

.index-band {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.index-band > div {
  padding: 22px;
  background: #fff;
}

.index-band strong {
  display: block;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.index-links a {
  padding: 8px 11px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  border-radius: 8px;
  background: #f8f7f2;
  color: #33413d;
  text-decoration: none;
  font-weight: 710;
}

.library-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.library-sidebar {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.library-sidebar strong {
  display: block;
  margin-bottom: 12px;
}

.library-sidebar a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.library-sidebar a:last-child {
  border-bottom: 0;
}

.cluster-stack {
  display: grid;
  gap: 34px;
}

.cluster {
  padding-top: 2px;
}

.cluster h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cluster-card {
  min-height: 178px;
  padding: 20px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cluster-card:hover {
  border-color: rgba(47, 123, 102, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(24, 32, 31, 0.08);
}

.cluster-card span {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cluster-card h3 {
  margin-top: 28px;
  font-size: 1.12rem;
}

.cluster-card p {
  color: var(--muted);
}

.alpha-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
}

.alpha-strip a {
  min-width: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #33413d;
  text-align: center;
  text-decoration: none;
  font-weight: 760;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.intent-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.intent-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--sage);
}

.intent-card p {
  margin: 0;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.checklist li {
  list-style: none;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checklist strong {
  display: block;
  color: var(--ink);
}

.tool-strip {
  background: #17201e;
  color: #fff;
  overflow: hidden;
}

.tool-strip .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 28px;
  align-items: center;
}

.tool-strip p {
  color: rgba(255, 255, 255, 0.72);
}

.tool-strip .eyebrow {
  color: #9ed5bf;
}

.tool-strip .button {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.tool-preview {
  height: 260px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  align-self: end;
  border: 6px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
}

.tool-preview img {
  width: 100%;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
}

.feature-item .dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-item h3 {
  font-size: 1.08rem;
}

.feature-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.screen-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(24, 32, 31, 0.16);
  background: #171c1a;
  box-shadow: var(--shadow);
}

.article-card,
.guide-card {
  overflow: hidden;
  min-height: 100%;
}

.article-card a,
.guide-card a {
  display: block;
  height: 100%;
  padding: 24px;
  text-decoration: none;
}

.article-card h3,
.guide-card h3 {
  font-size: 1.22rem;
}

.article-card .tag,
.guide-card .tag {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 780;
}

.article-card:hover,
.guide-card:hover {
  border-color: rgba(47, 123, 102, 0.45);
  transform: translateY(-2px);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  font-weight: 820;
}

.faq-item.is-open button::after {
  content: "-";
}

.faq-item div {
  display: none;
  padding: 0 22px 22px;
  color: var(--muted);
}

.faq-item.is-open div {
  display: block;
}

.cta {
  background: var(--ink);
  color: #fff;
}

.cta .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
}

.cta p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.cta .button {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid rgba(24, 32, 31, 0.08);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
}

.page-hero {
  padding: 74px 0 48px;
  border-bottom: 1px solid rgba(24, 32, 31, 0.08);
  background: linear-gradient(120deg, rgba(217, 238, 229, 0.78), rgba(251, 250, 246, 0.6));
}

.page-hero .content-wrap {
  position: relative;
}

.reading-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reading-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(24, 32, 31, 0.08);
  color: #4b5955;
  font-size: 0.9rem;
  font-weight: 680;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.content-wrap {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
}

.prose {
  padding: 56px 0 80px;
  font-size: 1.06rem;
}

.article-shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 56px 0 84px;
  display: grid;
  grid-template-columns: 260px minmax(0, 780px);
  gap: 56px;
  align-items: start;
}

.article-shell > * {
  min-width: 0;
}

.article-shell .prose {
  width: auto;
  padding: 0;
  min-width: 0;
}

.toc-card {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.toc-card strong {
  display: block;
  margin-bottom: 12px;
}

.toc-card a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.toc-card a:hover {
  color: var(--ink);
}

.prose h2 {
  margin-top: 42px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.prose h3 {
  margin-top: 28px;
  font-size: 1.24rem;
}

.prose p,
.prose li {
  color: #3f4d49;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.callout {
  margin: 34px 0;
  padding: 22px;
  border-left: 5px solid var(--sage);
  border-radius: 8px;
  background: var(--surface);
}

.takeaway {
  margin: 32px 0;
  padding: 24px;
  border-radius: 8px;
  background: #17201e;
  color: #fff;
}

.takeaway p {
  color: rgba(255, 255, 255, 0.76);
}

.related-box {
  margin-top: 46px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.related-box h2 {
  margin-top: 0;
}

.related-links {
  display: grid;
  gap: 10px;
}

.related-links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 720;
}

.related-links a:last-child {
  border-bottom: 0;
}

.article-app-cta {
  margin-top: 44px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(47, 123, 102, 0.26);
  border-radius: 8px;
  background: #eef7f1;
}

.article-app-cta span {
  display: block;
  margin-bottom: 4px;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-app-cta strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.25;
}

.article-app-cta p {
  margin: 8px 0 0;
  color: #44534f;
}

.app-proof {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-proof div {
  padding: 14px;
  border: 1px solid rgba(24, 32, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.app-proof strong {
  display: block;
  line-height: 1.25;
}

.app-proof span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-deep-links {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-deep-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #33413d;
  font-weight: 720;
  text-decoration: none;
}

.comparison {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: var(--surface);
  max-width: 100%;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.comparison th,
.comparison td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  background: #f4f2ea;
}

.comparison tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    padding: 20px 16px 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .language-switcher {
    align-self: flex-start;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .hero-inner,
  .editorial-hero .container,
  .feature-row,
  .cta .container,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .editorial-hero .container {
    min-height: auto;
    padding: 54px 0 46px;
    gap: 28px;
  }

  .hero-kicker,
  .reading-path {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reading-path strong {
    padding-right: 0;
  }

  .reading-path a {
    justify-content: center;
    text-align: center;
  }

  .content-rail {
    grid-template-columns: 1fr;
  }

  .rail-panel {
    position: static;
  }

  .dossier-grid,
  .evidence-strip,
  .format-grid,
  .intent-lane .container,
  .intent-grid,
  .query-map,
  .reading-flow,
  .index-band,
  .library-panel,
  .cluster-grid,
  .source-ladder div {
    grid-template-columns: 1fr;
  }

  .library-sidebar {
    position: static;
  }

  .hero-inner {
    padding-top: 42px;
    gap: 28px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .phone-stack {
    height: 590px;
  }

  .phone.primary {
    right: 0;
  }

  .phone.secondary {
    left: 4px;
  }

  .grid.three,
  .grid.four,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .article-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-shell .prose {
    order: 1;
  }

  .toc-card {
    order: 2;
    display: none;
    position: static;
  }

  .intent-lane-grid {
    grid-template-columns: 1fr;
  }

  .intent-lane-grid a {
    min-height: auto;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-card.large {
    grid-column: span 2;
    min-height: 280px;
  }

  .tool-strip .container {
    grid-template-columns: 1fr;
  }

  .tool-preview {
    width: 220px;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.24rem;
  }

  .editorial-hero h1 {
    font-size: 2.28rem;
    line-height: 1.08;
  }

  .lead-feature h2 {
    font-size: 1.42rem;
    line-height: 1.15;
  }

  .lead {
    font-size: 0.98rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .editorial-hero .container {
    width: calc(100vw - 32px);
    min-height: auto;
    padding: 48px 0 36px;
    display: block;
    overflow: hidden;
  }

  .editorial-hero .lead,
  .editorial-hero h1,
  .hero-deck,
  .lead-feature,
  .mini-feature {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .editorial-hero .container > div,
  .editorial-hero p,
  .lead-feature h2,
  .lead-feature p,
  .mini-feature h3 {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-deck {
    margin-top: 32px;
  }

  .hero-kicker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: break-word;
  }

  .reading-path strong {
    grid-column: 1 / -1;
  }

  .reading-path a {
    justify-content: center;
    text-align: center;
  }

  .mini-features {
    grid-template-columns: 1fr;
  }

  .dossier-card {
    min-height: 210px;
  }

  .dossier-summary {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
  }

  .editorial-visual {
    min-height: auto;
  }

  .ingredient-lines li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card.large {
    grid-column: auto;
  }

  .phone-stack {
    height: 480px;
  }

  .phone.primary {
    width: 70vw;
  }

  .phone.secondary {
    width: 52vw;
  }

  .floating-note {
    width: min(220px, 62vw);
    bottom: 18px;
  }

  .band {
    padding: 58px 0;
  }

  .hero-actions,
  .cta .button {
    width: 100%;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .page-hero {
    padding: 54px 0 38px;
  }

  .reading-meta span {
    width: 100%;
  }

  .language-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .article-app-cta,
  .app-proof {
    grid-template-columns: 1fr;
  }
}
