:root {
  --ink: #142b34;
  --muted: #66757a;
  --paper: #f7f5ee;
  --surface: #fffdf8;
  --blue: #077a8f;
  --mint: #89e5cf;
  --coral: #ff765f;
  --gold: #d8aa4f;
  --lime: #d9f467;
  --rose: #ffe2dd;
  --line: rgba(20, 43, 52, 0.12);
  --shadow: 0 24px 70px rgba(21, 42, 52, 0.15);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 82% 12%, rgba(217, 244, 103, 0.38), transparent 18rem),
    linear-gradient(120deg, rgba(137, 229, 207, 0.28), transparent 34rem),
    linear-gradient(300deg, rgba(255, 118, 95, 0.16), transparent 30rem),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 43, 52, 0.12) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  opacity: 0.18;
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(20, 43, 52, 0.08);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 154px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #34525b;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav a:hover {
  background: rgba(7, 122, 143, 0.09);
  color: var(--blue);
}

.header-cta,
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.header-cta {
  padding: 0 20px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(20, 43, 52, 0.1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 94px);
  margin: 0 auto;
  padding: 64px 0 46px;
}

.hero::before {
  content: "";
  position: absolute;
  left: max(16px, calc((100% - 1180px) / 2));
  right: max(16px, calc((100% - 1180px) / 2));
  top: 116px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 43, 52, 0.18), transparent);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(3.25rem, 8.6vw, 8.4rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.6vw, 4.9rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lede {
  max-width: 660px;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.btn {
  border: 0;
  cursor: pointer;
  padding: 0 24px;
  font-family: inherit;
  font-size: 0.96rem;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), #0b4d63);
  box-shadow: 0 18px 38px rgba(7, 122, 143, 0.26);
}

.btn.secondary {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.btn,
.header-cta,
.brace-card,
.proof-item,
.flow-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span,
.value-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #355158;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-height: 620px;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 34px -18px -18px 34px;
  border: 1px solid rgba(7, 122, 143, 0.22);
  border-radius: 46px 46px 10px 46px;
  z-index: -1;
}

.hero-main {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 42px 42px 8px 42px;
  box-shadow: var(--shadow);
}

.orbit-badge {
  position: absolute;
  top: 28px;
  left: -28px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid rgba(20, 43, 52, 0.12);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 20px 46px rgba(20, 43, 52, 0.16);
}

.hero-card {
  position: absolute;
  right: -18px;
  bottom: 34px;
  width: min(310px, calc(100% - 40px));
  padding: 22px;
  color: white;
  background: rgba(20, 43, 52, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.hero-card::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--coral);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(21, 42, 52, 0.09);
}

.proof-item {
  padding: 24px;
  background: white;
  border: 1px solid rgba(20, 43, 52, 0.08);
  border-radius: 8px;
}

.proof-item:hover,
.brace-card:hover,
.flow-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7, 122, 143, 0.28);
  box-shadow: 0 22px 60px rgba(20, 43, 52, 0.12);
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
}

.proof-item span {
  color: var(--muted);
  line-height: 1.55;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.brace-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.brace-card {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(20, 43, 52, 0.07);
}

.brace-card::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 116px;
  height: 116px;
  background: var(--rose);
  border-radius: 50%;
  z-index: 0;
}

.brace-card > * {
  position: relative;
  z-index: 1;
}

.card-kicker {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 43, 52, 0.12);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.brace-card img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 18px;
}

.brace-card h3,
.brace-card p {
  padding: 0 8px;
}

.practice {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.practice-copy {
  position: relative;
}

.practice-copy::before {
  content: "best first impression";
  display: inline-flex;
  margin-bottom: 22px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.practice-image img {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
  border-radius: 8px 54px 8px 8px;
  box-shadow: var(--shadow);
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.treatment-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  grid-template-rows: repeat(2, minmax(240px, auto));
  gap: 18px;
}

.treatment-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.treatment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 28%, rgba(20, 43, 52, 0.72));
}

.treatment-card.large {
  grid-row: span 2;
}

.treatment-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 600ms ease;
}

.treatment-card:hover img {
  transform: scale(1.05);
}

.treatment-card div {
  position: absolute;
  z-index: 2;
  inset: auto 18px 18px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.results {
  width: 100%;
  padding: 96px max(16px, calc((100% - 1180px) / 2));
  background:
    radial-gradient(circle at 88% 6%, rgba(137, 229, 207, 0.18), transparent 20rem),
    linear-gradient(135deg, #14313b, #0d232b);
}

.results-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.results h2,
.results h3,
.results strong {
  color: white;
}

.results p {
  color: rgba(255, 255, 255, 0.68);
}

.comparison {
  position: relative;
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  background: #0d242c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.comparison > img,
.comparison .before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison .before {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 0, var(--position) 0, var(--position) 100%, 0 100%);
}

.comparison .before::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  background: white;
}

.comparison::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--position);
  width: 44px;
  height: 44px;
  background: var(--lime);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.result-label {
  position: absolute;
  top: 16px;
  z-index: 3;
  padding: 8px 12px;
  color: white;
  background: rgba(20, 43, 52, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.before-label {
  left: 16px;
}

.after-label {
  right: 16px;
}

.comparison input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.comparison figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(20, 43, 52, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
}

.education {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
}

.smile-flow {
  padding-top: 72px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--ink);
  background: var(--rose);
  border-radius: 50%;
  font-weight: 900;
}

.flow-card:nth-child(2) span {
  background: var(--mint);
}

.flow-card:nth-child(3) span {
  background: var(--lime);
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  padding: 22px;
  text-align: left;
  font: inherit;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.accordion-item span {
  display: block;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.05rem;
}

.accordion-item p {
  display: none;
  margin: 10px 0 0;
}

.accordion-item.active {
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(20, 43, 52, 0.07);
}

.accordion-item.active p {
  display: block;
}

.appointment {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 112px;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-lines a {
  color: var(--blue);
  font-weight: 900;
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #425b62;
  font-size: 0.86rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 43, 52, 0.16);
  border-radius: 8px;
  padding: 14px 14px;
  color: var(--ink);
  background: white;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(7, 122, 143, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 52px max(16px, calc((100% - 1180px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer img {
  width: 170px;
  margin-bottom: 16px;
}

.footer h3 {
  color: white;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 24px;
  }

  .nav {
    display: none;
  }

  .hero,
  .practice,
  .education,
  .appointment {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero::before {
    display: none;
  }

  .hero-media,
  .hero-main {
    min-height: 0;
    height: auto;
  }

  .hero-main {
    aspect-ratio: 4 / 5;
  }

  .proof-band,
  .brace-grid,
  .comparison-grid,
  .flow-grid,
  .treatment-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .treatment-card.large {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 10px;
  }

  .brand img {
    width: 128px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  h1 {
    font-size: 3rem;
  }

  section,
  .hero {
    width: calc(100% - 24px);
  }

  .hero-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .orbit-badge {
    left: 12px;
    top: 12px;
    width: 86px;
    height: 86px;
    font-size: 0.68rem;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }

  .comparison {
    min-height: 420px;
  }
}
