/* =========================================================================
   PRIVATE 8 — Board de Aceleração
   Design System / Component Styles
   Handoff-ready for Astro. Class names map 1:1 to Astro components (see HANDOFF.md).
   ========================================================================= */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Surfaces — warm-neutral near-black */
  --ink:        #0A0A0C;
  --ink-1:      #0D0D10;
  --ink-2:      #121216;
  --ink-3:      #17171C;
  --ink-card:   #131318;

  /* Hairlines */
  --line:        rgba(236, 232, 223, 0.09);
  --line-strong: rgba(236, 232, 223, 0.16);

  /* Text — warm white / mineral */
  --paper:      #ECE8DF;
  --paper-dim:  #A5A29A;
  --paper-mute: #6F6D67;

  /* Metals */
  --silver:      #C6CAD1;
  --silver-dim:  #83878F;
  --gold:        #C9A24B;
  --gold-lite:   #E7CE8A;
  --gold-deep:   #937129;
  --gold-grad:   linear-gradient(135deg, #8A6A24 0%, #E7CE8A 42%, #C9A24B 66%, #7E6120 100%);
  --silver-grad: linear-gradient(135deg, #6E727A 0%, #EDF0F4 45%, #B7BCC4 70%, #676B72 100%);

  /* Type */
  --serif: "Newsreader", Georgia, serif;
  --sans:  "Plus Jakarta Sans", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --section-y: clamp(80px, 11vw, 160px);
  --radius: 3px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--gold-lite); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--paper); }
::selection { background: rgba(201,162,75,0.28); color: #fff; }

/* ---- 3. Primitives ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw-narrow); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold-grad);
  display: inline-block;
}

.section-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--silver-dim);
  text-transform: uppercase;
}

.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.76vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-section {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(27px, 3.96vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
.h-card {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.15;
  margin: 0;
}
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.66;
  color: var(--paper-dim);
  font-weight: 400;
}
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.italic-accent { font-style: italic; color: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 17px 34px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold {
  background: var(--gold-grad);
  color: #1a1406;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 14px 40px -14px rgba(201,162,75,0.5);
}
.btn--gold:hover { transform: translateY(-2px); color: #120d02; }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lite); }
.btn--block { width: 100%; }

/* Hairline divider */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--gold { background: var(--gold-grad); opacity: .55; }

/* Section scaffold */
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lead { margin-top: 26px; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   4. NAV
   ========================================================================= */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.is-stuck {
  background: rgba(10,10,12,0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 14px;
}
.brandmark { display: flex; align-items: center; flex: 0 0 auto; }
.brandmark__logo {
  width: clamp(150px, 15vw, 220px);
  height: auto;
  max-height: 64px;
  flex: none;
  display: block;
  object-fit: contain;
}
.site-nav .btn { padding: 12px 24px; font-size: 12px; }
.site-nav__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--silver-dim); text-transform: uppercase; }
@media (max-width: 720px) { .site-nav__meta { display: none; } }

/* =========================================================================
   5. HERO  → <Hero>
   ========================================================================= */
.p8-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.p8-hero__media { position: absolute; inset: 0; z-index: 0; }
.p8-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.p8-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,12,0.96) 0%, rgba(10,10,12,0.72) 34%, rgba(10,10,12,0.28) 62%, rgba(10,10,12,0.55) 100%),
    linear-gradient(0deg, rgba(10,10,12,0.98) 2%, rgba(10,10,12,0.1) 46%);
}
.p8-hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(120px, 16vh, 200px) clamp(56px, 8vh, 96px); }
.p8-hero__eyebrow { margin-bottom: 30px; }
.p8-hero__title { max-width: 15ch; }
.p8-hero__title .gold-text { display: inline; }
.p8-hero__sub { margin-top: 30px; max-width: 46ch; }
.p8-hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }
.p8-hero__creds {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--silver-dim); text-transform: uppercase;
}
.p8-hero__creds span { display: inline-flex; align-items: center; gap: 10px; }
.p8-hero__creds span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.p8-hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; color: var(--silver-dim);
  writing-mode: vertical-rl; text-transform: uppercase; display: flex; align-items: center; gap: 14px;
}
.p8-hero__scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); }
@media (max-width: 720px) { .p8-hero__scroll { display: none; } .p8-hero__media img { object-position: 64% center; } }

/* =========================================================================
   6. PROBLEM / CONVITE  → <SectionIntro>
   ========================================================================= */
.problem { text-align: center; }
.problem .h-section { margin-inline: auto; max-width: 20ch; }
.problem__body { margin-top: 34px; }
.problem__body p { margin: 0 auto; max-width: 62ch; color: var(--paper-dim); }
.pullquote {
  margin: 52px auto; max-width: 24ch;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(26px, 3.6vw, 42px); line-height: 1.2; color: var(--paper);
  position: relative; padding-block: 30px;
}
.pullquote::before, .pullquote::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 46px; height: 1px; background: var(--gold-grad); opacity: .6;
}
.pullquote::before { top: 0; } .pullquote::after { bottom: 0; }
.problem__answer { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 27px); font-style: italic; color: var(--gold-lite); margin-bottom: 22px; }

/* =========================================================================
   7. LACUNA / PILLARS  → <PillarCard>
   ========================================================================= */
.pillars-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar-card {
  background: var(--ink-1); padding: 44px 36px 48px;
  display: flex; flex-direction: column; gap: 20px;
  transition: background .4s var(--ease);
  position: relative;
}
.pillar-card:hover { background: var(--ink-2); }
.pillar-card__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; color: var(--gold); }
.pillar-card__icon { width: 46px; height: 46px; color: var(--gold-lite); }
.pillar-card__icon svg { width: 100%; height: 100%; stroke-width: 1; }
.pillar-card .h-card { margin-top: 6px; }
.pillar-card p { margin: 0; color: var(--paper-dim); font-size: 16px; }
@media (max-width: 860px) { .pillars-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   8. OCTÓGONO P8  → <OctagonSystem>
   ========================================================================= */
.octagon { background: var(--ink-1); position: relative; overflow: hidden; }
.octagon::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(201,162,75,0.12), transparent 70%);
}
.octagon .container { position: relative; z-index: 1; }
.octagon__head { text-align: center; margin-inline: auto; }
.octagon__head .h-section { max-width: 18ch; margin-inline: auto; }
.octagon__head .lead { max-width: 60ch; margin: 26px auto 0; }

.octagon__layout { margin-top: 74px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
.octagon__col { display: flex; flex-direction: column; gap: 1px; }

/* Central emblem */
.octagon__emblem { display: grid; place-items: center; padding: 20px; }
.octagon-mark {
  width: clamp(200px, 22vw, 268px); aspect-ratio: 1; position: relative;
  display: grid; place-items: center;
  clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
  background: linear-gradient(160deg, #1b1710, #0c0b09);
}
.octagon-mark::before {
  content: ""; position: absolute; inset: 0;
  clip-path: inherit;
  padding: 1px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.octagon-mark::after {
  content: ""; position: absolute; inset: 13px;
  clip-path: inherit;
  border: 1px solid rgba(201,162,75,0.22);
}
.octagon-mark__p8 { font-family: var(--serif); font-weight: 600; font-size: clamp(52px, 6vw, 72px); line-height: 1; }
.octagon-mark__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.36em; color: var(--silver-dim); text-transform: uppercase; margin-top: 10px; }

/* motor row */
.motor {
  display: flex; align-items: baseline; gap: 18px;
  background: var(--ink-card); padding: 20px 24px;
  transition: background .35s var(--ease), padding-left .35s var(--ease);
}
.octagon__col--left .motor { text-align: right; flex-direction: row-reverse; }
.motor:hover { background: var(--ink-3); }
.octagon__col--right .motor:hover { padding-left: 32px; }
.motor__num {
  font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  flex: none; width: 34px; text-align: center;
}
.motor__body { display: flex; flex-direction: column; }
.motor__title { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); }
.motor__desc { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--silver-dim); margin-top: 3px; }

@media (max-width: 940px) {
  .octagon__layout { grid-template-columns: 1fr; gap: 1px; max-width: 520px; margin-inline: auto; }
  .octagon__emblem { order: -1; padding-bottom: 40px; }
  .octagon__col--left .motor { flex-direction: row; text-align: left; }
}

/* =========================================================================
   9. IMPLEMENTAÇÃO ASSISTIDA  → <TimelineStep>
   ========================================================================= */
.delivery__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.delivery__aside { position: sticky; top: 100px; }
.delivery__portrait { position: relative; border: 1px solid var(--line-strong); }
.delivery__portrait img { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; object-position: center 22%; filter: contrast(1.02) saturate(0.96); }
.delivery__portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,12,0.62), transparent 42%); }
.delivery__quote {
  position: relative; margin-top: -1px; border: 1px solid var(--line-strong); border-top: 0;
  padding: 32px 30px; background: var(--ink-1);
}
.delivery__quote p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--paper); margin: 0; }
.delivery__quote cite { display: block; margin-top: 18px; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

.timeline { display: flex; flex-direction: column; }
.timeline-step { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding-bottom: 44px; position: relative; }
.timeline-step:last-of-type { padding-bottom: 0; }
.timeline-step__rail { display: flex; flex-direction: column; align-items: center; }
.timeline-step__dot {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--ink-1);
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--gold-lite);
}
.timeline-step__line { width: 1px; flex: 1; background: linear-gradient(var(--line-strong), var(--line)); margin-top: 8px; }
.timeline-step:last-of-type .timeline-step__line { display: none; }
.timeline-step__title { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 2vw, 25px); color: var(--paper); margin: 8px 0 0; }
.timeline-step__title small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.timeline-step p { margin: 12px 0 0; color: var(--paper-dim); font-size: 16px; }

.bonus { margin-top: 20px; border: 1px solid var(--line); background: var(--ink-1); padding: 30px; }
.bonus__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 20px; }
.bonus__item { display: flex; align-items: flex-start; gap: 14px; padding-block: 12px; }
.bonus__item + .bonus__item { border-top: 1px solid var(--line); }
.bonus__check { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 1px; }
.bonus__item b { color: var(--paper); font-weight: 600; }
.bonus__item span { color: var(--silver-dim); font-family: var(--mono); font-size: 12px; }

@media (max-width: 860px) {
  .delivery__grid { grid-template-columns: 1fr; }
  .delivery__aside { position: static; max-width: 420px; }
}

/* =========================================================================
   10. FOUNDER CTA  → <FounderCTA>
   ========================================================================= */
.founder { position: relative; }
.founder__card {
  max-width: 620px; margin-inline: auto; text-align: center;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  border: 1px solid var(--line-strong);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px) clamp(36px, 5vw, 56px);
  position: relative;
}
.founder__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gold-grad); }
.founder__logo {
  width: min(100%, 320px);
  height: auto;
  max-height: 118px;
  margin: 0 auto 30px;
  display: block;
  object-fit: contain;
}
.founder__card .h-section { font-size: clamp(25px, 3.24vw, 40px); }
.founder__card > p { color: var(--paper-dim); margin: 22px auto 0; max-width: 46ch; }
.price-block { margin: 44px auto 8px; }
.price-block__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-dim); }
.price-block__figure { position: relative; display: inline-block; margin-top: 14px; }
.price-block__amount { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 6vw, 62px); color: var(--paper); filter: blur(9px); opacity: .5; user-select: none; letter-spacing: 0.02em; }
.price-block__seal {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.price-block__seal span {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-lite); border: 1px solid rgba(201,162,75,0.45); padding: 9px 18px; background: rgba(10,10,12,0.7); border-radius: 2px;
}
.founder__card .btn { margin-top: 30px; }
.founder__micro { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--paper-mute); max-width: 42ch; margin-inline: auto; line-height: 1.7; }

/* =========================================================================
   11. FAQ  → <FAQAccordion>
   ========================================================================= */
.faq__grid { margin-top: 56px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  width: 100%; background: none; border: 0; text-align: left; color: var(--paper);
  display: flex; align-items: center; gap: 24px; justify-content: space-between;
  padding: 28px 4px; font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 2vw, 23px); line-height: 1.3;
  transition: color .3s var(--ease);
}
.faq-item__q:hover { color: var(--gold-lite); }
.faq-item__icon { flex: none; width: 24px; height: 24px; position: relative; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold); transition: transform .35s var(--ease);
}
.faq-item__icon::before { width: 15px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-item__icon::after { width: 1.5px; height: 15px; transform: translate(-50%,-50%); }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item__a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-item__a-inner { padding: 0 60px 30px 4px; color: var(--paper-dim); font-size: 16px; max-width: 74ch; }
.faq-item__a-inner p { margin: 0; }

/* =========================================================================
   12. FOOTER  → <Footer>
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 88px); text-align: center; }
.site-footer__glyph {
  width: min(100%, 260px);
  height: auto;
  max-height: 96px;
  margin: 0 auto 28px;
  display: block;
  object-fit: contain;
  opacity: .55;
}
.site-footer__line { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); color: var(--paper); }
.site-footer__line + .site-footer__line { color: var(--gold-lite); margin-top: 4px; }
.site-footer__legal { margin-top: 34px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-mute); }

/* =========================================================================
   13. APPLICATION MODAL  → <ApplicationForm>
   ========================================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(4,4,6,0.86); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__dialog {
  position: absolute; inset: 0; margin: auto; overflow-y: auto;
  width: min(640px, 100%); height: fit-content; max-height: 92vh; top: 4vh;
  background: var(--ink-1); border: 1px solid var(--line-strong);
  transform: translateY(18px); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__top { position: sticky; top: 0; z-index: 2; background: linear-gradient(180deg, var(--ink-2), rgba(18,18,22,0.96)); border-bottom: 1px solid var(--line); }
.modal__bar { height: 2px; background: var(--gold-grad); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 30px 22px; }
.modal__title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; margin: 0; }
.modal__desc { margin: 8px 0 0; font-size: 13.5px; color: var(--paper-dim); max-width: 48ch; }
.modal__close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: none; border: 1px solid var(--line-strong);
  color: var(--paper-dim); display: grid; place-items: center; transition: all .3s var(--ease);
}
.modal__close:hover { border-color: var(--gold); color: var(--gold-lite); transform: rotate(90deg); }
.modal__progress { display: flex; gap: 6px; padding: 0 30px 20px; }
.modal__progress span { height: 3px; flex: 1; background: var(--line-strong); border-radius: 3px; overflow: hidden; position: relative; }
.modal__progress span.is-done::after, .modal__progress span.is-active::after {
  content: ""; position: absolute; inset: 0; background: var(--gold-grad);
}
.modal__progress span.is-active::after { animation: fillbar .5s var(--ease); }
@keyframes fillbar { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); } }

.modal__body { padding: 30px; }
.fstep { display: none; }
.fstep.is-active { display: block; animation: stepin .45s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.fstep__legend { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.fstep__legend::before { content: ""; width: 22px; height: 1px; background: var(--gold); }

.field { margin-bottom: 26px; }
.field > label { display: block; font-size: 15px; color: var(--paper); font-weight: 500; margin-bottom: 12px; line-height: 1.45; }
.field > label .req { color: var(--gold); }
.field input[type=text], .field input[type=tel], .field textarea {
  width: 100%; background: var(--ink-3); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--paper); font-family: var(--sans); font-size: 15px; padding: 14px 16px; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--ink-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--paper-mute); }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--ink-3);
  font-size: 15px; color: var(--paper-dim); transition: all .28s var(--ease);
}
.choice__box::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1px solid var(--silver-dim); transition: all .28s var(--ease);
}
.choice input:checked + .choice__box { border-color: var(--gold); color: var(--paper); background: rgba(201,162,75,0.06); }
.choice input:checked + .choice__box::before { border-color: var(--gold); background: var(--gold-grad); box-shadow: inset 0 0 0 3px var(--ink-3); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--gold); outline-offset: 2px; }

.modal__nav { display: flex; gap: 12px; margin-top: 34px; }
.modal__nav .btn { flex: 1; }
.modal__nav .btn--ghost { flex: 0 0 auto; padding-inline: 24px; }
.modal__nav .btn[hidden] { display: none; }
.field--error > label { color: var(--gold); }
.field--error .choice__box { border-color: var(--gold); }

.modal__success { text-align: center; padding: 30px 10px; display: none; }
.modal__success.is-active { display: block; animation: stepin .5s var(--ease); }
.modal__success-mark { width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 50%; border: 1px solid rgba(201,162,75,0.45); display: grid; place-items: center; color: var(--gold-lite); }
.modal__success-mark svg { width: 32px; height: 32px; }
.modal__success h3 { font-family: var(--serif); font-weight: 600; font-size: 27px; margin: 0 0 12px; }
.modal__success p { color: var(--paper-dim); margin: 0 auto; max-width: 40ch; }

body.modal-lock { overflow: hidden; }

/* =========================================================================
   14. Responsive fine-tuning
   ========================================================================= */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .site-nav .btn { width: auto; }
  .p8-hero__actions { flex-direction: column; align-items: stretch; }
  .modal__head, .modal__body, .modal__progress { padding-inline: 20px; }
  .modal__nav { flex-wrap: wrap; }
}
