/* Blue Collar Legacy Planning - landing
   Brand colors (GUIA-DE-MARCA.md): steel gray #1C2430, amber #F2A900, white text on dark.
   Fonts: Barlow Condensed (headlines, uppercase) + Inter (body). Industrial look: caution stripe + I-beam motif. */
:root {
  --steel: #1C2430;          /* brand */
  --steel-2: #232D3B;
  --steel-3: #2D3949;
  --steel-deep: #141A23;
  --steel-black: #0E1217;
  --amber: #F2A900;          /* brand */
  --amber-light: #FFC233;
  --amber-soft: #FFF4D6;
  --white: #FFFFFF;
  --text: #E9EDF2;           /* body text on dark */
  --muted: #AEB7C4;          /* secondary text on dark */
  --concrete: #F6F5F1;       /* form card */
  --ink: #1C2430;            /* text on light */
  --ink-muted: #586374;
  --line: #D5D8DD;
  --line-dark: rgba(255, 255, 255, .09);
  --error: #B42318;
  --error-bg: #FEF3F2;

  --display: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 28px 50px -24px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .25);

  --caution: repeating-linear-gradient(-45deg, var(--amber) 0 16px, var(--steel-black) 16px 32px);
  --ibeam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h18v4h-6.5v10H21v4H3v-4h6.5V7H3z' fill='%23F2A900'/%3E%3C/svg%3E");
  --ibeam-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h18v4h-6.5v10H21v4H3v-4h6.5V7H3z' fill='none' stroke='%23F2A900' stroke-width='.25'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--steel);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0;
  color: var(--white); text-transform: uppercase; letter-spacing: .01em;
}
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--amber); color: var(--steel); padding: 8px 14px; border-radius: 4px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Caution stripe divider (from the Facebook cover) ---------- */
.caution { height: 12px; background: var(--caution); }

/* ---------- Header ---------- */
.site-header { background: var(--steel-deep); border-bottom: 1px solid rgba(242, 169, 0, .25); position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(242, 169, 0, .35); }
.wordmark { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.wordmark-main { font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.wordmark-iron { color: var(--white); }
.wordmark-legacy { color: var(--amber); }
.wordmark-sub {
  margin-top: 3px; font-family: var(--sans); font-weight: 600; font-size: .56rem;
  letter-spacing: .5em; text-transform: uppercase; color: #C3CAD4;
}
.header-tag {
  display: none; color: var(--muted); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Hero: quiz-first, I-beam + blueprint grid ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 420px at 50% 0%, rgba(45, 57, 73, .95), transparent 70%),
    var(--steel);
  color: var(--white);
  padding: 22px 0 34px;
}
.hero::before {
  /* faint blueprint grid */
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 44px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 20%, #000 0 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  /* oversized outlined I-beam, subtle */
  content: ""; position: absolute; right: -140px; top: 30px; width: 520px; height: 520px;
  background: var(--ibeam-outline) center / contain no-repeat;
  opacity: .22; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: center; text-align: center; }
.hero-copy { max-width: 760px; }
.eyebrow {
  display: inline-block; color: var(--amber); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
  padding: 6px 12px; border: 1px solid rgba(242, 169, 0, .5); border-left-width: 4px; border-radius: 2px;
  background: rgba(242, 169, 0, .07);
}
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 8vw, 4rem); font-weight: 800; }
.accent { color: var(--amber); }
.hero-sub { margin: 14px auto 0; color: var(--muted); font-size: 1.05rem; max-width: 34em; }

.hero-trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
}
.hero-trust li {
  position: relative; padding-left: 28px; color: var(--text); font-weight: 500; font-size: .92rem;
}
.hero-trust li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 19px; height: 19px; border-radius: 3px;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-8.5' fill='none' stroke='%231C2430' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Form card ---------- */
.form-card {
  width: 100%; max-width: 600px; text-align: left;
  background: var(--concrete); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 18px 20px;
  scroll-margin-top: 12px;
  position: relative; overflow: hidden;
}
.form-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: var(--caution);
}
.form-card:focus { outline: none; }
.form-head { margin-bottom: 14px; text-align: center; }
.form-title { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }
.form-text { color: var(--ink-muted); font-size: .95rem; }

.progress-wrap { margin-bottom: 18px; }
.progress { height: 8px; background: #E1E3E7; border-radius: 2px; overflow: hidden; }
.progress-bar {
  height: 100%; width: 25%;
  background: var(--amber);
  transition: width .35s ease;
}
.progress-label { margin-top: 8px; font-size: .74rem; font-weight: 700; color: var(--ink-muted); text-align: center; letter-spacing: .1em; text-transform: uppercase; }

.step.is-entering { animation: stepIn .28s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.question { font-size: 1.6rem; margin-bottom: 14px; text-align: center; color: var(--steel); }
.question:focus { outline: none; }
.step-text { color: var(--ink-muted); margin: -6px 0 14px; font-size: .92rem; text-align: center; }

.options { display: grid; gap: 10px; }
.option {
  position: relative; width: 100%; min-height: 58px; padding: 14px 16px 14px 50px;
  text-align: left; font: inherit; font-weight: 600; color: var(--steel);
  background: var(--white); border: 2px solid var(--line); border-radius: 4px;
  cursor: pointer; transition: border-color .15s, background-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.option::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 3px; border: 2px solid #A9B0BA; background: var(--white); transition: all .15s;
}
.option:hover { border-color: var(--amber); }
.option:active { transform: scale(.99); }
.option[aria-pressed="true"] { border-color: var(--steel); background: var(--amber-soft); }
.option[aria-pressed="true"]::before {
  border-color: var(--steel); background: var(--steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-8.5' fill='none' stroke='%23F2A900' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--steel); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; height: 52px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: 4px;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231C2430' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 20px no-repeat;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(242, 169, 0, .45); }
.field .is-invalid, .field input.is-invalid, .field select.is-invalid { border-color: var(--error); }

.field-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 4px; }
.field-check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--steel); }
.field-check label { font-weight: 400; font-size: .8rem; line-height: 1.5; color: var(--ink); margin: 0; }

.field-error { color: var(--error); font-size: .82rem; font-weight: 600; margin-top: 6px; }
.field-error:empty { display: none; }
.step > .field-error { text-align: center; }

.consent-text { font-size: .76rem; line-height: 1.5; color: var(--ink-muted); margin-top: 10px; }
.consent-text a { color: var(--steel); font-weight: 700; }

.submit-error {
  margin-top: 14px; padding: 12px 14px; border-radius: 4px;
  background: var(--error-bg); color: var(--error); border: 1px solid #FECDCA; font-size: .88rem;
}
.submit-error strong { display: block; }

/* Spam trap field */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.step-actions .btn-primary { flex: 1 1 auto; }
.step[data-step="1"] .step-actions .btn-primary { flex-basis: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 4px; border: 0;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .1s, opacity .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-amber { background: var(--amber); color: var(--steel); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn-primary:hover, .btn-amber:hover { background: var(--amber-light); }
.btn-primary[disabled] { opacity: .7; cursor: wait; }
.btn-link { background: transparent; color: var(--ink-muted); padding: 0 10px; font-size: 1.05rem; }
.btn-link:hover { color: var(--steel); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(28, 36, 48, .3); border-top-color: var(--steel);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Thanks ---------- */
.thanks { text-align: center; padding: 18px 4px 10px; animation: stepIn .3s ease; }
.thanks-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 4px;
  display: grid; place-items: center; color: var(--steel); background: var(--amber);
  box-shadow: 0 0 0 6px rgba(242, 169, 0, .2);
}
.thanks h2 { font-size: 1.8rem; color: var(--steel); }
.thanks h2:focus { outline: none; }
.thanks p { margin-top: 10px; color: var(--ink-muted); }

/* ---------- Sections (dark steel) ---------- */
.section { padding: 56px 0; background: var(--steel); }
.section-alt { background: var(--steel-deep); }
.section-kicker {
  color: var(--amber); font-weight: 700; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 8px; text-align: center;
}
.section-title { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 30px; text-align: center; }
.section-title::after {
  /* small amber I-beam, the brand motif */
  content: ""; display: block; width: 22px; height: 22px; margin: 14px auto 0;
  background: var(--ibeam) center / contain no-repeat;
}

.cards { display: grid; gap: 16px; }
.card {
  background: var(--steel-2); border: 1px solid var(--line-dark); border-top: 4px solid var(--amber);
  border-radius: var(--radius); padding: 24px 22px;
}
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--amber); margin-bottom: 16px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--steel); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

.steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--steel-2); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--line-dark);
}
.step-num {
  flex: 0 0 auto; width: 48px; height: 48px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.7rem;
  color: var(--steel); background: var(--amber);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.steps h3 { font-size: 1.4rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .95rem; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--steel-2); border: 1px solid var(--line-dark); border-left: 4px solid var(--amber);
  border-radius: 4px; padding: 0 18px;
}
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 32px 18px 0; font-weight: 600; color: var(--white); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--amber); border-bottom: 2.5px solid var(--amber);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: .95rem; }
.faq a { color: var(--amber); font-weight: 600; }

.closing {
  position: relative; overflow: hidden;
  background: var(--steel-deep); color: var(--white); padding: 64px 0; text-align: center;
}
.closing::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  background: var(--ibeam-outline) center / contain no-repeat;
  opacity: .14; pointer-events: none;
}
.closing-inner { position: relative; }
.closing-badge {
  width: 112px; height: 112px; margin: 0 auto 24px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(242, 169, 0, .55), 0 0 0 10px rgba(242, 169, 0, .08);
}
@media (min-width: 900px) { .closing-badge { width: 136px; height: 136px; } }
.closing h2 { color: var(--white); font-size: clamp(2rem, 7vw, 3.2rem); max-width: 16em; margin: 0 auto; }
.closing p { margin: 14px auto 26px; color: var(--muted); max-width: 32em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel-black); color: var(--muted); padding: 40px 0 96px; font-size: .84rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { border-radius: 50%; }
.footer-brand .wordmark-main { font-size: 1.05rem; }
.legal { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); font-size: .78rem; line-height: 1.6; color: #8D97A5; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; }
.footer-bottom a { color: var(--amber); font-weight: 600; }

/* ---------- Sticky mobile button ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 26, 35, .97);
  animation: slideUp .25s ease;
}
.sticky-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--caution); }
.sticky-cta .btn { width: 100%; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Mobile: push the form as high as possible ---------- */
@media (max-width: 639px) {
  .hero { padding: 18px 0 30px; }
  .hero-inner { gap: 16px; }
  .hero::after { width: 360px; height: 360px; right: -170px; top: 10px; }
  .eyebrow { font-size: .64rem; letter-spacing: .08em; margin-bottom: 10px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-sub { display: none; }
  .form-title { font-size: 1.35rem; }
  .form-text { font-size: .88rem; }
  .question { font-size: 1.45rem; }
  .hero-trust { flex-direction: column; align-items: flex-start; }
}

/* ---------- Tablet and desktop ---------- */
@media (min-width: 480px) {
  /* two-column options; an odd last option spans both */
  .options { grid-template-columns: 1fr 1fr; }
  .options .option:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 640px) {
  .header-tag { display: inline; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: 34px 32px 26px; }
  .caution { height: 14px; }
}

@media (min-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { gap: 28px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .section { padding: 84px 0; }
  .site-footer { padding-bottom: 40px; }
  .sticky-cta { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
