/* ---------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------- */
:root {
  --bg: #f4f3ef;
  --text: #111111;
  --muted: #6b6b66;
  --line: #d9d7d0;
  --cta: #111111;
  --cta-hover: #2a2a2a;
  --accent: #1f4d3a;
  --frame-bg: #ebe9e3;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: 16px;
  --section: 72px;
  --max: 1120px;
  --text-max: 640px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fixed CTA bar needs room at the bottom on mobile */
body.has-cta-bar { padding-bottom: 88px; }

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 400; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.center { text-align: center; }

.muted { color: var(--muted); }

.small { font-size: 14px; }

.label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.label .num {
  display: inline-block;
  padding: 2px 7px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
}

.serif { font-family: var(--serif); }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  background: var(--cta);
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 120ms ease;
}

.btn:hover { background: var(--cta-hover); }

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.btn.small { min-height: 44px; padding: 0 18px; font-size: 16px; }

.btn.block { width: 100%; }

/* ---------------------------------------------------------------
   Top bar
   --------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 243, 239, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.hero h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin: 0 auto;
}

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

.hero .sub {
  max-width: var(--text-max);
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------------------------------------------------------------
   Video block
   --------------------------------------------------------------- */
.videos { padding-bottom: 56px; }

.video-main {
  max-width: 960px;
  margin: 0 auto;
}

.proof { margin-top: 48px; }

.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--frame-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

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

/* Placeholder state: dashed outline + play icon + caption.
   Remove the .ph class (or let main.js swap in an embed) when real video is in. */
.frame.ph {
  border: 1px dashed #b9b6ad;
  box-shadow: none;
}

.frame.ph .ph-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text);
  display: grid;
  place-items: center;
}

.play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.testimonials-title {
  margin: 4px 0 12px;
}

/* Mobile: the three testimonials stack vertically, full width,
   so the visitor scrolls down through them like a ladder. */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.tcard {
}

.tcard .frame { box-shadow: 0 6px 18px rgba(17, 17, 17, 0.06); }

.tcard .play { width: 40px; height: 40px; }
.tcard .play::after { border-width: 6px 0 6px 10px; margin-left: 3px; }

.tcard .who {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.tcard .who strong { font-weight: 500; }

.tcard .who span { display: block; color: var(--muted); }

.step2 {
  margin-top: 28px;
  text-align: center;
}

.step2 .btn { margin-top: 4px; }

/* ---------------------------------------------------------------
   Guarantee strip
   --------------------------------------------------------------- */
.guarantee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
  text-align: center;
}

.guarantee h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.25;
  max-width: 28ch;
  margin: 0 auto 14px;
}

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */
.section { padding: var(--section) 0; }

.section h2 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section .lead {
  color: var(--muted);
  max-width: var(--text-max);
  margin-bottom: 32px;
}

/* ---------------------------------------------------------------
   Application form
   --------------------------------------------------------------- */
.apply { border-bottom: 1px solid var(--line); }

.form {
  max-width: 560px;
}

.field { margin-bottom: 28px; }

.field > label,
.field > .q {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.input:focus {
  outline: 2px solid var(--text);
  outline-offset: 1px;
  border-color: var(--text);
}

.choices { display: grid; gap: 8px; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--text);
}

.choice:has(input:checked) {
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.row2 { display: grid; gap: 16px; }

.form .btn { margin-top: 4px; }

.form-note { margin-top: 14px; }

/* Calendar panel, revealed after submit */
.calendar {
  display: none;
  opacity: 0;
  transition: opacity 240ms ease;
}

.calendar.show { display: block; }
.calendar.show.in { opacity: 1; }

.calendar .frame-cal {
  min-height: 700px;
  background: #fff;
  border: 1px dashed #b9b6ad;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.calendar .frame-cal.live {
  border: 1px solid var(--line);
  display: block;
  padding: 0;
  overflow: hidden;
}

/* Cal.com's embed script sizes the iframe to its content; this is just a floor. */
.calendar .frame-cal iframe { width: 100%; min-height: 640px; border: 0; }

/* ---------------------------------------------------------------
   About
   --------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: cover;
  object-position: center top;
  background: var(--frame-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.about .quote {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  margin: 24px 0 0;
}

/* ---------------------------------------------------------------
   Final CTA
   --------------------------------------------------------------- */
.final {
  border-top: 1px solid var(--line);
  text-align: center;
}

.final h2 { max-width: 20ch; margin: 0 auto 24px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.footer .wordmark { font-size: 20px; color: var(--text); }

.footer .links {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .links a { text-decoration: none; }
.footer .links a:hover { text-decoration: underline; }

.footer .disclaimer { max-width: 720px; }

/* ---------------------------------------------------------------
   Fixed CTA bar (mobile only)
   --------------------------------------------------------------- */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(244, 243, 239, 0.96);
  border-top: 1px solid var(--line);
  transition: transform 200ms ease;
}

.cta-bar.hidden { transform: translateY(110%); }

/* ---------------------------------------------------------------
   Secondary pages (thanks, legal)
   --------------------------------------------------------------- */
.page { padding: 56px 0 var(--section); }

.page h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 32px;
}

.page .prose { max-width: var(--text-max); }

.page .lead {
  color: var(--muted);
  max-width: var(--text-max);
  margin-bottom: 32px;
}

.page .prose h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 40px 0 10px;
}

.page .prose ol { padding-left: 20px; }

.page .prose li { margin-bottom: 8px; }

.todo {
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff3c4;
  border: 1px solid #e8d48a;
  border-radius: 2px;
  color: #6b5600;
}

.tgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

/* ---------------------------------------------------------------
   Desktop: the only breakpoint
   --------------------------------------------------------------- */
@media (min-width: 900px) {
  :root {
    --gutter: 32px;
    --section: 120px;
  }

  body.has-cta-bar { padding-bottom: 0; }

  .cta-bar { display: none; }

  .hero { padding: 48px 0 28px; }

  /* One line on desktop so the video sits higher */
  .hero h1 {
    font-size: clamp(36px, 3.1vw, 46px);
    line-height: 1.1;
    max-width: none;
    white-space: nowrap;
  }

  .hero .sub { font-size: 19px; }

  /* Testimonials: a row of three under the pitch video */
  .proof { margin-top: 72px; }

  .proof .testimonials-title { display: block; text-align: center; }

  .testimonials {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .photo { max-width: 320px; }

  .step2 { margin-top: 36px; }

  .guarantee { padding: 72px 0; }

  .guarantee h2 { font-size: 36px; }

  .section h2 { font-size: 44px; }

  .row2 { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 320px 1fr; gap: 56px; }

  .about .quote { font-size: 30px; }

  .footer .links { flex-direction: row; gap: 24px; }

  .tgrid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

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