/* =========================================================
   NEO Landing — structural sections + assessment tool skin
   Mirrors the B/W prototype IA, dressed in the NEO design.
   Built on tokens from neo.css; loaded after landing.css.
   ========================================================= */

/* ---------- Generic section head (h2 left / lead right) ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.sec-head h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.05;
  letter-spacing: -0.022em; margin: 0;
}
.sec-head h2 .accent { color: var(--neo-violet); }
.section--paper .sec-head h2 .accent { color: var(--neo-violet-3); }
.sec-head p { margin: 0; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   HERO — two column with "what we connect" aside
   ========================================================= */
.hero__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 56px; align-items: end; width: 100%;
}
.hero__grid .hero__inner { max-width: 760px; }
.hero__system {
  background: rgba(10,10,15,0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--neo-line-dark);
  border-radius: 4px;
  padding: 28px;
}
.hero__system .eyebrow { color: #B4B4BD; margin-bottom: 16px; }
.hero__system h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.018em;
  margin: 0 0 22px; color: #F2F2F4;
}
.hero__system ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hero__system li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--neo-line-dark);
}
.hero__system li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__system li strong { font-weight: 400; font-size: 15px; color: #F2F2F4; }
.hero__system li span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--neo-violet);
}
.hero__actions--grid { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__system { max-width: 480px; }
}

/* =========================================================
   PROBLEM — symptoms grid
   ========================================================= */
.symptoms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.symptom {
  padding: 32px 26px 28px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 300px;
}
.symptom:last-child { border-right: 0; }
.symptom .n {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--neo-violet-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; margin-bottom: 8px;
}
.symptom h3 {
  font-family: var(--font-display); font-weight: 300; font-size: 1.25rem;
  line-height: 1.15; letter-spacing: -0.015em; margin: 0;
}
.symptom p { font-size: 13.5px; line-height: 1.55; color: var(--fg-2); font-weight: 300; margin: 0; }
@media (max-width: 900px) {
  .symptoms { grid-template-columns: 1fr 1fr; }
  .symptom { border-bottom: 1px solid var(--line); min-height: auto; }
  .symptom:nth-child(2n) { border-right: 0; }
}
@media (max-width: 540px) { .symptoms { grid-template-columns: 1fr; } .symptom { border-right: 0; } }

/* =========================================================
   SYSTEM — dark variant of the 4-pillar grid
   ========================================================= */
.section--dark .gs__grid { border-top-color: var(--neo-line-dark); }
.section--dark .gs__pillar { border-right-color: var(--neo-line-dark); }
.section--dark .gs__pillar .num { color: var(--neo-violet); }
.section--dark .gs__pillar > p,
.section--dark .gs__pillar ul li { color: #B4B4BD; }
.section--dark .gs__intro p { color: #B4B4BD; }
@media (max-width: 960px) {
  .section--dark .gs__pillar { border-bottom: 1px solid var(--neo-line-dark); }
}

/* =========================================================
   OUTCOME — before / after
   ========================================================= */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.ba__card { padding: 36px 32px; display: flex; flex-direction: column; }
.ba__card--before { background: var(--bg-elev); }
.ba__card--after { background: var(--neo-ink); color: #F2F2F4; }
.ba__card .eyebrow { margin-bottom: 16px; }
.ba__card--after .eyebrow { color: var(--neo-violet); }
.ba__card h3 {
  font-family: var(--font-display); font-weight: 300; font-size: 1.35rem;
  line-height: 1.2; letter-spacing: -0.018em; margin: 0 0 8px; max-width: 380px;
}
.ba__card ul { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; }
.ba__card li {
  font-size: 14px; line-height: 1.55; font-weight: 300;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.ba__card--before li { color: var(--fg-2); }
.ba__card--after li { color: #B4B4BD; border-top-color: var(--neo-line-dark); }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }

/* =========================================================
   PROOF — why NEO (3 cards on dark, process-step style)
   ========================================================= */
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.proof__item { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--neo-line-dark); position: relative; }
.proof__item::after { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 28px; background: var(--neo-violet); box-shadow: 0 0 12px var(--neo-violet); }
.proof__item h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.4rem; letter-spacing: -0.018em; margin: 0; }
.proof__item p { font-size: 14px; color: #B4B4BD; font-weight: 300; line-height: 1.55; margin: 0; }
@media (max-width: 820px) { .proof__grid { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   ASSESSMENT TOOL — ported prototype internals, NEO skin
   Reuses .tool / .tool__tabs / .tool__tab / .tool__panel from landing.css
   ========================================================= */

/* Solid button on dark (rendered by JS as .btn--dark) */
.btn--dark { background: #fff; color: var(--neo-ink); border-color: #fff; }
.btn--dark:hover { background: rgba(255,255,255,0.9); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Shared range styling inside the tool */
.tool__panel input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 1px; background: var(--neo-line-dark); outline: none;
}
.tool__panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--neo-violet); cursor: pointer; box-shadow: 0 0 12px var(--neo-violet);
}
.tool__panel input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 0;
  background: var(--neo-violet); cursor: pointer; box-shadow: 0 0 12px var(--neo-violet);
}
.tool__panel .eyebrow { color: #7A7A85; }
.tool__panel .eyebrow--accent { color: var(--neo-violet); }
.tool__panel h3 {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -0.018em;
  color: #F2F2F4; margin: 0 0 10px; font-size: 1.3rem; line-height: 1.18;
}
.tool__panel .hint { font-size: 13.5px; color: #B4B4BD; font-weight: 300; line-height: 1.55; max-width: 640px; }

/* ----- Quiz layout ----- */
.assessment__layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .assessment__layout { grid-template-columns: 1fr; } }

.quiz {
  border: 1px solid var(--neo-line-dark); border-radius: 3px;
  background: rgba(255,255,255,0.02); overflow: hidden; min-height: 560px;
}
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--neo-line-dark); }
.quiz__top strong { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: #F2F2F4; font-weight: 500; }
.quiz__top p { margin: 6px 0 0; font-size: 12px; color: #7A7A85; font-weight: 300; max-width: 320px; }
.progress { width: 200px; height: 3px; background: var(--neo-line-dark); position: relative; border-radius: 999px; flex: none; }
.progress span { position: absolute; left: 0; top: 0; height: 100%; width: var(--progress, 0%); background: var(--neo-violet); box-shadow: 0 0 12px var(--neo-violet); transition: width .3s var(--ease-out); border-radius: 999px; }

.quiz__body { padding: 34px; }
.quiz__body h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); max-width: 640px; margin-bottom: 12px; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.option {
  display: flex; align-items: center; min-height: 64px; padding: 16px 20px;
  border: 1px solid var(--neo-line-dark); border-radius: 2px;
  background: transparent; color: #F2F2F4; text-align: left;
  font-size: 15px; font-weight: 300; cursor: pointer;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.option:hover { background: rgba(255,255,255,0.04); border-color: rgba(167,139,250,0.4); }
.option.is-selected { border-color: var(--neo-violet); background: rgba(167,139,250,0.10); }
@media (max-width: 640px) { .options { grid-template-columns: 1fr; } }

.slider-wrap { margin: 40px 0; }
.slider-labels { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: #7A7A85; font-size: 13px; }
.slider-labels strong { font-family: var(--font-display); font-size: 28px; font-weight: 300; color: var(--neo-violet); }

.quiz__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--neo-line-dark); }

.loading { min-height: 400px; display: grid; place-items: center; text-align: center; }
.loading h3 { max-width: 460px; }
.loading__ring { width: 96px; height: 96px; margin: 0 auto 28px; border: 1px solid var(--neo-line-dark); border-top: 3px solid var(--neo-violet); border-radius: 50%; animation: neo-spin 1s linear infinite; box-shadow: 0 0 24px rgba(167,139,250,0.3); }
@keyframes neo-spin { to { transform: rotate(360deg); } }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.score-card { border: 1px solid var(--neo-line-dark); border-radius: 2px; padding: 20px; }
.score-card span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #7A7A85; }
.score-card strong { display: block; margin-top: 14px; font-family: var(--font-display); font-weight: 300; font-size: 40px; line-height: 1; color: #F2F2F4; }
.bar { height: 3px; margin-top: 16px; background: var(--neo-line-dark); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--value, 50%); background: var(--neo-violet); box-shadow: 0 0 10px var(--neo-violet); }
.recommendations { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 10px; }
.recommendations li { border-left: 2px solid var(--neo-violet); padding: 8px 0 8px 16px; font-size: 14px; color: #B4B4BD; font-weight: 300; }
@media (max-width: 640px) { .result-grid { grid-template-columns: 1fr; } }

/* ----- Side signal map ----- */
.side-panel {
  position: sticky; top: 110px;
  border: 1px solid var(--neo-line-dark); border-radius: 3px;
  background: rgba(10,10,15,0.55); padding: 26px;
}
.side-panel h3 { font-size: 1.2rem; margin-bottom: 4px; }
.side-panel dl { display: grid; gap: 0; margin: 20px 0 0; }
.side-panel div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--neo-line-dark); }
.side-panel div:last-child { border-bottom: 0; }
.side-panel dt { color: #7A7A85; font-size: 13px; font-weight: 300; }
.side-panel dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--neo-violet); }
@media (max-width: 980px) { .side-panel { position: static; } }

/* ----- Calculator ----- */
.calculator-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .calculator-layout { grid-template-columns: 1fr; } }

.config-panel, .estimate-panel, .form-panel, .outlook-panel {
  border: 1px solid var(--neo-line-dark); border-radius: 3px;
  background: rgba(255,255,255,0.02); padding: 26px;
}
.calc-section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--neo-line-dark); }
.calc-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.calc-section__head { margin-bottom: 18px; }
.calc-section__head .eyebrow { margin-bottom: 8px; }

.size-grid { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(120px, 1fr)); gap: 12px; }
.slider-field, .number-field {
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  border: 1px solid var(--neo-line-dark); border-radius: 2px; background: rgba(255,255,255,0.02);
}
.slider-field span, .number-field span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #7A7A85; }
.slider-field strong { font-family: var(--font-display); font-weight: 300; font-size: 32px; line-height: 1; color: #F2F2F4; }
.number-field input {
  width: 100%; height: 44px; background: transparent; border: 1px solid var(--neo-line-dark);
  border-radius: 2px; color: #F2F2F4; font-family: var(--font-display); font-weight: 300;
  font-size: 22px; padding: 0 12px; outline: none;
}
.number-field input:focus { border-color: var(--neo-violet); }
@media (max-width: 640px) { .size-grid { grid-template-columns: 1fr; } }

.module-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.toggle-card {
  display: flex; flex-direction: column; gap: 10px; min-height: 120px; padding: 18px;
  border: 1px solid var(--neo-line-dark); border-radius: 2px; cursor: pointer;
  transition: border-color var(--dur-base), background var(--dur-base); position: relative;
}
.toggle-card:hover { border-color: rgba(167,139,250,0.35); }
.toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-card strong { font-size: 13px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: #F2F2F4; }
.toggle-card span { font-size: 12px; color: #7A7A85; font-weight: 300; line-height: 1.5; }
.toggle-card.is-on { border-color: var(--neo-violet); background: rgba(167,139,250,0.06); }
.toggle-card.is-on span { color: #B4B4BD; }
@media (max-width: 560px) { .module-list { grid-template-columns: 1fr; } }

.estimate-panel { position: sticky; top: 110px; align-self: start; }
.estimate-panel dl { display: grid; gap: 14px; margin: 20px 0; }
.estimate-panel > dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--neo-line-dark); }
.estimate-panel dt { color: #7A7A85; font-size: 13px; font-weight: 300; }
.estimate-panel dd { margin: 0; font-family: var(--font-mono); font-size: 14px; color: #F2F2F4; }
.estimate-total { border: 1px solid var(--neo-line-dark); border-radius: 2px; padding: 16px; background: rgba(167,139,250,0.06); }
.estimate-total dt { color: #B4B4BD; }
.estimate-total dd { font-family: var(--font-display); font-weight: 300; font-size: 30px; color: #F2F2F4; }
.estimate-panel strong { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #B4B4BD; font-weight: 400; }
.selected-list { margin: 0 0 18px; padding-left: 18px; color: #B4B4BD; font-size: 13px; font-weight: 300; line-height: 1.6; }
.recommendation-box { border: 1px solid var(--neo-line-dark); border-radius: 2px; padding: 16px; margin: 18px 0; background: rgba(255,255,255,0.02); }
.recommendation-box p { margin: 0; }
.estimate-panel .btn { width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 980px) { .estimate-panel { position: static; } }

.outlook-panel { margin-top: 24px; }
.outlook-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.outlook-item { border: 1px solid var(--neo-line-dark); border-radius: 2px; padding: 18px; min-height: 110px; background: rgba(255,255,255,0.02); }
.outlook-item strong { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #F2F2F4; }
.outlook-item p { margin: 0; font-size: 13px; color: #7A7A85; font-weight: 300; line-height: 1.55; }
@media (max-width: 640px) { .outlook-grid { grid-template-columns: 1fr; } }

/* ----- Request form ----- */
.form-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: start; }
.form-layout > div h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
@media (max-width: 820px) { .form-layout { grid-template-columns: 1fr; gap: 24px; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #7A7A85; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--neo-line-dark);
  color: #F2F2F4; font-family: inherit; font-size: 16px; font-weight: 300; padding: 10px 0 12px; outline: none;
  transition: border-color var(--dur-base);
}
.field input:focus, .field textarea:focus { border-color: var(--neo-violet); }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.summary-preview { display: grid; gap: 12px; border: 1px solid var(--neo-line-dark); border-radius: 2px; padding: 16px; background: rgba(255,255,255,0.02); }
.summary-preview__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.summary-preview__item { border: 1px solid var(--neo-line-dark); border-radius: 2px; padding: 12px; background: rgba(10,10,15,0.4); }
.summary-preview__item span { display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #7A7A85; }
.summary-preview__item strong { font-family: var(--font-display); font-weight: 300; font-size: 16px; letter-spacing: 0; text-transform: none; color: #F2F2F4; }
.summary-preview__item p { margin: 0; font-size: 13px; color: #B4B4BD; font-weight: 300; line-height: 1.55; }

.form-success { display: none; margin-top: 18px; border: 1px solid rgba(167,139,250,0.4); background: rgba(167,139,250,0.06); border-radius: 2px; padding: 16px; font-size: 14px; color: #F2F2F4; font-weight: 300; }
.form-success.is-on { display: block; animation: panel-in 320ms var(--ease-out); }
