:root {
  color-scheme: light;

  /* These light-mode roles match code/src/ui/theme.ts and CrewSurface.tsx. */
  --background: #ffffff;
  --surface: #f4f4f5;
  --foreground: #18181b;
  --muted: #64646e;
  --border: #e4e4e7;
  --primary: #c2410c;
  --primary-foreground: #ffffff;
  --secondary: #fff1eb;
  --secondary-foreground: #9a3412;
  --positive: #e8f6ed;
  --positive-foreground: #216343;
  --info: #eef3ff;
  --info-foreground: #344f81;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; background: var(--background); color: var(--foreground); font: 1rem/1.5 var(--font); }
body > main { flex: 1 0 auto; min-width: 0; }
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; text-underline-offset: .21em; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
.frame { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 1; background: var(--background); padding: .5rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.header { min-height: 76px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; gap: 9px; align-items: center; color: var(--primary); font-weight: 700; font-size: 1.06rem; text-decoration: none; white-space: nowrap; }
.brand img { display: block; border-radius: 26%; }
nav { display: flex; gap: 4px; align-items: center; }
nav a { display: grid; align-items: center; min-height: 44px; padding-inline: 10px; border-radius: 8px; color: var(--muted); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
nav a[aria-current="page"], nav a:hover { background: var(--surface); color: var(--foreground); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 78px); align-items: center; margin-block: 48px 56px; }
.status { display: inline-flex; width: fit-content; padding: 5px 10px; background: var(--secondary); color: var(--secondary-foreground); border-radius: 8px; font-size: .8125rem; font-weight: 600; }
.hero h1 { margin-top: 15px; max-width: 560px; font-size: clamp(2.5rem, 5.15vw, 4.65rem); line-height: 1.04; letter-spacing: -.059em; font-weight: 700; text-wrap: balance; }
.hero h1 span { color: var(--primary); }
.intro { margin-block: 17px 24px; max-width: 410px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); }
.button { display: inline-flex; align-items: center; gap: 13px; padding: 10px 15px; min-height: 48px; background: var(--primary); color: var(--primary-foreground); border-radius: 10px; text-decoration: none; font-weight: 600; }
.button:hover { background: var(--secondary-foreground); }

.preview { min-width: 0; padding: clamp(14px, 3vw, 29px); background: var(--secondary); border: 1px solid #f1dfd5; border-radius: 22px; }
.app-preview { padding: clamp(12px, 2.1vw, 21px); background: var(--background); border: 1px solid var(--border); border-radius: 16px; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.app-label { display: block; color: var(--primary); font-size: .82rem; font-weight: 600; }
.app-head p { font-size: clamp(1.34rem, 2.25vw, 1.78rem); font-weight: 700; line-height: 1.15; letter-spacing: -.037em; }
.app-tools { display: flex; gap: 12px; align-items: center; color: var(--muted); padding-bottom: 2px; }
.app-tools svg { width: 18px; height: 18px; }
.class { padding: 12px; margin-top: 9px; border: 1px solid var(--border); border-radius: 12px; }
.card-title { display: flex; align-items: start; gap: 9px; }
.card-title strong, .card-title small { display: block; line-height: 1.3; }
.card-title strong { font-size: .945rem; font-weight: 650; }
.card-title small { margin-top: 1px; color: var(--muted); font-size: .76rem; }
.tone-icon { display: grid; flex-shrink: 0; width: 34px; height: 34px; place-items: center; color: var(--tone-foreground); background: var(--tone); border-radius: 9px; }
.tone-icon svg { width: 17px; height: 17px; }
.brand-tone { --tone: var(--secondary); --tone-foreground: var(--primary); }
.positive-tone { --tone: var(--positive); --tone-foreground: var(--positive-foreground); }
.info-tone { --tone: var(--info); --tone-foreground: var(--info-foreground); }
.class-time { margin-top: 8px; font-size: .78rem; }
.attendance { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 7px; }
.attendees { display: flex; }
.attendees span { display: grid; width: 27px; height: 27px; place-items: center; background: var(--secondary); border: 2px solid var(--background); border-radius: 50%; color: var(--secondary-foreground); font-size: .62rem; font-weight: 700; }
.attendees .viewer { background: var(--primary); color: var(--primary-foreground); }
.attendees span + span { margin-left: -5px; }
.class-action { padding: 4px 8px; border-radius: 7px; font-size: .68rem; font-weight: 600; }
.booked { background: var(--positive); color: var(--positive-foreground); border-radius: 100px; }
.join { background: var(--primary); color: var(--primary-foreground); }
figcaption { margin-top: 10px; color: var(--muted); text-align: center; font-size: .75rem; }

.how { margin-bottom: 56px; padding-top: 26px; border-top: 1px solid var(--border); scroll-margin-top: 18px; }
.how-heading h2, .prose h1 { font-size: clamp(1.85rem, 4vw, 2.65rem); line-height: 1.13; font-weight: 700; letter-spacing: -.04em; }
.how-heading p { margin-top: 5px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; margin: 19px 0 0; list-style: none; }
.steps li { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--tone); }
.steps li .tone-icon { background: var(--background); }
.steps h3, .prose h2 { margin: 8px 0 4px; font-size: 1.14rem; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; }
.steps p { color: var(--tone-foreground); font-size: .91rem; }
.footer { justify-content: center; min-height: 68px; border-top: 1px solid var(--border); }
.prose { max-width: 690px; margin-block: 46px 80px; }
.prose h1 { margin-bottom: 16px; }
.prose h2 { margin-top: 24px; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 10px; }
.prose a { color: var(--primary); }

@media (max-width: 700px) {
  .frame { width: calc(100% - 36px); }
  .header { min-height: 64px; }
  .brand { gap: 7px; font-size: .96rem; }
  .brand img { width: 28px; height: 28px; }
  nav a { padding-inline: 7px; font-size: .8125rem; }
  .hero { grid-template-columns: 1fr; gap: 25px; margin-block: 32px 38px; }
  .hero h1 { margin-top: 12px; }
  .intro { margin-block: 13px 18px; }
  .preview { border-radius: 16px; }
  .steps { grid-template-columns: 1fr; gap: 9px; }
  .how { margin-bottom: 39px; }
  .prose { margin-block: 31px 48px; }
}
