@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  /* Paleta oficial Darci Oliveira. */
  --brand-ink: #070640;
  --brand-deep: #070640;
  --brand-leaf: #a68078;
  --brand-mist: #f9e9e7;
  --brand-paper: #f2ded8;
  --brand-sand: #a68078;
  --white: #f9e9e7;
  --danger: #070640;
  --shadow: 0 20px 55px rgb(13 41 34 / 12%);
}

* { box-sizing: border-box; }
html { background: var(--brand-paper); }
body { margin: 0; color: var(--brand-ink); font-family: Manrope, Arial, sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--brand-sand); outline-offset: 3px; }

.site-shell { min-height: 100svh; padding: 18px; background: radial-gradient(circle at 90% 0%, var(--brand-mist), transparent 31rem), var(--brand-paper); }
.consultation { width: min(100%, 760px); margin: auto; }
.brand-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 4px 22px; }
.brand img { display: block; max-width: 145px; max-height: 54px; }
.brand-fallback { font: 700 1.25rem 'Playfair Display', serif; }
.brand-role, .eyebrow, .progress-label, .field-note { font-family: 'DM Mono', monospace; font-size: .66rem; letter-spacing: .075em; text-transform: uppercase; }
.brand-role { margin: 0; color: var(--brand-leaf); text-align: right; }
.panel { min-height: 590px; padding: clamp(27px, 6vw, 62px); display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow); }
.welcome { justify-content: center; }
.welcome-content { display: flex; min-height: 465px; flex: 1; flex-direction: column; justify-content: center; }
.hero-photo { display: flex; align-items: flex-end; justify-content: flex-end; margin: 34px -18px -28px 0; }
.hero-photo img { display: block; width: min(100%, 285px); height: auto; border-bottom: 7px solid var(--brand-leaf); }
.eyebrow { margin: 0 0 18px; color: var(--brand-leaf); }
h1, h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.06; letter-spacing: -.025em; }
h1 { max-width: 620px; font-size: clamp(2.7rem, 8.5vw, 5.3rem); }
h2 { max-width: 620px; font-size: clamp(2rem, 6.5vw, 3.7rem); }
.intro { max-width: 520px; margin: 30px 0 10px; font-size: clamp(1rem, 2.6vw, 1.18rem); line-height: 1.7; }
.small-copy { margin: 0; color: var(--brand-leaf); font-size: .94rem; }
.tagline { margin: auto 0 0; padding-top: 50px; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.2rem; }
.primary-button, .secondary-button, .back-button { border: 0; transition: transform .18s ease, background .18s ease; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 34px; padding: 14px 25px; color: var(--white); background: var(--brand-ink); font-weight: 800; letter-spacing: .02em; }
.primary-button:hover { background: var(--brand-leaf); transform: translateY(-2px); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.progress { margin-bottom: 35px; }
.progress-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--brand-leaf); }
.progress-track { height: 5px; overflow: hidden; background: var(--brand-mist); }
.progress-bar { height: 100%; background: var(--brand-leaf); transition: width .3s ease; }
.question { animation: rise .32s ease both; }
.question-lead { margin: 17px 0 30px; color: var(--brand-leaf); line-height: 1.65; }
.fields { display: grid; gap: 16px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 8px; font-weight: 700; font-size: .9rem; }
input, textarea { width: 100%; min-height: 53px; padding: 13px 14px; border: 1px solid var(--brand-leaf); border-radius: 0; color: var(--brand-ink); background: var(--brand-mist); }
input.field-invalid { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field-error { min-height: 1.1em; color: var(--danger); font-size: .78rem; font-weight: 700; line-height: 1.35; }
textarea { min-height: 106px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--brand-leaf); }
.error { min-height: 20px; margin: 13px 0 0; color: var(--danger); font-size: .83rem; font-weight: 700; }
.options { display: grid; gap: 11px; }
.question h2 { font-size: clamp(1.625rem, 2.1vw, 1.875rem); }
.option { position: relative; display: flex; gap: 14px; align-items: center; min-height: 65px; padding: 14px 16px; border: 2px solid var(--brand-leaf); background: var(--white); text-align: left; font-size: clamp(1rem, 1.25vw, 1.0625rem); font-weight: 700; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.option b { display: none; margin-left: auto; font-size: 1.2rem; }
.option:hover { border-color: var(--brand-ink); }
.option.selected { border-color: var(--brand-ink); background: var(--brand-mist); box-shadow: inset 0 0 0 2px var(--brand-ink); }
.option.selected b { display: block; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-icon { font-size: 1.3rem; }
.notes { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--brand-mist); }
.notes h3 { margin: 0 0 5px; font-size: .96rem; }
.notes p { margin: 0 0 11px; color: var(--brand-leaf); font-size: .88rem; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 30px; }
.back-button { padding: 12px 0; color: var(--brand-leaf); background: transparent; font-weight: 700; }
.back-button:hover { color: var(--brand-ink); }
.document-image { display: block; width: 100%; margin-top: 28px; border: 1px solid var(--brand-mist); cursor: zoom-in; }
.info-copy { margin-top: 20px; color: var(--brand-leaf); line-height: 1.65; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; line-height: 1.55; }
.consent input { width: 22px; min-height: 22px; margin-top: 2px; accent-color: var(--brand-leaf); }
.success { justify-content: center; }
.success .primary-button { width: 100%; background: var(--brand-ink); }
.secondary-button { display: inline-flex; justify-content: center; width: 100%; min-height: 52px; margin-top: 13px; padding: 12px; border: 1px solid var(--brand-leaf); color: var(--brand-ink); background: transparent; font-weight: 800; }
.contact-card { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--brand-mist); color: var(--brand-leaf); font-size: .88rem; line-height: 1.75; }
.image-modal { width: min(94vw, 900px); max-height: 94svh; padding: 30px; border: 0; background: var(--white); box-shadow: var(--shadow); }
.image-modal::backdrop { background: rgb(13 41 34 / 75%); }
.image-modal img { display: block; max-width: 100%; max-height: 82svh; margin: auto; }
.modal-close { position: absolute; top: 6px; right: 12px; border: 0; background: transparent; color: var(--brand-ink); font-size: 2rem; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 540px) { .site-shell { padding: 10px; } .brand-header { align-items: flex-start; } .brand-role { max-width: 150px; font-size: .56rem; } .panel { min-height: calc(100svh - 96px); padding: 28px 22px; } .welcome-content { min-height: 0; } .hero-photo { margin: 26px -10px -28px auto; } .hero-photo img { width: min(100%, 210px); } .fields.two { grid-template-columns: 1fr; } .question h2 { font-size: clamp(1.375rem, 6vw, 1.5625rem); } .actions { align-items: flex-end; } .actions .primary-button { min-width: 0; flex: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Abertura da consulta: composição editorial com conteúdo e retrato no mesmo plano. */
.consultation { width: min(100%, 1120px); }
.consultation > .brand-header { display: none; }
#app > .brand-header { padding: 18px 0 20px; }
#app > .brand-header .brand { display: block; width: 150px; height: auto; }
.language-switcher { margin-left: auto; color: var(--brand-ink); font: 700 .75rem 'DM Mono', monospace; letter-spacing: .05em; }
.language-switcher button { padding: 5px 3px; border: 0; color: var(--brand-leaf); background: transparent; font: inherit; }
.language-switcher button[aria-pressed="true"] { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 5px; }
.welcome { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(290px, .96fr); align-items: start; gap: clamp(32px, 6vw, 82px); min-height: 560px; padding: clamp(34px, 5vw, 62px); overflow: hidden; }
.welcome-content { display: block; min-height: 0; padding-top: 20px; }
.welcome .eyebrow { color: var(--brand-ink); font: 600 .9rem 'Playfair Display', serif; letter-spacing: 0; text-transform: none; }
.welcome .eyebrow { font-size: 1.05rem; }
.welcome h1 { max-width: 560px; font-size: clamp(2.15rem, 4vw, 3.5rem); }
.welcome .intro { max-width: 540px; margin: 22px 0; font-size: clamp(1rem, 1.6vw, 1.13rem); }
.benefits { display: grid; gap: 7px; margin: 0; padding: 0; color: var(--brand-ink); list-style: none; font-size: .94rem; }
.role-copy { margin: 18px 0 0; color: var(--brand-leaf); font-size: .78rem; }
.welcome .primary-button { animation: soft-pulse 2.8s ease-in-out infinite; }
.hero-photo { display: block; align-self: start; margin: 0; padding: 0 0 0 10px; }
.hero-photo img { width: 100%; max-width: 430px; margin-left: auto; border: 0; object-fit: contain; }
@keyframes soft-pulse { 0%,100% { box-shadow: 0 0 0 0 rgb(166 128 120 / 0%); } 50% { box-shadow: 0 0 0 9px rgb(166 128 120 / 18%); } }
@media (max-width: 680px) {
  #app > .brand-header { padding: 8px 0 14px; }
  .welcome { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 26px 22px 30px; }
  .hero-photo { grid-row: 1; justify-self: center; width: min(100%, 230px); padding: 0; }
  .hero-photo img { width: 100%; }
  .welcome-content { grid-row: 2; padding-top: 0; }
  .welcome h1 { font-size: clamp(2rem, 9vw, 2.45rem); }
  .welcome .primary-button { width: 100%; margin-top: 24px; }
}
