:root {
  --ink: #273a63;
  --ink-soft: #5b6678;
  --green: #416ba8;
  --green-deep: #21375e;
  --sage: #c9d9ec;
  --cream: #fff5eb;
  --paper: #fffdfb;
  --gold: #f5793a;
  --line: rgba(39, 58, 99, 0.14);
  --shadow: 0 24px 70px rgba(37, 54, 92, 0.13);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }

.site-header {
  min-height: 90px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logos { display: flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; }
.brand-logos > span { width: 1px; height: 44px; flex: 0 0 auto; background: var(--line); }
.brand-logos img { display: block; object-fit: contain; }
.logo-rafael { width: 184px; height: 63px; }
.logo-livia { width: 77px; height: 69px; }
.header-link { font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

.hero {
  min-height: 640px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 92px max(36px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(390px, 1.07fr);
  align-items: center;
  gap: 74px;
  background:
    radial-gradient(circle at 85% 16%, rgba(107,151,205,.25), transparent 26%),
    radial-gradient(circle at 12% 88%, rgba(245,121,58,.13), transparent 25%),
    linear-gradient(135deg, #fffaf5 0%, #f4f7fb 100%);
  border-radius: 0 0 44px 44px;
  overflow: hidden;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 25px; height: 1px; background: currentColor; }
.hero h1, .section-heading h2, .care-intro h2 {
  margin: 0; font-family: "Playfair Display", serif; font-weight: 600; letter-spacing: -.035em;
}
.hero h1 { max-width: 680px; font-size: clamp(48px, 6vw, 77px); line-height: .98; }
.hero h1 em { color: var(--green); font-style: italic; font-weight: 600; }
.hero-copy > p { max-width: 620px; margin: 28px 0 34px; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.button {
  border: 0; border-radius: 999px; min-height: 52px; padding: 0 24px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px;
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green-deep); color: white; box-shadow: 0 12px 30px rgba(33,55,94,.22); }
.button-primary:hover { background: var(--green-deep); }
.button-primary:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; transform: none; }
.button-ghost { background: transparent; color: var(--green); border: 1px solid rgba(31,91,77,.3); }
.hero-note { display: block; margin-top: 18px; color: #71827d; font-size: 12px; }

.hero-photo { position: relative; height: 500px; margin: 0; overflow: hidden; border-radius: 34px; box-shadow: 0 28px 70px rgba(33,55,94,.24); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17,29,51,.73)); pointer-events: none; }
.hero-photo > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 57% center; }
.hero-photo figcaption { position: absolute; z-index: 1; right: 26px; bottom: 25px; left: 26px; color: white; }
.hero-photo figcaption strong, .hero-photo figcaption span { display: block; }
.hero-photo figcaption strong { font: 600 24px/1.1 "Playfair Display", serif; }
.hero-photo figcaption span { margin-top: 5px; color: rgba(255,255,255,.76); font-size: 12px; }

.simulator-section { padding: 110px 28px 120px; }
.section-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2 { font-size: clamp(38px, 5vw, 58px); line-height: 1.05; }
.section-heading p { max-width: 620px; margin: 20px auto 0; color: var(--ink-soft); line-height: 1.7; }
.simulator-shell {
  max-width: 920px; min-height: 620px; margin: 0 auto; padding: 42px 50px 44px;
  border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow);
}
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.progress-track { height: 5px; overflow: hidden; border-radius: 10px; background: #e7ece9; }
.progress-track span { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .35s ease; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-step { display: none; padding-top: 44px; animation: fade-in .32s ease; }
.form-step.is-active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }
legend { padding: 0; font: 600 clamp(27px,4vw,36px)/1.15 "Playfair Display", serif; }
.step-intro { margin: 10px 0 32px; color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.field { display: block; }
.field-wide { grid-column: 1 / -1; }
.field > span, .question-block > span { display: block; margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 700; }
input[type="text"], input[type="number"] {
  width: 100%; height: 58px; border: 1px solid var(--line); border-radius: 14px; outline: none;
  background: #fbfaf7; color: var(--ink); padding: 0 18px; transition: border .2s, box-shadow .2s;
}
input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,91,77,.08); }
.input-unit { position: relative; }
.input-unit input { padding-right: 56px; }
.input-unit small { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.field-error, .group-error { display: none; margin-top: 7px; color: #a7443c; font-size: 11px; font-style: normal; }
.field.has-error .field-error, .group-error.is-visible { display: block; }
.field.has-error input { border-color: #b95b53; }
.question-block { margin-bottom: 28px; }
.time-row { display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 20px; padding: 19px; background: var(--cream); border-radius: 16px; }
input[type="range"] { width: 100%; accent-color: var(--green); }
output { text-align: center; font-weight: 700; }
.choice-grid { display: grid; gap: 12px; }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.choice, .check { cursor: pointer; }
.choice input, .check input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  min-height: 86px; display: flex; flex-direction: column; justify-content: center; padding: 15px 17px;
  border: 1px solid var(--line); border-radius: 15px; background: #fbfaf7; transition: all .2s;
}
.choice b, .choice small { display: block; }
.choice b { font-size: 14px; }
.choice small { margin-top: 5px; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }
.choice input:checked + span { border-color: var(--green); background: #edf3ef; box-shadow: inset 0 0 0 1px var(--green); }
.check-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.check > span { display: block; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 12px; transition: all .2s; }
.check input:checked + span { border-color: var(--green); background: var(--green); color: white; }
.optional { color: #82908b; font-weight: 500; }
.form-actions { margin-top: 36px; display: flex; justify-content: flex-end; gap: 10px; }
.form-actions .button { min-width: 130px; }
.is-hidden { display: none !important; }

.result-panel { display: none; padding-top: 38px; animation: fade-in .35s ease; }
.result-panel.is-active { display: block; }
.result-kicker { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.result-panel h3 { margin: 10px 0 10px; font: 600 clamp(30px,4vw,42px)/1.1 "Playfair Display", serif; }
.result-panel > p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 30px 0 16px; }
.result-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: #fbfaf7; }
.result-grid span, .result-grid small, .result-grid strong { display: block; }
.result-grid span { color: var(--ink-soft); font-size: 11px; }
.result-grid strong { margin: 7px 0 3px; font: 600 25px/1 "Playfair Display", serif; }
.result-grid small { color: #80908b; font-size: 10px; }
.result-insight { margin: 14px 0; padding: 19px; display: flex; gap: 14px; border-radius: 17px; background: #edf3fa; }
.insight-icon { flex: 0 0 auto; width: 35px; height: 35px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; }
.result-insight strong { display: block; margin-bottom: 4px; font-size: 13px; }
.result-insight p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.result-disclaimer { padding: 15px 17px; border-left: 3px solid var(--gold); background: #faf5ec; color: #6b675d; font-size: 11px; line-height: 1.55; }
.share-consent { margin-top: 17px; padding: 15px 16px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf7; cursor: pointer; }
.share-consent input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green-deep); }
.share-consent span { color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.consent-error { display: none; margin-top: 7px; color: #a7443c; font-size: 11px; font-style: normal; }
.consent-error.is-visible { display: block; }
.result-actions { display: flex; gap: 10px; margin-top: 23px; }
.privacy-note { margin-top: 12px !important; font-size: 10px !important; }

.care-section {
  margin: 0 22px 22px; padding: 96px max(28px, calc((100vw - 1180px) / 2));
  border-radius: 38px; background: var(--green-deep); color: #f7f2e8;
}
.care-section .eyebrow { color: #ffad7d; }
.care-intro { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 80px; align-items: end; }
.care-intro .eyebrow { grid-column: 1 / -1; }
.care-intro h2 { font-size: clamp(40px,5vw,62px); line-height: 1.03; }
.care-intro > p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.8; }
.care-steps { margin: 70px 0 50px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.care-steps article { min-height: 205px; padding: 25px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.care-steps article > span { color: #ffad7d; font: 600 28px/1 "Playfair Display", serif; }
.care-steps strong { font: 600 20px/1.2 "Playfair Display", serif; }
.care-steps p { margin: 9px 0 0; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.55; }
.team-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.professional-card { min-height: 180px; overflow: hidden; display: grid; grid-template-columns: 170px 1fr; align-items: stretch; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.07); }
.professional-card img { width: 100%; height: 100%; min-height: 180px; display: block; object-fit: cover; object-position: center top; }
.professional-card div { align-self: center; padding: 22px; }
.professional-card span, .professional-card strong { display: block; }
.professional-card span { margin-bottom: 7px; color: #ffad7d; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.professional-card strong { font: 600 20px/1.15 "Playfair Display", serif; }
.professional-card p { margin: 9px 0 0; color: rgba(255,255,255,.6); font-size: 11px; line-height: 1.55; }
.team-cta { grid-column: 1 / -1; min-height: 74px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-radius: 17px; background: var(--gold); color: white; font-size: 14px; font-weight: 700; text-decoration: none; }
.team-cta b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 18px; }
footer { max-width: 1180px; margin: 0 auto; padding: 32px 25px 44px; display: flex; justify-content: space-between; gap: 25px; color: #71827d; font-size: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; gap: 30px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-photo { height: 520px; }
  .care-intro { grid-template-columns: 1fr; gap: 25px; }
  .care-steps { grid-template-columns: 1fr; gap: 11px; }
  .care-steps article { min-height: 145px; }
  .team-showcase { grid-template-columns: 1fr; }
  .team-cta { grid-column: auto; }
}

@media (max-width: 640px) {
  .site-header { min-height: 74px; padding: 0 16px; }
  .brand-logos { gap: 9px; }
  .brand-logos > span { height: 34px; }
  .logo-rafael { width: 116px; height: 42px; }
  .logo-livia { width: 46px; height: 46px; }
  .header-link { font-size: 11px; }
  .hero { min-height: auto; padding: 62px 22px 30px; border-radius: 0 0 28px 28px; }
  .hero h1 { font-size: 44px; }
  .hero-copy > p { font-size: 16px; }
  .hero-photo { height: 390px; margin-top: 12px; border-radius: 24px; }
  .hero-photo > img { object-position: 58% center; }
  .simulator-section { padding: 78px 15px 84px; }
  .section-heading { padding: 0 10px; }
  .section-heading h2 { font-size: 38px; }
  .simulator-shell { min-height: 0; padding: 28px 19px 28px; border-radius: 22px; }
  .form-grid, .choice-grid.three, .choice-grid.two, .result-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .choice > span { min-height: 70px; }
  .result-actions { flex-direction: column; }
  .form-actions .button { flex: 1; }
  .care-section { margin: 0 10px 10px; padding: 74px 20px; border-radius: 28px; }
  .care-intro h2 { font-size: 40px; }
  .professional-card { grid-template-columns: 125px 1fr; }
  footer { flex-direction: column; text-align: center; }
}

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