/* Odontologia · conceito CALCULADORA */

/* ---------- Topbar (template) ---------- */
.pg-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.pg-topbar .brand { font-weight: 700; text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.pg-topbar__mid { color: var(--muted); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }
.pg-topbar__cta { text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.pg-topbar__cta:hover { color: var(--accent-text); }
.footer .brand { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
@media (max-width: 760px) { .pg-topbar__mid { display: none; } }

/* ---------- Hero ---------- */
.odo-hero { padding-top: 18px; }
.odo-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  padding-top: clamp(44px, 7vw, 100px);
  padding-bottom: clamp(36px, 5vw, 60px);
}
.odo-hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(64px, 12.5vw, 196px);
  line-height: .84;
  letter-spacing: -.035em;
}
.odo-hero__title em { display: block; }
.hero__title .w { display: inline-block; }
.odo-hero__sub { font-size: clamp(17px, 1.1vw + 11px, 20px); color: var(--ink-2); max-width: 44ch; }
.odo-hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.odo-hero__actions .link-arrow { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }

.odo-hero__procs {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-bottom: clamp(32px, 4vw, 48px);
}
.odo-hero__procs li {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 12px 0; border-left: 1px solid var(--line); color: var(--ink-2);
}
.odo-hero__procs li:first-child { border-left: 0; padding-left: 0; }

@media (max-width: 900px) {
  .odo-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .odo-hero__procs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .odo-hero__procs li:nth-child(4) { border-left: 0; padding-left: 0; }
  .odo-hero__procs li:nth-child(n+4) { border-top: 1px solid var(--line); margin-top: 14px; }
}
@media (max-width: 420px) {
  .odo-hero__procs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .odo-hero__procs li:nth-child(4) { border-left: 1px solid var(--line); padding-left: 12px; }
  .odo-hero__procs li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .odo-hero__procs li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 14px; }
}

/* ---------- Calculadora ---------- */
.odo-calc { padding-bottom: var(--section-y); }
.odo-calc__panel {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.odo-calc__head {
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--panel-line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 12px 48px; align-items: end;
}
.odo-calc__head .eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
.odo-calc__title { font-size: clamp(38px, 5vw, 76px); }
.odo-calc__title em, .odo-calc .h2 em { color: var(--accent-dark); }
.odo-calc__intro { color: var(--muted-dark); font-size: 15px; }

.odo-calc__static { padding: clamp(24px, 4vw, 56px); display: grid; gap: 14px; max-width: 70ch; color: #D9D1C5; }
.odo-calc__static .mono-label { color: var(--muted-dark); }
.odo-calc__static strong { color: var(--accent-dark); font-weight: 700; }

.odo-calc__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.odo-calc__inputs { border: 0; margin: 0; padding: 0; min-width: 0; border-right: 1px solid var(--panel-line); }
.odo-calc__inputs legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.odo-field { padding: clamp(20px, 2.6vw, 32px) clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--panel-line); }
.odo-field:last-child { border-bottom: 0; }
.odo-field__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.odo-field__label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #D9D1C5; max-width: 22ch; line-height: 1.5;
}
.odo-field__label span { color: var(--accent-dark); margin-right: 6px; }
.odo-field__value {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--f-display); font-size: clamp(38px, 3.4vw, 52px); line-height: 1; color: var(--paper);
  border-bottom: 1px solid var(--muted-dark);
}
.odo-field__value span { color: var(--muted-dark); font-size: .6em; }
.odo-field__value:focus-within { border-bottom-color: var(--accent-dark); }
.odo-field__value input {
  font: inherit; color: inherit; background: transparent; border: 0;
  width: 3.2ch; text-align: right; padding: 4px 0 6px; min-height: 48px;
  -moz-appearance: textfield; appearance: textfield;
}
.odo-field__value--money input { width: 6ch; }
.odo-field__value input::-webkit-outer-spin-button,
.odo-field__value input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.odo-field__value input:focus { outline: none; }
.odo-field__value:has(input:focus-visible) { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
.odo-field__hint { font-size: 14px; color: var(--muted-dark); margin-top: 6px; }

.odo-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; margin: 10px 0 0; background: transparent; cursor: pointer;
  --pct: 50%;
}
.odo-range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--accent-dark) 0 var(--pct), var(--panel-line) var(--pct) 100%);
}
.odo-range::-moz-range-track { height: 2px; background: var(--panel-line); }
.odo-range::-moz-range-progress { height: 2px; background: var(--accent-dark); }
.odo-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -10px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent-dark);
}
.odo-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent-dark); }
.odo-range:focus { outline: none; }
.odo-range:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 4px; }

.odo-display {
  background: var(--panel);
  padding: clamp(24px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 18px;
  container-type: inline-size;
  min-width: 0;
}
.odo-display__label { color: var(--muted-dark); }
.odo-display__big {
  display: block;
  font-family: var(--f-display); font-weight: 400;
  font-size: min(9rem, calc(170cqi / var(--chars, 9)));
  line-height: .9; letter-spacing: -.03em;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--panel-line);
}
.odo-display__rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--panel-line); }
.odo-display__rows div { padding: 4px 14px 18px; border-left: 1px solid var(--panel-line); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; min-width: 0; }
.odo-display__rows div:first-child { border-left: 0; padding-left: 0; }
.odo-display__rows dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); line-height: 1.4; }
.odo-display__rows dd { font-family: var(--f-display); font-size: clamp(26px, 7cqi, 42px); line-height: 1; color: var(--paper); overflow-wrap: anywhere; }
.odo-display__rows div:first-child dd { color: var(--accent-dark); }
.odo-display__tape {
  font-family: var(--f-mono); font-size: 13px; color: #D9D1C5;
  border: 1px dashed var(--panel-line); padding: 12px 14px; border-radius: 6px;
  overflow-wrap: anywhere;
}
.odo-display__note { font-size: 14px; color: var(--muted-dark); margin-top: auto; }
.odo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.odo-calc__foot {
  border-top: 1px solid var(--panel-line);
  padding: clamp(22px, 3vw, 36px) clamp(20px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
}
.odo-calc__foot p { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; max-width: 30ch; }

@media (max-width: 960px) {
  .odo-calc__head { grid-template-columns: 1fr; }
  .odo-calc__body { grid-template-columns: 1fr; }
  .odo-calc__inputs { border-right: 0; border-bottom: 1px solid var(--panel-line); }
}
@media (max-width: 520px) {
  .odo-display__rows { grid-template-columns: 1fr; border-bottom: 0; }
  .odo-display__rows div { border-left: 0; padding: 12px 0; border-bottom: 1px solid var(--panel-line); flex-direction: row-reverse; justify-content: space-between; align-items: baseline; }
  .odo-display__rows dd { font-size: 30px; }
  .odo-calc__foot .btn { width: 100%; justify-content: center; padding-inline: 16px; font-size: 15px; }
}

/* ---------- Dores ---------- */
.odo-pain { padding-top: 0; }
.odo-pain__list { border-top: 1px solid var(--line); }
.odo-pain__list li {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px 40px; align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line);
}
.odo-pain__num { font-family: var(--f-mono); font-size: 12px; color: var(--accent-text); letter-spacing: .08em; }
.odo-pain__list h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1; letter-spacing: -.02em; }
.odo-pain__list p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 760px) {
  .odo-pain__list li { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Método ---------- */
.odo-method { background: var(--paper-2); }
.odo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.odo-step { padding: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 36px) clamp(28px, 3vw, 44px); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.odo-step:first-child { border-left: 0; padding-left: 0; }
.odo-step:last-child { padding-right: 0; }
.odo-step__num { font-family: var(--f-display); font-size: clamp(64px, 6vw, 96px); line-height: .8; color: var(--accent); letter-spacing: -.03em; }
.odo-step__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 3vw, 48px); line-height: 1; }
.odo-step p { color: var(--ink-2); }
.odo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.odo-tags li { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }

.odo-chat {
  margin: clamp(40px, 5vw, 64px) 0 0 auto;
  max-width: 560px; background: var(--ink); color: var(--paper);
  border-radius: 16px; padding: 20px; font-size: 15px; line-height: 1.45;
  box-shadow: 10px 10px 0 var(--accent);
}
.odo-chat figcaption { color: var(--muted-dark); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--panel-line); }
.odo-chat__msg { padding: 10px 13px; border-radius: 14px; margin-bottom: 8px; max-width: 86%; }
.odo-chat__msg:last-child { margin-bottom: 0; }
.odo-chat__msg--in { background: var(--ink-2); border-bottom-left-radius: 4px; }
.odo-chat__msg--out { background: var(--paper); color: var(--ink); margin-left: auto; border-bottom-right-radius: 4px; }
.odo-chat__who { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 3px; }

@media (max-width: 900px) {
  .odo-steps { grid-template-columns: 1fr; }
  .odo-step { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); }
  .odo-step:first-child { border-top: 0; }
  .odo-chat { margin-left: 0; box-shadow: 8px 8px 0 var(--accent); }
}

/* ---------- Prova ---------- */
.odo-proof__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.odo-proof__txt { color: var(--ink-2); max-width: 44ch; }
.odo-proof__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.odo-proof__cell { padding: 22px 20px 26px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; min-width: 0; }
.odo-proof__cell--wide { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
.odo-proof__cell:nth-child(2) { border-left: 0; padding-left: 0; }
.odo-proof__cell dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.odo-proof__cell dd { font-family: var(--f-display); font-size: clamp(40px, 4.6vw, 72px); line-height: .9; letter-spacing: -.02em; white-space: nowrap; }
.odo-proof__cell--wide dd { font-size: clamp(48px, 10vw, 160px); }
.odo-proof__cell dd.hot { color: var(--accent); }
.odo-proof__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: 24px; }
.odo-proof__foot .link-arrow { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .odo-proof__head { grid-template-columns: 1fr; }
  .odo-proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .odo-proof__cell:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 420px) {
  .odo-proof__cell { padding-inline: 12px; }
  .odo-proof__cell--wide, .odo-proof__cell:nth-child(2), .odo-proof__cell:nth-child(4) { padding-left: 0; }
  .odo-proof__cell dd { font-size: 36px; }
}
