/* Meydo beta — stiluri comune pentru pagina de start și Ghidul de decizie SEO. */

/* ---------- Fonturi (găzduite local, licență SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokenuri ---------- */
:root {
  --ivory: #F7F3EA;      /* Ivory Claritate — fundal principal */
  --ink: #16211F;        /* Verde Închis — text și titluri */
  --green: #2F6F62;      /* Verde Mineral — linkuri și acțiuni */
  --muted: #66726E;      /* Gri Sistem — text secundar */
  --ochre: #C68B42;      /* Ocru Descoperire — accente rare, doar decorativ */

  --paper: #FFFDF8;
  --green-hover: #245A4F;
  --green-soft: #E2EBE5;
  --ochre-soft: #F3E9D8;
  --line: rgba(22, 33, 31, .14);
  --shadow: 0 24px 70px rgba(22, 33, 31, .08);
  --radius: 22px;
  --content: 1160px;

  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(47, 111, 98, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 98, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-heading); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-hover); }
button, input { font: inherit; }
img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }

.wrap { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; color: var(--paper); }

.kicker, .eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { background: var(--green); border-color: var(--green); color: var(--paper); transform: translateY(-1px); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--paper); border-color: var(--green); color: var(--green); }
.text-link { color: var(--ink); font-size: .9rem; text-decoration-thickness: 1px; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-symbol { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; letter-spacing: -.04em; }

/* ---------- Subsol ---------- */
.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-row p { margin: 0; }
.footer-brand { color: var(--ink); font-family: var(--font-heading); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--green); }

/* ---------- Pagina de start ---------- */
.page-home, .page-error { display: flex; flex-direction: column; min-height: 100vh; }
.home-header { padding: 24px 0; }
.home-main, .error-main { flex: 1; display: flex; align-items: center; }
.home-hero { max-width: 760px; padding: 48px 0 80px; }
.home-mark { margin-bottom: 28px; }
.home-symbol { width: 96px; height: 96px; }
.home-hero h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.055em; }
.home-intro { max-width: 640px; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.25rem); line-height: 1.6; }
.home-note {
  max-width: 600px;
  margin: 28px 0;
  padding: 14px 0 14px 20px;
  border-left: 3px solid var(--ochre);
  font-weight: 500;
}
.home-action { margin: 0 0 12px; }
.home-hint { color: var(--muted); font-size: .875rem; }
.error-box { max-width: 680px; padding: 48px 0 80px; }
.error-box h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* Animație discretă a simbolului: o singură apariție, fără buclă. */
.is-animated .logo-c1, .is-animated .logo-c2, .is-animated .logo-c3 {
  transform-box: fill-box;
  transform-origin: center;
  animation: logo-in .9s cubic-bezier(.2, .7, .2, 1) both;
}
.is-animated .logo-c2 { animation-delay: .12s; }
.is-animated .logo-c3 { animation-delay: .24s; }
@keyframes logo-in {
  from { opacity: .35; transform: scale(.82); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Ghid: antet ---------- */
.guide-header { position: relative; z-index: 20; padding-top: 14px; }
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  min-height: 62px;
  padding: 8px 12px 8px 18px;
  border: 1px solid rgba(22, 33, 31, .12);
  border-radius: 999px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 8px 30px rgba(22, 33, 31, .04);
}
.header-brand { display: flex; align-items: center; gap: 14px; }
.header-context { margin: 0; padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.section-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
.section-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
}
.section-nav a:hover { color: var(--green); background: var(--green-soft); }
.section-nav a[aria-current="true"] { color: var(--ink); background: var(--green-soft); }

@media (min-width: 1061px) {
  .guide-header { position: sticky; top: 0; padding-top: 12px; }
}

/* ---------- Ghid: hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding: 72px 0 88px;
}
.hero h1 { max-width: 700px; margin-bottom: 24px; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -.06em; }
.hero-copy { max-width: 600px; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.25rem); line-height: 1.55; }
.hero-modes-label { margin: 30px 0 12px; font-size: .9rem; font-weight: 600; }
.hero-modes { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

.map-card {
  position: relative;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(22, 33, 31, .12);
  border-radius: 32px;
  background: rgba(255, 253, 248, .76);
  box-shadow: var(--shadow);
}
.map-card svg { display: block; width: 100%; height: auto; }
.map-labels { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--ink); }
.map-here { fill: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.map-path { stroke-dasharray: 5 7; animation: trace 20s linear infinite; }
@keyframes trace { to { stroke-dashoffset: -120; } }
.map-note { max-width: 300px; margin: 6px 0 0 auto; color: var(--muted); font-size: .8rem; line-height: 1.45; text-align: right; }

/* ---------- Ghid: secțiuni ---------- */
.two-col { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.intro-section { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-section h2, .section-heading h2, .section-aside h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.05em; line-height: 1.08; }
.prose { max-width: 680px; color: var(--muted); }
.pullquote {
  margin: 30px 0;
  padding: 18px 0 18px 24px;
  border-left: 3px solid var(--ochre);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.35;
}
.pullquote p { margin: 0; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scope-item { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.scope-item h3 { color: var(--ink); font-size: 1.05rem; }
.scope-item p { margin: 0; color: var(--muted); font-size: .92rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: 40px; }
.section-heading h2 { max-width: 640px; margin: 0; }
.section-heading > p { max-width: 380px; margin: 0 0 4px; color: var(--muted); font-size: .95rem; }

.directions-section { padding: 96px 0 88px; }
.direction-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.direction-grid::before { content: ""; position: absolute; top: 33px; left: 14%; right: 14%; border-top: 1px dashed rgba(47, 111, 98, .4); }
.direction { position: relative; padding: 24px 26px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 248, .85); }
.direction-dot { position: relative; z-index: 1; display: block; width: 19px; height: 19px; margin-bottom: 22px; border: 5px solid var(--ivory); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px rgba(47, 111, 98, .4); }
.direction-prepare .direction-dot { background: var(--ochre); box-shadow: 0 0 0 1px rgba(198, 139, 66, .45); }
.direction-other .direction-dot { background: var(--muted); box-shadow: 0 0 0 1px rgba(102, 114, 110, .4); }
.direction-label { margin-bottom: 6px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.direction h3 { font-size: 1.3rem; }
.direction p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }

.content-section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-aside .muted { max-width: 360px; margin-top: 18px; font-size: .95rem; }
@media (min-width: 851px) { .section-aside { position: sticky; top: 110px; } }
.reason-group { margin-bottom: 34px; }
.reason-group:last-child { margin-bottom: 0; }
.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.group-title::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.reason { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.reason:last-child { border-bottom: 0; }
.reason-num { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(47, 111, 98, .3); border-radius: 50%; color: var(--green); font-size: .75rem; font-weight: 700; }
.reason h4 { margin: 2px 0 6px; font-size: 1.1rem; letter-spacing: -.025em; line-height: 1.3; }
.reason p { margin: 0; color: var(--muted); font-size: .92rem; }

.signals-section { padding: 96px 0; background: var(--ink); color: var(--ivory); }
.signals-section .kicker { color: #9EC5B7; }
.signals-section .section-heading > p { color: rgba(247, 243, 234, .78); }
.signals-section :focus-visible { outline-color: var(--ivory); }
.signal-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; border-top: 1px solid rgba(247, 243, 234, .2); }
.signal { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid rgba(247, 243, 234, .2); }
.signal-node { width: 13px; height: 13px; margin: 6px 0 0 5px; border: 1px solid #ABD2C3; border-radius: 50%; box-shadow: 0 0 0 5px rgba(171, 210, 195, .1); }
.signal:nth-child(3n) .signal-node { border-color: #E5B875; box-shadow: 0 0 0 5px rgba(229, 184, 117, .11); }
.signal p { margin: 0; color: rgba(247, 243, 234, .82); font-size: .95rem; }
.signal strong { color: var(--paper); font-weight: 600; }

/* ---------- Ghid: alegerea modului ---------- */
.modes-section { padding: 96px 0 40px; }
.mode-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-card { position: relative; }
.mode-input { position: absolute; top: 28px; left: 26px; width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.mode-card label {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 26px 26px 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .85);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.mode-card label:hover { border-color: rgba(47, 111, 98, .55); }
.mode-input:checked + label { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.mode-input:checked + label .mode-text { color: var(--ink); }
.mode-input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 3px; }
.mode-label { margin-bottom: 10px; color: var(--green); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mode-title { margin-bottom: 8px; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.25; }
.mode-text { color: var(--muted); font-size: .92rem; }
.mode-detail { max-width: 760px; margin: 22px 0 0; padding: 12px 0 12px 18px; border-left: 2px solid var(--ochre); color: var(--muted); font-size: .92rem; }

/* ---------- Ghid: întrebări ---------- */
.evaluation-section { padding: 56px 0 96px; }
.guide-form { max-width: 880px; }
.question-group { margin-bottom: 40px; }
.question {
  min-width: 0;
  margin: 0 0 16px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .7);
}
.question.has-error { border-color: #9B3D2E; box-shadow: inset 0 0 0 1px #9B3D2E; }
/* float scoate legenda de pe marginea fieldset-ului, ca să stea în interiorul cardului. */
.question-legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; }
.question-legend + * { clear: both; }
.question-number { display: block; margin-bottom: 6px; color: var(--green); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.question-text { display: block; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.35; }
.question-help { margin: 0 0 14px; color: var(--muted); font-size: .88rem; }
.question-help-label { color: var(--ink); font-weight: 600; }
.options { display: grid; gap: 10px; }
.option { position: relative; }
.option input { position: absolute; top: 19px; left: 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.option label {
  display: block;
  padding: 14px 18px 14px 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.option label:hover { border-color: rgba(47, 111, 98, .55); }
.option input:checked + label { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.option input:checked + label .option-text { color: var(--ink); }
.option input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px; }
.option-label { display: block; font-weight: 600; }
.option-text { display: block; color: var(--muted); font-size: .92rem; }
.option-points { display: none; }
.guide-form[data-mode="evaluare"] .option-points {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 9px;
  border: 1px solid rgba(47, 111, 98, .35);
  border-radius: 999px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 600;
}
.question-error { margin: 10px 0 0; color: #9B3D2E; font-size: .9rem; font-weight: 600; }

.form-footer { display: grid; gap: 14px; justify-items: start; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.progress { margin: 0; color: var(--muted); font-size: .92rem; }
.form-errors { width: 100%; padding: 16px 20px; border: 1px solid #9B3D2E; border-radius: 14px; background: var(--paper); color: var(--ink); }
.form-errors p { margin: 0 0 6px; font-weight: 600; }
.form-errors ul { padding-left: 20px; list-style: disc; }
.form-errors a { color: #9B3D2E; }
.privacy-note { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: .85rem; }
.notice { max-width: 760px; margin: 0 0 20px; padding: 14px 18px; border: 1px solid rgba(198, 139, 66, .5); border-radius: 14px; background: var(--ochre-soft); color: var(--ink); font-size: .92rem; }

/* ---------- Ghid: rezultat ---------- */
.result-section { padding: 88px 0 96px; border-top: 1px solid var(--line); background: linear-gradient(110deg, rgba(226, 235, 229, .55), rgba(255, 253, 248, .3)); }
.result-section h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.05em; }
.result { max-width: 880px; }
.result-placeholder { max-width: 640px; color: var(--ink); }
.result-card { padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.result-direction { margin-bottom: 10px; color: var(--green); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.result-title { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.result-card h4 { margin: 26px 0 10px; font-size: 1.1rem; }
.result-card ul, .result-card ol { padding-left: 22px; }
.result-card ul { list-style: disc; }
.result-card ol { list-style: decimal; }
.result-card li { margin-bottom: 8px; }
.result-reasons { padding: 4px 0 4px 18px; border-left: 3px solid var(--ochre); }
.result-score { margin-top: 26px; padding: 16px 20px; border-radius: 14px; background: var(--ivory); }
.result-score p { margin: 0; }
.result-score strong { font-size: 1.05rem; }
.result-closing { margin-top: 18px; font-weight: 600; }
.result-answers { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.result-answers summary { cursor: pointer; color: var(--green); font-weight: 600; }
.result-answers dl { margin: 14px 0 0; }
.result-answers dt { margin-top: 12px; color: var(--muted); font-size: .85rem; }
.result-answers dd { margin: 2px 0 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.result-inline-cta { margin: 0 0 4px; }
.reflection-list { margin: 18px 0; display: grid; gap: 12px; }
.reflection-list li { padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.reflection-list strong { display: block; margin-bottom: 4px; font-family: var(--font-heading); font-size: 1.1rem; }
.reflection-closing { padding-left: 18px; border-left: 3px solid var(--ochre); font-weight: 500; }
.result-card .reflection-list { padding: 0; list-style: none; }
.result-card .reflection-list li { margin: 0; background: var(--ivory); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .header-bar { flex-wrap: wrap; border-radius: 26px; padding: 12px 16px; }
  .section-nav { width: 100%; }
  .section-nav ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px; padding-bottom: 2px; }
  .section-nav li { flex: none; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 64px; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .section-heading { flex-direction: column; align-items: start; gap: 16px; }
  .section-heading > p { max-width: 640px; }
  .direction-grid { grid-template-columns: 1fr; gap: 12px; }
  .direction-grid::before { display: none; }
  .signal-list { grid-template-columns: 1fr; }
  .intro-section, .content-section, .signals-section, .directions-section { padding: 64px 0; }
  .modes-section { padding-top: 64px; }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 32px); }
  .header-context { display: none; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero-modes { flex-direction: column; align-items: stretch; }
  .hero-modes .button { width: 100%; }
  .map-card { padding: 14px; border-radius: 22px; }
  .scope-grid, .mode-grid { grid-template-columns: 1fr; }
  .mode-card label { padding: 20px 20px 22px 56px; }
  .mode-input { top: 24px; left: 22px; }
  .question { padding: 18px 16px 20px; }
  .option label { padding: 12px 14px 12px 44px; }
  .option input { left: 15px; top: 16px; }
  .reason { grid-template-columns: 34px 1fr; gap: 12px; }
  .result-card { padding: 22px 18px; border-radius: 22px; }
  .result-actions .button { width: 100%; }
  .home-symbol { width: 76px; height: 76px; }
  .footer-row { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .map-path { animation: none; }
}
