/* ============================================================
   LC Application Funnel — Agency-1 (LC Apple-Minimal) tokens
   Light mode. Grey option cards, dark ink type, violet accent.
   ============================================================ */

:root {
  --background: 0 0% 100%;          /* white canvas — grey cards sit on it */
  --foreground: 240 4% 11%;         /* ink ~#1B1B1E */
  --card: 240 8% 94%;               /* grey option cards (secondary token) */
  --card-hover: 240 8% 91%;
  --primary: 262 83% 58%;           /* LC violet #7C3AED — THE accent */
  --primary-foreground: 0 0% 100%;
  --muted-foreground: 240 4% 38%;   /* ~#5D5D65, 6.5:1 on white */
  --border: 240 6% 89%;
  --surface: 240 10% 97%;           /* Apple gray sub-regions */
  --ring: 262 83% 58%;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

/* ---------- a11y ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: hsl(var(--primary)); color: #fff;
  padding: 10px 16px; border-radius: 9999px; z-index: 50;
}
.skip-link:focus { left: 16px; top: 12px; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

/* ---------- progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: hsl(var(--surface)); z-index: 40;
}
.progress__bar {
  height: 100%; width: 0%;
  background: hsl(var(--primary));
  border-radius: 0 9999px 9999px 0;
  transition: width 300ms ease;
}

/* ---------- header ---------- */
.site-header {
  display: flex; justify-content: center;
  padding: 28px 20px 0;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: hsl(var(--foreground));
  min-height: 44px;
}
.wordmark__logo { display: block; width: 34px; height: 26px; object-fit: contain; }
.wordmark__text {
  font-weight: 800; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.wordmark__dot { color: hsl(var(--primary)); }

/* ---------- shell / steps ---------- */
.shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 20px 48px;
  flex: 1;
}

.step[hidden] { display: none; }

.step.is-active { animation: step-in 260ms ease both; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question {
  text-align: center;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 18px 0 8px;
}
.question strong { font-weight: 700; }

.subnote {
  text-align: center;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  max-width: 46ch;
  margin: 0 auto 8px;
}

/* ---------- option cards ---------- */
.options {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 28px;
}

.option {
  appearance: none; border: 0;
  display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 64px;
  text-align: left;
  padding: 18px 20px;
  background: hsl(var(--card));
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 1px 2px hsl(240 5% 10% / .04), 0 4px 12px hsl(240 5% 10% / .05);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  touch-action: manipulation;
}

@media (hover: hover) {
  .option:hover {
    background: hsl(var(--card-hover));
    transform: translateY(-2px);
    box-shadow: 0 1px 2px hsl(240 5% 10% / .04), 0 12px 32px hsl(240 5% 10% / .08);
  }
}

.option:active { transform: scale(0.98); }

.option.is-selected {
  background: hsl(240 7% 86%);
  transform: none;
}

.option__num {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 9999px;
  background: hsl(var(--primary) / .1);
  color: hsl(var(--primary));
  font-size: 14px; font-weight: 600;
  transition: background-color 200ms ease, color 200ms ease;
}

.option__label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.option__meta {
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-left: 6px;
}

/* ---------- contact form ---------- */
.contact-form {
  margin-top: 28px;
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: hsl(var(--foreground));
  transition: border-color 150ms ease;
}
.field::placeholder { color: hsl(var(--muted-foreground) / .7); }
.field:focus-visible {
  border-color: hsl(var(--ring));
  box-shadow: none;
}
.field.is-invalid { border-color: hsl(0 72% 51%); }

.field-error {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(0 72% 45%);
  text-align: center;
}

.btn-block { width: 100%; }
.btn-block[disabled] { opacity: .6; cursor: default; }

/* ---------- loading ---------- */
.loading-wrap { text-align: center; padding-top: 64px; }

.spinner {
  width: 44px; height: 44px;
  margin: 0 auto 8px;
  border-radius: 9999px;
  border: 3px solid hsl(var(--primary) / .15);
  border-top-color: hsl(var(--primary));
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; border-top-color: hsl(var(--primary) / .15); }
}

/* ---------- booking ---------- */
.calendar-card {
  margin-top: 24px;
  background: hsl(var(--surface));
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 1px 2px hsl(240 5% 10% / .04), 0 12px 32px hsl(240 5% 10% / .08);
}

.calendar-embed {
  min-height: 700px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.calendar-embed iframe { border-radius: 18px; }

.step--booking { max-width: 100%; }

.cal-fallback {
  text-align: center;
  font-size: 13px;
  margin: 14px 0 0;
}
.cal-fallback a {
  color: hsl(var(--muted-foreground));
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}
.cal-fallback a:hover { color: hsl(var(--foreground)); }

/* ---------- congrats page ---------- */
.congrats-hero { text-align: center; padding-top: 8px; }

.check-circle {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin: 20px auto 0;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: #fff;
}

.section-title {
  text-align: center;
  font-size: clamp(21px, 4.5vw, 26px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 8px;
}
.section-title strong { font-weight: 700; }

.series { padding-top: 48px; text-align: center; }

.video-card {
  margin-top: 20px;
  background: hsl(var(--card));
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 1px 2px hsl(240 5% 10% / .04), 0 4px 12px hsl(240 5% 10% / .05);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: hsl(240 6% 89%);
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

.btn-primary {
  appearance: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  margin-top: 20px;
  padding: 14px 32px;
  border-radius: 16px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 200ms ease;
  touch-action: manipulation;
}
.btn-primary:hover { background: hsl(var(--primary) / .9); }
.btn-primary:active { transform: scale(0.98); }

.faq { padding-top: 48px; }
.faq .section-title { margin-bottom: 20px; }

.faq-item {
  background: hsl(var(--card));
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px hsl(240 5% 10% / .04), 0 4px 12px hsl(240 5% 10% / .05);
}
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px;
  padding: 16px 20px;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  border-radius: 16px;
  transition: background-color 150ms ease;
  touch-action: manipulation;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid hsl(var(--muted-foreground));
  border-bottom: 2px solid hsl(var(--muted-foreground));
  transform: rotate(45deg);
  transition: transform 200ms ease;
  margin-right: 2px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { background: hsl(var(--card-hover)); }
.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 12px 20px 28px;
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}
.site-footer p { margin: 0; }
.footer-links { margin-top: 6px !important; display: flex; justify-content: center; gap: 16px; }
.footer-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 150ms ease;
}
.footer-links a:hover { color: hsl(var(--foreground)); }

/* ---------- desktop ---------- */
@media (min-width: 768px) {
  .shell { padding-top: 36px; }
  .question { margin-top: 24px; }
  .options { margin-top: 36px; gap: 16px; }
  .option { padding: 20px 24px; }
  .option__label { font-size: 17px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .option:hover, .option:active { transform: none; }
}
