:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #536171;
  --line: #d9e1e8;
  --paper: #f6f8fb;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --warm: #f59e0b;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  width: min(1120px, calc(100vw - 48px));
  margin: 20px auto 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.site-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px;
}

.hero {
  min-height: 82vh;
  display: grid;
  align-items: center;
  padding: 72px 24px 48px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(23, 32, 42, 0.86)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero__content {
  width: min(920px, 100%);
  margin: 0 auto;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 18px;
  color: #bce7e2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.subheadline {
  max-width: 690px;
  color: #e8f4f2;
  font-size: 1.2rem;
  line-height: 1.6;
}

.call-panel {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin: 24px 0 16px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.call-panel span {
  color: #cdece8;
  font-weight: 700;
}

.call-panel a {
  color: var(--white);
  font-size: clamp(1.6rem, 5vw, 2.45rem);
  font-weight: 800;
  text-decoration: none;
}

.disclaimer {
  color: #fde9bb;
  font-weight: 700;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
}

.btn--primary {
  color: var(--white);
  background: #1d4ed8;
}

.btn--secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.eyebrow-dark {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section {
  padding: 64px 24px;
  background: var(--white);
}

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

.section--calendar {
  background: #edf6f5;
}

.section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0;
}

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

.steps article,
.split > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.steps span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  font-weight: 800;
}

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

.steps p,
li {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.calendar-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 36px;
  align-items: center;
}

.calendar-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.calendar-card {
  border: 1px solid #b8d7d3;
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.12);
}

.calendar-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.calendar-card__header span {
  color: var(--accent-strong);
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.calendar-grid span,
.calendar-grid b {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  font-size: 0.9rem;
}

.calendar-grid span {
  color: var(--muted);
  font-weight: 700;
}

.calendar-grid b {
  background: var(--paper);
  color: var(--ink);
}

.calendar-grid .is-today {
  color: var(--white);
  background: var(--accent);
}

.slot-list {
  display: grid;
  gap: 10px;
}

.slot-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.slot-list span {
  color: var(--muted);
  font-weight: 700;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 10px;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
}

.chat-toggle {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(23, 32, 42, 0.22);
  cursor: pointer;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  display: none;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(23, 32, 42, 0.24);
}

.chat-widget.is-open .chat-panel {
  display: block;
}

.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: var(--white);
  background: var(--ink);
}

.chat-panel__header div {
  display: grid;
  gap: 3px;
}

.chat-panel__header span {
  color: #cdece8;
  font-size: 0.86rem;
}

.chat-panel__header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chat-messages {
  display: grid;
  max-height: 390px;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
  background: #f8fbfb;
}

.chat-message {
  max-width: 86%;
  padding: 11px 12px;
  border-radius: 8px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-message--assistant {
  justify-self: start;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.chat-message--user {
  justify-self: end;
  color: var(--white);
  background: var(--accent);
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-options button {
  border: 1px solid #b8d7d3;
  border-radius: 8px;
  background: var(--white);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 800;
  padding: 9px 11px;
  cursor: pointer;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chat-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  padding: 12px;
}

.chat-form button {
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  padding: 0 14px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-header {
    width: min(1120px, calc(100vw - 24px));
    margin-top: 14px;
  }

  .site-brand span {
    display: none;
  }

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

  .steps,
  .split,
  .calendar-feature {
    grid-template-columns: 1fr;
  }

  .calendar-feature {
    gap: 24px;
  }

  .chat-widget {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .chat-toggle {
    width: 100%;
  }

  .chat-panel {
    right: 0;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
