/* ============================================
   2nines Funnel: light, Apple-inspired
   System font stack, frosted glass cards,
   2nines green as the accent color.
   ============================================ */

:root {
  --green: #00bf63;
  --green-dark: #00a355;
  --green-deep: #0f2c1e;
  --mint: #c5f0d9;
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #4b514e;
  --muted: #86868b;
  --hairline: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* soft color blobs the glass sits over */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  width: 720px;
  height: 720px;
  top: -260px;
  left: -180px;
  background: radial-gradient(circle at center, rgba(0, 191, 99, 0.16), transparent 65%);
}

body::after {
  width: 820px;
  height: 820px;
  right: -260px;
  bottom: -320px;
  background: radial-gradient(circle at center, rgba(197, 240, 217, 0.55), transparent 65%);
}

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

.container {
  width: min(1000px, 100% - 40px);
  margin-inline: auto;
}

main { flex: 1; }

/* ---------- Top bar ---------- */

.nav {
  display: flex;
  justify-content: center;
  padding: 26px 0 4px;
}

.nav .logo-img { width: 100px; height: auto; }

/* ---------- Centered hero ---------- */

.hero {
  text-align: center;
  padding: 36px 0 22px;
}

.hero-step {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--green-deep);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 8px 24px rgba(22, 32, 27, 0.06);
  border-radius: 980px;
  padding: 9px 20px;
  margin-bottom: 26px;
}

h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 24ch;
  margin-inline: auto;
  color: var(--ink);
}

h1 .accent { color: var(--green); white-space: nowrap; }

.hero-sub {
  margin: 18px auto 0;
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.6vw, 1.19rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

.hero-sub strong { color: var(--ink); font-weight: 600; }

/* ---------- Glass card ---------- */

.card-zone { padding: 28px 0 72px; }

.card {
  max-width: 600px;
  margin-inline: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 70px rgba(22, 32, 27, 0.12);
}

.card-head {
  text-align: center;
  padding: 34px 32px 6px;
}

.card-head .card-step {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.card-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-body { padding: 24px 36px 36px; }

/* ---------- Fields ---------- */

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  font-family: var(--font);
  font-size: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: #a5aaa7; }

.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 191, 99, 0.15);
}

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 980px;
  padding: 16px 30px;
  margin-top: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 191, 99, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn:focus-visible {
  outline: 3px solid rgba(0, 191, 99, 0.45);
  outline-offset: 3px;
}

.form-fine {
  margin-top: 15px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 20px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--green-dark); }

/* ============================================
   Page 2: VSL + booking
   ============================================ */

.vsl-zone { padding: 24px 0 8px; }

.vsl-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 840px;
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(560px 320px at 50% 0%, rgba(0, 191, 99, 0.2), transparent 70%),
    #101713;
  border: 1px solid var(--glass-edge);
  box-shadow: 0 30px 70px rgba(22, 32, 27, 0.18);
  display: grid;
  place-items: center;
}

.vsl-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vsl-placeholder { text-align: center; padding: 24px; }

.vsl-play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.vsl-play::after {
  content: "";
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid #fff;
  margin-left: 5px;
}

.vsl-placeholder p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14.5px;
  max-width: 40ch;
  margin-inline: auto;
}

/* ---------- Booking calendar ---------- */

.calendar-card { max-width: 680px; }

.cal-body { min-height: 320px; }

.cal-state {
  min-height: 220px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  color: var(--ink);
}

.cal-state-sub {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 46ch;
}

.cal-state a { color: var(--green-dark); }

.cal-state code {
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  padding: 2px 6px;
}

/* month view + times panel */
.cal-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.month-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.month-nav {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 20px;
  line-height: 1;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  padding-bottom: 2px;
}

.month-nav:hover:not(:disabled) { border-color: rgba(0, 191, 99, 0.5); }

.month-nav:disabled {
  opacity: 0.3;
  cursor: default;
  color: var(--muted);
}

.month-nav:focus-visible {
  outline: 3px solid rgba(0, 191, 99, 0.45);
  outline-offset: 2px;
}

.month-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.month-dow span {
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
}

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

.day-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: default;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.day-cell.available {
  color: var(--green-dark);
  font-weight: 600;
  background: rgba(0, 191, 99, 0.09);
  cursor: pointer;
}

.day-cell.available:hover { background: rgba(0, 191, 99, 0.2); }

.day-cell.selected {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 191, 99, 0.35);
}

.day-cell.selected:hover { background: var(--green); }

.day-cell:focus-visible {
  outline: 3px solid rgba(0, 191, 99, 0.45);
  outline-offset: 1px;
}

/* times panel */
.slots-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  margin: 6px 0 12px;
  min-height: 22px;
}

.slots-list {
  display: grid;
  gap: 8px;
  max-height: 292px;
  overflow-y: auto;
  padding-right: 4px;
}

.slot {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 11px 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.slot:hover { border-color: rgba(0, 191, 99, 0.5); }

.slot.selected {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 191, 99, 0.3);
}

.slot:focus-visible {
  outline: 3px solid rgba(0, 191, 99, 0.45);
  outline-offset: 2px;
}

.cal-tz {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.cal-confirm {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

/* booked state */
.done-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  margin: 0 auto 14px;
  position: relative;
  box-shadow: 0 10px 26px rgba(0, 191, 99, 0.3);
}

.done-check::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 15px;
  width: 13px;
  height: 22px;
  border-right: 3.5px solid #fff;
  border-bottom: 3.5px solid #fff;
  transform: rotate(43deg);
}

/* ---------- What happens next ---------- */

.next-steps { padding: 22px 0 70px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 840px;
  margin-inline: auto;
}

.step-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(22, 32, 27, 0.07);
  padding: 22px 24px;
}

.step-card .step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  display: block;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.step-card p { font-size: 0.89rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .card { border-radius: 24px; }
  .card-body { padding: 20px 22px 30px; }
  .steps-grid { grid-template-columns: 1fr; }
  .cal-layout { grid-template-columns: 1fr; gap: 20px; }
  .slots-list {
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(3, 1fr);
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .segmented span { transition: none; }
}
