/* =========================================================
   Build My Site — Lemieux Consulting
   Palette: inherits consultlemieux.com — deep blue, mid blue, orange accent.
   Type: Bricolage Grotesque (display) / Inter (body) /
         Azeret Mono (spec sheet + labels).
   ========================================================= */

:root {
  /* Anchored to the consultlemieux.com brand: deep blue, mid blue, orange accent. */
  --ink:        #0D4560;  /* brand blue-dark — hero ground, headings */
  --ink-soft:   #44535F;
  --ink-mute:   #5A6873;
  --paper:      #F4F7F9;
  --paper-lift: #FFFFFF;
  --rule:       #D6DFE5;
  --rule-soft:  #E5EBEF;
  --blueprint:  #156082;  /* brand blue — primary action */
  --blueprint-lift: #1A729A;
  --wet:        #E97132;  /* brand orange — fills and rules only, never small text */
  --wet-text:   #B4501C;  /* darkened orange that passes AA on paper */
  --flag:       #B3261E;

  --shell: 1560px;
  --r: 4px;

  /* semantic stacking order */
  --z-sticky: 100;
  --z-drawer: 200;
  --z-drawer-toggle: 210;
  --z-skip: 300;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-skip);
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font: 500 15px var(--body); text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------- masthead ---------------- */

.masthead {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(13, 69, 96, 0.94);
  backdrop-filter: blur(10px);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* The LC mark is a single blue; knock it out to white for the dark bands. */
.wordmark__logo {
  display: block;
  height: 40px; width: auto;
  filter: brightness(0) invert(1);
}
.wordmark__text { font: 500 15px var(--display); letter-spacing: -0.01em; }

.masthead__cta {
  font: 500 15px var(--body);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--r);
  border: 1px solid rgba(245, 244, 240, 0.35);
}
.masthead__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------------- hero ---------------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 9vw, 112px) clamp(20px, 4vw, 48px) clamp(60px, 8vw, 104px);
}

.hero__grid {
  max-width: var(--shell); margin: 0 auto;
  display: grid; gap: clamp(40px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.eyebrow {
  font: 600 15px var(--body);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}

.hero__lede {
  max-width: 54ch;
  text-wrap: pretty;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
  color: rgba(245, 244, 240, 0.76);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.assure {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: flex; flex-wrap: wrap;
  font-size: 15.5px; color: rgba(255, 255, 255, 0.86);
}
.assure li + li {
  margin-left: 18px; padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* The reply promise is a commitment, not a quick fact, so it gets its own
   line and a little more weight. It is also too long to sit in a divided row
   without wrapping and orphaning a divider. */
.assure__reply {
  margin: 13px 0 0;
  font-size: 15.5px; font-weight: 500;
  color: #FFFFFF;
}

.trust {
  margin: 30px 0 0; padding-top: 22px; max-width: 56ch;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14.5px; line-height: 1.6; text-wrap: pretty;
  color: rgba(255, 255, 255, 0.68);
}
.trust em { font-style: italic; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 15px var(--body);
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r);
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blueprint); color: #fff; border-color: var(--blueprint); }
.btn--primary:hover { background: var(--blueprint-lift); border-color: var(--blueprint-lift); }

.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; opacity: .82; }
.btn--ghost:hover { opacity: 1; }

.btn--big { font-size: 17px; padding: 18px 38px; }

/* ---------------- spec sheet (signature) ---------------- */

.specsheet {
  margin: 0;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}

.specsheet__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 13px 18px;
  background: var(--ink);
  border-top: 3px solid var(--wet);
  color: #fff;
}
.specsheet__title { font: 500 13px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.specsheet__meta { font: 400 12px var(--mono); opacity: .8; }

.specsheet__body { padding: 6px 18px 14px; }

.specline {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule-soft);
  font-size: 14.5px;
}
.specline:last-child { border-bottom: 0; }
.specline__k {
  font: 400 11.5px/1.5 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 2px;
}
.specline__v { color: var(--ink); line-height: 1.5; word-break: break-word; }

.specsheet__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--rule-soft);
  background: #F8FAFB;
  font: 400 13.5px var(--body);
  color: var(--ink-mute);
}

.caret {
  display: inline-block; width: 8px; height: 1.05em;
  background: var(--wet-text); margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* ---------------- how ---------------- */

.how {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 48px);
}

.section-title {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.028em;
  margin-bottom: 34px;
}

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  background: var(--rule);
  border: 1px solid var(--rule);
}
.step { background: var(--paper); padding: 26px 24px 30px; }
.step__n {
  display: block;
  font-family: var(--display); font-weight: 700; font-size: 26px;
  line-height: 1; letter-spacing: -0.03em;
  color: var(--wet-text);
  margin-bottom: 14px;
}
.step__h { font-size: 19px; letter-spacing: -0.018em; margin-bottom: 9px; }
.step__p { font-size: 15px; line-height: 1.58; color: var(--ink-soft); }

/* ---------------- rate sheet ---------------- */

.rates {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(56px, 7vw, 96px);
}
.rates__intro { margin-bottom: 32px; }
.rates__note { max-width: 66ch; text-wrap: pretty; color: var(--ink-soft); font-size: 16px; }

/* One sheet split by hairlines, not three floating cards. */
.ratesheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.tier { background: var(--paper-lift); padding: 26px 24px 30px; }
.tier--common { background: #EEF4F7; }

.tier__name {
  font-size: 19px; letter-spacing: -0.018em;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px;
  margin-bottom: 14px;
}
.tier__flag {
  font: 500 13px var(--body);
  color: #fff; background: var(--wet-text);
  padding: 3px 9px; border-radius: 999px;
}
.tier__price {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(25px, 2.5vw, 31px); letter-spacing: -0.03em; line-height: 1.05;
}
.tier__to {
  font: 400 13px var(--body); letter-spacing: 0;
  color: var(--ink-mute); margin: 0 7px;
}
.tier__span { margin-top: 7px; font: 400 14px var(--body); color: var(--ink-mute); }
.tier__who { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }

.tier__list { list-style: none; margin: 18px 0 0; padding: 0; }
.tier__list li {
  font-size: 14.5px; line-height: 1.5;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule-soft);
}
.tier__list li:last-child { border-bottom: 0; padding-bottom: 0; }

.rates__foot {
  margin-top: 22px; max-width: 72ch; text-wrap: pretty;
  font-size: 14.5px; line-height: 1.6; color: var(--ink-mute);
}

/* ---------------- intake layout ---------------- */

.intake {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 372px;
  gap: clamp(28px, 3.2vw, 56px);
  align-items: start;
}

/* rail */
.rail {
  position: sticky; top: 96px;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.rail__label {
  font: 600 14px var(--body);
  color: var(--ink-mute); margin-bottom: 14px;
}
.rail__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 2px; }
.rail__list a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 10px 7px 8px;
  font-size: 14px; text-decoration: none; color: var(--ink-mute);
  border-radius: var(--r);
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.rail__list a:hover { color: var(--ink); background: rgba(25,27,33,.04); }
.rail__n { font: 500 11px var(--mono); color: var(--ink-mute); min-width: 10px; }
.rail__list a.is-active {
  color: var(--paper); font-weight: 600;
  background: var(--blueprint);
}
.rail__list a.is-active .rail__n { color: rgba(255,255,255,.75); }

.rail__progress { border-top: 1px solid var(--rule); padding-top: 16px; }
.meter { height: 4px; background: var(--rule); border-radius: 99px; overflow: hidden; }
.meter__fill {
  display: block; height: 100%; width: 0%;
  background: var(--wet);
  transition: width .32s cubic-bezier(.2,.7,.3,1);
}
.rail__pct {
  margin-top: 9px;
  font: 400 13.5px var(--body); color: var(--ink-mute);
}

/* form column */
.intake__intro { border-top: 2px solid var(--ink); padding-top: 18px; margin-bottom: 40px; }
.intake__note { max-width: 62ch; color: var(--ink-soft); font-size: 16px; }

/* ---------------- fieldset sections ---------------- */

.fs {
  padding: 34px 0 44px;
  border-top: 1px solid var(--rule);
}
.fs:first-of-type { border-top: 0; padding-top: 0; }

.fs__head { margin-bottom: 30px; }
.fs__h { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.028em; margin-bottom: 12px; }
.fs__p { text-wrap: pretty; max-width: 60ch; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ---------------- fields ---------------- */

.row { display: grid; gap: 22px; }
.row--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.f { display: block; margin-bottom: 22px; }

.f label,
.fset legend {
  display: block;
  font-weight: 600; font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 9px;
  padding: 0;
}

.hint, .legend-note {
  display: block;
  margin-top: 7px;
  font-size: 13.5px; line-height: 1.5;
  color: var(--ink-mute);
}
.legend-note { margin-top: -3px; margin-bottom: 12px; }
.legend-note em { font-style: normal; font-family: var(--mono); font-size: 13px; }

.req, .opt {
  font: 500 13px var(--body);
  margin-left: 7px;
}
.req { color: var(--blueprint); }
.opt { color: var(--ink-mute); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: 400 16px var(--body);
  color: var(--ink);
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 12px 14px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
textarea { resize: vertical; line-height: 1.55; }

input::placeholder, textarea::placeholder { color: #6E7681; }

input[type="text"]:hover, input[type="email"]:hover, input[type="tel"]:hover,
select:hover, textarea:hover { border-color: #C4C1B7; }

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
select:focus, textarea:focus {
  outline: none;
  border-color: var(--blueprint);
  box-shadow: 0 0 0 3px rgba(29, 63, 143, .14);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236C7180' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.fset { border: 0; margin: 0 0 26px; padding: 0; }

/* choices */
.choices { display: grid; gap: 8px; }
.choices--inline { grid-auto-flow: column; grid-auto-columns: max-content; gap: 8px; }
.choices--grid { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }

.choice {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 15px; line-height: 1.45;
  transition: border-color .14s ease, background .14s ease;
}
/* label styles inside .f must not leak into .choice */
.f .choice { margin-bottom: 0; font-weight: 400; }

.choice:hover { border-color: #C4C1B7; }
.choice input { margin: 2px 0 0; accent-color: var(--blueprint); flex: none; }
.choice span { min-width: 0; }
.choice:has(input:checked) {
  border-color: var(--blueprint);
  background: rgba(29, 63, 143, .05);
  box-shadow: inset 0 0 0 1px var(--blueprint);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--blueprint); outline-offset: 2px; }
.choice.is-locked { opacity: .45; }

.choice--consent { align-items: flex-start; }
.f--check { margin-bottom: 12px; }

/* conditional reveals */
.reveal {
  margin: 0 0 26px;
  padding: 22px 22px 4px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: rgba(233, 113, 50, .05);
}
.reveal[hidden] { display: none; }

/* invalid state — only after a submit attempt */
.was-submitted :is(input, select, textarea):invalid {
  border-color: var(--flag);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, .1);
}
.was-submitted .fset:has(input:invalid) legend { color: var(--flag); }

.errors {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--flag);
  border-radius: var(--r);
  background: rgba(179, 38, 30, .05);
  color: var(--flag);
  font-size: 15px;
}
.errors ul { margin: 8px 0 0; padding-left: 20px; }
.errors[hidden] { display: none; }

/* submit */
.fs--send { border-top: 2px solid var(--ink); }
.submit-block {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 26px;
}
.submit-block .btn--ghost { color: var(--ink-soft); border-color: var(--rule); }
.submit-block .btn--ghost:hover { border-color: var(--ink-soft); }

.fineprint {
  margin-top: 20px; max-width: 60ch;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-mute);
}

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

/* ---------------- live brief ---------------- */

.brief { position: sticky; top: 96px; }
.brief .specsheet { max-height: calc(100vh - 132px); display: flex; flex-direction: column; }
.brief .specsheet__body { overflow-y: auto; }
.specsheet__empty {
  padding: 22px 0 18px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-mute);
}
.brief-group {
  margin-top: 18px; padding-top: 6px;
  border-top: 1px solid var(--rule);
}
.brief-group:first-child { margin-top: 6px; border-top: 0; }
.brief-group__h {
  font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--wet-text); margin-bottom: 4px;
}

.brief-toggle { display: none; }

/* ---------------- footer ---------------- */

.foot {
  background: var(--ink); color: var(--paper);
  padding: clamp(44px, 6vw, 72px) clamp(20px, 4vw, 48px);
}
.foot__inner { max-width: var(--shell); margin: 0 auto; }
.foot__logo {
  display: block; height: 62px; width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.foot__lines { color: rgba(245, 244, 240, .72); font-size: 15.5px; max-width: 56ch; }
.foot__lines a { color: var(--paper); }
.foot__lines--quiet { margin-top: 12px; font: 400 14.5px var(--body); color: rgba(255,255,255,.62); }

/* ---------------- thanks page ---------------- */

.thanks { max-width: 720px; margin: 0 auto; padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 40px); }
.thanks__title { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 22px; }
.thanks__lede { font-size: 18px; line-height: 1.62; color: var(--ink-soft); max-width: 54ch; }
.thanks__next { margin-top: 44px; border-top: 2px solid var(--ink); padding-top: 22px; }
.thanks__list { list-style: none; margin: 0; padding: 0; }
.thanks__list li { padding: 15px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: baseline; }
.thanks__when { font: 600 14px var(--body); color: var(--wet-text); }
.thanks__cta { margin-top: 40px; }

/* ---------------- responsive ---------------- */

@media (max-width: 1240px) {
  .intake { grid-template-columns: minmax(0, 1fr) 330px; }
  .rail { display: none; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .specsheet--demo { max-width: 520px; }
  .intake { grid-template-columns: minmax(0, 1fr); }

  .brief {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: var(--z-drawer);
    max-height: 72vh;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -12px 40px -20px rgba(25,27,33,.5);
    transform: translateY(101%);
    transition: transform .28s cubic-bezier(.2,.7,.3,1);
    padding: 0 16px 16px;
  }
  .brief.is-open { transform: translateY(0); }
  .brief .specsheet { max-height: calc(72vh - 24px); border-top: 0; border-radius: 0 0 var(--r) var(--r); }

  .brief-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-drawer-toggle);
    padding: 14px 18px;
    background: var(--ink); color: var(--paper);
    border: 0; border-radius: var(--r);
    font: 500 15px var(--body); cursor: pointer;
    box-shadow: 0 10px 30px -12px rgba(25,27,33,.7);
  }
  .brief.is-open ~ .brief-toggle { bottom: calc(72vh + 8px); }
  .brief-toggle__pct { font: 500 13px var(--mono); color: #F6BE93; }

  .intake { padding-bottom: 96px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .assure { display: grid; gap: 6px; }
  .assure li + li { margin-left: 0; padding-left: 0; border-left: 0; }
  .wordmark__logo { height: 32px; }
  .wordmark__text { display: none; }
  .foot__logo { height: 52px; }
  .choices--inline { grid-auto-flow: row; grid-auto-columns: auto; }
  .specline { grid-template-columns: 1fr; gap: 3px; }
  .submit-block { flex-direction: column; align-items: stretch; }
  .thanks__list li { grid-template-columns: 1fr; gap: 5px; }
}

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