:root {
  --ink: #0b0d12;
  --ink-2: #3b4150;
  --muted: #6b7180;
  --line: #e7e8ec;
  --bg: #ffffff;
  --accent: #1a3a8f;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 28px 0 14px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.5;
}

h1 {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(24px, 6.6vw, 52px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

h1 .accent { color: var(--accent); }

.subline {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.subline::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ---------- Calendar ---------- */
.booking { padding-top: 6px; padding-bottom: 8px; }

.cal-frame {
  position: relative;
  /* Full-bleed on phones: Calendly's mobile layout has its own side padding. */
  margin: 0 -20px;
  max-width: 1120px;
  /* Reserved height: prevents layout shift. Calendly reports its real height
     via calendly.page_height and the script adjusts this. */
  height: 1080px;
}

.calendly-inline-widget {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 320px;
}

.calendly-inline-widget iframe { display: block; }

.cal-loading {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.is-loaded .cal-loading { display: none; }

.cal-fallback {
  margin: 4px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.cal-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}

.call-note {
  max-width: 600px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.footer .brand {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); text-decoration: underline; }

.disclaimer {
  max-width: 560px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Content pages (confirmed / legal) ---------- */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 20px 0;
}

.page h1 { max-width: none; text-align: left; font-size: clamp(30px, 6vw, 44px); }

.page .lede { margin: 16px 0 0; font-size: 18px; color: var(--ink-2); }

.page h2 {
  margin: 36px 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.page p, .page li { color: var(--ink-2); }

.review-flag {
  margin: 0 0 28px;
  padding: 12px 14px;
  border: 1px solid #f0d58a;
  background: #fffaeb;
  border-radius: 8px;
  font-size: 14px;
  color: #6b4e00;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* Confirmed */
.confirmed { text-align: center; }
.confirmed h1 { text-align: center; }
.check {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.steps {
  counter-reset: step;
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  max-width: 520px;
  text-align: left;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 0 18px 52px;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.steps strong { display: block; color: var(--ink); font-size: 16px; }
.steps span { font-size: 15px; }

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 64px 0 28px; }
  .eyebrow { font-size: 12px; margin-bottom: 20px; }
  .subline { margin-top: 18px; font-size: 15px; }
  .cal-frame { height: 1000px; margin: 0 auto; }
  .call-note { font-size: 18px; }
}

@media (min-width: 1100px) {
  .hero { padding: 80px 0 0; }
  h1 { max-width: 24ch; }
  /* Calendly pads the top of its own card; pull it up so the gap matches the design. */
  .cal-frame { height: 700px; margin-top: -24px; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}
