/* Mendscale — Architectural Calibration Design System
   Single-layer token architecture anchored to the Mendscale vector lockup (#0B0F19 / #2563EB) */

:root {
  color-scheme: light;
  --paper: #F5F3EE;
  --paper-bright: #FFFFFF;
  --paper-shade: #E6E2D8;
  --paper-tint: #FAF9F5;
  --ink: #0B0F19;
  --ink-mid: #334155;
  --ink-soft: #475569;
  --line: #D5D1C6;
  --line-dark: #8E96A4;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-tint: #EFF6FF;
  --blue-on-dark: #3B82F6;
  --link-on-dark: #93C5FD;
  --error: #B91C1C;
  --error-bg: #FEF2F2;
  --focus: #1D4ED8;
  --radius: 4px;
  --gutter: 28px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(11, 15, 25, 0.015) 1px, transparent 1px),
    linear-gradient(rgba(11, 15, 25, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  overflow-x: hidden;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, .serif, .review-shell .rv-h, .cta .t, .card h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input, select, textarea {
  color: var(--ink);
  font-size: 16px;
}

select option {
  background: var(--paper-bright);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr {
  position: absolute;
  left: -9999px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.page {
  position: relative;
  overflow: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page > main {
  flex: 1 0 auto;
  counter-reset: section-counter 1;
}

/* Header & Brand Lockup */
header.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--gutter) 18px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.idblock {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

.header-lockup {
  display: block;
  height: 34px;
  width: auto;
  flex: none;
}

header.top .tag {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 0;
}

.tag-slash, .brand-slash {
  color: var(--blue);
  font-weight: 600;
}

.hdr-r {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: center;
}

.links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.links a:hover {
  color: var(--blue-dark);
}

/* Buttons & Controls */
.glow-btn, .glow-btn.sm {
  background: var(--ink);
  color: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.glow-btn {
  min-height: 52px;
  padding: 14px 24px;
}

.glow-btn.sm {
  min-height: 44px;
  padding: 9px 16px;
  font-size: 15px;
}

.glow-btn:hover {
  background: #1B263B;
  box-shadow: 1px 1px 0 var(--blue);
  transform: translate(2px, 2px);
}

.glow-btn:disabled {
  background: #64748B;
  border-color: #64748B;
  color: #F8FAFC;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

#landing button[data-start-review],
header.top button[data-start-review] {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--blue);
  transform: none;
  gap: 14px;
}

#landing button[data-start-review]::after,
header.top button[data-start-review]::after {
  content: "→";
  display: inline-block;
  color: var(--blue-on-dark);
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.15s ease;
}

#landing button[data-start-review]:hover,
header.top button[data-start-review]:hover {
  background: #172135;
  box-shadow: 2px 2px 0 var(--blue);
}

#landing button[data-start-review]:hover::after,
header.top button[data-start-review]:hover::after {
  transform: translateX(4px);
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-weight: 600;
  padding: 11px 16px;
  min-height: 48px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ghost:hover {
  background: var(--paper-shade);
  border-color: var(--ink);
}

.btn-o {
  background: transparent;
  color: var(--blue-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 600;
  min-height: 48px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-o:hover {
  background: var(--blue-tint);
  border-color: var(--blue);
}

/* Surface utility hooks kept for class contract */
.glass, .neon, .neon-c {
  border-radius: var(--radius);
  backdrop-filter: none;
}

/* Hero Section */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.hero-l {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  max-width: 720px;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  display: inline-block;
  line-height: 1.4;
  padding: 5px 10px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
}

.eyebrow .brand-slash {
  padding: 0 0.45em;
  color: var(--blue);
}

h1.big {
  font-size: clamp(42px, 5vw, 72px);
  color: var(--ink-mid);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 760px;
}

.headline-emphasis {
  color: var(--ink);
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-top: 4px;
}

.small {
  font-size: 14px;
  color: var(--ink-soft);
}

/* Hero Right Specification Card (#0B0F19 Dark Surface) */
.hero-r {
  margin-top: 0;
  min-width: 0;
  width: 100%;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--blue-on-dark);
  border-radius: var(--radius);
  color: var(--paper-bright);
  box-shadow: 8px 8px 0 var(--paper-shade);
  position: relative;
}

.hero-r-kicker {
  font: 500 11px "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #CBD5E1;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-r-kicker .brand-slash {
  color: var(--blue-on-dark);
}

.hero-r-h {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #F8FAFC;
}

.hero-r-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-r-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  font-size: 15px;
  line-height: 1.5;
  color: #E2E8F0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-wrap: anywhere;
}

.hero-r-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 19px;
  width: 8px;
  height: 8px;
  background: var(--blue-on-dark);
  clip-path: polygon(0 0, 65% 0, 100% 35%, 100% 100%, 0 100%);
}

.hero-r-note {
  font-size: 13px;
  color: #94A3B8;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
}

/* Illustrative Audit Report Preview inside Hero Specification Card */
.audit-preview {
  margin-top: 2px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--blue-on-dark);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-preview-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--link-on-dark);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.audit-preview-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  align-items: baseline;
}

.audit-preview-row .mono {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #94A3B8;
}

.audit-preview-row p {
  font-size: 12.5px;
  line-height: 1.45;
  color: #E2E8F0;
}

@media (max-width: 479px) {
  .audit-preview-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
    padding-top: 92px;
    padding-bottom: 84px;
  }
  .hero h1.big {
    font-size: clamp(48px, 4.5vw, 66px);
    max-width: 700px;
  }
  .hero .headline-emphasis {
    display: block;
  }
  .hero-r {
    max-width: 480px;
    justify-self: end;
  }
}

/* Landing Sections */
section.sec {
  max-width: 1240px;
  margin: 0 auto;
  padding: 68px var(--gutter) 12px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

section.sec:not(.final) {
  counter-increment: section-counter;
}

h2.sh {
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Section 02: How we help (Calibration Grid) */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .flow-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.node {
  min-height: 108px;
  padding: 22px 24px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: 4px 4px 0 var(--paper-shade);
}

.node.neon-c {
  border-top-color: var(--blue);
}

.node strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  display: block;
}

.node span {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 4px;
}

.ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #F8FAFC;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}

.ico.c {
  background: var(--blue);
}

.ico.num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

/* Section 03: Examples of the work we can explore */
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  box-shadow: 4px 4px 0 var(--paper-shade);
}

.card h3 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.card p strong {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section 04: How it works (Connected Timeline) */
.grid4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}

.step {
  padding: 20px 20px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (min-width: 768px) {
  .step:not(:first-child) {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 767px) {
  .grid4 {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 2px solid var(--ink);
    padding-left: 18px;
    gap: 18px;
  }
  .step {
    padding: 4px 0;
  }
}

.step .mono {
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-bottom: 6px;
  border-bottom: 0;
}

.step .mono::before {
  content: "0";
}

.step .mono::after {
  content: " / STEP";
  color: var(--ink-soft);
  font-weight: 400;
}

.step strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

/* Section 05: Responsibility / Trust Ledger */
.trustbox {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
}

.trustbox p {
  color: var(--ink-soft);
  font-size: 16px;
}

.trustbox p:first-child {
  color: var(--ink);
  font-weight: 500;
}

/* Section 06: Common Questions (FAQ) */
.faq {
  border-top: 1px solid var(--ink);
}

.faq details {
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "＋";
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.faq details[open] summary::after {
  content: "－";
}

.faq p {
  color: var(--ink-soft);
  max-width: 760px;
  margin-top: 12px;
  line-height: 1.6;
}

/* Final Call-to-Action Panel (#0B0F19 Dark Surface) */
.cta {
  padding: 36px 32px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--blue-on-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta .t {
  flex: 1 1 380px;
  color: #F8FAFC;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

#landing .cta button[data-start-review] {
  background: var(--paper-bright);
  color: var(--ink);
  border-color: var(--paper-bright);
  box-shadow: 3px 3px 0 var(--blue-on-dark);
}

#landing .cta button[data-start-review]::after {
  color: var(--blue);
}

#landing .cta button[data-start-review]:hover {
  background: #E2E8F0;
  border-color: #E2E8F0;
}

/* Footer (#0B0F19 Dark Surface) */
footer.foot {
  margin-top: 72px;
  padding: 0 var(--gutter);
  background: var(--ink);
  color: #CBD5E1;
  font-size: 13px;
}

.foot-inner {
  max-width: calc(1240px - (2 * var(--gutter)));
  width: 100%;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 3px solid var(--blue-on-dark);
}

footer.foot .footer-brand {
  display: inline-block;
  color: #F8FAFC;
  margin-bottom: 20px;
}

.mendscale-mark {
  display: block;
  height: 28px;
  width: auto;
  flex: none;
}

.footer-brand .mendscale-mark {
  height: 36px;
  max-width: 100%;
}

footer.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
}

footer.foot a {
  color: var(--link-on-dark);
}

footer.foot a:hover {
  color: #FFFFFF;
}

/* Legal / Privacy Notice (privacy.html) */
.legal {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 28px 80px;
  color: var(--ink);
}

.legal h1 {
  font-size: clamp(34px, 4.5vw, 48px);
  color: var(--ink);
  margin-bottom: 12px;
}

.legal h2 {
  font-size: 22px;
  color: var(--ink);
  margin: 32px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal p, .legal li {
  color: var(--ink-soft);
  line-height: 1.65;
}

.legal ul {
  padding-left: 20px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal a {
  color: var(--blue-dark);
}

/* ==========================================================================
   Review Journey (CONTRACTS.md Section 6)
   ========================================================================== */

body.in-review main > section:not(#review) {
  display: none;
}

body.in-review header .links,
body.in-review header [data-start-review] {
  display: none;
}

.review-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.review-shell .rv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
}

.review-shell .rv-exit {
  background: transparent;
  color: var(--blue-dark);
  border: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
}

.review-shell .rv-exit:hover {
  color: var(--ink);
  text-decoration: underline;
}

.review-shell .step-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: right;
  min-width: 0;
}

.review-shell .rv-progress {
  display: flex;
  gap: 5px;
  min-width: 0;
  margin-bottom: 12px;
}

.review-shell .rv-seg {
  flex: 1 1 0;
  min-width: 0;
  height: 5px;
  border-radius: 0;
  background: var(--line);
}

.review-shell .rv-seg.is-done {
  background: var(--ink);
}

.review-shell .rv-seg.is-current {
  background: var(--blue);
}

.review-shell .journey {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 28px;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--paper-shade);
}

.review-shell .rv-h {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  overflow-wrap: anywhere;
  min-width: 0;
}

.review-shell [tabindex="-1"]:focus {
  outline: none;
}

.review-shell .hint {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding: 4px 0 0 0;
}

.review-shell form > * + *,
.review-shell #journey-form > * + * {
  margin-top: 26px;
}

.review-shell fieldset.choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-shell .rv-legend,
.review-shell .field .lbl {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin: 0;
}

.review-shell .rv-legend {
  margin-bottom: 10px;
}

.review-shell .choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

@media (min-width: 640px) {
  .review-shell .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review-shell .choice-row {
  position: relative;
  min-width: 0;
  min-height: 54px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.review-shell .choice-row:hover {
  border-color: var(--blue);
  background: #F8FAFC;
}

.review-shell .choice-row:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-tint);
  box-shadow: inset 4px 0 0 var(--blue);
}

.review-shell .choice-row:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.review-shell .choice-row input {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  accent-color: var(--blue) !important;
  border-color: var(--line-dark);
  background: var(--paper-bright);
  cursor: pointer;
}

.review-shell .choice-row input:disabled {
  opacity: 0.5;
}

.review-shell .choice-row label {
  display: block;
  min-width: 0;
  padding: 15px 14px 15px 46px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.review-shell .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.review-shell .field > .choice-row {
  margin-top: 8px;
}

.review-shell .fld {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  color: var(--ink);
  min-height: 52px;
  padding: 13px 14px;
}

.review-shell .fld::placeholder {
  color: #64748B;
}

.review-shell .fld:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  outline: 0;
}

.review-shell textarea.fld {
  min-height: 84px;
  resize: vertical;
}

.review-shell .with-unit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-shell .with-unit .fld {
  max-width: 160px;
}

.review-shell .unit {
  color: var(--ink-soft);
  font-size: 15px;
}

/* Validation & Error States */
.review-shell .err-sum,
.review-shell .submit-msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid var(--error);
  border-left: 5px solid var(--error);
  border-radius: 3px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.review-shell .err-sum h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--error);
}

.review-shell .err-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--error);
  overflow-wrap: anywhere;
}

.review-shell .err-list a {
  color: var(--error);
}

.review-shell .err {
  color: var(--error);
  font-size: 14px;
}

.review-shell .choice .err {
  margin: 0 0 10px;
}

.review-shell [aria-invalid="true"] {
  border-color: var(--error);
}

/* Step 6 Summary List */
.review-shell .summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review-shell .sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.review-shell .sum-row .mono {
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.review-shell .sum-row .btn-o {
  min-height: 44px;
  padding: 0 16px;
  flex-shrink: 0;
  border-radius: 3px;
}

/* Journey Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.review-shell .rv-nav {
  position: static;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  align-items: center;
  min-width: 0;
}

.review-shell .rv-nav .ghost {
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
}

.review-shell .rv-nav .glow-btn {
  margin-left: auto;
}

/* Inline Field Live Feedback */
.review-shell .help-reply {
  margin: 8px 0 4px;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 3px;
  color: var(--ink);
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-shell .help-reply:empty {
  display: none;
}

/* Confirmation / Success State (#0B0F19 Dark Surface) */
.review-shell .journey.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 28px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  box-shadow: 6px 6px 0 var(--blue-on-dark);
}

.review-shell .success .rv-h {
  color: #F8FAFC;
}

.review-shell .success p {
  color: #CBD5E1;
}

.review-shell .ok-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-content: center;
  font-size: 26px;
  font-weight: 700;
  background: var(--blue-on-dark);
  color: #FFFFFF;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.review-shell .next-steps {
  margin: 8px 0 0;
  padding: 18px 22px 18px 40px;
  text-align: left;
  background: var(--paper-bright);
  color: var(--ink);
  border: 0;
  border-left: 4px solid var(--blue-on-dark);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}

.review-shell .success .btn-o {
  color: #F8FAFC;
  border-color: rgba(248, 250, 252, 0.35);
  border-radius: 3px;
}

.review-shell .success .btn-o:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }
  .links {
    display: none;
  }
  header.top {
    padding: 16px var(--gutter);
    gap: 12px;
  }
  .header-lockup {
    height: 28px;
  }
  header.top .tag {
    padding-left: 0;
  }
  .hdr-r {
    gap: 10px;
  }
  header.top .hdr-r [data-start-review] {
    display: none;
  }
  .hero {
    padding: 48px var(--gutter) 40px;
    gap: 32px;
  }
  .hero-l {
    gap: 18px;
  }
  h1.big {
    font-size: clamp(39px, 10vw, 54px);
    line-height: 1.05;
  }
  .lead {
    font-size: 16px;
    line-height: 1.55;
  }
  .hero-r {
    padding: 24px;
    box-shadow: 5px 5px 0 var(--paper-shade);
  }
  section.sec {
    padding: 50px var(--gutter) 10px;
    gap: 20px;
  }
  .node {
    min-height: 88px;
    padding: 16px;
  }
  .review-shell {
    padding: 20px 16px 56px;
    gap: 10px;
  }
  .review-shell .rv-progress {
    margin-bottom: 12px;
  }
  .review-shell .journey {
    padding: 20px 16px 22px;
    gap: 20px;
    box-shadow: 4px 4px 0 var(--paper-shade);
  }
  .review-shell .rv-h {
    font-size: 30px;
    line-height: 1.05;
  }
  .review-shell .rv-nav {
    position: static;
    margin: 20px -16px 0;
    padding: 14px 16px 0;
    background: transparent;
    border-top: 1px solid var(--line);
  }
  .review-shell .rv-nav .glow-btn {
    min-width: 128px;
    justify-content: center;
  }
  footer.foot {
    padding: 0 var(--gutter);
  }
  .foot-inner {
    padding: 20px 0;
  }
  .legal {
    padding: 28px var(--gutter) 64px;
  }
}

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