:root {
  --ink: #1f1b2d;
  --muted: #6f6a7d;
  --line: #e9e5ef;
  --surface: #ffffff;
  --soft: #f8f6fb;
  --soft-purple: #f3edff;
  --purple: #6d3bd1;
  --purple-dark: #5324b3;
  --rose: #b94f7e;
  --danger: #b52d46;
  --success: #197148;
  --warning: #9a6600;
  --shadow: 0 18px 60px rgba(51, 30, 83, .10);
  --shadow-sm: 0 10px 30px rgba(51, 30, 83, .08);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; }
button { border: 0; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }

/* Shared */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -.025em; font-size: 1.05rem; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), #9b67ef); color: #fff; font-size: 1.28rem; line-height: 1; box-shadow: 0 8px 20px rgba(109,59,209,.22); }
.eyebrow { display: inline-block; margin: 0 0 10px; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.eyebrow.light { color: #ded2ff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 14px; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--purple-dark)); color: #fff; box-shadow: 0 10px 24px rgba(109,59,209,.25); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(109,59,209,.32); }
.btn-ghost { background: #fff; color: #373043; border: 1px solid var(--line); }
.btn-danger { background: #fff5f6; color: var(--danger); border: 1px solid #f1cfd6; }
.btn-white { background: #fff; color: var(--purple-dark); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.btn-lg { min-height: 54px; padding-inline: 23px; border-radius: 16px; }

/* Landing */
.landing-body { background: #fff; }
.landing-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(233,229,239,.85); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 30px; }
.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.desktop-nav a { text-decoration: none; color: #5f596b; font-size: .92rem; font-weight: 700; }
.desktop-nav a:hover { color: var(--purple); }
.header-cta { margin-left: 4px; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 850; }

.hero-section { position: relative; overflow: hidden; padding: 78px 0 72px; background: radial-gradient(circle at 80% 15%, #efe4ff 0, rgba(239,228,255,0) 34%), radial-gradient(circle at 10% 90%, #fff0f6 0, rgba(255,240,246,0) 30%), linear-gradient(180deg,#fff 0%,#fcfaff 100%); }
.hero-section::after { content: ""; position: absolute; width: 520px; height: 520px; right: -320px; bottom: -260px; border-radius: 50%; border: 80px solid rgba(109,59,209,.05); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(350px,.8fr); gap: 70px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid #ece6f5; box-shadow: 0 6px 18px rgba(60,36,91,.06); color: #5f566c; font-size: .82rem; font-weight: 850; }
.hero-kicker span { width: 8px; height: 8px; border-radius: 50%; background: #36b37e; box-shadow: 0 0 0 4px rgba(54,179,126,.13); }
.hero-copy h1 { margin: 20px 0; max-width: 780px; font-size: clamp(2.7rem, 5.8vw, 5.2rem); line-height: .98; letter-spacing: -.058em; }
.hero-copy h1 em { color: var(--purple); font-style: normal; }
.hero-lead { max-width: 720px; margin: 0; color: #5c5667; font-size: clamp(1.08rem, 1.8vw, 1.28rem); line-height: 1.68; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 26px; color: #4f4959; font-size: .9rem; font-weight: 750; }
.hero-trust span::first-letter { color: var(--success); }
.hero-disclaimer { max-width: 710px; margin: 16px 0 0; color: #80798a; font-size: .82rem; line-height: 1.5; }

.hero-panel { background: rgba(255,255,255,.9); border: 1px solid #e7e0f0; border-radius: 30px; padding: 20px; box-shadow: 0 30px 80px rgba(71,43,108,.14); transform: rotate(1.5deg); }
.panel-top { display: flex; align-items: center; gap: 9px; padding: 2px 2px 16px; font-size: .86rem; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #31b67a; box-shadow: 0 0 0 5px rgba(49,182,122,.12); }
.panel-pill { margin-left: auto; padding: 5px 9px; border-radius: 999px; background: var(--soft-purple); color: var(--purple-dark); font-size: .72rem; font-weight: 850; }
.phone-preview { width: min(320px,100%); margin: 0 auto; border: 8px solid #231e2c; border-radius: 32px; background: #fff; overflow: hidden; box-shadow: 0 16px 36px rgba(36,27,48,.18); }
.phone-camera { width: 92px; height: 22px; margin: 0 auto; border-radius: 0 0 16px 16px; background: #231e2c; }
.preview-content { padding: 28px 22px 24px; text-align: center; }
.preview-icon { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--soft-purple); color: var(--purple); font-size: 1.8rem; }
.preview-content strong { display: block; font-size: 1.03rem; }
.preview-content p { margin: 8px 0 16px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.preview-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preview-chips span { padding: 9px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; font-weight: 750; }
.preview-button { margin-top: 18px; padding: 11px 12px; border-radius: 12px; background: var(--purple); color: #fff; font-size: .78rem; font-weight: 850; }
.panel-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: .78rem; }

.quick-proof { border-top: 1px solid #f0edf3; border-bottom: 1px solid #f0edf3; background: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.proof-grid > div { padding: 24px 18px; text-align: center; border-right: 1px solid #f0edf3; }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong { display: block; font-size: 1.15rem; color: var(--purple-dark); }
.proof-grid span { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }

.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .two-col-content h2, .keyword-grid h2, .privacy-grid h2, .final-card h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; font-size: 1.03rem; }

.step-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.step-image-wrap { position: relative; height: 330px; overflow: hidden; background: #f7f5f8; }
.step-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: contrast(.98); }
.step-image-wrap.clinical-image img { object-position: center 48%; }
.step-number { position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 900; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.step-card-copy { padding: 24px; }
.step-card-copy h3 { margin: 0 0 10px; font-size: 1.25rem; letter-spacing: -.02em; }
.step-card-copy p { margin: 0; color: var(--muted); line-height: 1.65; }
.step-cta-row { display: flex; justify-content: center; margin-top: 34px; }

.two-col-content { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.two-col-content > div > p { color: var(--muted); line-height: 1.75; font-size: 1.02rem; }
.symptom-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.symptom-cloud span { padding: 10px 13px; border-radius: 999px; background: #f7f4fb; border: 1px solid #e9e2f2; color: #554b63; font-size: .88rem; font-weight: 750; }
.attention-card { padding: 30px; border-radius: 24px; background: #fff7f8; border: 1px solid #f1d8de; }
.attention-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: #ffe2e8; color: var(--danger); font-weight: 950; font-size: 1.2rem; }
.attention-card h3 { margin: 16px 0 10px; font-size: 1.25rem; }
.attention-card p { margin: 0; color: #6b5860; line-height: 1.65; }
.attention-card .small { margin-top: 12px; font-size: .82rem; }

.section-keywords { background: #211b2c; color: #fff; }
.keyword-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.keyword-grid article { padding: 30px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.keyword-grid .eyebrow { color: #c9b4fb; }
.keyword-grid h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.22; letter-spacing: -.03em; }
.keyword-grid p { margin: 16px 0 0; color: #cbc5d2; line-height: 1.7; }

.privacy-section { background: linear-gradient(135deg,#fff 0%,#faf6ff 100%); }
.privacy-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.privacy-copy { padding-left: 34px; border-left: 3px solid #d8c7f5; }
.privacy-copy p { margin: 0 0 15px; color: var(--muted); line-height: 1.75; }
.privacy-copy p:last-child { margin-bottom: 0; }

.faq-wrap { max-width: 860px; }
.faq-list { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 0 28px; box-shadow: var(--shadow-sm); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { list-style: none; cursor: pointer; font-weight: 850; line-height: 1.5; position: relative; padding-right: 34px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--purple); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }

.final-section { padding: 0 0 88px; background: var(--soft); }
.final-card { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 48px 54px; border-radius: 28px; background: linear-gradient(135deg,#6940c3,#4f249e); color: #fff; box-shadow: 0 26px 70px rgba(74,39,140,.24); }
.final-card h2 { margin-top: 0; }
.final-card p { margin: 12px 0 0; max-width: 660px; color: #e7defa; line-height: 1.65; }
.final-card .btn { flex: 0 0 auto; }

.landing-footer { padding: 38px 0 48px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-logo { margin-bottom: 10px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.footer-legal { max-width: 420px; text-align: right; }

/* Consulta */
.consult-body { background: #f7f5fa; min-height: 100vh; }
.consult-header { background: #fff; border-bottom: 1px solid var(--line); }
.consult-header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; }
.back-link { color: #665f71; font-size: .88rem; font-weight: 800; text-decoration: none; }
.consult-main { padding-top: 42px; padding-bottom: 70px; }
.consult-intro { max-width: 760px; margin-bottom: 30px; }
.consult-intro h1 { margin: 0; font-size: clamp(2rem,4.3vw,3.5rem); letter-spacing: -.045em; line-height: 1.06; }
.consult-intro p { margin: 12px 0 0; color: var(--muted); font-size: 1.03rem; line-height: 1.65; }
.consult-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.consult-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-sm); }
.consult-card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.step-title { display: flex; align-items: center; gap: 12px; }
.step-dot { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 13px; display: grid; place-items: center; background: var(--soft-purple); color: var(--purple-dark); font-weight: 950; }
.step-title small { display: block; margin-bottom: 2px; color: #8a8393; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.step-title h2 { margin: 0; font-size: 1.18rem; }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #f0edf3; color: #655f6c; font-size: .76rem; font-weight: 900; }
.status-pill[data-state="ok"], .status-pill[data-state="low"] { background: #e8f7ef; color: var(--success); }
.status-pill[data-state="warn"], .status-pill[data-state="attention"] { background: #fff1d6; color: var(--warning); }
.status-pill[data-state="urgent"] { background: #ffe5ea; color: var(--danger); }
.camera-box { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 20px; background: #17131d; display: grid; place-items: center; }
.camera-box video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-placeholder { text-align: center; color: #e9e4ee; display: grid; place-items: center; gap: 6px; }
.camera-placeholder-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 1.8rem; }
.camera-placeholder strong { font-size: .95rem; }
.camera-placeholder small { color: #9b94a2; }
.camera-actions { display: grid; grid-template-columns: 1.2fr .8fr .9fr; gap: 9px; margin-top: 14px; }
.camera-actions .btn { min-height: 44px; padding: 0 11px; font-size: .84rem; }
.capture-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 11px; margin-top: 13px; padding: 11px 13px; border-radius: 13px; background: #f5f3f7; color: #6f6977; font-size: .8rem; display: none !important; }
.capture-bar[data-active="1"] { background: #fff1f3; color: #79535b; }
.capture-dot { width: 8px; height: 8px; border-radius: 50%; background: #9b94a2; }
.capture-bar[data-active="1"] .capture-dot { background: #d43854; box-shadow: 0 0 0 4px rgba(212,56,84,.12); }
#captureCount { margin-left: auto; color: #837c8a; }
#deleteCaptures {display: none !important; };
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.quality-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 13px; background: #f8f6fa; }
.quality-grid span { color: #817a89; font-size: .8rem; }
.quality-grid strong { font-size: .84rem; }
.camera-hint { margin: 12px 0 0; color: var(--muted); font-size: .81rem; line-height: 1.55; }
.field-label { margin: 0 0 12px; font-weight: 850; font-size: .9rem; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 11px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: #5c5565; cursor: pointer; user-select: none; font-size: .83rem; font-weight: 750; transition: .15s ease; }
.chip input:checked + span { background: var(--soft-purple); border-color: #cdb8f2; color: var(--purple-dark); box-shadow: inset 0 0 0 1px #cdb8f2; }
.select-field { display: grid; gap: 8px; margin-top: 18px; color: #4b4553; font-size: .88rem; font-weight: 850; }
.select-field select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); outline: none; }
.select-field select:focus { border-color: #b69ae9; box-shadow: 0 0 0 3px rgba(109,59,209,.1); }
.btn-submit { width: 100%; margin-top: 18px; }
.form-note { margin: 10px 0 0; text-align: center; color: #8b8493; font-size: .75rem; }
.result-card { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.result-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: #eaf7f0; color: var(--success); font-size: 1.25rem; font-weight: 950; }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #8b8493; font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.result-content h2 { margin: 10px 0 8px; font-size: clamp(1.4rem,3vw,2rem); letter-spacing: -.03em; }
.result-content > p { color: var(--muted); line-height: 1.65; }
.recommendation { margin-top: 15px; padding: 16px; border-radius: 14px; background: #f7f4fb; color: #51475d; line-height: 1.6; font-weight: 700; }
.result-content .result-fineprint { margin: 12px 0 0; color: #8d8595; font-size: .78rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-lead, .hero-disclaimer { margin-left: auto; margin-right: auto; }
  .hero-kicker { margin-inline: auto; }
  .hero-buttons, .hero-trust { justify-content: center; }
  .hero-panel { width: min(470px,100%); margin-inline: auto; transform: none; }
  .two-col-content, .privacy-grid { grid-template-columns: 1fr; gap: 34px; }
  .privacy-copy { padding-left: 0; border-left: 0; }
  .keyword-grid { grid-template-columns: 1fr; }
  .consult-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px,1160px); }
  .desktop-nav { display: none; }
  .header-inner { min-height: 64px; }
  .header-cta { font-size: .8rem; padding-inline: 12px; }
  .hero-section { padding: 48px 0 50px; }
  .hero-copy h1 { font-size: clamp(2.5rem,12vw,4rem); }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .hero-trust { gap: 10px 14px; font-size: .82rem; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > div:nth-child(2) { border-right: 0; }
  .proof-grid > div:nth-child(-n+2) { border-bottom: 1px solid #f0edf3; }
  .section { padding: 64px 0; }
  .step-cards { grid-template-columns: 1fr; }
  .step-image-wrap { height: 370px; }
  .final-card { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
  .final-card .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
  .consult-main { padding-top: 28px; }
}

@media (max-width: 520px) {
  .logo span:last-child { font-size: .95rem; }
  .logo-mark { width: 30px; height: 30px; }
  .header-cta { min-height: 38px; }
  .step-image-wrap { height: 320px; }
  .camera-actions { grid-template-columns: 1fr 1fr; }
  .camera-actions .btn-danger { grid-column: 1 / -1; }
  .chips { grid-template-columns: 1fr; }
  .consult-card { padding: 18px; border-radius: 20px; }
  .result-card { grid-template-columns: 1fr; padding: 20px; }
  .result-topline { align-items: flex-start; }
  #captureCount { margin-left: 0; width: 100%; }
}
