:root {
  color-scheme: light;
  --navy: #001f3d;
  --navy-deep: #001322;
  --navy-soft: #052a45;
  --cyan: #00c8d7;
  --blue: #0077cc;
  --white: #ffffff;
  --paper: #f4f7fa;
  --line: #dce6ed;
  --text: #0d1b2e;
  --muted: #5e6b78;
  --shadow-dark: 0 30px 80px rgb(0 0 0 / 0.34);
  --shadow-soft: 0 18px 48px rgb(0 31 61 / 0.12);
  --container: 1180px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

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

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(0 19 34 / 0.92);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--white);
  font-weight: 900;
}

.brand img {
  width: 72px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
}

.desktop-nav a {
  color: rgb(255 255 255 / 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

.desktop-nav a:hover {
  color: var(--white);
}

.header-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.header-cta {
  padding: 0 16px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 30px rgb(0 119 204 / 0.24);
  font-size: 0.8rem;
  white-space: nowrap;
}

.header-cta:hover,
.button-primary:hover {
  transform: translateY(-1px);
  border-color: #005da3;
  background: #005da3;
}

.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  width: 42px;
  height: 42px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.04);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  height: 2px;
  border-radius: 2px;
  background: var(--white);
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  display: grid;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  background: #061b2b;
  box-shadow: var(--shadow-dark);
}

.mobile-menu nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

.mobile-menu nav a:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--white);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 78px;
  background:
    radial-gradient(circle at 78% 40%, rgb(0 200 215 / 0.2), transparent 30%),
    radial-gradient(circle at 15% 8%, rgb(0 119 204 / 0.22), transparent 28%),
    linear-gradient(135deg, #001322 0%, #001f3d 58%, #001321 100%);
  color: var(--white);
}

.hero-section::after,
.final-cta-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(680px, 80vw);
  height: 320px;
  opacity: 0.3;
  background-image:
    linear-gradient(90deg, rgb(0 200 215 / 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgb(0 200 215 / 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: perspective(520px) rotateX(62deg) rotateZ(-18deg) translate(18%, 30%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 46px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.product-tag,
.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-tag {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgb(0 200 215 / 0.55);
  border-radius: 6px;
  background: rgb(0 200 215 / 0.08);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  color: var(--white);
  font-size: 2.75rem;
  font-weight: 820;
}

h1::first-line {
  color: var(--white);
}

h2 {
  color: var(--text);
  font-size: 2.15rem;
  font-weight: 800;
}

h3 {
  color: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.hero-copy p:not(.product-tag) {
  margin: 24px 0 0;
  color: rgb(255 255 255 / 0.76);
  font-size: 1.06rem;
}

.hero-actions,
.final-actions {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.button {
  padding: 13px 20px;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 34px rgb(0 119 204 / 0.24);
}

.button-secondary {
  border-color: rgb(0 200 215 / 0.58);
  background: transparent;
  color: var(--white);
}

.button-demo {
  border-color: rgb(0 200 215 / 0.48);
  background: rgb(0 200 215 / 0.16);
  color: var(--white);
}

.button-secondary:hover {
  transform: translateY(-1px);
  background: rgb(0 200 215 / 0.1);
}

.button-demo:hover {
  transform: translateY(-1px);
  background: rgb(0 200 215 / 0.24);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  max-width: 460px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-features li {
  position: relative;
  padding-left: 25px;
  color: rgb(255 255 255 / 0.78);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero-features li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--cyan);
  border-radius: 3px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.device {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.24);
  background: #071726;
  box-shadow: var(--shadow-dark);
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.device-laptop {
  width: min(100%, 650px);
  aspect-ratio: 1.72 / 1;
  border-radius: 18px;
  padding: 18px 18px 22px;
}

.device-laptop img {
  border-radius: 8px;
}

.device-bar {
  display: block;
  height: 10px;
}

.device-tablet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(270px, 44%);
  aspect-ratio: 0.72 / 1;
  border-radius: 22px;
  padding: 10px;
}

.device-phone {
  position: absolute;
  right: 245px;
  bottom: 16px;
  width: min(150px, 26%);
  aspect-ratio: 0.5 / 1;
  border-radius: 20px;
  padding: 8px;
}

.story-section,
.real-section {
  padding: 82px 0;
  background: var(--paper);
}

.story-grid,
.real-grid,
.timeline-grid,
.final-cta-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.section-lead,
.real-grid p,
.timeline-copy p,
.final-cta-grid p {
  color: var(--muted);
}

.clinic-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.clinic-board::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 48px;
  height: 48px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--navy) 18%, transparent 20%) 0 0 / 12px 12px,
    radial-gradient(circle, var(--navy) 18%, transparent 20%) 6px 6px / 12px 12px;
  opacity: 0.9;
}

.clinic-board article {
  position: relative;
  min-height: 214px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 5px;
  padding: 20px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.clinic-board span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(0 200 215 / 0.34);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
}

.clinic-board strong {
  color: var(--navy);
}

.clinic-board small {
  color: var(--muted);
}

.patient-photo {
  width: 92px;
  height: 92px;
  margin-top: 12px;
  border-radius: 50%;
  background-image: url("public/landing/pxdental-fictional-patients.png");
  background-size: 220% 220%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgb(0 31 61 / 0.08);
}

.patient-photo-1 {
  background-position: 6% 6%;
}

.patient-photo-2 {
  background-position: 94% 6%;
}

.patient-photo-3 {
  background-position: 6% 94%;
}

.patient-photo-4 {
  background-position: 94% 94%;
}

.pain-card {
  display: grid;
  gap: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.pain-card ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pain-card li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
  font-weight: 700;
}

.pain-card li::before {
  content: "";
  position: absolute;
  top: 0.34em;
  left: 0;
  width: 19px;
  height: 19px;
  border: 1px solid var(--navy);
  border-radius: 6px;
}

.pain-card strong {
  max-width: 340px;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.35;
}

.resource-section {
  padding: 74px 0;
  background: var(--navy-deep);
  color: var(--white);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.resource-section h2 {
  color: var(--white);
}

.resource-lead {
  max-width: 660px;
  margin: 18px auto 0;
  color: rgb(255 255 255 / 0.76);
  font-size: 1.02rem;
  line-height: 1.65;
}

.resource-grid {
  display: grid;
  gap: 28px;
  border: 0;
  background: transparent;
}

.resource-grid article {
  min-height: auto;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 11px;
  padding: 0 8px;
  background: transparent;
  text-align: center;
}

.resource-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--cyan);
}

.resource-icon::before,
.resource-icon::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
}

.resource-image::before {
  inset: 7px;
  border-radius: 4px;
}

.resource-image::after {
  left: 15px;
  bottom: 13px;
  width: 14px;
  height: 10px;
  transform: rotate(45deg);
  border-top: 0;
  border-left: 0;
}

.resource-tooth::before {
  inset: 7px 11px 6px;
  border-radius: 45% 45% 35% 35%;
}

.resource-doc::before {
  inset: 5px 10px;
  border-radius: 2px;
}

.resource-doc::after {
  left: 16px;
  right: 16px;
  top: 15px;
  height: 12px;
  border-right: 0;
  border-left: 0;
}

.resource-user::before {
  top: 7px;
  left: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.resource-user::after {
  left: 9px;
  bottom: 6px;
  width: 24px;
  height: 17px;
  border-radius: 50% 50% 0 0;
}

.resource-book::before {
  inset: 6px 8px;
  border-radius: 2px;
}

.resource-book::after {
  top: 8px;
  bottom: 8px;
  left: 20px;
  border-left: 2px solid currentColor;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}

.resource-chart::before {
  left: 8px;
  bottom: 8px;
  width: 25px;
  height: 25px;
  border-top: 0;
  border-right: 0;
}

.resource-chart::after {
  right: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  transform: rotate(-45deg);
  border-left: 0;
  border-bottom: 0;
}

.resource-grid p {
  margin: 0;
  color: rgb(255 255 255 / 0.66);
  font-size: 0.9rem;
}

.real-grid {
  align-items: start;
}

.real-grid > div p:not(.eyebrow) {
  text-align: justify;
  text-align-last: left;
}

.portrait-card {
  height: 330px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8edf0;
  box-shadow: var(--shadow-soft);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

.real-section {
  background: var(--paper);
}

.timeline-copy {
  align-self: start;
}

.timeline-grid {
  margin-top: 60px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.timeline-copy h2 {
  font-size: 1.8rem;
}

.timeline-copy p {
  color: var(--navy);
}

.timeline-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.treatment-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.treatment-timeline li {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.treatment-timeline li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.treatment-timeline span {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
}

.treatment-timeline strong {
  color: var(--navy);
  font-size: 0.8rem;
}

.treatment-timeline small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.25;
}

.treatment-timeline img {
  width: 100%;
  aspect-ratio: 0.92 / 1;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  object-position: top left;
  background: #e8eef2;
}

.final-cta-section {
  position: relative;
  overflow: hidden;
  padding: 42px 0;
  background: linear-gradient(135deg, #001322, #001f3d);
  color: var(--white);
}

.final-cta-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.final-cta-grid h2 {
  max-width: 560px;
  color: var(--white);
  font-size: 1.72rem;
}

.final-cta-grid p {
  max-width: 420px;
  margin: 0 0 8px;
  color: rgb(255 255 255 / 0.72);
  line-height: 1.35;
}

.final-rx {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(31vw, 360px);
  opacity: 0.58;
  background-image:
    linear-gradient(90deg, rgb(0 19 34 / 0.15), rgb(0 19 34 / 0.8)),
    url("public/landing/px-endo-sessoes-anon.png");
  background-size: cover;
  background-position: right center;
}

.final-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--white);
}

.final-brand img {
  width: 118px;
  height: 68px;
  object-fit: contain;
}

.final-brand span {
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.final-brand small {
  margin-top: 6px;
  padding: 5px 12px;
  border: 1px solid rgb(0 200 215 / 0.35);
  border-radius: 4px;
  color: rgb(255 255 255 / 0.78);
}

.site-footer {
  padding: 34px 0 calc(22px + env(safe-area-inset-bottom));
  background: #000f1c;
  color: var(--white);
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-inner nav a {
  color: rgb(255 255 255 / 0.65);
  font-size: 0.84rem;
  font-weight: 700;
}

.footer-inner nav a:hover {
  color: var(--white);
}

@media (min-width: 640px) {
  .hero-actions,
  .final-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .button {
    min-width: 176px;
  }

  .resource-grid,
  .treatment-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clinic-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 840px) {
  .container {
    width: min(calc(100% - 56px), var(--container));
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 42px;
  }

  .mobile-menu {
    display: none;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .story-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  }

  .resource-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .real-grid {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  }

  .timeline-grid {
    grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1.58fr);
  }

  .treatment-timeline {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .final-cta-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-left: min(28vw, 330px);
  }

  .final-actions {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-inner nav {
    justify-content: flex-end;
  }
}

@media (min-width: 1120px) {
  .hero-section {
    padding: 84px 0 94px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .device-tablet {
    width: 280px;
  }

  .device-phone {
    right: 245px;
    width: 150px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100vw - 28px);
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .brand img {
    width: 54px;
    height: 32px;
  }

  .brand span {
    font-size: 0.6rem;
    letter-spacing: 0.24em;
  }

  .header-cta {
    display: none;
  }

  .hero-section,
  .story-section,
  .resource-section,
  .real-section,
  .final-cta-section {
    padding: 58px 0;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .hero-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    min-height: auto;
  }

  .device-laptop {
    padding: 10px;
    border-radius: 12px;
  }

  .device-tablet,
  .device-phone {
    position: static;
    width: 100%;
    max-width: none;
    aspect-ratio: 1.7 / 1;
    margin-top: 14px;
    border-radius: 12px;
  }

  .portrait-card {
    height: 280px;
  }

  .timeline-grid {
    gap: 22px;
    margin-top: 38px;
  }

  .timeline-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .treatment-timeline {
    gap: 12px;
  }

  .treatment-timeline li {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: left;
  }

  .treatment-timeline li::before {
    display: none;
  }

  .treatment-timeline span {
    margin-inline: 0;
  }

  .treatment-timeline img {
    aspect-ratio: 1.55 / 1;
  }

  .final-rx {
    position: relative;
    width: auto;
    height: 120px;
    margin: -58px -14px 28px;
  }

  .final-cta-grid {
    gap: 18px;
  }

  .final-brand {
    justify-items: start;
  }

  .final-actions .button,
  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
