:root {
  --cream: #f4efe7;
  --paper: #fbf8f2;
  --ink: #292723;
  --muted: #736c63;
  --line: rgba(41, 39, 35, 0.16);
  --terracotta: #b65f45;
  --terracotta-dark: #914832;
  --sage: #899181;
  --clay: #d7c4b1;
  --serif: "Pompiere", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.035;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

a { color: inherit; }

button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 22px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, padding 220ms ease, border 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 13px;
  padding-bottom: 13px;
  border-bottom-color: var(--line);
  background: rgba(244, 239, 231, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: block;
  width: max-content;
  text-decoration: none;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: clamp(190px, 17vw, 245px);
  height: auto;
  transition: width 220ms ease, opacity 180ms ease;
}

.brand:hover .brand-logo { opacity: .72; }
.site-header.is-scrolled .brand-logo { width: clamp(180px, 15vw, 215px); }

nav { display: flex; gap: 36px; }

nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.site-header > .button { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .choice:has(input:focus-visible), .restart-link:focus-visible, a:focus-visible { outline: 3px solid rgba(182, 95, 69, .45); outline-offset: 4px; }

.button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.button--small { min-height: 42px; padding: 0 20px; font-size: 0.72rem; }
.button--ink { color: var(--paper); background: var(--ink); }
.button--terracotta { color: #fff; background: var(--terracotta); box-shadow: 0 12px 30px rgba(145, 72, 50, .18); }
.button--terracotta:hover { background: var(--terracotta-dark); box-shadow: 0 14px 36px rgba(145, 72, 50, .26); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .8fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  min-height: 100svh;
  max-width: 1500px;
  margin: 0 auto;
  padding: 130px clamp(24px, 6vw, 96px) 70px;
  overflow: hidden;
}

.hero__copy { max-width: 750px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 26px;
  color: var(--terracotta-dark);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.eyebrow > span { width: 28px; height: 1px; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font: 400 clamp(4.4rem, 7.4vw, 8rem)/.91 var(--serif);
  letter-spacing: -.057em;
}

h1 em, h2 em { color: var(--terracotta); font-weight: 400; }

.hero__lede {
  max-width: 630px;
  margin-bottom: 34px;
  color: #5f5a53;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.8;
}

.hero__actions { display: flex; align-items: center; gap: 30px; }

.text-link {
  font-size: .79rem;
  font-weight: 600;
  text-decoration-color: rgba(41, 39, 35, .3);
  text-underline-offset: 5px;
}

.text-link span { margin-left: 6px; }

.hero__proof {
  display: flex;
  gap: 0;
  margin-top: clamp(42px, 8vh, 80px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__proof div { display: flex; flex: 1; align-items: center; flex-direction: column; gap: 5px; min-width: 0; padding: 0 22px; text-align: center; }
.hero__proof div + div { border-left: 1px solid var(--line); }
.hero__proof strong { font: 400 1.2rem/1 var(--serif); }
.hero__proof span { max-width: 160px; color: var(--muted); font-size: .67rem; line-height: 1.35; }

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 570px);
  padding: 17px;
}

.hero__visual::before {
  position: absolute;
  inset: 5% -15% -10% 15%;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: rgba(215, 196, 177, .52);
  filter: blur(3px);
}

.hero__visual > svg { display: block; width: 100%; filter: saturate(.88); }

.visual-note {
  position: absolute;
  color: #4b433d;
  background: rgba(251, 248, 242, .94);
  box-shadow: 0 18px 50px rgba(70, 51, 41, .12);
  backdrop-filter: blur(10px);
}

.visual-note--top {
  top: 17%;
  left: -8%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
}

.visual-note--top i { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 5px rgba(182, 95, 69, .12); }

.visual-note--bottom {
  right: -6%;
  bottom: 13%;
  padding: 18px 22px;
  font: 400 .9rem/1.35 var(--sans);
}

.visual-note--bottom strong { font: 400 1.25rem/1.2 var(--serif); }

.offer {
  padding: clamp(90px, 10vw, 150px) clamp(24px, 6vw, 96px);
  color: var(--paper);
  background: var(--ink);
}

.section-heading, .process-grid, .formula-grid, .offer-note { max-width: var(--max); margin-right: auto; margin-left: auto; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  align-items: end;
}

.section-heading .eyebrow { grid-column: 1 / -1; color: #dba48f; }

.section-heading h2 {
  margin-bottom: 0;
  font: 400 clamp(3.1rem, 5.2vw, 5.9rem)/.96 var(--serif);
  letter-spacing: -.045em;
}

.section-heading > p:last-child {
  align-self: center;
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(251, 248, 242, .62);
  font-size: 1rem;
  line-height: 1.8;
  transform: translateY(10px);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 85px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.process-grid article { position: relative; padding: 40px 42px 42px 0; }
.process-grid article + article { padding-left: 42px; border-left: 1px solid rgba(255, 255, 255, .14); }
.process-grid span { display: block; margin-bottom: 40px; color: #dba48f; font: 400 1rem/1 var(--serif); }
.process-grid h3 { margin-bottom: 10px; font: 400 1.6rem/1 var(--serif); }
.process-grid p { max-width: 290px; margin-bottom: 0; color: rgba(251, 248, 242, .55); font-size: .82rem; line-height: 1.65; }

.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 85px;
}

.formula-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 660px;
  padding: clamp(26px, 3vw, 42px);
  color: var(--ink);
  background: #e8ded1;
}

.formula-card:nth-child(3) { background: #d6d9d1; }
.formula-card--featured { color: var(--paper); background: var(--terracotta); transform: translateY(-18px); }

.formula-card__badge {
  position: absolute;
  top: 0;
  right: 25px;
  padding: 9px 14px;
  color: var(--ink);
  background: #f2d9a8;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.formula-card__head { display: flex; justify-content: space-between; align-items: center; min-height: 61px; margin-bottom: 48px; padding-bottom: 17px; border-bottom: 1px solid currentColor; }
.formula-card__head p { margin: 0; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.formula-card__head span { flex: 0 0 auto; font-size: .69rem; white-space: nowrap; opacity: .66; }
.formula-card h3 { margin-bottom: 22px; font: 400 clamp(2.1rem, 2.8vw, 3.1rem)/.94 var(--serif); letter-spacing: -.035em; }
.formula-card__intro { min-height: 73px; margin-bottom: 26px; font-size: .84rem; line-height: 1.65; opacity: .74; }
.formula-card ul { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.formula-card li { position: relative; padding-left: 21px; font-size: .75rem; }
.formula-card li::before { position: absolute; top: .45em; left: 0; width: 8px; height: 4px; content: ""; border-bottom: 1px solid currentColor; border-left: 1px solid currentColor; transform: rotate(-45deg); }
.formula-card__price { margin-top: auto; padding: 22px 0 18px; border-top: 1px solid currentColor; }
.formula-card__price strong { display: block; margin-bottom: 6px; font: 400 2.2rem/1 var(--serif); }
.formula-card__price small { display: block; max-width: 250px; font-size: .65rem; line-height: 1.45; opacity: .72; }
.card-link { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid currentColor; font-size: .75rem; font-weight: 600; text-decoration: none; }
.card-link span { transition: transform 180ms ease; }
.card-link:hover span { transform: translateX(5px); }

.offer-note { margin-top: 18px; margin-bottom: 0; color: rgba(251, 248, 242, .42); font-size: .68rem; text-align: center; }

.diagnostic {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(560px, 1.28fr);
  min-height: 850px;
  color: var(--paper);
  background: var(--terracotta-dark);
}

.diagnostic__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8vw, 125px) clamp(24px, 6vw, 96px);
  background: #6e756b;
}

.eyebrow--light { color: #e9d9cb; }

.diagnostic__intro h2 { margin-bottom: 28px; font: 400 clamp(3.4rem, 5vw, 5.6rem)/.94 var(--serif); letter-spacing: -.04em; }
.diagnostic__intro h2 em { color: #eed8c7; }
.diagnostic__intro > p:not(.eyebrow) { max-width: 440px; color: rgba(255, 255, 255, .68); font-size: .93rem; line-height: 1.75; }
.button--diagnostic { align-self: flex-start; margin-top: 28px; color: #6e756b; background: #eed8c7; }
.button--diagnostic:hover { background: var(--paper); box-shadow: 0 14px 34px rgba(32, 38, 31, .18); }


.quiz-shell { align-self: center; width: min(760px, calc(100% - 80px)); margin: 70px auto; padding: clamp(30px, 5vw, 64px); color: var(--ink); background: var(--paper); box-shadow: 0 25px 80px rgba(62, 29, 20, .16); }

.quiz-progress { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 46px; }
.quiz-progress > span { font-size: .63rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.quiz-progress b { font: 400 .82rem/1 var(--serif); }
.progress-track { height: 2px; overflow: hidden; background: #e2d9cf; }
.progress-track i { display: block; width: 33.333%; height: 100%; background: var(--terracotta); transition: width 280ms ease; }

.quiz-step { display: none; margin: 0; padding: 0; border: 0; }
.quiz-step.is-active { display: block; animation: slide-in 280ms ease; }
.quiz-step legend { width: 100%; margin-bottom: 9px; padding: 0; font: 400 clamp(2rem, 3.2vw, 2.8rem)/1.06 var(--serif); letter-spacing: -.03em; }
.quiz-step > p { margin-bottom: 28px; color: var(--muted); font-size: .78rem; }

.choice { display: grid; grid-template-columns: 37px 1fr; gap: 14px; align-items: center; margin-bottom: 10px; padding: 16px; border: 1px solid #ded5cb; cursor: pointer; transition: border 160ms ease, background 160ms ease, transform 160ms ease; }
.choice:hover { border-color: #bba798; transform: translateX(3px); }
.choice:has(input:checked) { border-color: var(--terracotta); background: #f4e8e0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__index { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #cfc3b7; border-radius: 50%; color: var(--muted); font: 400 .79rem/1 var(--serif); }
.choice:has(input:checked) .choice__index { color: #fff; border-color: var(--terracotta); background: var(--terracotta); }
.choice > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.choice strong { font-size: .79rem; }
.choice small { color: var(--muted); font-size: .68rem; line-height: 1.35; }

.quiz-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.button--ghost { color: var(--ink); border-color: #d7cdc2; background: transparent; }
.button--cream { color: var(--paper); background: var(--ink); }
.button:disabled { cursor: not-allowed; opacity: .35; transform: none; }
.quiz-hint { margin: 10px 0 0; color: var(--muted); font-size: .62rem; text-align: right; }

.quiz-result { animation: slide-in 350ms ease; }
.result-kicker { margin-bottom: 10px; color: var(--terracotta-dark); font-size: .64rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.quiz-result h3 { margin-bottom: 17px; font: 400 clamp(2.8rem, 5vw, 4.5rem)/.95 var(--serif); letter-spacing: -.045em; }
.quiz-result > p:nth-of-type(2) { color: var(--muted); font-size: .87rem; line-height: 1.7; }
.result-includes { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0 30px; }
.result-includes span { padding: 9px 12px; border: 1px solid #d8cbbf; border-radius: 999px; font-size: .64rem; }
.button--wide { width: 100%; }
.restart-link { display: block; margin: 8px auto 0; padding: 5px; border: 0; color: var(--muted); background: none; cursor: pointer; font-size: .64rem; text-decoration: underline; text-underline-offset: 4px; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 45px clamp(24px, 6vw, 96px); color: var(--paper); background: var(--ink); }
.brand--footer { color: var(--paper); }
.brand--footer .brand-logo {
  width: clamp(210px, 20vw, 285px);
  filter: brightness(0) saturate(100%) invert(96%) sepia(10%) saturate(384%) hue-rotate(334deg) brightness(106%) contrast(97%);
}
footer p { margin: 0; color: rgba(251, 248, 242, .45); font-size: .62rem; }
footer p:last-child { justify-self: end; }

.mobile-cta { display: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal--delay { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 180ms; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes slide-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr .7fr; gap: 25px; }
  .hero__proof div { min-width: 0; }
  .section-heading { column-gap: 40px; }
  .diagnostic { grid-template-columns: .75fr 1.25fr; }
  .quiz-shell { width: calc(100% - 44px); }
}

@media (max-width: 800px) {
  .site-header { padding: 15px 20px; background: rgba(244, 239, 231, .9); backdrop-filter: blur(12px); }
  .site-header > .button { display: none; }
  .brand-logo, .site-header.is-scrolled .brand-logo { width: 176px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 135px 20px 75px; }
  h1 { max-width: 600px; font-size: clamp(4rem, 17vw, 6rem); }
  .hero__lede { font-size: .95rem; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero__proof { margin-top: 48px; }
  .hero__proof div { padding: 0 14px; }
  .hero__proof strong { font-size: 1rem; }
  .hero__proof span { font-size: .58rem; }
  .hero__visual { justify-self: center; width: min(88%, 490px); margin-top: 25px; }
  .visual-note--top { left: -10%; }
  .visual-note--bottom { right: -12%; }
  .offer { padding: 90px 20px; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading h2 { margin-bottom: 28px; font-size: clamp(3.2rem, 14vw, 5rem); }
  .section-heading > p:last-child { font-size: .9rem; transform: none; }
  .process-grid { grid-template-columns: 1fr; margin-top: 55px; }
  .process-grid article, .process-grid article + article { padding: 28px 0; border-left: 0; }
  .process-grid article + article { border-top: 1px solid rgba(255,255,255,.14); }
  .process-grid span { margin-bottom: 18px; }
  .formula-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 70px; }
  .formula-card, .formula-card--featured { min-height: 590px; padding: 30px; transform: none; }
  .formula-card__intro { min-height: 0; }
  .diagnostic { grid-template-columns: 1fr; }
  .diagnostic__intro { padding: 85px 20px 70px; }
  .quiz-shell { width: calc(100% - 24px); margin: 12px auto 75px; padding: 28px 18px; }
  .quiz-progress { gap: 12px; margin-bottom: 35px; }
  .quiz-progress > span { font-size: .55rem; }
  .quiz-step legend { font-size: 2.05rem; }
  .choice { grid-template-columns: 32px 1fr; gap: 10px; padding: 13px 11px; }
  .choice__index { width: 31px; height: 31px; }
  .choice small { font-size: .62rem; }
  .quiz-actions { justify-content: stretch; }
  .quiz-actions .button { flex: 1; min-width: 0; padding: 0 13px; }
  footer { grid-template-columns: 1fr; gap: 18px; padding: 45px 20px 105px; }
  .brand--footer .brand-logo { width: min(250px, 76vw); }
  footer p:last-child { justify-self: start; }
  .mobile-cta { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 14; display: flex; justify-content: space-between; padding: 16px 20px; border-radius: 999px; color: #fff; background: var(--terracotta); box-shadow: 0 12px 35px rgba(69, 34, 24, .28); font-size: .76rem; font-weight: 600; text-decoration: none; transition: opacity 180ms ease, transform 180ms ease; }
  .mobile-cta.is-hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
}

@media (max-width: 430px) {
  h1 { font-size: 4.25rem; }
  .hero__proof span { max-width: 92px; }
  .visual-note--top { left: -7%; font-size: .58rem; }
  .visual-note--bottom { right: -8%; padding: 14px 16px; font-size: .75rem; }
  .formula-card h3 { font-size: 2.7rem; }
}

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

.button--whatsapp { align-self: flex-start; max-width: 100%; margin-top: 14px; padding: 12px 24px; text-align: center; color: var(--paper); border-color: #eed8c7; background: transparent; }
.button--whatsapp:hover { color: var(--ink); background: #eed8c7; }
.diagnostic__phone { align-self: flex-start; margin-top: 12px; color: var(--paper); font-size: .78rem; text-underline-offset: 4px; }

.footer-email { display: inline-block; margin-top: 10px; color: var(--paper); text-underline-offset: 3px; }
.footer-email:hover { text-decoration: underline; }
