:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #6f6b64;
  --line: #dedad2;
  --accent: #ff6a00;
  --accent-soft: #fff0e5;
  --success: #1f8a58;
  --footer: #ffffff;
  --shadow: 0 18px 50px rgba(21, 21, 21, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255,106,0,.08), transparent 28%),
    linear-gradient(180deg, #faf9f6 0%, var(--bg) 100%);
}
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(255,106,0,.22);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand-accent { color: var(--accent); }
.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: var(--ink);
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.brand-mark::before,
.brand-mark::after,
.brand-mark span::before {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 99px;
  background: #fff;
  left: 7px;
  transform-origin: left center;
}
.brand-mark::before { width: 12px; top: 9px; transform: rotate(16deg); }
.brand-mark::after { width: 12px; top: 19px; transform: rotate(-16deg); }
.brand-mark span::before { width: 8px; top: 14px; }
.brand-mark span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 12px;
  right: 6px;
}
.progress-wrap { min-width: 230px; max-width: 320px; flex: 1; display: grid; gap: 7px; }
.progress-wrap > span { text-align: right; font-size: 12px; color: var(--muted); font-weight: 600; }
.progress-track { height: 6px; background: #e9e5de; border-radius: 99px; overflow: hidden; }
.progress-track > span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: inherit; transition: width .28s ease; }

.wizard {
  width: min(960px, calc(100% - 40px));
  margin: auto;
  padding: 42px 0 56px;
}
.step { display: none; animation: stepIn .28s ease; }
.step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #b84900;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  max-width: 820px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: .98;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}
h2 { font-size: clamp(34px, 5.4vw, 62px); }
h3 { font-size: 16px; letter-spacing: -0.01em; margin-bottom: 12px; }
.lead, .step-copy {
  max-width: 730px;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 30px;
}
.step-copy { font-size: 17px; }

.info-note, .next-step-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 28px 0;
}
.info-note p, .next-step-card p { color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
.accent-dot { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); margin-top: 5px; box-shadow: 0 0 0 7px rgba(255,106,0,.11); }

.field-grid { display: grid; gap: 16px; margin: 28px 0; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.field { display: grid; gap: 8px; }
.field.compact { margin-top: 24px; }
.field > span { font-size: 13px; font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  border-radius: 14px;
  padding: 15px 16px;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,106,0,.07); }

.choice-grid { display: grid; gap: 14px; margin: 26px 0; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.choice-grid.three, .packages { grid-template-columns: repeat(3, minmax(0,1fr)); }
.age-grid, .appearance-grid, .style-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.age-grid[hidden] { display: none; }
.choice-card {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 5px;
  cursor: pointer;
  position: relative;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.choice-card:hover { transform: translateY(-2px); border-color: #beb8ae; box-shadow: 0 12px 30px rgba(21,21,21,.06); }
.choice-card.is-selected { border-color: var(--accent); background: #fffaf6; box-shadow: 0 0 0 3px rgba(255,106,0,.10); }
.choice-card.is-selected::after {
  content: "✓";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.choice-card strong { font-size: 18px; letter-spacing: -0.02em; }
.choice-card span:not(.visual-icon):not(.popular-tag):not(.choice-kicker):not(.scene-art) { font-size: 13px; color: var(--muted); line-height: 1.35; }
.visual-card { align-items: center; text-align: center; min-height: 160px; }
.visual-icon { font-size: 38px; line-height: 1; margin-bottom: 8px; }
.package-card { min-height: 190px; justify-content: flex-start; padding-top: 28px; }
.package-card strong { font-size: 24px; }
.package-card b { font-size: 28px; margin-top: auto; }
.choice-kicker { font-size: 11px; letter-spacing: .12em; font-weight: 800; color: var(--muted); }
.package-card.popular { border-color: rgba(255,106,0,.45); }
.popular-tag { position: absolute; top: 13px; right: 13px; font-size: 10px; font-weight: 700; padding: 5px 8px; border-radius: 99px; background: var(--accent-soft); color: #b84900; }
.fineprint { font-size: 12px; color: var(--muted); }

.split-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; margin: 26px 0; }
.split-panel > div { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.beard-panel { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; margin: -6px 0 26px; }
.beard-panel[hidden], [data-model-for="male"][hidden] { display: none; }
.panel-copy { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 5px 0 16px; }
.beard-options { margin-top: 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-group.large { margin: 26px 0; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  border-radius: 999px;
  padding: 11px 15px;
  cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: #bdb7ae; }
.chip.is-selected { border-color: var(--ink); background: var(--ink); color: #fff; }

.scene { min-height: 190px; justify-content: flex-end; overflow: hidden; }
.scene-art {
  width: calc(100% + 40px);
  height: 96px;
  margin: -20px -20px 16px;
  position: relative;
  overflow: hidden;
  background: #e9e5df;
}
.scene-art::before, .scene-art::after { content: ""; position: absolute; }
.scene-art.studio { background: linear-gradient(145deg,#efefed,#d6d3ce); }
.scene-art.studio::before { width: 44px; height: 70px; border-radius: 24px 24px 10px 10px; background: #b7b3ad; left: 50%; bottom: -8px; transform: translateX(-50%); }
.scene-art.lifestyle { background: linear-gradient(145deg,#ddd2c5,#b99f82); }
.scene-art.lifestyle::before { width: 100px; height: 46px; border-radius: 50% 50% 0 0; background: rgba(255,255,255,.35); left: 18px; bottom: 0; }
.scene-art.street { background: linear-gradient(130deg,#cad0d5 0 48%,#8e969d 49% 52%,#d8c9b9 53%); }
.scene-art.street::before { width: 28px; height: 72px; border-radius: 20px; background: #666; left: 60%; bottom: -8px; }
.scene-art.luxury { background: radial-gradient(circle at 70% 30%,#d7b58a 0 5%,transparent 6%), linear-gradient(135deg,#222,#5b4a3e); }
.scene-art.luxury::before { width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.4); transform: rotate(45deg); left: 26px; top: 18px; }
.scene-art.mediterraneo { background: linear-gradient(#74b9dc 0 45%,#f0d8b5 46% 68%,#b8c78e 69%); }
.scene-art.mediterraneo::before { width: 18px; height: 55px; background: #647b3d; border-radius: 50% 50% 20% 20%; right: 30px; bottom: 2px; }
.scene-art.editorial { background: linear-gradient(120deg,#d5c6d4,#eee1d9); }
.scene-art.editorial::before { width: 95px; height: 140px; background: rgba(40,40,40,.7); transform: rotate(24deg); right: 24px; top: -20px; }

.reference-tip { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; }
.start-actions { justify-content: flex-start; }
.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 19px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: default; opacity: .72; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #292929; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--muted); padding-left: 0; }
.btn-link { background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.microcopy { font-size: 12px; color: var(--muted); }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  margin: 26px 0 18px;
}
.summary-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.summary-header h3 { font-size: 28px; margin: 0 0 5px; }
.summary-header p { color: var(--muted); margin: 0; }
.summary-badge { background: var(--accent-soft); color: #b84900; border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.summary-row { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid #eeeae4; }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.summary-row dd { margin: 0; font-weight: 600; line-height: 1.45; }
.summary-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.copy-feedback { min-height: 20px; font-size: 13px; color: var(--success); margin-top: 9px; }

.footer {
  margin-top: auto;
  padding: 52px 0 0;
  border-top: 1px solid var(--line);
  background: var(--footer);
  color: var(--muted);
}
.footer a { color: inherit; text-decoration: none; }
.footer-inner,
.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 46px;
}
.footer-brand-column { max-width: 570px; }
.consulting-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 4px;
  color: var(--ink) !important;
  transition: opacity .18s ease;
}
.consulting-brand:hover { opacity: .76; }
.consulting-logo-mark { width: 87px; height: 40px; flex: 0 0 auto; color: var(--ink); }
.consulting-brand-copy { min-width: 0; line-height: 1; }
.consulting-brand-copy strong,
.consulting-brand-copy span {
  display: block;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.consulting-brand-copy strong { font-size: 17px; font-weight: 600; color: var(--ink); }
.consulting-brand-copy span { margin-top: 7px; font-size: 9px; color: var(--muted); }
.footer-description { max-width: 58ch; margin: 22px 0 0; font-size: 15px; line-height: 1.65; }
.footer-description strong { color: var(--ink); }
.footer-contact { justify-self: end; width: min(100%, 360px); }
.footer-contact > p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.footer .footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 13px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease;
}
.footer .footer-cta svg { width: 18px; height: 18px; color: var(--accent); }
.footer .footer-cta:hover { transform: translateY(-1px); background: #292929; }
.footer-site-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-color: rgba(21,21,21,.24) !important;
  text-underline-offset: 4px;
}
.footer-site-link:hover { text-decoration-color: var(--accent) !important; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink); font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.success-modal[hidden] { display: none; }
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.success-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21,21,21,.58);
  backdrop-filter: blur(8px);
}
.success-modal-card {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 32px 90px rgba(21,21,21,.28);
  animation: modalIn .24s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.success-modal-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf7f0;
  color: var(--success);
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 18px;
}
.success-modal-card .eyebrow { margin-bottom: 14px; }
.success-modal-card h2 { font-size: clamp(36px, 7vw, 52px); margin-bottom: 16px; }
.success-modal-copy { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 22px; }
.success-request-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf9f6;
  margin-bottom: 18px;
}
.success-request-id span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.success-request-id strong { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 14px; }
.success-countdown { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 0; }
.success-countdown strong { color: var(--ink); }
.success-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.success-modal-actions .btn-link { margin-left: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: #151515;
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 100;
}
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 760px) {
  .topbar { width: min(100% - 28px, 1180px); padding-top: 18px; align-items: flex-start; }
  .progress-wrap { min-width: 110px; max-width: 160px; }
  .progress-wrap > span { font-size: 10px; }
  .wizard { width: min(100% - 28px, 960px); padding: 28px 0 42px; }
  h1, h2 { letter-spacing: -0.047em; }
  .lead { font-size: 18px; }
  .field-grid.two, .choice-grid.two, .choice-grid.three, .packages, .age-grid, .appearance-grid, .style-grid, .split-panel { grid-template-columns: 1fr; }
  .packages { gap: 10px; }
  .package-card { min-height: 145px; }
  .visual-card { min-height: 118px; flex-direction: row; gap: 12px; justify-content: flex-start; }
  .visual-icon { margin: 0; font-size: 26px; }
  .scene { min-height: 170px; }
  .actions { position: sticky; bottom: 10px; z-index: 20; background: rgba(245,243,238,.92); backdrop-filter: blur(10px); margin-left: -8px; margin-right: -8px; padding: 10px 8px; border-radius: 16px; }
  .start-actions { position: static; background: transparent; backdrop-filter: none; padding: 0; margin-left: 0; margin-right: 0; flex-direction: column; align-items: flex-start; }
  .summary-row { grid-template-columns: 1fr; gap: 4px; }
  .summary-header { flex-direction: column; }
  .footer { padding-top: 40px; }
  .footer-inner,
  .footer-bottom { width: min(100% - 28px, 1180px); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-contact { justify-self: stretch; width: 100%; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .success-modal-card { padding: 24px 20px; border-radius: 22px; }
  .success-request-id { align-items: flex-start; flex-direction: column; gap: 5px; }
  .success-modal-actions { flex-direction: column; align-items: stretch; }
  .success-modal-actions .btn { width: 100%; text-align: center; }
  .success-modal-actions .btn-link { margin-left: 0; }
}

@media (max-width: 420px) {
  .brand { font-size: 17px; }
  .brand-mark { width: 28px; height: 28px; }
  .progress-wrap { max-width: 120px; }
  h1 { font-size: 42px; }
  h2 { font-size: 36px; }
  .summary-card { padding: 20px; }
  .btn { padding: 13px 16px; }
  .consulting-logo-mark { width: 70px; height: 32px; }
  .consulting-brand { gap: 10px; }
  .consulting-brand-copy strong { font-size: 14px; }
  .consulting-brand-copy span { font-size: 7px; margin-top: 5px; }
}
