/* Albor v3: the object performs. Electric blue, gum pink and one big drawn molar instead of a clinical white page. */
:root {
  --blue: #2335ff;
  --navy: #0b1240;
  --pink: #ff8fc7;
  --ice: #eef0ff;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --bar-font: var(--body);
  --bar-bg: var(--navy);
  --toast-bg: var(--navy);
  --toast-radius: 999px;
}

body { background: var(--blue); color: #fff; font: 400 17px/1.55 var(--body); }
em { font-style: normal; color: var(--pink); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn:active { transform: scale(0.96); }
.btn-pink { background: var(--pink); color: var(--navy); }
.btn-ink { background: var(--navy); color: #fff; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }

.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--blue); }
.top-brand { font: 800 26px/1 var(--display); text-decoration: none; letter-spacing: -0.03em; }
.top-brand span { color: var(--pink); }
.top-cta { padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 700; font-size: 14px; text-decoration: none; }

/* Hero */
.hero { display: grid; justify-items: center; text-align: center; padding: 28px 16px 64px; overflow-x: clip; }
.hero h1 { font: 800 clamp(2.6rem, 12vw, 7rem)/0.98 var(--display); letter-spacing: -0.04em; max-width: 12ch; }
.hero h1 em { display: block; }
.hero-line { max-width: 34ch; margin-top: 18px; font-size: 1.1rem; opacity: 0.92; }
.hero-tooth { width: min(64vw, 360px); margin: 26px 0 8px; filter: drop-shadow(0 30px 40px rgba(11, 18, 64, 0.45)); }
.js .hero-tooth { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.hero-actions { display: grid; justify-items: center; gap: 14px; margin-top: 14px; }
.hero-link { font-weight: 600; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: "title tooth" "line tooth" "actions tooth"; justify-items: start; text-align: left; padding: 48px 48px 96px; column-gap: 40px; align-items: center; }
  .hero h1 { grid-area: title; max-width: none; font-size: 5.6rem; }
  .hero-line { grid-area: line; }
  .hero-tooth { grid-area: tooth; width: min(34vw, 460px); justify-self: center; }
  .hero-actions { grid-area: actions; justify-items: start; grid-auto-flow: column; align-items: center; gap: 24px; }
}

/* Treatments: the colour of the whole section follows the choice */
.treat { --bg: var(--blue); --fg: #fff; padding: 64px 16px 72px; background: var(--bg); color: var(--fg); transition: background 500ms ease, color 500ms ease; border-top: 2px solid rgba(255, 255, 255, 0.2); }
.treat-head h2 { font: 800 clamp(2rem, 9vw, 4.4rem)/1 var(--display); letter-spacing: -0.03em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid currentColor; font-weight: 700; font-size: 15px; transition: background 200ms, color 200ms; }
.chips button[aria-checked="true"] { background: var(--fg); color: var(--bg); }
.treat-body { display: grid; gap: 24px; margin-top: 30px; }
.treat-tooth { width: min(70vw, 340px); justify-self: center; filter: drop-shadow(0 24px 30px rgba(11, 18, 64, 0.35)); }
.treat-tooth .t-anim { animation: pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.treat-info { display: grid; gap: 14px; align-content: start; }
.treat-info h3 { font: 700 clamp(1.6rem, 6vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.02em; }
.treat-info p { max-width: 42ch; font-size: 1.05rem; }
.treat-facts { display: grid; gap: 0; border-top: 2px solid currentColor; }
.treat-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 2px solid currentColor; }
.treat-facts dt { opacity: 0.8; }
.treat-facts dd { font-weight: 700; text-align: right; }
.treat-info .btn { justify-self: start; }
@media (min-width: 960px) {
  .treat { padding: 110px 48px; }
  .treat-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .treat-tooth { width: min(30vw, 420px); }
}

/* Words: plain Spanish for clinic jargon */
.words { padding: 72px 16px; background: #fff; color: var(--navy); }
.words h2 { font: 800 clamp(2rem, 9vw, 4.4rem)/1 var(--display); letter-spacing: -0.03em; }
.words h2 em { color: var(--blue); }
.words-lead { max-width: 44ch; margin-top: 14px; font-size: 1.1rem; }
.terms { display: grid; gap: 10px; margin-top: 28px; }
.terms li { border: 2px solid var(--navy); border-radius: 26px; overflow: hidden; }
.term { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 64px; padding: 0 22px; font: 700 1.2rem/1.1 var(--display); text-align: left; }
.term i { font-style: normal; font-size: 1.6rem; transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.term[aria-expanded="true"] { background: var(--blue); color: #fff; }
.term[aria-expanded="true"] i { transform: rotate(45deg); }
.term-plain { display: grid; gap: 10px; padding: 16px 22px 20px; background: var(--ice); }
.term-plain p { max-width: 52ch; font-size: 1.05rem; }
.term-plain a { font-weight: 700; color: var(--blue); }
@media (min-width: 960px) { .words { padding: 110px 48px; } .terms { grid-template-columns: repeat(3, 1fr); align-items: start; } }

/* Nerves: the molar makes the face */
.calm { display: grid; gap: 18px; justify-items: center; padding: 72px 16px; background: var(--navy); text-align: center; }
.calm h2 { font: 800 clamp(2rem, 9vw, 4.4rem)/1 var(--display); letter-spacing: -0.03em; }
.calm-tooth { width: min(56vw, 260px); }
.calm-tooth.is-shaking { animation: shake 420ms ease-in-out infinite; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.calm-body { display: grid; gap: 10px; width: min(100%, 520px); }
.calm input[type="range"] { width: 100%; height: 40px; accent-color: var(--pink); margin-top: 10px; }
.calm-scale { display: flex; justify-content: space-between; font-size: 14px; opacity: 0.8; }
.calm-level { font: 800 1.6rem/1 var(--display); color: var(--pink); margin-top: 6px; }
.calm-reply { min-height: 4.8em; font-size: 1.1rem; }
@media (min-width: 960px) { .calm { grid-template-columns: auto minmax(0, 520px); justify-content: center; column-gap: 72px; padding: 110px 48px; text-align: left; } .calm-tooth { width: 300px; } }
@media (prefers-reduced-motion: reduce) { .calm-tooth.is-shaking { animation: none; } }

/* First visit */
.first { padding: 72px 16px; background: var(--ice); color: var(--navy); }
.first h2 { font: 800 clamp(2rem, 9vw, 4.4rem)/1 var(--display); letter-spacing: -0.03em; }
.first h2 em { color: var(--blue); }
.first-steps { display: grid; gap: 14px; margin-top: 30px; }
.first-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; padding: 20px; background: #fff; border-radius: 28px; }
.first-steps b { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 1.4rem/1 var(--display); }
.first-steps h3 { font: 700 1.3rem/1.2 var(--display); }
@media (min-width: 960px) { .first { padding: 110px 48px; } .first-steps { grid-template-columns: repeat(3, 1fr); } }

/* Appointment */
.cita { padding: 72px 16px; background: var(--navy); }
.cita h2 { font: 800 clamp(2.2rem, 10vw, 5rem)/1 var(--display); letter-spacing: -0.03em; }
.cita-form { display: grid; gap: 14px; margin-top: 26px; max-width: 640px; }
.cita-form label { display: grid; gap: 6px; font-weight: 600; }
.cita-form select, .cita-form input { min-height: 54px; padding: 0 16px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 16px; width: 100%; }
.cita-form select option { color: var(--navy); }
.cita-form input[aria-invalid="true"] { border-color: var(--pink); }
.cita-error { color: var(--pink); font-weight: 700; }
.cita-done { max-width: 52ch; margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--pink); color: var(--navy); font-weight: 600; }
.cita-urgent { margin-top: 26px; max-width: 48ch; opacity: 0.85; }
@media (min-width: 960px) { .cita { padding: 110px 48px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; } .cita-form { grid-column: 2; grid-row: 1 / 4; margin-top: 0; } .cita-done, .cita-urgent { grid-column: 1; } }

.foot { padding: 32px 16px 28px; background: var(--blue); overflow: clip; }
.foot-mark { font: 800 clamp(5rem, 30vw, 22rem)/0.85 var(--display); letter-spacing: -0.06em; text-align: center; }
.foot-row { display: grid; gap: 12px; margin-top: 24px; font-size: 15px; }
.foot-cta { font-weight: 700; color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
@media (min-width: 960px) { .foot { padding-inline: 48px; } }
.foot-row p { max-width: 68ch; }

.pitch-close { --pitch-bg: var(--pink); --pitch-fg: var(--navy); --pitch-accent: var(--navy); --pitch-font: 800 clamp(2.2rem, 9vw, 4.8rem)/1 var(--display); }
