/* Matches the example funnel's measured styles. Phone sizes are the base;
   the min-width blocks scale up to the desktop layout. */

@font-face { font-family: "Vend Sans"; src: url("fonts/VendSans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  color-scheme: light; /* keeps the logo, form controls and calendar frame light in dark mode */
  --bg: #faf9f6;
  --elevated: #ffffff;
  --fg: #14130f;
  --muted: #6a6a62;
  --faint: #8a8a81;
  --line: rgba(20, 19, 15, 0.12);
  --ink: #101010;
  --paper: #f4f3ee;
  --ink-muted: #8f8f88;
  --ink-line: rgba(244, 243, 238, 0.2);
  --accent: #d6361f;
  --accent-dark: #ff6a55; /* the red on dark backgrounds, where #d6361f is too dim for small text */
  --accent-tint: rgba(214, 54, 31, 0.07);
  --green: #37ca37;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Vend Sans", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1; }
h1, h2, h3, p, fieldset, legend, figure { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }


/* Motion: load-in, and scroll-in where the browser supports it. Without
   support the content simply shows, so nothing depends on it. */
.rise { animation: rise 0.8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes step-in {
  from { opacity: 0; transform: translate3d(16px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 28%; }
  }
}

.w { width: 100%; max-width: 1170px; margin-inline: auto; padding-inline: 10px; }
.only-d { display: none; }
.nw { white-space: nowrap; }
@media (min-width: 768px) {
  .only-d { display: inline; }
  .only-m { display: none; }
}

/* Insert boxes */
.slot { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 12px; border: 1.5px dashed var(--faint); border-radius: 18px; background: var(--elevated); color: var(--muted); font-size: 16px; text-align: center; }

/* Buttons */
.btn-book:active, .btn-paper:active { transform: scale(0.98); }
@media (hover: hover) {
  .btn-book:hover, .btn-paper:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(214, 54, 31, 0.3); }
  .btn-book:hover .arrow, .btn-paper:hover .arrow { transform: translate(2px, -2px); }
  .opt:hover { border-color: var(--faint); }
  .survey-bar button:hover { filter: brightness(1.08); }
}
.arrow { flex: none; width: 16px; height: 16px; fill: currentColor; transition: transform 0.35s var(--ease); }
.btn-link { padding: 12px; border: 0; background: none; color: var(--fg); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Step 1 ---------- */
.banner { margin-top: 14px; padding: 7px 12px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.3; text-align: center; }
.headline { margin-top: 18px; font-weight: 600; letter-spacing: -0.02em; font-size: 30px; line-height: 1.22; text-align: center; }
.headline strong { font-weight: 600; }
.headline em { color: var(--accent); font-style: normal; font-weight: 600; }
.headline u { white-space: nowrap; font-weight: 600; text-underline-offset: 0.12em; text-decoration-thickness: 2px; }
.subhead { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.3; text-align: center; }

.survey { max-width: 550px; margin: 34px 20px 0; border: 1px solid var(--line); border-radius: 24px; background: var(--elevated); box-shadow: 0 24px 60px rgba(20, 19, 15, 0.1); overflow: hidden; scroll-margin-top: 16px; }
.survey-body { min-height: 200px; padding: 20px 20px 18px; }
.step { outline: none; animation: step-in 0.45s var(--ease) both; }
.survey-title { display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.q { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; line-height: 1.6; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 46px; margin-top: 8px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color 0.25s, background-color 0.25s; }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }

.field { margin-bottom: 14px; }
.field input, .field select {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  padding: 9px 18px;
  border: 1px solid var(--faint);
  border-radius: 14px;
  background: var(--elevated);
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* under 16px makes iOS zoom on focus */
}
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus { border-color: var(--fg); }
.field select {
  appearance: none;
  padding-right: 44px;
  background: var(--elevated) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314130f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;
  cursor: pointer;
}
.field select:invalid { color: var(--muted); }
.legal-line { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.legal-line a { color: var(--fg); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.check a { color: var(--fg); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--fg); border-radius: 14px; font-size: 13px; line-height: 1.4; }

.survey-bar { display: flex; align-items: stretch; min-height: 52px; background: var(--fg); color: var(--bg); }
.survey-bar button { min-width: 64px; padding: 0 22px; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; transition: filter 0.25s; cursor: pointer; }
.survey-bar button:disabled { opacity: 0.6; cursor: progress; }
#step-count { flex: 1; align-self: center; font-size: 14px; text-align: center; }
.notfit { padding: 40px 24px; text-align: center; }
.notfit h2 { font-weight: 600; letter-spacing: -0.02em; font-size: 26px; line-height: 1.15; outline: none; }
.notfit p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--ink); }

@media (min-width: 768px) {
  .banner { margin-top: 12px; padding: 6px 12px; font-size: 20px; }
  .headline { font-size: 48px; }
  .subhead { font-size: 20px; }
  .survey { margin: 50px auto 0; }
  .survey-body { min-height: 244px; padding: 41px 41px 30px; }
  .survey-title { margin-bottom: 26px; }
  #step-count { visibility: hidden; }
}

/* Footer on Step 1 */
.legal-rule { margin: 72px 0 24px; border: 0; border-top: 1px solid var(--line); }
.legal { padding-bottom: 28px; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.legal p + p { margin-top: 9px; }

/* ---------- Step 2 ---------- */
.book-head { padding-block: 4px 28px; background: var(--ink); color: var(--paper); }
.progress { height: 32px; margin-top: 12px; padding: 3px; border: 1px solid var(--ink-line); border-radius: 100px; }
.progress span { display: flex; align-items: center; justify-content: center; width: 90%; height: 100%; border-radius: 100px; background: linear-gradient(90deg, #b92a16, #d6361f, #b92a16); background-size: 200% 100%; color: #fff; font-size: 13px; font-weight: 600; animation: flow 5s linear infinite; }
.book-title { margin-top: 20px; font-weight: 600; letter-spacing: -0.02em; font-size: 26px; line-height: 1.2; text-align: center; }
.book-title b { color: var(--green); font-weight: 600; }
@keyframes flow { to { background-position: 200% 0; } }
.white-rule { height: 0; margin: 20px 0 0; border: 0; border-top: 1px solid var(--ink-line); }

.calendar { position: relative; margin: 10px 0 0; border-radius: 24px; background: var(--elevated); overflow: hidden; }
.calendar iframe { position: relative; display: block; width: 100%; min-height: 720px; border: 0; }
.calendar { box-shadow: 0 24px 60px rgba(20, 19, 15, 0.08); }
.calendar:has(iframe)::before {
  content: "Loading calendar...";
  position: absolute;
  inset: 72px 0 auto;
  color: var(--muted);
  text-align: center;
}
.slot-cal { aspect-ratio: auto; min-height: 480px; border: 0; }

.book-foot { padding-block: 40px 28px; color: var(--muted); font-size: 11px; line-height: 1.3; text-align: center; }
.book-foot p + p { margin-top: 12px; }

@media (min-width: 768px) {
  .book-head { padding-block: 20px 41px; }
  .book-title { font-size: 48px; }
  .white-rule { margin-top: 21px; }
  .book-foot { padding-block: 100px 40px; }
}

/* ---------- Step 3 ---------- */
.black { background: var(--ink); color: var(--paper); }
.alarm { padding: 8px 10px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; letter-spacing: -0.02em; font-size: 22px; line-height: 1.12; text-align: center; text-underline-offset: 0.12em; }
.alarm-wrap { padding: 18px 10px 0; }
.alarm-sub { margin-top: 10px; color: var(--ink-muted); font-size: 15px; line-height: 1.3; text-align: center; }
.main-video { max-width: 1037px; margin: 20px auto 0; padding-inline: 10px; }
.main-video .slot { box-shadow: 0 0 48px 4px rgba(214, 54, 31, 0.3); }
.confirm { max-width: 1037px; margin: 20px auto 0; padding-inline: 10px; font-size: 16px; font-weight: 500; line-height: 1.3; text-align: center; }
.confirm b { color: var(--accent-dark); font-weight: 600; }
.cal-row { margin-top: 10px; text-align: center; }
.btn-paper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cal-note { display: inline-block; margin: 0 10px; padding: 10px 14px; border: 1px solid var(--ink-line); border-radius: 14px; font-size: 13px; }
.thin-rule { max-width: 1017px; margin: 16px auto 0; border: 0; border-top: 1px solid var(--ink-line); }
.thin-wrap { padding-inline: 10px; }
.band { margin: 36px 10px 0; padding: 10px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; letter-spacing: -0.02em; font-size: 22px; line-height: 1.1; text-align: center; }
.recent { display: grid; gap: 30px; max-width: 1022px; margin: 30px auto 0; padding-inline: 20px; }
.recent h2 { margin-bottom: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 24px; line-height: 1.15; text-align: center; }
.dash-rule { margin: 50px 5px 0; border: 0; border-top: 1px solid var(--ink-line); }
.channel-title { display: block; margin-top: 20px; padding-inline: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 22px; line-height: 1.12; text-align: center; text-decoration: none; }
.channel-img { display: block; max-width: 800px; margin: 40px auto 0; padding-inline: 20px; }
.channel-img img { width: 100%; border-radius: 24px; }
.thanks-foot { padding: 120px 20px 40px; color: var(--ink-muted); font-size: 11px; line-height: 1.3; text-align: center; }
.thanks-foot p + p { margin-top: 12px; }

@media (min-width: 768px) {
  .alarm { padding: 8px 12px; font-size: 32px; }
  .alarm-sub { font-size: 20px; }
  .main-video { margin-top: 12px; padding-inline: 0; }
  .confirm { font-size: 20px; }
  .band { margin-top: 56px; font-size: 28px; padding: 20px; }
  .recent { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-inline: 10px; }
  .recent > div { display: flex; flex-direction: column; padding: 0 10px; }
  .recent h2 { flex: 1; font-size: 30px; }
  .dash-rule { margin-top: 66px; }
  .channel-title { font-size: 28px; }
  .thanks-foot { font-size: 14px; padding-top: 130px; }
}

/* ---------- Testimonial ---------- */
.quote { margin-top: 12px; padding: 14px 12px; border-radius: 28px; background: var(--ink); color: var(--paper); font-size: 18px; font-weight: 400; line-height: 1.3; text-align: center; }
.quote strong { font-weight: 500; }
.testi-rule { height: 0; margin: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
.testi-video { max-width: 377px; margin: 40px auto 0; padding-inline: 10px; }
.btn-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 20px);
  max-width: 488px;
  min-height: 52px;
  margin: 20px auto 40px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(214, 54, 31, 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.logo-band { padding: 20px 10px; background: var(--ink); }
.logo-box { display: grid; place-items: center; max-width: 819px; min-height: 180px; margin-inline: auto; padding: 10px; border: 1px solid var(--ink-line); border-radius: 24px; }
.logo-box img { width: 220px; }
.testi-foot { padding: 28px 10px; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.testi-foot p + p { margin-top: 9px; }

@media (min-width: 768px) {
  .quote { padding: 30px 12px; font-size: 24px; }
  .testi-video { margin-top: 50px; }
  .btn-book { margin-top: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
