/* NorTech assessment page. Brand per nortech-brand-style.md. */

:root {
  --red: #FF1A1A;
  --ground: #050000;
  --card: #150606;
  --card-border: #2b0d0d;
  --glow: #5a0404;
  --on-dark: #F5F4F0;
  --muted-dark: #B8B0B0;
  --footer-dark: #8a7f7f;
  --page: #FFFFFF;
  --tint: #FBF5F5;
  --text: #1A1414;
  --muted: #5e5454;
  --rule: #E6DEDE;
  --measure: 68ch;
  --gutter: clamp(16px, 5vw, 48px);
  --font: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
  font-feature-settings: "tnum" 1;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.6vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 24ch; }
h3 { font-size: 20px; margin-bottom: 0.4em; }
p, li, dd { max-width: var(--measure); }

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--red); }

.lead { font-size: 20px; font-weight: 500; margin-top: 32px; }
.small { font-size: 14px; color: var(--muted); }
.small--dark { color: var(--muted-dark); }

/* Hero */
.hero {
  background: var(--ground);
  background-image: radial-gradient(ellipse 70% 60% at 50% 0%, var(--glow) 0%, var(--ground) 70%);
  color: var(--on-dark);
  padding: 56px 0 72px;
}
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.logo { text-decoration: none; margin-bottom: 40px; display: inline-block; }
.logo__mark { color: var(--red); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; }
.hero h1 { max-width: 22ch; }
.hero__sub { font-size: clamp(17px, 2vw, 21px); color: var(--muted-dark); max-width: 60ch; margin: 8px auto 32px; }
.hero__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.hero__trust { margin-top: 28px; font-size: 15px; color: var(--muted-dark); }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #e01212; }
.link { color: var(--on-dark); font-weight: 500; }

/* Sections */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ground); color: var(--on-dark); }
.section--dark h2 { color: var(--on-dark); }
.section--dark a { color: var(--on-dark); }

/* Quotes */
.quotes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 28px 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quotes li { border-left: 3px solid var(--red); padding-left: 18px; }
.quotes blockquote { margin: 0 0 8px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.quotes p { margin: 0; color: var(--muted); }

/* Columns */
.cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; }
.cols p { margin: 0; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 48px 0 16px; padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.numbers div { display: flex; flex-direction: column-reverse; }
.numbers dd { margin: 0; color: var(--red); font-size: clamp(40px, 6vw, 72px); font-weight: 600; line-height: 1; }
.numbers dt { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* Alternatives */
.alts { margin: 32px 0 0; display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 14px 32px; }
.alts dt { font-weight: 600; padding-top: 14px; border-top: 1px solid var(--rule); }
.alts dd { margin: 0; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); }
.alts dt:last-of-type, .alts dd:last-of-type { color: var(--text); }
@media (max-width: 640px) {
  .alts { grid-template-columns: 1fr; gap: 4px; }
  .alts dd { border-top: 0; padding-top: 0; padding-bottom: 14px; }
}

/* Proof */
.cases { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cases li { background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; padding: 22px; }
.cases h3 { color: var(--on-dark); }
.cases p { margin: 0; color: var(--muted-dark); }
.endorsements { list-style: none; padding: 0; margin: 32px 0 16px; display: grid; gap: 24px; }
.endorsements li { padding-left: 20px; border-left: 3px solid var(--red); }
.endorsements li p { margin: 0 0 8px; font-size: 19px; line-height: 1.45; }
.endorsements__who { color: var(--muted-dark); font-size: 15px !important; }

/* Steps */
.steps { margin: 28px 0 0; padding-left: 0; counter-reset: step; list-style: none; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; padding-top: 12px; border-top: 2px solid var(--red); }
.steps li::before { content: counter(step); display: block; color: var(--red); font-weight: 600; margin-bottom: 6px; }

/* Form */
.form { margin-top: 32px; background: var(--page); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(18px, 4vw, 36px); }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-weight: 600; font-size: 18px; margin-bottom: 10px; padding: 0; }
fieldset label { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
fieldset input { margin-top: 5px; accent-color: var(--red); flex: 0 0 auto; width: 18px; height: 18px; }
.fields { display: grid; gap: 8px; margin-bottom: 20px; }
.fields label { font-weight: 500; margin-top: 12px; }
.fields input[type="text"], .fields input[type="email"], .fields input[type="url"] {
  font: inherit; padding: 12px 14px; border: 1px solid #bbb; border-radius: 6px; width: 100%;
}
.fields .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
.fields .check input { accent-color: var(--red); margin-top: 5px; width: 18px; height: 18px; }
.optional { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.form__error { color: #b00000; font-weight: 500; margin-top: 12px; }
.form button { margin-top: 8px; }

.result { margin-top: 24px; padding: 24px; border-radius: 8px; border: 1px solid var(--rule); background: var(--page); }
.result--pass { border-color: var(--red); }
.result h3 { margin-top: 0; }
.result p:last-child { margin-bottom: 0; }

/* Footer */
.footer { background: var(--ground); color: var(--footer-dark); padding: 48px 0; font-size: 15px; }
.footer__inner { text-align: center; }
.footer__inner .logo__mark { display: block; margin-bottom: 16px; }
.footer p { margin: 4px auto; }
.footer a { color: var(--muted-dark); }
.footer__entity { font-size: 13px; margin-top: 16px; }

/* Booking embed */
.booking { margin: 16px 0 8px; min-height: 680px; }
.booking .meetings-iframe-container { width: 100%; }

/* Stepped qualifier (applied by app.js; without JS the form shows in full) */
.form.is-stepped .step { display: none; }
.form.is-stepped .step.is-active { display: block; animation: step-in 180ms ease-out; }
.form.is-stepped .step:focus { outline: none; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.stepper { margin: 0 0 24px; }
.stepper__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; min-height: 28px; }
.stepper__count { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.stepper__back { font: inherit; font-size: 15px; background: none; border: 0; padding: 4px 0; color: var(--text); text-decoration: underline; cursor: pointer; }
.stepper__back[hidden] { display: none; }
.stepper__bar { height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.stepper__bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width 220ms ease-out; }

.form.is-stepped fieldset { margin-bottom: 8px; }
.form.is-stepped legend { font-size: clamp(20px, 3vw, 24px); line-height: 1.25; margin-bottom: 16px; }
.form.is-stepped fieldset label {
  border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px;
  background: var(--page); transition: border-color 120ms, background 120ms;
}
.form.is-stepped fieldset label:hover { border-color: #c9bcbc; }
.form.is-stepped fieldset label:has(input:checked) { border-color: var(--red); background: var(--tint); }
.form.is-stepped fieldset label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.step__next { margin-top: 8px; }
.step__next:disabled { opacity: 0.4; cursor: not-allowed; }
.step__title { font-weight: 600; font-size: clamp(20px, 3vw, 24px); line-height: 1.25; margin: 0 0 4px; }
.form.is-stepped .fields label:first-child { margin-top: 4px; }

.btn--secondary { background: var(--text); color: #fff; }
.btn--secondary:hover { background: #000; }
.keep { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.keep label { display: block; font-weight: 500; margin-bottom: 8px; }
.keep__row { display: flex; gap: 8px; flex-wrap: wrap; }
.keep__row input { font: inherit; padding: 12px 14px; border: 1px solid #bbb; border-radius: 6px; flex: 1 1 220px; min-width: 0; }
.keep__msg:empty { display: none; }
