:root {
  --ink: #243126;
  --muted: #65736a;
  --cream: #fff8ed;
  --sage: #dfeadc;
  --mint: #eff7ed;
  --teal: #1d6f65;
  --teal-dark: #125149;
  --coral: #e56f52;
  --gold: #f3c56d;
  --line: #d9e2d7;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(36, 49, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 248, 237, 0.94);
  border-bottom: 1px solid rgba(36, 49, 38, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a,
.link-button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.share-button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--mint);
  font-weight: 800;
}

.share-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(420px, calc(100vw - 36px));
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.share-panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.share-panel input {
  background: var(--cream);
}

.share-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-close {
  color: var(--teal-dark);
  border-color: var(--line);
  background: var(--mint);
}

.main-nav a:hover,
.link-button:hover {
  color: var(--teal-dark);
}

.menu-button {
  display: none;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video img {
  position: absolute;
  inset: -4%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroVideoDrift 16s ease-in-out infinite alternate;
  transform: scale(1.04);
  transform-origin: 62% 50%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 34, 28, 0.78), rgba(18, 34, 28, 0.36), rgba(18, 34, 28, 0.08));
}

@keyframes heroVideoDrift {
  0% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.11) translate3d(-2.5%, -1.5%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video img {
    animation: none;
  }
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 90px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.6;
}

.hero-actions,
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  color: var(--white);
  background: var(--teal);
}

.primary:hover {
  background: var(--teal-dark);
}

.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: clamp(58px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.pale {
  background: var(--mint);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow),
.split-section > div > p {
  color: var(--muted);
  line-height: 1.7;
}

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

.pricing-heading {
  margin-top: 48px;
}

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

.provider-steps {
  grid-template-columns: 1fr;
  margin: 28px 0;
}

.feature-card,
.form-card,
.calendar-box,
.record-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 24px;
}

.feature-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--teal);
  font-weight: 900;
}

.feature-card p,
.contact-list,
.record-card p {
  color: var(--muted);
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 70px);
}

.form-card {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
}

.form-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.form-row label {
  flex: 1 1 180px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfffa;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(29, 111, 101, 0.2);
  border-color: var(--teal);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.form-message.error {
  color: #b54530;
}

.calendar-box {
  max-width: 420px;
  margin-top: 28px;
  padding: 20px;
}

.calendar-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.calendar-month {
  text-align: center;
  font-weight: 900;
}

.calendar-nav {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--teal-dark);
  cursor: pointer;
  background: var(--mint);
  font-weight: 800;
}

.calendar-nav:hover,
.calendar-nav:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(29, 111, 101, 0.18);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  text-align: center;
}

.calendar-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.calendar-grid .calendar-empty {
  aspect-ratio: 1;
}

.calendar-grid button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  background: var(--cream);
}

.calendar-grid button:hover,
.calendar-grid button:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(29, 111, 101, 0.18);
}

.calendar-grid .active {
  color: var(--white);
  background: var(--teal);
}

.calendar-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.selected-date,
.field-note {
  margin: 12px 0 0;
  color: var(--teal-dark);
  font-size: 0.94rem;
  font-weight: 800;
}

.field-note {
  margin-top: -6px;
  color: var(--muted);
  font-weight: 700;
}

.contact-list {
  padding-left: 18px;
}

.admin-note {
  display: inline-block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.license-note {
  margin: 24px 0;
}

.license-note p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
}

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

.record-list {
  display: grid;
  gap: 12px;
}

.record-card {
  padding: 16px;
}

.record-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.record-card strong {
  color: var(--ink);
}

.status {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
}

.record-card select {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--teal-dark);
}

.site-footer p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 65px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    margin: 0 auto;
    padding-top: 120px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(18, 34, 28, 0.2), rgba(18, 34, 28, 0.82));
  }

  .split-section,
  .feature-grid,
  .admin-columns,
  .admin-stats {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand span:last-child {
    max-width: 150px;
  }

  .hero {
    min-height: 700px;
  }

  h1 {
    font-size: 3rem;
  }

  .button {
    width: 100%;
  }
}
