/* ========================================================================== 
   Coopers Fire Product Advisor
   Official palette: Coopers Red #C41230 · Coopers Black #231F20
   Type: Source Sans Pro/Source Sans 3 (UI) · Interstate-style bold titles
   Motif: Coopers technical specification sheet
   ========================================================================== */

:root {
  /* Brand */
  --red: #c41230;
  --red-dark: #981027;
  --red-bright: #d61c3c;
  --red-tint: #fff2f4;
  --red-line: #edbdc6;

  /* Supporting colours from the Coopers Fire brand palette */
  --orange: #f47b20;
  --green: #69b42f;
  --blue: #6ac3ca;
  --yellow: #f8e607;
  --brand-grey: #5e5a57;
  --brand-grey-light: #c6c6c6;
  --brand-grey-mid: #9d9d9c;

  /* Cool graphite ramp */
  --charcoal: #231f20;
  --graphite: #322e2f;
  --ink: #353132;
  --slate: #5e5a57;
  --muted: #716d6b;
  --faint: #9d9d9c;
  --line: #e3e1e1;
  --line-strong: #c6c6c6;
  --soft: #f2f1f1;
  --paper: #f7f6f6;
  --white: #fff;

  /* Status */
  --success: #4e8b24;
  --success-tint: #f0f8ea;
  --success-line: #c8e2b6;
  --amber: #f47b20;
  --amber-deep: #8f3f08;
  --amber-tint: #fff5ed;
  --amber-line: #f5c7a4;

  /* Type */
  --font-display: "Interstate", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Source Sans 3", "Source Sans Pro", Arial, "Helvetica Neue", sans-serif;
  --font-mono: "Source Sans 3", "Source Sans Pro", Arial, "Helvetica Neue", sans-serif;

  /* Fluid type scale */
  --t-micro: clamp(.63rem, .58rem + .16vw, .69rem);
  --t-tiny: clamp(.7rem, .66rem + .18vw, .76rem);
  --t-small: clamp(.79rem, .76rem + .18vw, .85rem);
  --t-body: clamp(.9rem, .87rem + .22vw, .98rem);
  --t-lead: clamp(1rem, .95rem + .38vw, 1.14rem);
  --t-h3: clamp(1.05rem, .98rem + .38vw, 1.2rem);
  --t-h2: clamp(1.8rem, 1.25rem + 2.4vw, 2.75rem);
  --t-hero: clamp(2.55rem, 1.5rem + 4vw, 4.35rem);
  --t-display: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);

  /* Geometry */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Elevation — layered rather than one soft blur */
  --shadow-1: 0 1px 2px rgba(16, 20, 26, .05), 0 2px 8px rgba(16, 20, 26, .04);
  --shadow-2: 0 2px 4px rgba(16, 20, 26, .05), 0 12px 28px rgba(16, 20, 26, .07);
  --shadow-3: 0 4px 10px rgba(16, 20, 26, .08), 0 30px 70px rgba(16, 20, 26, .14);
  --shadow-dark: 0 10px 24px rgba(0, 0, 0, .22), 0 40px 90px rgba(0, 0, 0, .3);
  --shadow: var(--shadow-3);

  /* Motion */
  --ease: cubic-bezier(.22, .68, .3, 1);
  --fast: .16s var(--ease);
  --slow: .32s var(--ease);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  font-optical-sizing: auto;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea { font: inherit; color: inherit; }
button, label, select, textarea { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.is-hidden { display: none !important; }

::selection { color: #fff; background: var(--red); }

/* Shared micro-label treatment — mono, because these label data, not prose */
.eyebrow,
.step-kicker,
.progress-label,
.subsection-label,
.ai-badge,
.floating-kicker,
.header-strapline,
.prototype-badge,
.photo-caption,
.concept-ribbon span,
.product-name strong,
.product-name small,
.hero-brand-mark span,
.hero-brand-mark small,
.progress-brand span,
.footer-brand span {
  font-family: var(--font-mono);
  font-feature-settings: "zero" 1;
}

/* --------------------------------------------------------------- ribbon */

.concept-ribbon {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 20px;
  color: var(--brand-grey-light);
  background: var(--charcoal);
  font-size: var(--t-micro);
  letter-spacing: .01em;
}
.concept-ribbon span {
  padding-right: 14px;
  color: #fff;
  border-right: 1px solid #3a3e45;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.concept-ribbon p { margin: 0; }

/* --------------------------------------------------------------- header */

.site-header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 14px clamp(20px, 5vw, 78px);
  color: var(--charcoal);
  background: rgba(255, 255, 255, .82);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
}
@supports not (backdrop-filter: blur(4px)) {
  .site-header { background: #fff; }
}

.brand { display: inline-flex; align-items: center; gap: 22px; color: inherit; text-decoration: none; }
.brand-logo { width: 150px; height: auto; display: block; object-fit: contain; }
.header-divider { width: 1px; height: 46px; margin: 0 2px; background: var(--line-strong); }
.product-name { display: grid; gap: 5px; line-height: 1.1; }
.product-name strong { color: var(--charcoal); font-family: var(--font-display); font-size: var(--t-micro); font-weight: 900; letter-spacing: .12em; }
.product-name small { color: var(--faint); font-size: .56rem; font-weight: 500; letter-spacing: .1em; }
.header-meta { display: flex; align-items: center; gap: 22px; }
.header-strapline { color: var(--muted); font-size: .6rem; font-weight: 500; letter-spacing: .1em; }
.prototype-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--red-dark);
  background: var(--red-tint);
  border: 1px solid var(--red-line);
  border-radius: var(--r-pill);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .09em;
}
.prototype-badge i,
.floating-kicker i {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}
.prototype-badge i { box-shadow: 0 0 0 3px rgba(196, 18, 48, .14); }

/* ----------------------------------------------------------------- hero */

.hero {
  min-height: 790px;
  display: grid;
  grid-template-columns: 54% 46%;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}
.hero-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(30px, 5vw, 88px);
  position: relative;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(196, 18, 48, .18), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .05), transparent 42%),
    var(--charcoal);
}
/* Drawing-sheet grid, sitting under the content */
.hero-copy-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .038) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 100% at 20% 10%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 20% 10%, #000 12%, transparent 78%);
  pointer-events: none;
}
.hero-copy-panel::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--red-bright), var(--red-dark));
  z-index: 2;
}
.hero-copy-panel > * { position: relative; z-index: 1; }

.eyebrow, .step-kicker, .progress-label {
  margin: 0 0 14px;
  color: #f2a6b3;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .12em;
}

.hero-brand-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.hero-brand-mark img { width: 46px; height: 44px; padding: 4px; object-fit: contain; background: #fff; border-radius: var(--r-xs); }
.hero-brand-mark div { display: grid; gap: 4px; line-height: 1.1; }
.hero-brand-mark span { color: #fff; font-size: .66rem; font-weight: 600; letter-spacing: .12em; }
.hero-brand-mark small { color: #f0a1ae; font-size: .56rem; font-weight: 600; letter-spacing: .1em; }

.hero h1 {
  max-width: 15ch;
  margin: 0;
  font-size: var(--t-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.021em;
  word-spacing: .02em;
}
/* Dimension bracket — the drawing-sheet motif, used once */
.hero h1::after {
  content: "";
  display: block;
  width: 116px;
  height: 8px;
  margin-top: 20px;
  border: 2px solid var(--red);
  border-bottom: 0;
}
.hero-copy {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--brand-grey-light);
  font-size: var(--t-lead);
  line-height: 1.62;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 32px; }
.hero-actions a { color: #fff; font-size: var(--t-small); font-weight: 600; text-underline-offset: 5px; }
.hero-quick-action { max-width: 720px; display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.hero-quick-action p { max-width: 46ch; margin: 0; color: #c8ccd2; font-size: var(--t-tiny); line-height: 1.45; }
.button-call { color: var(--charcoal); background: #fff; border: 1px solid rgba(255, 255, 255, .75); box-shadow: var(--shadow-dark); white-space: nowrap; }
.button-call:hover { color: var(--red-dark); background: var(--red-tint); }

/* ------------------------------------------------------- AI intake card */

.ai-intake-card,
.intake-review {
  max-width: 720px;
  margin-top: 28px;
  padding: 26px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}
.ai-intake-card::before,
.intake-review::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-bright) 70%, var(--orange));
}
.ai-intake-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.ai-intake-heading > span:last-child { color: var(--muted); font-size: var(--t-tiny); font-weight: 500; }
.ai-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: .6rem; font-weight: 600; letter-spacing: .11em; }
.ai-badge i { width: 7px; height: 7px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 4px rgba(196, 18, 48, .11); }

.ai-intake-card > label { display: block; margin-bottom: 8px; color: var(--charcoal); font-size: var(--t-small); font-weight: 600; }
.ai-intake-card textarea {
  width: 100%;
  min-height: 112px;
  display: block;
  resize: vertical;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  line-height: 1.5;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.ai-intake-card textarea:hover { border-color: var(--faint); }
.ai-intake-card textarea:focus { background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(196, 18, 48, .1); outline: none; }
.ai-intake-card textarea::placeholder { color: var(--faint); }

.intake-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.text-button {
  padding: 7px 0;
  color: var(--charcoal);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: var(--t-tiny);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
}
.text-button:hover { color: var(--red); border-color: var(--red); }
.ai-privacy-note, .ai-confirm-note { margin: 14px 0 0; color: var(--muted); font-size: var(--t-micro); line-height: 1.5; }
.intake-error {
  margin-top: 14px;
  padding: 11px 13px;
  color: var(--red-dark);
  background: var(--red-tint);
  border: 1px solid var(--red-line);
  border-radius: var(--r-sm);
  font-size: var(--t-tiny);
}

.intake-review { color: var(--ink); }
.intake-review-heading { display: flex; align-items: flex-start; gap: 14px; }
.review-check {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-weight: 700;
}
.intake-review h2 { margin: 4px 0 0; color: var(--charcoal); font-size: 1.4rem; }
.intake-review > p { margin: 14px 0; color: var(--slate); font-size: var(--t-small); }

.understood-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.understood-grid > div { padding: 10px 12px; background: var(--soft); border-left: 3px solid var(--success); border-radius: 0 var(--r-xs) var(--r-xs) 0; }
.understood-grid span, .understood-grid strong { display: block; }
.understood-grid span { color: var(--muted); font-family: var(--font-mono); font-size: .56rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.understood-grid strong { margin-top: 2px; color: var(--charcoal); font-size: var(--t-tiny); }
.understood-grid > p { grid-column: 1 / -1; margin: 0; padding: 12px; color: var(--slate); background: var(--soft); border-radius: var(--r-xs); font-size: var(--t-tiny); }

.missing-details { margin-top: 14px; padding: 12px 14px; color: var(--amber-deep); background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: var(--r-sm); }
.missing-details > strong { font-size: var(--t-tiny); }
.missing-details ul { display: grid; gap: 4px; margin: 6px 0 0; padding-left: 18px; font-size: var(--t-tiny); }

.clarification-conversation { display: grid; gap: 12px; margin-top: 16px; }
.clarification-history { display: grid; gap: 10px; }
.clarification-exchange { display: grid; gap: 6px; }
.assistant-message, .customer-message { max-width: 91%; padding: 11px 13px; border-radius: var(--r-sm); }
.assistant-message { background: var(--soft); border-left: 3px solid var(--red); }
.customer-message { justify-self: end; background: var(--success-tint); border-right: 3px solid var(--success); }
.assistant-message span, .customer-message span { color: var(--muted); font-family: var(--font-mono); font-size: .55rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.assistant-message p, .customer-message p { margin: 3px 0 0; color: var(--charcoal); font-size: var(--t-tiny); }

.clarification-question { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--r-sm); }
.clarification-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.clarification-meta span { color: var(--red); font-family: var(--font-mono); font-size: .58rem; font-weight: 600; letter-spacing: .1em; }
.clarification-meta small { color: var(--muted); font-family: var(--font-mono); font-size: .6rem; }
.clarification-question > strong { display: block; color: var(--charcoal); font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.clarification-question > p { margin: 6px 0 12px; color: var(--muted); font-size: var(--t-micro); }
.clarification-question > label { display: block; margin-bottom: 6px; color: var(--charcoal); font-size: var(--t-micro); font-weight: 600; }
.clarification-question textarea {
  width: 100%;
  min-height: 74px;
  display: block;
  resize: vertical;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  line-height: 1.5;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.clarification-question textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(196, 18, 48, .1); outline: none; }
.clarification-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.clarification-actions .button { min-height: 42px; padding: 9px 18px; }
.text-button:disabled { opacity: .55; cursor: wait; }
.intake-review .button { min-height: 44px; }

.safety-notice { max-width: 670px; display: flex; align-items: flex-start; gap: 14px; margin: 26px 0 0; padding: 20px 0 0; background: transparent; border: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.safety-notice > span { flex: 0 0 25px; display: grid; place-items: center; width: 25px; height: 25px; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; font-family: var(--font-mono); font-weight: 500; }
.safety-notice p { margin: 0; color: #b3b8bf; font-size: var(--t-small); }
.safety-notice strong { display: block; margin-bottom: 3px; color: #fff; }

/* ---------------------------------------------------------- hero visual */

.hero-visual { min-width: 0; min-height: 790px; position: relative; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background: url("../images/coopers-fire-advisor-hero.png") center/cover no-repeat; transform: scale(1.02); }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(35, 31, 32, .64), rgba(35, 31, 32, .1) 34%, transparent 60%),
    linear-gradient(0deg, rgba(8, 9, 11, .68), transparent 52%);
}
.floating-result {
  position: absolute;
  right: clamp(20px, 4vw, 62px);
  bottom: 62px;
  width: min(352px, calc(100% - 40px));
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
@supports not (backdrop-filter: blur(4px)) {
  .floating-result { background: rgba(255, 255, 255, .97); }
}
.floating-kicker { display: flex; align-items: center; gap: 8px; color: var(--red); font-size: .58rem; font-weight: 600; letter-spacing: .11em; }
.floating-kicker img { width: 24px; height: 23px; object-fit: contain; }
.floating-result > strong { display: block; margin: 10px 0 16px; color: var(--charcoal); font-family: var(--font-display); font-size: 1.16rem; letter-spacing: -.02em; }
.floating-product { display: grid; grid-template-columns: 26px 1fr 24px; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.floating-product > span { color: var(--faint); font-family: var(--font-mono); font-size: .62rem; }
.floating-product p { margin: 0; }
.floating-product b, .floating-product small { display: block; }
.floating-product b { color: var(--charcoal); font-size: var(--t-tiny); font-weight: 600; }
.floating-product small { color: var(--muted); font-size: .62rem; }
.floating-product em { display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: var(--success); border-radius: 50%; font-size: .58rem; font-style: normal; }
.floating-result > small { display: block; margin-top: 12px; padding-top: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: .62rem; }
.photo-caption { position: absolute; left: 28px; bottom: 22px; color: rgba(255, 255, 255, .8); font-size: .55rem; font-weight: 500; letter-spacing: .14em; }

/* --------------------------------------------- proof strip / title block */

.proof-strip {
  min-height: 132px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(24px, 6vw, 100px);
  background: #fff;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line);
}
.proof-strip > div { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 26px 24px; border-right: 1px solid var(--line); }
.proof-strip > div:first-child { border-left: 1px solid var(--line); }
.proof-strip strong {
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  line-height: 1;
}
.proof-strip .proof-text { max-width: 122px; font-size: .98rem; line-height: 1.14; letter-spacing: .01em; }
.proof-strip span { max-width: 118px; color: var(--muted); font-size: var(--t-micro); line-height: 1.4; }
.proof-strip .proof-accent strong { color: var(--red); }

/* ------------------------------------------------------------ how it works */

.how-section { padding: 96px clamp(24px, 7vw, 118px) 104px; background: var(--paper); }
.how-heading { max-width: 780px; }
.how-heading .eyebrow { color: var(--red); }
.how-heading h2 { margin: 0; color: var(--charcoal); font-size: var(--t-display); letter-spacing: -.04em; line-height: 1.05; }
.how-heading > p:last-child { margin-bottom: 0; color: var(--muted); font-size: var(--t-lead); }

.brand-purpose {
  max-width: 980px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 38px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-1);
}
.brand-purpose img { width: 62px; height: 60px; object-fit: contain; }
.brand-purpose p { display: grid; gap: 4px; margin: 0; }
.brand-purpose span { color: var(--red); font-size: var(--t-micro); font-weight: 800; letter-spacing: .1em; }
.brand-purpose strong { color: var(--charcoal); font-family: var(--font-ui); font-size: var(--t-lead); font-weight: 600; line-height: 1.4; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.process-grid article {
  min-height: 224px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  transition: transform var(--slow), box-shadow var(--slow), border-color var(--slow);
}
.process-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--red);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform var(--slow);
}
.process-grid article:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.process-grid article:hover::before { transform: scaleX(1); }
.process-grid article > span { color: var(--faint); font-family: var(--font-mono); font-size: var(--t-micro); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.process-grid h3 { margin: 44px 0 8px; color: var(--charcoal); font-size: var(--t-h3); }
.process-grid p { margin: 0; color: var(--muted); font-size: var(--t-small); line-height: 1.6; }

/* --------------------------------------------------------------- buttons */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-sm);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: .005em;
  cursor: pointer;
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible,
.text-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button-primary {
  color: var(--white);
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  box-shadow: 0 1px 2px rgba(152, 16, 39, .4), 0 8px 22px rgba(196, 18, 48, .26);
}
.button-primary:hover { background: linear-gradient(180deg, var(--red), var(--red-dark)); box-shadow: 0 2px 4px rgba(152, 16, 39, .4), 0 12px 28px rgba(196, 18, 48, .32); }
.button-secondary { color: var(--charcoal); background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); }
.button-secondary:hover { background: var(--soft); }

/* --------------------------------------------------------- advisor shell */

.advisor-shell {
  width: min(1240px, 94vw);
  min-height: 720px;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  margin: 48px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.progress-panel {
  padding: 36px 28px;
  color: var(--white);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(196, 18, 48, .18), transparent 60%),
    var(--charcoal);
}
.progress-brand { display: grid; justify-items: center; gap: 10px; margin: -10px 0 34px; padding: 16px 12px 14px; color: var(--charcoal); background: #fff; border-top: 3px solid var(--red); border-radius: 0 0 var(--r-sm) var(--r-sm); text-decoration: none; }
.progress-brand img { width: auto; height: 66px; object-fit: contain; }
.progress-brand span { color: var(--muted); font-size: .57rem; font-weight: 600; letter-spacing: .14em; }
.progress-label { color: #9aa1ab; }
.progress-track { height: 3px; margin-bottom: 30px; background: rgba(255, 255, 255, .14); border-radius: var(--r-pill); overflow: hidden; }
.progress-track span { display: block; width: 14.286%; height: 100%; background: linear-gradient(90deg, var(--red), var(--orange)); transition: width var(--slow); }
.progress-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.progress-list li { display: flex; align-items: center; gap: 12px; color: #838a94; font-size: var(--t-small); font-weight: 500; transition: color var(--fast); }
.progress-list span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; font-family: var(--font-mono); font-size: .68rem; transition: background var(--fast), border-color var(--fast); }
.progress-list li.is-active { color: var(--white); font-weight: 600; }
.progress-list li.is-active span { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(196, 18, 48, .22); }
.progress-list li.is-complete { color: #c3c8cf; }
.progress-list li.is-complete span { color: transparent; background: var(--success); border-color: var(--success); position: relative; }
.progress-list li.is-complete span::after { content: "✓"; position: absolute; color: var(--white); font-family: var(--font-ui); }
.progress-list li.is-ai-filled span::after { content: "AI"; font-family: var(--font-mono); font-size: .46rem; letter-spacing: .02em; }
.saved-note { margin-top: 46px; padding-top: 20px; color: #8f959e; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--t-micro); line-height: 1.5; }
.saved-note span { color: var(--green); }

/* -------------------------------------------------------- question panel */

.question-panel { min-width: 0; display: flex; flex-direction: column; padding: clamp(28px, 5vw, 68px); }
.step { flex: 1; animation: reveal .26s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-kicker { color: var(--red); }
.step h2 { max-width: 22ch; margin: 0; color: var(--charcoal); font-size: var(--t-h2); font-weight: 700; line-height: 1.08; letter-spacing: -.032em; }
.question-help { max-width: 68ch; margin: 14px 0 32px; color: var(--muted); font-size: var(--t-small); }

/* --------------------------------------------------------- choice cards */

.choice-grid { display: grid; gap: 14px; }
.choice-grid-three { grid-template-columns: repeat(3, 1fr); }
.choice-grid-two { grid-template-columns: repeat(2, 1fr); }
.choice-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  position: relative;
  transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast), background var(--fast);
}
.choice-card:hover { border-color: var(--faint); background: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.choice-card:has(input:checked) { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(196, 18, 48, .12), var(--shadow-1); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }
.choice-card:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
}
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong { margin-top: 4px; color: var(--charcoal); font-family: var(--font-display); font-size: var(--t-body); font-weight: 600; letter-spacing: -.012em; }
.choice-card small { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.choice-card-wide { grid-column: 1 / -1; min-height: 108px; }
.choice-icon {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  color: var(--red);
  background: var(--red-tint);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
}
.shape-icon { width: 39px; height: 39px; border: 4px solid var(--red); opacity: .85; }
.shape-vertical { width: 28px; border-top: 0; border-bottom: 0; }
.shape-horizontal { height: 26px; border-left: 0; border-right: 0; }
.shape-open { border-right-color: transparent; }
.shape-closed { border-radius: var(--r-xs); }

/* ---------------------------------------------------------------- fields */

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; position: relative; }
.field-wide { grid-column: 1 / -1; }
.field > span, .inline-question legend { color: var(--charcoal); font-size: var(--t-small); font-weight: 600; }
.field input, .field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.field input:hover, .field select:hover { border-color: var(--faint); }
.field input:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(196, 18, 48, .1); outline: none; }
.field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field small { color: var(--muted); font-size: var(--t-micro); }
.field-grid .field > small { line-height: 1.45; }
.field.is-disabled { opacity: .48; }

.smoke-performance-note { color: #14503c; background: var(--success-tint); border-left-color: var(--success); }
.context-note { margin-top: 26px; padding: 16px 18px; color: var(--slate); background: var(--soft); border-left: 3px solid var(--line-strong); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--t-small); }

.inline-question { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 26px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.inline-question legend { padding: 0 8px; }
.inline-question label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); cursor: pointer; }
.inline-question input { width: 17px; height: 17px; accent-color: var(--red); }

.skip-measurements { display: flex; align-items: flex-start; gap: 11px; margin: 22px 0; padding: 15px 17px; color: var(--amber-deep); background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: var(--r-sm); font-size: var(--t-small); font-weight: 600; cursor: pointer; }
.skip-measurements input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--red); }

/* ---------------------------------------------------- measurement guide */

.dimension-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: stretch; gap: 24px; margin-top: 4px; }
.dimension-layout.is-disabled > .field-grid { opacity: .46; }
.dimension-layout.guide-only { grid-template-columns: minmax(280px, 520px); }
.dimension-layout.guide-only > .field-grid { display: none; }
.measurement-guide { margin: 0; padding: 18px; color: #fff; background: var(--charcoal); border-radius: var(--r-md); }
.guide-room { min-height: 178px; position: relative; border: 5px solid #7d838c; border-bottom-color: #454a52; background: linear-gradient(135deg, #454a52 0 7%, transparent 7% 93%, #454a52 93%), #22262b; border-radius: 2px; overflow: hidden; }
.guide-headbox { position: absolute; top: 12px; left: 18%; right: 18%; z-index: 2; padding: 6px; color: #24272b; background: #d5d8dd; border-bottom: 3px solid var(--red); font-family: var(--font-mono); font-size: .5rem; font-weight: 600; letter-spacing: .06em; text-align: center; }
.guide-curtain { position: absolute; top: 41px; right: 20%; bottom: 32px; left: 20%; background: repeating-linear-gradient(90deg, #adb1b7 0 10px, #c3c6cb 10px 20px); box-shadow: inset 0 0 32px rgba(0, 0, 0, .22); }
.guide-width { position: absolute; right: 10%; bottom: 8px; left: 10%; display: flex; align-items: center; gap: 7px; color: #fff; font-family: var(--font-mono); font-size: .47rem; letter-spacing: .05em; }
.guide-width i { flex: 1; height: 1px; background: var(--orange); position: relative; }
.guide-width i:first-child::before, .guide-width i:last-child::after { content: ""; position: absolute; top: -3px; border: 4px solid transparent; }
.guide-width i:first-child::before { left: 0; border-right-color: var(--orange); }
.guide-width i:last-child::after { right: 0; border-left-color: var(--orange); }
.guide-drop { position: absolute; top: 48px; right: 5px; bottom: 34px; width: 31px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-family: var(--font-mono); font-size: .44rem; letter-spacing: .03em; text-align: center; }
.guide-drop i { width: 1px; flex: 1; background: var(--orange); }
.guide-drop b { writing-mode: vertical-rl; transform: rotate(180deg); }
.measurement-guide figcaption { margin-top: 12px; color: #b0b5bc; font-size: var(--t-micro); line-height: 1.5; }

.subsection-label { margin: 0 0 6px; color: var(--red); font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mixed-counts, .individual-dimensions { margin-top: 24px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.mixed-counts h3, .individual-dimensions h3 { margin: 0; color: var(--charcoal); font-size: var(--t-h3); }
.mixed-counts .field-grid { margin-top: 18px; }
.mixed-counts > small { display: block; margin-top: 10px; color: var(--muted); font-size: var(--t-micro); }
.schedule-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.schedule-heading > span { padding: 6px 11px; color: var(--red); background: var(--red-tint); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: var(--t-micro); font-weight: 600; }
.schedule-list { display: grid; gap: 10px; margin-top: 18px; }
.schedule-list.is-disabled { opacity: .58; }
.schedule-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.schedule-row > strong { align-self: center; color: var(--charcoal); font-family: var(--font-mono); font-size: var(--t-tiny); font-weight: 600; }
.schedule-row .field { gap: 5px; }
.schedule-row .schedule-layout-notes { grid-column: 1 / -1; }
.schedule-row .schedule-arrangement { grid-column: 1 / -1; }
.schedule-row textarea { width: 100%; min-height: 70px; padding: 8px 11px; }
.schedule-row .field > span { font-size: var(--t-micro); }
.schedule-row .field input, .schedule-row .field select { min-height: 42px; padding: 8px 11px; }
.schedule-row .field select { padding-right: 34px; background-position: calc(100% - 16px) 55%, calc(100% - 10px) 55%; }
.inherited-type { align-self: center; color: var(--slate); font-size: var(--t-tiny); font-weight: 600; }

.step-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-actions .button-primary { margin-left: auto; }
.form-error { margin-top: 20px; padding: 14px 16px; color: var(--red-dark); background: var(--red-tint); border: 1px solid var(--red-line); border-radius: var(--r-sm); font-size: var(--t-small); }

/* --------------------------------------------------------------- results */

.result-heading { display: flex; align-items: flex-start; gap: 16px; }
.result-icon { flex: 0 0 46px; display: grid; place-items: center; width: 46px; height: 46px; color: var(--white); background: var(--success); border-radius: 50%; font-weight: 700; }
.result-heading h2 { margin-bottom: 10px; }
.result-heading p { margin: 0; color: var(--muted); font-size: var(--t-small); }

.ai-result-context { margin-top: 24px; padding: 20px; background: var(--soft); border-radius: var(--r-md); border-top: 3px solid var(--red); }
.ai-result-context > strong { display: block; margin-top: 10px; color: var(--charcoal); font-size: var(--t-small); }
.ai-result-context p { margin: 5px 0; color: var(--slate); font-size: var(--t-small); }
.ai-result-context small { color: var(--muted); font-size: var(--t-micro); }

.project-overview { margin-top: 24px; padding: 20px; background: var(--soft); border-left: 3px solid var(--red); border-radius: 0 var(--r-md) var(--r-md) 0; }
.overview-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-facts > span { padding: 8px 11px; color: var(--slate); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xs); font-size: var(--t-micro); }
.overview-facts b { color: var(--charcoal); font-family: var(--font-display); font-size: var(--t-body); font-variant-numeric: tabular-nums; }
.schedule-summary, .preview-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.schedule-summary span, .preview-schedule span { padding: 10px 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xs); font-size: var(--t-micro); font-variant-numeric: tabular-nums; }
.schedule-summary b, .preview-schedule b { display: block; color: var(--charcoal); }

.quotation-guidance { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.quotation-guidance-card { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: var(--shadow-1); }
.quotation-guidance-card h3 { margin: 2px 0 0; color: var(--charcoal); font-size: var(--t-h3); }
.quotation-guidance-card > p { max-width: 70ch; margin: 10px 0 0; color: var(--slate); font-size: var(--t-small); }
.quotation-guidance-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.quotation-guidance-heading > strong { flex: 0 0 auto; color: var(--charcoal); font-family: var(--font-display); font-size: clamp(1.85rem, 1.35rem + 1.5vw, 2.6rem); font-variant-numeric: tabular-nums; line-height: 1; }
.quote-readiness-track { height: 10px; margin-top: 17px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-pill); }
.quote-readiness-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--orange), var(--green)); border-radius: inherit; }
.quotation-guidance-card .quote-readiness-count { margin-top: 8px; color: var(--charcoal); font-size: var(--t-tiny); font-weight: 600; }
.quotation-guidance-card .quote-readiness-missing { margin-top: 12px; }
.quotation-guidance-card > small { display: block; margin-top: 11px; color: var(--muted); font-size: var(--t-micro); }
.engineering-review-card { background: var(--amber-tint); border-color: var(--amber-line); border-left-color: var(--amber); box-shadow: none; }
.engineering-review-card .subsection-label { color: var(--amber-deep); }

.customer-result-groups { display: grid; gap: 14px; margin-top: 22px; }
.customer-result-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--success); border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: var(--shadow-1); }
.customer-result-card h3 { margin: 0; color: var(--charcoal); font-size: var(--t-h3); }
.customer-result-card > p { max-width: 72ch; margin: 10px 0 0; color: var(--slate); font-size: var(--t-small); }
.customer-result-card > a { display: inline-block; margin-top: 14px; color: var(--red); font-size: var(--t-tiny); font-weight: 600; text-decoration: none; }
.customer-result-card > a:hover { text-decoration: underline; }
.customer-result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.customer-result-top > span { flex: 0 0 auto; padding: 6px 10px; color: var(--success); background: var(--success-tint); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: .62rem; font-weight: 600; }
.customer-result-card .customer-result-performance { color: var(--charcoal); font-weight: 600; }
.customer-result-review { border-left-color: var(--amber); background: var(--amber-tint); box-shadow: none; }
.result-icon-review { background: var(--amber); }
.customer-result-review .customer-result-top > span { color: var(--amber-deep); background: var(--amber-tint); }
.dimension-review { margin-top: 16px; padding: 14px 16px; color: var(--amber-deep); background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: var(--r-sm); }
.dimension-review ul { margin: 8px 0 0; padding-left: 20px; }
.dimension-review li + li { margin-top: 6px; }

.technical-details { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.technical-details > summary { padding: 15px 18px; color: var(--slate); font-size: var(--t-tiny); font-weight: 600; cursor: pointer; }
.technical-details > summary:hover { color: var(--red); }
.technical-details-content { padding: 0 18px 22px; border-top: 1px solid var(--line); }

.warning-list { display: grid; gap: 8px; margin: 24px 0; padding: 17px 19px 17px 38px; color: var(--amber-deep); background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: var(--r-sm); font-size: var(--t-small); }

.result-transparency { margin: 30px 0 36px; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--charcoal); border-radius: var(--r-md); }
.transparency-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.transparency-heading h2 { margin: 0; color: var(--charcoal); font-size: 1.35rem; }
.transparency-heading > span { flex: 0 0 auto; padding: 6px 10px; color: var(--slate); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: .58rem; font-weight: 500; letter-spacing: .08em; }
.transparency-intro { max-width: 88ch; margin: 10px 0 22px; color: var(--muted); font-size: var(--t-small); }
.transparency-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.transparency-panel { min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--faint); border-radius: var(--r-sm); }
.transparency-panel-missing { border-top-color: var(--amber); }
.transparency-panel-confirmation { border-top-color: var(--red); }
.transparency-title { display: flex; align-items: center; gap: 10px; }
.transparency-title > span { flex: 0 0 23px; display: grid; place-items: center; width: 23px; height: 23px; color: #fff; background: var(--muted); border-radius: 50%; font-size: .65rem; font-weight: 700; }
.transparency-panel-missing .transparency-title > span { background: var(--amber); }
.transparency-panel-confirmation .transparency-title > span { background: var(--red); }
.transparency-panel h3 { margin: 0; color: var(--charcoal); font-size: var(--t-small); }
.transparency-panel ul { display: grid; gap: 7px; margin: 12px 0 0; padding-left: 18px; color: var(--slate); font-size: var(--t-micro); line-height: 1.5; }
.transparency-empty { margin: 12px 0 0; color: var(--success); font-size: var(--t-micro); font-weight: 600; }

.result-groups { display: grid; gap: 34px; }
.result-group + .result-group { padding-top: 32px; border-top: 2px solid var(--charcoal); }
.result-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-group-heading > span { color: var(--muted); font-family: var(--font-mono); font-size: var(--t-micro); font-weight: 500; }
.recommendations { display: grid; gap: 14px; margin-top: 24px; }
.recommendation-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: var(--shadow-1); }
.recommendation-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.recommendation-card h3 { margin: 0 0 6px; color: var(--charcoal); font-size: var(--t-h3); }
.recommendation-card a { color: var(--red); font-size: var(--t-tiny); font-weight: 600; text-decoration: none; text-underline-offset: 4px; }
.recommendation-card a:hover { text-decoration: underline; }
.match-chip { white-space: nowrap; padding: 6px 10px; color: var(--success); background: var(--success-tint); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: .64rem; font-weight: 600; }
.review-candidate-intro { margin-top: 20px; padding: 16px 18px; color: var(--amber-deep); background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: var(--r-sm); }
.review-candidate-intro strong { color: var(--amber-deep); }
.review-candidate-intro p { margin: 4px 0 0; font-size: var(--t-small); }
.review-candidate-card { border-left-color: var(--amber); }
.review-chip { color: var(--amber-deep); background: var(--amber-tint); }
.candidate-boundary { margin-top: 16px; padding: 13px 15px; color: var(--amber-deep); background: var(--amber-tint); border-left: 3px solid var(--amber); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--t-tiny); }
.candidate-boundary strong { display: block; color: var(--amber-deep); }
.spec-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; padding: 0; list-style: none; }
.spec-list li { padding: 6px 9px; color: var(--slate); background: var(--soft); border-radius: var(--r-xs); font-family: var(--font-mono); font-size: .68rem; font-variant-numeric: tabular-nums; }
.certificate-evidence { margin: 18px 0; background: #fbfdfc; border: 1px solid var(--line); border-top: 3px solid var(--success); border-radius: var(--r-sm); overflow: hidden; }
.certificate-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.certificate-heading p { margin: 0; }
.certificate-heading strong { color: var(--success); font-family: var(--font-mono); font-size: .64rem; font-weight: 600; }
.certificate-evidence dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.certificate-evidence dl div { min-width: 0; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.certificate-evidence dl div:nth-child(odd) { border-right: 1px solid var(--line); }
.certificate-evidence dt { color: var(--muted); font-family: var(--font-mono); font-size: .58rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.certificate-evidence dd { margin: 3px 0 0; color: var(--slate); font-size: var(--t-tiny); overflow-wrap: anywhere; }
.certificate-evidence dd a { font-size: var(--t-tiny); }
.match-reasons { margin-top: 18px; }
.match-reasons > strong, .technical-review > strong { color: var(--charcoal); font-size: var(--t-small); }
.reason-list, .technical-list { margin: 9px 0 0; padding-left: 19px; color: var(--slate); font-size: var(--t-small); line-height: 1.55; }

.requirement-evidence { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.evidence-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.evidence-heading h4 { margin: 0; color: var(--charcoal); font-size: var(--t-body); }
.evidence-heading small { color: var(--muted); font-size: var(--t-micro); }
.requirement-table { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.requirement-row { display: grid; grid-template-columns: 1.05fr 1.05fr 1.55fr .7fr; align-items: center; min-width: 0; }
.requirement-row + .requirement-row { border-top: 1px solid var(--line); }
.requirement-row:nth-child(even) { background: var(--paper); }
.requirement-row > * { min-width: 0; padding: 11px 12px; overflow-wrap: anywhere; }
.requirement-row > * + * { border-left: 1px solid var(--line); }
.requirement-row strong, .requirement-row span { color: var(--slate); font-size: var(--t-micro); line-height: 1.45; }
.requirement-row strong { color: var(--charcoal); font-weight: 600; }
.requirement-header { background: var(--charcoal) !important; }
.requirement-header span { color: #fff; font-family: var(--font-mono); font-size: .56rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.requirement-header > * + * { border-left-color: rgba(255, 255, 255, .16); }
.evidence-status { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 9px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: .58rem; font-style: normal; font-weight: 600; }
.evidence-status-satisfied { color: #086243; background: var(--success-tint); }
.evidence-status-not-required { color: var(--slate); background: var(--soft); }
.evidence-status-not-assessed { color: var(--amber-deep); background: #fdf0cf; }

.technical-review { margin-top: 18px; padding: 15px 17px; background: var(--red-tint); border-left: 3px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.technical-list { color: #7c2b38; }
.no-match { padding: 26px; background: var(--soft); border-left: 4px solid var(--faint); border-radius: 0 var(--r-md) var(--r-md) 0; }
.no-match h3 { margin: 0 0 8px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* -------------------------------------------------------------- handover */

.contact-fields { margin-top: 28px; }
.handover-options { margin: 32px 0 0; padding: 0; border: 0; }
.handover-options legend { margin-bottom: 14px; color: var(--charcoal); font-size: var(--t-small); font-weight: 600; }
.compact-choice { min-height: 134px; }
.prototype-tag { margin-top: auto; padding: 4px 8px; color: var(--red-dark); background: var(--red-tint); border-radius: var(--r-xs); font-family: var(--font-mono); font-size: .55rem; font-style: normal; font-weight: 600; letter-spacing: .07em; }

.handover-preview { margin-top: 36px; padding-top: 30px; border-top: 2px solid var(--charcoal); }
.preview-banner { display: flex; align-items: center; gap: 16px; padding: 24px; color: #fff; background: linear-gradient(135deg, var(--success), #3d711b); border-radius: var(--r-md); }
.preview-banner > span { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; font-weight: 700; }
.preview-banner h3, .preview-banner p { margin: 0; }
.preview-banner h3 { font-size: 1.24rem; }
.preview-banner p { margin-top: 4px; color: #cfeade; font-size: var(--t-small); }
.prototype-callout { margin: 15px 0 20px; padding: 14px 16px; color: var(--amber-deep); background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: var(--r-sm); font-size: var(--t-tiny); }
.prototype-callout strong { display: block; color: var(--amber-deep); }
.submission-reference { display: grid; justify-items: start; gap: 3px; margin: 15px 0; padding: 20px 22px; background: var(--soft); border-left: 3px solid var(--charcoal); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.submission-reference span { color: var(--muted); font-family: var(--font-mono); font-size: .57rem; font-weight: 500; letter-spacing: .09em; }
.submission-reference strong { color: var(--charcoal); font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; letter-spacing: .04em; }
.submission-reference small { color: var(--muted); font-size: var(--t-micro); }
.submission-delivered { margin: 15px 0 20px; padding: 14px 16px; color: #086243; background: var(--success-tint); border: 1px solid var(--success-line); border-radius: var(--r-sm); font-size: var(--t-tiny); }
.submission-delivered strong { display: block; }

.handover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.handover-grid section { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); }
.handover-grid h3 { margin: 0 0 16px; color: var(--charcoal); font-size: var(--t-body); }
.handover-grid dl { display: grid; gap: 10px; margin: 0; }
.handover-grid dl div { padding-top: 10px; border-top: 1px solid var(--line); }
.handover-grid dt { color: var(--muted); font-family: var(--font-mono); font-size: .58rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.handover-grid dd { margin: 3px 0 0; color: var(--slate); font-size: var(--t-tiny); overflow-wrap: anywhere; }

/* ----------------------------------------------------- callback dialog */

.callback-dialog {
  width: min(820px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: var(--r-md);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42);
  overflow: auto;
}
.callback-dialog::backdrop { background: rgba(15, 16, 19, .78); backdrop-filter: blur(4px); }
.callback-form { padding: clamp(24px, 5vw, 44px); border-top: 5px solid var(--red); }
.callback-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.callback-heading h2 { max-width: 20ch; margin: 3px 0 8px; color: var(--charcoal); font-size: var(--t-h2); line-height: 1.08; }
.callback-heading p:not(.step-kicker) { max-width: 60ch; margin: 0; color: var(--muted); font-size: var(--t-small); }
.dialog-close { flex: 0 0 42px; width: 42px; height: 42px; color: var(--slate); background: var(--soft); border: 0; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { color: #fff; background: var(--red); }
.callback-fields { margin-top: 28px; }
.callback-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.callback-message { margin-top: 22px; padding: 16px 18px; color: #086243; background: var(--success-tint); border: 1px solid var(--success-line); border-radius: var(--r-sm); font-size: var(--t-small); }
.callback-message.is-error { color: var(--red-dark); background: var(--red-tint); border-color: var(--red-line); }
.callback-message strong { display: block; margin-bottom: 3px; color: inherit; }

/* --------------------------------------------------------------- footer */

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(20px, 5vw, 78px); color: var(--brand-grey-light); background: var(--charcoal); border-top: 4px solid var(--red); font-size: var(--t-micro); }
.site-footer p { margin: 0; }
.footer-legal { flex-basis: 100%; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--brand-grey-light); }
.footer-links a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.footer-brand img { width: 132px; height: auto; padding: 8px 12px; background: #fff; border-radius: var(--r-xs); object-fit: contain; }
.footer-brand span { font-size: .56rem; font-weight: 600; letter-spacing: .13em; }

/* --------------------------------------------------------- breakpoints */

@media (max-width: 1180px) and (min-width: 861px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header-strapline { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy-panel { min-height: 570px; }
  .hero-copy-panel::after { width: 100%; height: 5px; top: auto; bottom: 0; background: linear-gradient(90deg, var(--red-bright), var(--red-dark)); }
  .hero-visual { min-height: 450px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); padding: 0 18px; }
  .proof-strip > div:nth-child(2) { border-right: 0; }
  .brand-purpose { grid-template-columns: 54px minmax(0, 1fr); }
  .brand-purpose img { width: 54px; height: 52px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 175px; }
  .process-grid h3 { margin-top: 26px; }
  .advisor-shell { grid-template-columns: 1fr; margin: 20px auto; }
  .progress-panel { padding: 22px; }
  .progress-brand { display: none; }
  .progress-list { grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .progress-list li { display: grid; justify-items: center; gap: 6px; font-size: .6rem; text-align: center; }
  .saved-note { display: none; }
  .progress-track { margin-bottom: 18px; }
  .question-panel { min-height: 650px; }
  .dimension-layout { grid-template-columns: 1fr; }
  .transparency-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .concept-ribbon { justify-content: flex-start; }
  .concept-ribbon p { display: none; }
  .concept-ribbon span { padding-right: 0; border-right: 0; }
  .site-header { min-height: 74px; padding: 12px 16px; }
  .header-meta, .header-divider, .product-name { display: none; }
  .brand-logo { width: 126px; height: auto; }
  .hero-copy-panel { min-height: auto; padding: 52px 22px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .ai-intake-card, .intake-review { padding: 20px; }
  .intake-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .intake-actions .button { width: 100%; }
  .hero-quick-action { align-items: flex-start; flex-direction: column; }
  .text-button { align-self: flex-start; }
  .understood-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .floating-result { right: 18px; bottom: 44px; width: calc(100% - 36px); }
  .proof-strip strong { font-size: 1.5rem; }
  .proof-strip span { font-size: .62rem; }
  .proof-strip > div { justify-content: flex-start; padding: 18px 12px; }
  .how-section { padding: 64px 22px 72px; }
  .brand-purpose { grid-template-columns: 1fr; justify-items: start; padding: 20px; }
  .advisor-shell { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .question-panel { padding: 28px 20px; }
  .choice-grid-three, .choice-grid-two, .field-grid { grid-template-columns: 1fr; }
  .choice-card-wide, .field-wide { grid-column: auto; }
  .choice-card { min-height: 124px; }
  .progress-list li { font-size: 0; }
  .progress-list li span { font-size: .68rem; }
  .site-footer { display: grid; justify-items: start; }
  .footer-brand img { width: 120px; height: auto; }
  .recommendation-top { display: grid; }
  .customer-result-top { display: grid; }
  .certificate-evidence dl { grid-template-columns: 1fr; }
  .certificate-evidence dl div:nth-child(odd) { border-right: 0; }
  .transparency-heading, .evidence-heading { display: grid; }
  .result-transparency { padding: 18px; }
  .requirement-table { display: grid; gap: 9px; border: 0; border-radius: 0; }
  .requirement-header { display: none; }
  .requirement-row { display: grid; grid-template-columns: 1fr; padding: 12px 14px; background: #fff !important; border: 1px solid var(--line); border-radius: var(--r-sm); }
  .requirement-row + .requirement-row { border-top: 1px solid var(--line); }
  .requirement-row > * { padding: 5px 0; }
  .requirement-row > * + * { border-left: 0; }
  .requirement-row span[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-family: var(--font-mono); font-size: .54rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
  .dimension-layout { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr 1fr; }
  .schedule-row > strong, .schedule-row .schedule-type, .schedule-row .inherited-type { grid-column: 1 / -1; }
  .handover-grid, .schedule-summary, .preview-schedule { grid-template-columns: 1fr; }
  .callback-form { padding: 24px 20px; }
  .callback-heading h2 { font-size: 1.75rem; }
  .callback-actions { align-items: stretch; flex-direction: column-reverse; }
  .callback-actions .button { width: 100%; }
}

/* ------------------------------------------------------- accessibility */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .button:hover, .choice-card:hover, .process-grid article:hover { transform: none; }
}

/* ------------------------------------------------------------- print */

@media print {
  .concept-ribbon, .site-header, .progress-panel, .step-actions, .site-footer, .result-actions, .contact-fields, .handover-options { display: none !important; }
  body, .advisor-shell, .question-panel { background: #fff; box-shadow: none; }
  .advisor-shell { width: 100%; display: block; margin: 0; border: 0; border-radius: 0; }
  .question-panel { padding: 0; }
  .step { display: none !important; }
  .step[data-step="6"]:not(.is-hidden), .step[data-step="7"]:not(.is-hidden) { display: block !important; }
  .recommendation-card, .quotation-guidance-card, .result-transparency, .transparency-panel, .requirement-row { break-inside: avoid; box-shadow: none; }
}

.turnstile-container {
  display: flex;
  justify-content: flex-start;
  min-height: 65px;
  margin-top: 24px;
}

.project-planning { border: 1px solid var(--border, #ddd); border-radius: 12px; margin: 28px 0; padding: 24px; min-width: 0; }
.project-planning legend { font-weight: 700; padding: 0 8px; }
.attachment-fields { border: 1px solid #ddd; border-radius: 12px; margin: 28px 0; padding: 24px; min-width: 0; }
.attachment-fields legend { font-weight: 700; padding: 0 8px; }
.attachment-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 18px; border: 2px dashed var(--red-line); border-radius: 12px; background: var(--red-tint); text-align: center; cursor: pointer; }
.attachment-dropzone:hover, .attachment-dropzone.is-dragging { border-color: var(--red); background: #ffe5eb; }
.attachment-dropzone:focus-within { outline: 3px solid var(--red); outline-offset: 4px; }
.attachment-dropzone strong { font-size: 1.15rem; color: var(--charcoal); }
.attachment-upload-icon { width: 36px; height: 36px; color: var(--red); }
.attachment-dropzone-hint { font-size: .9rem; color: var(--slate); }
.attachment-choose { display: inline-block; padding: 10px 22px; border-radius: 6px; background: var(--red); color: white; font-weight: 700; }
.attachment-file-input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.attachment-list { list-style: none; padding: 0; }
.attachment-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #eee; }
.attachment-list li span { overflow-wrap: anywhere; min-width: 0; }
.attachment-list button { flex-shrink: 0; min-height: 36px; padding: 6px 12px; }
.attachment-error { color: #a50927; }
.project-planning .field-grid { margin-bottom: 20px; }
.project-planning textarea { width: 100%; padding: 12px; border: 1px solid #bbb; border-radius: 8px; font: inherit; resize: vertical; }

.turnstile-container.is-hidden {
  display: none;
  min-height: 0;
}

.customer-result-match .dimension-review { color: inherit; background: transparent; border-color: currentColor; border-width: 0 0 0 2px; border-radius: 0; padding: 0 0 0 12px; }

.customer-result-match { background: var(--success-tint); border-left-color: var(--success); }
