/* ================================================================
   page-decisions.css — enbi
   Page Décisions — Codex rebuild.
   Depends on theme.css (Codex section).
================================================================ */

/* ────────────────────────────────────────────────────────────────
   PAGE LABEL
──────────────────────────────────────────────────────────────── */
.page-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: #cbeaf4;
  font-size: 14px;
  font-weight: 780;
}
.page-label::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--resolve);
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────────
   HERO — H1 + note + actions
──────────────────────────────────────────────────────────────── */
.hero-dark h1 {
  max-width: 12.5ch;
  font-size: clamp(54px, 5.6vw, 82px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 780;
  margin: 0;
}
.hero-note {
  margin: 20px 0 0;
  color: #a9c0ca;
  font-size: 13px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ────────────────────────────────────────────────────────────────
   DECISION MAP — right panel of hero
──────────────────────────────────────────────────────────────── */
.decision-map {
  position: relative;
  min-height: min(600px, 60vw);
  display: grid;
  place-items: center;
}
.decision-map img {
  width: min(100%, 720px);
  transform: translateX(4%) scale(1.08);
  mix-blend-mode: screen;
  filter: saturate(1.08) contrast(1.06);
  opacity: .92;
  user-select: none;
  pointer-events: none;
}
.map-tag {
  position: absolute;
  max-width: 18ch;
  padding: 10px 12px;
  color: #f3fbfd;
  background: rgba(31, 46, 57, .72);
  border: 1px solid rgba(203, 234, 244, .28);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.map-tag::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--resolve);
  vertical-align: middle;
}
.map-tag--one   { top: 13%; left: 2%; }
.map-tag--two   { top: 28%; right: 0; }
.map-tag--three { bottom: 20%; left: 3%; }
.map-tag--four  { bottom: 10%; right: 12%; }

/* ────────────────────────────────────────────────────────────────
   ORIENTATION — open-blue situation routes
──────────────────────────────────────────────────────────────── */
.orientation { background: var(--open-blue); }
.orientation-layout { padding-block: clamp(72px, 8vw, 118px); }

.split-intro {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(40px, 9vw, 134px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.split-intro h2 {
  max-width: 12ch;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 0;
}
.split-intro p {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-muted);
  font: 400 clamp(18px, 1.7vw, 23px)/1.55 var(--serif);
}
.method-section .split-intro p { color: #e2f0f5; }

.situation-routes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 3px solid var(--method);
  border-bottom: 1px solid var(--line-light);
}
.route {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 34px) clamp(16px, 2vw, 26px);
  color: var(--ink);
  transition: background .22s, transform .22s var(--ease-spring);
}
.route + .route { border-left: 1px solid var(--line-light); }
.route:hover { background: #fff; transform: translateY(-4px); }
.route-dot {
  width: 13px;
  height: 13px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--method);
  box-shadow: 0 0 0 7px rgba(38, 92, 143, .1);
}
.route:nth-child(3) .route-dot,
.route:nth-child(5) .route-dot {
  background: var(--resolve);
  box-shadow: 0 0 0 7px rgba(253, 91, 108, .14);
}
.route h3 {
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0;
}
.route p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}
.route span {
  color: var(--resolve-deep);
  font-size: 13px;
  font-weight: 800;
}

/* ────────────────────────────────────────────────────────────────
   OFFERS — white section with 5 offer rows
──────────────────────────────────────────────────────────────── */
.offers-section { background: var(--open); }
.offers-layout { padding-block: clamp(84px, 10vw, 150px); }

.offers-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 112px);
  margin-bottom: clamp(42px, 6vw, 72px);
}
.offers-head h2 {
  max-width: 13ch;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 0;
}
.offers-head p {
  max-width: 54ch;
  margin: 0;
  color: var(--ink-muted);
  font: 400 clamp(18px, 1.55vw, 22px)/1.55 var(--serif);
}

.offer-list { border-top: 3px solid var(--frame); }
.offer {
  display: grid;
  grid-template-columns: minmax(210px, .78fr) minmax(0, 1.22fr) minmax(190px, .45fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(30px, 4.4vw, 54px) 0;
  border-bottom: 1px solid var(--line-light);
  align-items: start;
}
.offer-title { display: grid; gap: 18px; }
.offer-title h3 {
  font-size: clamp(27px, 2.8vw, 44px);
  line-height: 1;
  letter-spacing: -.035em;
  margin: 0;
}
.offer-badge {
  width: fit-content;
  padding: 8px 11px;
  background: var(--method);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}
.offer:nth-child(1) .offer-badge { background: var(--resolve); }

.offer-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--method);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
}
.field p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.58;
}

.offer-aside { display: grid; gap: 14px; }
.format {
  padding: 16px;
  background: var(--open-blue);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}
.text-link {
  color: var(--resolve-deep);
  font-size: 14px;
  font-weight: 850;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ────────────────────────────────────────────────────────────────
   METHOD SECTION — blue rail
──────────────────────────────────────────────────────────────── */
.method-section {
  background: var(--method);
  color: var(--white);
}
.method-layout { padding-block: clamp(86px, 10vw, 150px); }

.method-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .38);
}
.method-step {
  position: relative;
  min-height: 260px;
  padding: 30px 24px;
}
.method-step + .method-step { border-left: 1px solid rgba(255, 255, 255, .22); }
.method-step::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  margin-bottom: 38px;
  border-radius: 50%;
  background: var(--method-pale);
  box-shadow: 0 0 0 7px rgba(203, 234, 244, .12);
}
.method-step:last-child::before {
  background: var(--resolve);
  box-shadow: 0 0 0 7px rgba(253, 91, 108, .18);
}
.method-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 31px;
  right: -9px;
  z-index: 1;
  color: #fff;
}
.method-step h3 { font-size: 18px; margin: 0; }
.method-step p {
  margin: 14px 0 0;
  color: #d7eaf1;
  font-size: 14px;
  line-height: 1.6;
}

/* ────────────────────────────────────────────────────────────────
   NEXT CTA — dark frame + choice panels
──────────────────────────────────────────────────────────────── */
.dec-next { background: var(--frame); color: var(--white); }
.dec-next-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(48px, 9vw, 132px);
  padding-block: clamp(86px, 10vw, 146px);
  align-items: start;
}
.dec-next-layout h2 {
  max-width: 11ch;
  font-size: clamp(46px, 6vw, 84px);
  line-height: .98;
  letter-spacing: -.04em;
  margin: 0;
}
.dec-choices { display: grid; gap: 1px; }
.dec-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: clamp(24px, 3vw, 34px);
  background: var(--frame-raised);
}
.dec-choice h3 {
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -.025em;
  margin: 0;
}
.dec-choice p {
  max-width: 50ch;
  margin: 10px 0 0;
  color: #d7e4e9;
  font: 400 17px/1.55 var(--serif);
}
.dec-choice .button { white-space: nowrap; }

/* ────────────────────────────────────────────────────────────────
   ANIMATIONS
──────────────────────────────────────────────────────────────── */
.motion-ready .decision-map img  { animation: dec-map-reveal 1.25s .18s var(--ease-spring) both; }
.motion-ready .map-tag           { animation: dec-tag-in .7s var(--ease-spring) both; }
.motion-ready .map-tag--one      { animation-delay: .35s; }
.motion-ready .map-tag--two      { animation-delay: .48s; }
.motion-ready .map-tag--three    { animation-delay: .60s; }
.motion-ready .map-tag--four     { animation-delay: .72s; }

@keyframes dec-map-reveal {
  from { clip-path: inset(0 100% 0 0); filter: saturate(.6) contrast(1.05); }
  to   { clip-path: inset(0); filter: saturate(1.08) contrast(1.06); }
}
@keyframes dec-tag-in {
  from { opacity: .01; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .decision-map img, .map-tag { animation: none !important; }
}

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .split-intro,
  .offers-head,
  .dec-next-layout { grid-template-columns: 1fr; }
  .decision-map { min-height: 520px; }
  .situation-routes,
  .method-rail { grid-template-columns: 1fr 1fr; }
  .route:nth-child(odd),
  .method-step:nth-child(odd) { border-left: 0; }
  .route:last-child,
  .method-step:last-child { grid-column: 1 / -1; }
  .offer { grid-template-columns: 1fr; }
  .offer-body { max-width: 860px; }
  .offer-aside { grid-template-columns: minmax(220px, max-content) auto; align-items: center; }
  .dec-choice { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero-dark h1 { max-width: 11ch; font-size: clamp(48px, 14vw, 68px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .decision-map { min-height: 350px; margin-inline: -20px; overflow: hidden; }
  .decision-map img { transform: scale(1.35); }
  .map-tag { display: none; }
  .situation-routes,
  .method-rail { grid-template-columns: 1fr; }
  .route { min-height: 0; }
  .route + .route { border-left: 0; border-top: 1px solid var(--line-light); }
  .method-step { min-height: 0; padding: 28px 0 36px 48px; }
  .method-step:last-child { grid-column: auto; }
  .method-step + .method-step { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
  .method-step::before { position: absolute; left: 7px; top: 32px; }
  .method-step:not(:last-child)::after { content: "↓"; top: auto; right: auto; bottom: -10px; left: 10px; }
  .offer-body { grid-template-columns: 1fr; }
  .offer-aside { grid-template-columns: 1fr; }
}
