:root {
  --navy: #071526;
  --navy-2: #10233b;
  --blue: #0b70c9;
  --blue-soft: #eaf5ff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --green: #28a66a;
  --yellow: #d69b18;
  --paper: #f6f8fb;
  --white: #ffffff;
  --muted: #5f6f83;
  --line: rgba(7, 21, 38, 0.12);
  --shadow: 0 20px 52px rgba(7, 21, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 108px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-inner {
    animation: fade-up 720ms ease-out both;
  }

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

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(7, 21, 38, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease;
}

.site-header.has-shadow {
  box-shadow: 0 14px 34px rgba(7, 21, 38, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
}

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

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: #34445a;
  font-size: 0.95rem;
  font-weight: 800;
}

.desktop-nav a,
.login-link,
.mobile-menu a,
.site-footer a {
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.desktop-nav a:hover,
.login-link:hover,
.site-footer a:hover {
  color: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-link {
  color: #34445a;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.template-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.primary-button {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--orange-dark);
}

.primary-button.small {
  min-height: 42px;
  padding: 10px 16px;
}

.primary-button.full {
  width: 100%;
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.secondary-button:hover {
  transform: translateY(-2px);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 690px;
  align-items: flex-end;
  padding: 164px 24px 112px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(7, 21, 38, 0.96) 0%, rgba(7, 21, 38, 0.82) 45%, rgba(7, 21, 38, 0.32) 100%);
}

.hero::after {
  display: none;
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 900ms ease,
    transform 5200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 4.7rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-indicators button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.hero-indicators button.is-active {
  border-color: rgba(249, 115, 22, 0.72);
  background: rgba(249, 115, 22, 0.24);
  color: var(--white);
}

.section {
  padding: 92px 24px;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.trust-strip {
  position: relative;
  z-index: 5;
  padding: 0 24px 54px;
  margin-top: -62px;
}

.trust-grid {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-grid div {
  min-height: 132px;
  padding: 24px;
  background: var(--white);
}

.trust-grid strong {
  display: block;
  color: var(--navy);
  font-size: 1.12rem;
}

.trust-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.feature-copy h2,
.pricing-grid h2,
.lead-grid h2 {
  margin: 0;
  color: var(--navy);
  font-size: 3.15rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:last-child,
.feature-copy p,
.pricing-grid p,
.lead-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.steps-grid article,
.template-card,
.price-card,
.lead-form,
.dashboard-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(7, 21, 38, 0.08);
}

.steps-grid article {
  min-height: 280px;
  padding: 28px;
}

.step-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 950;
}

.step-icon.orange {
  background: #fff1e8;
  color: var(--orange);
}

.step-icon.green {
  background: #eaf8f1;
  color: var(--green);
}

.steps-grid h3 {
  margin: 30px 0 10px;
  font-size: 1.32rem;
}

.steps-grid p {
  margin: 0;
  color: var(--muted);
}

.feature-band {
  background: var(--white);
}

.feature-grid,
.pricing-grid,
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 58px;
  align-items: center;
}

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

.feature-copy {
  display: grid;
  gap: 18px;
}

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

.feature-list li {
  position: relative;
  padding-left: 34px;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  content: "✓";
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 20px;
  text-align: center;
}

.feature-list strong {
  display: block;
  font-size: 1.06rem;
}

.feature-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.dashboard-preview {
  padding: 22px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.preview-header strong,
.preview-header span {
  display: block;
}

.preview-header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.94rem;
}

.preview-header button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
}

.appointment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.appointment-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(7, 21, 38, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.appointment-row time {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 950;
}

.appointment-row strong,
.appointment-row span {
  display: block;
}

.appointment-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.appointment-row em {
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 950;
}

.appointment-row.confirmed em {
  background: #eaf8f1;
  color: var(--green);
}

.appointment-row.pending em {
  background: #fff8df;
  color: var(--yellow);
}

.appointment-row.free {
  opacity: 0.72;
}

.appointment-row.free em {
  background: #eef2f6;
  color: #627286;
}

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

.template-card {
  overflow: hidden;
}

.template-card.is-selected {
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 22px 56px rgba(249, 115, 22, 0.18);
}

.template-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  transition: transform 260ms ease;
}

.template-card:hover img {
  transform: scale(1.04);
}

.template-card div {
  padding: 22px;
}

.template-card span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.template-card h3 {
  margin: 8px 0 8px;
  font-size: 1.34rem;
}

.template-card p {
  min-height: 72px;
  margin: 0 0 20px;
  color: var(--muted);
}

.template-link {
  width: 100%;
  min-height: 44px;
  border-color: var(--blue);
  background: var(--white);
  color: var(--blue);
}

.template-link:hover {
  background: var(--blue);
  color: var(--white);
}

.template-card.is-selected .template-link {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.pricing-section {
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), transparent 38%),
    var(--navy);
  color: var(--white);
}

.pricing-section .eyebrow,
.pricing-section h2,
.pricing-section p {
  color: var(--white);
}

.pricing-section p {
  color: rgba(255, 255, 255, 0.74);
}

.price-card {
  padding: 30px;
  background: #0d1d32;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.plan-label {
  color: #79c9ff;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 18px;
}

.price-line small,
.price-line span {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 850;
}

.price-line strong {
  color: var(--orange);
  font-size: 4.5rem;
  line-height: 0.9;
}

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

.price-card li {
  position: relative;
  padding-left: 25px;
  color: rgba(255, 255, 255, 0.82);
}

.price-card li::before {
  position: absolute;
  left: 0;
  color: #79c9ff;
  content: "✓";
  font-weight: 950;
}

.price-card .primary-button {
  margin-top: 26px;
}

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

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #304158;
  font-size: 0.94rem;
  font-weight: 900;
}

.lead-form input,
.lead-form select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
  color: var(--navy);
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(11, 112, 201, 0.16);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 850;
}

.site-footer {
  padding: 52px 24px 26px;
  background: #06111f;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-grid img {
  width: 154px;
  border-radius: 6px;
  background: var(--white);
  padding: 6px;
}

.footer-grid p {
  max-width: 460px;
  margin: 18px 0 0;
}

.footer-grid nav {
  display: grid;
  gap: 12px;
  min-width: 180px;
}

.footer-grid a {
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 42px;
  padding-top: 22px;
  font-size: 0.92rem;
}

.footer-bottom a {
  color: #79c9ff;
  font-weight: 900;
}

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

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .mobile-menu {
    position: absolute;
    inset: 84px 16px auto;
    display: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .mobile-menu.is-open {
    display: grid;
  }

  .mobile-menu a {
    border-bottom: 1px solid rgba(7, 21, 38, 0.08);
    padding: 14px 16px;
    color: var(--navy);
    font-weight: 850;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
    background: var(--orange);
    color: var(--white);
  }

  .hero {
    min-height: 650px;
    padding-top: 142px;
    padding-bottom: 96px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero p:not(.eyebrow) {
    font-size: 1.08rem;
  }

  .trust-grid,
  .steps-grid,
  .templates-grid,
  .feature-grid,
  .pricing-grid,
  .lead-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .feature-copy h2,
  .pricing-grid h2,
  .lead-grid h2 {
    font-size: 2.45rem;
  }

  .template-card p {
    min-height: auto;
  }

  .footer-grid nav {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 76px;
    padding: 10px 16px;
  }

  .brand img {
    width: 134px;
  }

  .mobile-menu {
    inset: 76px 12px auto;
  }

  .hero {
    min-height: 620px;
    padding: 128px 18px 88px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(7, 21, 38, 0.97) 0%, rgba(7, 21, 38, 0.82) 58%, rgba(7, 21, 38, 0.48) 100%);
  }

  .hero h1 {
    font-size: 2.42rem;
    line-height: 1.04;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .section {
    padding: 70px 18px;
  }

  .trust-strip {
    margin-top: -42px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-heading h2,
  .feature-copy h2,
  .pricing-grid h2,
  .lead-grid h2 {
    font-size: 2rem;
  }

  .appointment-row {
    grid-template-columns: 58px 1fr;
  }

  .appointment-row em {
    grid-column: 2;
    width: max-content;
  }

  .price-line strong {
    font-size: 3.45rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
