:root {
  --ink: #0e1d1a;
  --forest: #153f35;
  --forest-dark: #0d211c;
  --forest-mid: #317360;
  --lime: #c9ee76;
  --paper: #efede5;
  --white: #fffef9;
  --muted: #65706c;
  --line: rgba(14, 29, 26, 0.15);
  --shadow: 0 26px 80px rgba(26, 48, 40, 0.11);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(201, 238, 118, 0.18), transparent 25rem),
    radial-gradient(circle at 92% 70%, rgba(49, 115, 96, 0.1), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(49, 115, 96, 0.4); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  transform: translateY(-180%);
  background: var(--lime);
  font-size: 0.82rem;
  font-weight: 750;
}
.skip-link:focus { transform: translateY(0); }

.book-nav, .book-footer {
  width: min(1460px, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin: 0 auto;
}
.book-nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.book-logo { width: clamp(205px, 18vw, 242px); display: block; line-height: 0; }
.book-logo img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.back-link { display: inline-flex; align-items: center; gap: 0.55rem; color: #43504c; font-size: 0.84rem; font-weight: 700; }
.back-link:hover { color: var(--forest-mid); }

.page-shell {
  width: min(1460px, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 6.5rem) 0 3rem;
}
.booking-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(285px, 0.36fr) minmax(0, 0.64fr);
  border: 1px solid rgba(21, 63, 53, 0.13);
  border-radius: 1.15rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.host-panel {
  position: relative;
  padding: clamp(2.1rem, 4vw, 4.5rem);
  color: #f8f7ef;
  background: linear-gradient(150deg, rgba(201, 238, 118, 0.12), transparent 40%), var(--forest-dark);
}
.host-panel::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -7rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(201, 238, 118, 0.22);
  border-radius: 50%;
}
.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.host-portrait {
  width: 76px;
  height: 76px;
  margin-bottom: 1.8rem;
  overflow: hidden;
  border: 2px solid rgba(201, 238, 118, 0.78);
  border-radius: 50%;
  background: #d7d5cd;
}
.host-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
h1 {
  max-width: 430px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.host-role { margin: 1.3rem 0 0; color: var(--lime); font-size: 0.86rem; font-weight: 700; line-height: 1.5; }
.host-copy { max-width: 430px; margin: 1rem 0 0; color: rgba(248, 247, 239, 0.7); font-size: 0.94rem; line-height: 1.7; }
.meeting-facts { position: relative; z-index: 1; margin: clamp(2.6rem, 5vw, 5rem) 0 0; padding: 0; list-style: none; }
.meeting-facts li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.fact-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 238, 118, 0.35);
  border-radius: 50%;
  color: var(--lime);
}
.meeting-facts strong, .meeting-facts small { display: block; }
.meeting-facts strong { font-size: 0.82rem; }
.meeting-facts small { margin-top: 0.26rem; color: rgba(248, 247, 239, 0.56); font-size: 0.72rem; }
.privacy-note { position: relative; z-index: 1; margin: 2rem 0 0; color: rgba(248, 247, 239, 0.46); font-size: 0.68rem; line-height: 1.5; }

.scheduler-panel { min-width: 0; padding: clamp(2rem, 4vw, 4.5rem); }
.scheduler-step + .scheduler-step { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.step-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 1rem; align-items: start; }
.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8eddd;
  color: var(--forest);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 800;
}
h2, h3, p { text-wrap: pretty; }
.step-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; }
.step-heading p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.step-heading .calendar-sync {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.55rem;
  color: var(--forest-mid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.64rem;
}
.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28b77b;
  box-shadow: 0 0 0 3px rgba(40, 183, 123, 0.13);
}

.duration-grid { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.duration-option {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  align-content: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  background: #fbfaf5;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.duration-option:hover { transform: translateY(-2px); border-color: rgba(49, 115, 96, 0.42); }
.duration-option.is-selected { border-color: var(--forest-mid); background: #edf4e3; box-shadow: inset 0 0 0 1px var(--forest-mid); }
.duration-option strong { overflow: hidden; font-size: 0.86rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.duration-option small { grid-column: 2; margin-top: 0.3rem; color: var(--muted); font-size: 0.66rem; line-height: 1.25; }
.duration-dot { width: 11px; height: 11px; margin-top: 0.15rem; border-radius: 50%; }
.dot-violet { background: #7c45ed; }
.dot-cyan { background: #12c7d2; }
.dot-yellow { background: #f3d82f; }
.dot-lime { background: #b8ea1c; }
.dot-green { background: #13d991; }
.dot-orange { background: #ff9b19; }

.time-heading { grid-template-columns: 36px minmax(0, 1fr) minmax(190px, auto); }
.timezone-control { display: grid; gap: 0.35rem; justify-self: end; }
.timezone-control > span, .form-grid label > span { color: #59645f; font-size: 0.67rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.timezone-control select {
  max-width: 235px;
  min-height: 42px;
  padding: 0 2.1rem 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--ink);
  background: var(--white);
  font-size: 0.76rem;
}
.availability-status { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 0.8rem; color: var(--muted); font-size: 0.82rem; }
.spinner { width: 20px; height: 20px; border: 2px solid #d8ddd5; border-top-color: var(--forest-mid); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview-notice, .notice { margin-top: 1.5rem; padding: 0.75rem 0.9rem; border: 1px solid #d6c56a; border-radius: 0.45rem; color: #5f541c; background: #fff8d7; font-size: 0.76rem; }
.sync-message {
  margin-top: 1.5rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(49, 115, 96, 0.24);
  border-radius: 0.45rem;
  color: var(--forest);
  background: #edf4e3;
  font-size: 0.76rem;
  line-height: 1.5;
}

.date-strip-wrap { margin-top: 1.8rem; display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: stretch; gap: 0.55rem; }
.date-strip { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(76px, 1fr)); gap: 0.55rem; }
.date-tab, .date-arrow, .slot-button, .secondary-button, .confirm-button { border: 0; cursor: pointer; }
.date-arrow { border: 1px solid var(--line); border-radius: 0.55rem; color: var(--forest); background: #f7f6f0; font-weight: 800; }
.date-arrow:disabled { opacity: 0.32; cursor: default; }
.date-tab { min-height: 68px; padding: 0.65rem 0.3rem; border: 1px solid var(--line); border-radius: 0.55rem; color: var(--ink); background: #fbfaf5; }
.date-tab span, .date-tab strong { display: block; }
.date-tab span { color: var(--muted); font-size: 0.62rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.date-tab strong { margin-top: 0.25rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 400; }
.date-tab.is-selected { border-color: var(--forest); color: #fff; background: var(--forest); }
.date-tab.is-selected span { color: var(--lime); }
.slot-groups { margin-top: 1.7rem; }
.slot-group { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.slot-group h3 { margin: 0.62rem 0 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.64rem; letter-spacing: 0.09em; text-transform: uppercase; }
.slot-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
.slot-button { min-height: 42px; padding: 0.65rem 0.45rem; border: 1px solid rgba(49, 115, 96, 0.32); border-radius: 0.45rem; color: var(--forest); background: #f4f8ee; font-size: 0.76rem; font-weight: 750; transition: background 150ms ease, color 150ms ease; }
.slot-button:hover, .slot-button.is-selected { color: #fff; background: var(--forest); }

.availability-error { margin-top: 1.8rem; padding: 1.5rem; border: 1px solid #e4c8be; border-radius: 0.65rem; background: #fff6f1; }
.availability-error h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 400; }
.availability-error p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.error-actions { margin-top: 1rem; display: flex; align-items: center; gap: 1rem; font-size: 0.78rem; font-weight: 750; }
.error-actions a { text-decoration: underline; text-underline-offset: 3px; }

.details-step { scroll-margin-top: 1.5rem; }
.form-grid { margin-top: 1.7rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid label { display: grid; gap: 0.45rem; }
.form-grid label > span small { font-size: inherit; font-weight: 500; text-transform: none; }
.form-wide { grid-column: 1 / -1; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 0.45rem; color: var(--ink); background: #fbfaf5; }
input { min-height: 46px; padding: 0 0.8rem; }
textarea { min-height: 104px; padding: 0.75rem 0.8rem; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--forest-mid); outline: 3px solid rgba(49, 115, 96, 0.14); }
.honey-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.submit-row { margin-top: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.submit-row p { margin: 0; color: #9d3b24; font-size: 0.76rem; line-height: 1.45; }
.confirm-button, .secondary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.75rem 1rem; border-radius: 0.45rem; font-size: 0.8rem; font-weight: 750; }
.confirm-button { color: #fff; background: var(--forest); }
.confirm-button:hover { background: #0d2c25; }
.confirm-button:disabled { opacity: 0.55; cursor: wait; }
.secondary-button { border: 1px solid var(--line); color: var(--forest); background: #f7f6f0; }

.confirmation { min-height: 620px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1rem, 4vw, 3rem); }
.confirmation-mark { width: 56px; height: 56px; margin-bottom: 1.6rem; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-size: 1.4rem; font-weight: 850; }
.confirmation .eyebrow { margin-bottom: 0.8rem; color: var(--forest-mid); }
.confirmation h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 400; letter-spacing: -0.05em; }
.confirmation > p:not(.eyebrow, .confirmation-note) { max-width: 600px; margin: 1rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.confirmation-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.confirmation-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.74rem; }

.book-footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; color: #69746f; font-size: 0.73rem; }
.book-footer div { display: flex; gap: 1.2rem; }
.book-footer a:hover { color: var(--forest); }
[hidden] { display: none !important; }

@media (max-width: 1050px) {
  .booking-card { grid-template-columns: minmax(245px, 0.32fr) minmax(0, 0.68fr); }
  .duration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .date-strip { grid-template-columns: repeat(4, minmax(70px, 1fr)); }
}
@media (max-width: 790px) {
  .book-nav, .book-footer, .page-shell { width: min(100% - 2rem, 680px); }
  .booking-card { grid-template-columns: 1fr; }
  .host-panel { padding: 2.2rem; }
  .host-panel::after { display: none; }
  h1 { max-width: 500px; font-size: clamp(2.7rem, 10vw, 4rem); }
  .host-copy { max-width: 560px; }
  .meeting-facts { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
  .meeting-facts li { grid-template-columns: 1fr; align-content: start; }
  .scheduler-panel { padding: 2.2rem; }
  .time-heading { grid-template-columns: 36px minmax(0, 1fr); }
  .timezone-control { grid-column: 2; justify-self: stretch; margin-top: 0.6rem; }
  .timezone-control select { max-width: none; }
}
@media (max-width: 560px) {
  .book-nav { min-height: 74px; }
  .book-logo { width: 175px; }
  .back-link { font-size: 0; }
  .back-link span { font-size: 1.2rem; }
  .page-shell { width: calc(100% - 1rem); padding-top: 0.6rem; }
  .booking-card { border-radius: 0.85rem; }
  .host-panel, .scheduler-panel { padding: 1.5rem; }
  .host-portrait { width: 64px; height: 64px; margin-bottom: 1.4rem; }
  .meeting-facts { grid-template-columns: 1fr; }
  .meeting-facts li { grid-template-columns: 36px 1fr; }
  .duration-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .duration-option { min-height: 84px; padding: 0.75rem; }
  .duration-option small { display: none; }
  .scheduler-step + .scheduler-step { margin-top: 2.3rem; padding-top: 2.3rem; }
  .step-heading { grid-template-columns: 30px minmax(0, 1fr); gap: 0.7rem; }
  .step-number { width: 28px; height: 28px; }
  .time-heading { grid-template-columns: 30px minmax(0, 1fr); }
  .date-strip-wrap { grid-template-columns: 30px minmax(0, 1fr) 30px; }
  .date-strip { grid-template-columns: repeat(3, minmax(64px, 1fr)); }
  .date-tab { min-height: 62px; }
  .slot-group { grid-template-columns: 1fr; gap: 0.6rem; }
  .slot-group h3 { margin-top: 0; }
  .slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .confirmation { min-height: 520px; padding: 0; }
  .book-footer { align-items: flex-start; padding: 1.6rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
