/* The landing page for other improv groups (pilot.html): public, no login,
   no troupe data. Its own styles (not style.css), as it isn't part of the app.
   Always light, whatever the device's setting: Improto's paper with its
   logo (docs/brand/improto) is what people should remember it by.
   Outfit, the logo's typeface, for headings (SIL Open Font License, see
   themes/improto/OFL-outfit.txt). */
@font-face {
  font-family: "Outfit";
  src: url("/themes/improto/display.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
/* Layout: a stage poster up top (headline left, a running order "on stage" right), then plain sections on one reading column, cards only where a thing is shown */
:root {
  --bg: #fff7ea;
  --surface: #ffffff;
  --ink: #2b1736;
  --muted: #6b5874;
  --line: #ead9c2;
  --accent: #0e6e6a;
  --accent-ink: #ffffff;
  --do: #0e6e6a;
  --dont: #b4520a;
  --spot: #fde9a6;
  --display: "Outfit", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.05rem; line-height: 1.6;
}
.wrap {
  max-width: 68rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 40px; width: auto; }
.top a.small { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.hero > * { min-width: 0; }
.hero h1 .hl { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn { display: inline-block; padding: 0.8rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--accent); background: transparent; }

/* The running order "on stage", under a spotlight */
.stage { position: relative; padding: 1.5rem 0 0; }
.stage::before {
  content: ""; position: absolute; inset: -1rem -1rem auto; height: 70%;
  background: radial-gradient(ellipse at 50% 0%, var(--spot), transparent 70%);
  pointer-events: none;
}
.sheet { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.25rem 1.1rem; box-shadow: 0 18px 40px -24px rgba(30, 20, 50, 0.45); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.sheet-head strong { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.order { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; counter-reset: n; }
.order li { display: grid; grid-template-columns: 1.8rem 1fr; gap: 0.5rem; align-items: start; }
.order li::before { counter-increment: n; content: counter(n); font-family: var(--mono); color: var(--muted); font-size: 0.9rem; padding-top: 0.1rem; }
.order li.pause::before { content: "–"; }
.order li.pause span { color: var(--muted); font-style: italic; }
.order small { display: block; color: var(--muted); font-size: 0.88rem; }
.tip { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); display: grid; gap: 0.35rem; font-size: 0.92rem; }
.do, .dont { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; margin-right: 0.4rem; }
.do { color: var(--do); }
.dont { color: var(--dont); }
.answers { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.chip { font-size: 0.85rem; padding: 0.25rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }

/* Sections */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.intro { max-width: 40rem; display: grid; gap: 0.9rem; margin-bottom: 2.25rem; }
.intro p { color: var(--muted); font-size: 1.1rem; }

.before { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.before div { border-left: 3px solid var(--line); padding: 0.2rem 0 0.2rem 0.9rem; }
.before b { display: block; }
.before span { color: var(--muted); font-size: 0.95rem; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; }
.feature { display: grid; gap: 0.5rem; align-content: start; }
.feature p { color: var(--muted); }
.feature .example { font-size: 0.95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.facts div { display: grid; gap: 0.2rem; }
.facts b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.facts span { color: var(--muted); font-size: 0.95rem; }

.pilot { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pilot > * { min-width: 0; }
.offer { background: var(--surface); border: 2px solid var(--accent); border-radius: 18px; padding: 1.5rem; display: grid; gap: 1rem; }
.offer ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.offer .label { color: var(--accent); }

.faq { display: grid; gap: 0.75rem; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 0.5rem 0.9rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.faq p { color: var(--muted); margin-top: 0.5rem; }

footer { padding-block: 2rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

@media (max-width: 860px) {
  .hero, .pilot { grid-template-columns: 1fr; }
  .before, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .features, .before, .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: rise 600ms ease-out both; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}

/* The links at the top right */
.top-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
/* on narrow phones the hero's button is enough: the header is too narrow for logo and link */
@media (max-width: 380px) { .top-links .small { display: none; } }
