/* Steady — shared design system for content pages.
   Extracted from index.html: Newsreader (serif display) + Hanken Grotesk,
   palette #FAF7F2 paper / #54705A sage / #1F211E ink. No red anywhere. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: #1F211E;
  background: #FAF7F2;
  line-height: 1.6;
}
::selection { background: #cfe0d2; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(250,247,242,0.8);
  border-bottom: 1px solid rgba(31,33,30,0.06);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1F211E; }
.nav-logo {
  width: 32px; height: 32px; border-radius: 10px; background: #54705A;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(84,112,90,0.28);
}
.nav-logo span {
  width: 14px; height: 14px; border: 2.4px solid #FAF7F2; border-radius: 50%;
  border-right-color: transparent; transform: rotate(-30deg); display: block;
}
.nav-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.text { color: #4A5049; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a.text:hover { color: #1F211E; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #54705A; color: #FAF7F2; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 9px 18px; border-radius: 999px;
}

/* ---------- article layout ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.page-wide { max-width: 980px; margin: 0 auto; padding: 56px 24px 40px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #54705A; margin-bottom: 14px;
}
h1 {
  font-family: 'Newsreader', serif; font-weight: 400;
  font-size: 46px; line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 18px; text-wrap: balance;
}
h2 {
  font-family: 'Newsreader', serif; font-weight: 400;
  font-size: 31px; line-height: 1.15; letter-spacing: -0.015em;
  margin: 52px 0 14px;
}
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 34px 0 10px; }
p, li { font-size: 17px; color: #33362F; }
li { margin-bottom: 8px; }
a { color: #3C5142; text-decoration-color: rgba(84,112,90,0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: #54705A; }
.lede { font-size: 19.5px; line-height: 1.6; color: #33362F; }
.byline {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  font-size: 14px; color: #6B7268; margin: 20px 0 34px;
  padding-bottom: 22px; border-bottom: 1px solid rgba(31,33,30,0.08);
}

/* ---------- cards & callouts ---------- */
.card {
  background: #FFFFFF; border: 1px solid rgba(31,33,30,0.07);
  border-radius: 20px; padding: 26px 26px;
  box-shadow: 0 10px 26px rgba(31,33,30,0.04);
  margin: 26px 0;
}
.callout {
  background: #E3EBE4; border-radius: 18px; padding: 20px 24px; margin: 26px 0;
  font-size: 16px; color: #33362F;
}
.callout strong { color: #3C5142; }
.note { font-size: 14.5px; color: #6B7268; }

/* grid of cards (competing responses, comparisons) */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.grid-2 .card, .grid-3 .card { margin: 0; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .emoji { font-size: 26px; display: block; margin-bottom: 10px; }

/* ---------- quiz / interactive ---------- */
.quiz-q {
  background: #FFFFFF; border: 1px solid rgba(31,33,30,0.07);
  border-radius: 18px; padding: 22px 24px; margin: 0 0 14px;
}
.quiz-q legend, .quiz-q .q-text { font-size: 16.5px; font-weight: 600; margin-bottom: 14px; padding: 0; }
.quiz-q fieldset { border: none; margin: 0; padding: 0; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-opts label {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid rgba(31,33,30,0.14); border-radius: 999px;
  padding: 8px 14px; font-size: 14.5px; color: #43483F; cursor: pointer;
  background: #FAF7F2; transition: border-color .15s, background .15s;
}
.quiz-opts input { accent-color: #54705A; margin: 0; }
.quiz-opts label:has(input:checked) { background: #E3EBE4; border-color: #54705A; color: #1F211E; }
.btn-primary {
  display: inline-block; background: #54705A; color: #FAF7F2; border: none;
  border-radius: 14px; padding: 15px 28px; font-family: inherit;
  font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
}
.btn-primary[disabled] { opacity: 0.55; cursor: default; }
.btn-quiet {
  display: inline-block; background: transparent; color: #3C5142;
  border: 1.5px solid #54705A; border-radius: 14px; padding: 13px 24px;
  font-family: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer;
  text-decoration: none;
}
.result-band {
  border-radius: 20px; padding: 28px; margin: 26px 0;
  background: #E3EBE4;
}
.result-band h3 { margin: 0 0 10px; font-family: 'Newsreader', serif; font-weight: 400; font-size: 26px; }

/* ---------- trainer ---------- */
.trainer {
  background: #54705A; color: #F1F4EF; border-radius: 26px;
  padding: 40px 32px; margin: 30px 0; text-align: center;
}
.trainer h3 { color: #FAF7F2; margin-top: 0; }
.trainer p { color: #DCE4DB; }
.trainer .ring {
  width: 150px; height: 150px; border-radius: 50%; margin: 22px auto;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.trainer .ring .big { font-family: 'Newsreader', serif; font-size: 40px; color: #FAF7F2; line-height: 1; }
.trainer .ring .small { font-size: 13px; color: #C9D5C7; margin-top: 6px; }
@keyframes steadyPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.trainer .ring.pulsing { animation: steadyPulse 3s ease-in-out infinite; }
.trainer .btn-primary { background: #FAF7F2; color: #1F211E; }

/* ---------- app CTA ---------- */
.app-cta {
  background: #E3EBE4; border-radius: 26px; padding: 42px 34px;
  text-align: center; margin: 56px 0 10px;
}
.app-cta h2 { margin-top: 0; }
.app-cta p { max-width: 480px; margin: 0 auto 24px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1F211E; color: #FAF7F2; text-decoration: none;
  padding: 14px 24px; border-radius: 14px; font-weight: 600; font-size: 16px;
}

/* ---------- sources / disclaimer / footer ---------- */
.sources { font-size: 14.5px; color: #5C625A; }
.sources li { font-size: 14.5px; margin-bottom: 6px; }
.disclaimer {
  font-size: 13.5px; color: #8A8F84; border-top: 1px solid rgba(31,33,30,0.08);
  margin-top: 44px; padding-top: 18px; line-height: 1.55;
}
.related { margin: 40px 0 0; }
.related h2 { font-size: 26px; }
.footer {
  border-top: 1px solid rgba(31,33,30,0.08); background: rgba(255,255,255,0.4);
  margin-top: 70px;
}
.footer-inner {
  max-width: 980px; margin: 0 auto; padding: 36px 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px;
  font-size: 14.5px; color: #6B7268;
}
.footer-inner a { color: #6B7268; text-decoration: none; }
.footer-inner a:hover { color: #1F211E; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.footer-col .head { font-weight: 600; color: #43483F; margin-bottom: 2px; }

/* ---------- language suggestion banner ---------- */
.lang-suggest {
  display: none; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  background: #E3EBE4; color: #3C5142; font-size: 14.5px; padding: 11px 18px; text-align: center;
}
.lang-suggest a { color: #3C5142; font-weight: 600; }
.lang-suggest button { background: none; border: none; color: #6B7268; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------- decoupling trainer stage ---------- */
.dc-picks { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.dc-pick { border-color: #FAF7F2; color: #FAF7F2; background: transparent; }
.dc-pick.sel { background: rgba(255,255,255,0.18); }
.dc-stage { width: 100%; max-width: 330px; margin: 14px auto 2px; }
.dc-svg { width: 100%; height: auto; display: block; overflow: visible; }
.dc-origin { fill: rgba(255,255,255,0.30); }
.dc-node { fill: none; stroke: rgba(255,255,255,0.42); stroke-width: 2; stroke-dasharray: 5 7; }
.dc-nodelabel { fill: #DCE4DB; font: 500 14px 'Hanken Grotesk', system-ui, sans-serif; text-anchor: middle; }
.dc-hold {
  fill: none; stroke: #FAF7F2; stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 188.5; stroke-dashoffset: 188.5; opacity: 0; transition: opacity .25s ease;
}
.dc-mover-dot { fill: #FAF7F2; }
.dc-cue {
  min-height: 3.2em; font-size: 17px; line-height: 1.4; color: #F1F4EF;
  max-width: 360px; margin: 0 auto;
}
.dc-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 8px 0 4px; }
.dc-ring { width: 92px; height: 92px; }
.dc-ring-bg { fill: none; stroke: rgba(255,255,255,0.20); stroke-width: 6; }
.dc-ring-fg {
  fill: none; stroke: #FAF7F2; stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .45s ease;
}
.dc-count { font-size: 14px; font-weight: 600; color: #C9D5C7; }

/* ---------- resources dropdown ---------- */
.nav-dd { position: relative; }
.nav-dd > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 7px;
  color: #4A5049; font-size: 15px; font-weight: 500; padding: 4px 0;
}
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after {
  content: ""; width: 6px; height: 6px;
  border-right: 2px solid #8A8F84; border-bottom: 2px solid #8A8F84;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.nav-dd[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-dd > summary:hover { color: #1F211E; }
.nav-dd-panel {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: min(480px, calc(100vw - 32px));
  background: #FFFFFF; border: 1px solid rgba(31,33,30,0.08);
  border-radius: 20px; box-shadow: 0 20px 48px rgba(31,33,30,0.14);
  padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; z-index: 60;
}
.nav-dd-col .head {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #54705A; margin: 2px 0 8px;
}
.nav-dd-col a {
  display: block; text-decoration: none; color: #33362F;
  font-size: 14.5px; font-weight: 500; line-height: 1.3;
  padding: 8px 10px; margin: 0 -10px; border-radius: 11px;
}
.nav-dd-col a:hover { background: #E3EBE4; color: #1F211E; }
.nav-dd-foot {
  grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(31,33,30,0.08);
}
.nav-dd-foot a {
  text-decoration: none; font-size: 13.5px; font-weight: 600; color: #3C5142;
  background: #F1F4EF; padding: 7px 14px; border-radius: 999px;
}
.nav-dd-foot a:hover { background: #E3EBE4; }

/* ---------- svg diagram ---------- */
.diagram { width: 100%; height: auto; margin: 8px 0; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  h1 { font-size: 35px; }
  h2 { font-size: 26px; }
  .nav { padding: 13px 18px; }
  .nav-links { gap: 14px; }
  .nav-links a.text { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page, .page-wide { padding: 40px 18px 30px; }
  .nav-dd-panel {
    position: fixed; top: 60px; left: 16px; right: 16px; width: auto;
    grid-template-columns: 1fr; gap: 2px 0; padding: 16px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
