/* DanceCredit teaser page. Builds on app.css (tokens, base, buttons). Campaign register: the reel is the
   hero, green carries the brand, pink marks "copied with AI" and support. */

.landing { --wide: 72rem; }
.wide {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: max(var(--space-4), env(safe-area-inset-left)) max(var(--space-4), env(safe-area-inset-right));
}
.landing .top, .landing .foot { max-width: var(--wide); }
main { outline: none; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-4) var(--space-8);
}
.hero-title {
  font-size: clamp(2.6rem, 9.5vw, 5.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 var(--space-6);
  text-wrap: balance;
}
.hero-title .line { display: block; animation: rise 700ms var(--ease-out) both; }
.hero-title .line + .line { animation-delay: 120ms; }
mark { color: inherit; background: none; }
.hl-brand, .hl-props {
  display: inline-block;            /* one word each: the box takes part in the line height, no overlap */
  line-height: 1.08;
  padding: 0.02em 0.12em 0.06em; border-radius: 10px;
}
.hl-brand { background: var(--brand); color: var(--on-brand); }
.hl-props { background: var(--props); color: var(--on-props); }

.hero-lede {
  font-size: var(--text-lg); color: var(--ink-2); max-width: 38ch; margin: 0 0 var(--space-6);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-actions .btn { flex: 1 1 12rem; }

/* transform only: the headline is visible from the first frame, the motion just lands it */
@keyframes rise { from { transform: translateY(0.35em); } to { transform: none; } }

/* ---------- reel ---------- */

.reel { margin: 0; justify-self: center; width: min(100%, 26rem); }
.reel-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 82svh;
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px var(--brand);
}
.reel-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-controls {
  position: absolute; right: var(--space-3); bottom: var(--space-3);
  display: flex; gap: var(--space-2);
}
.reel-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 0; cursor: pointer;
  background: oklch(0.12 0.02 160 / 0.72); color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease-out), transform 120ms var(--ease-out);
}
.reel-btn:hover { background: oklch(0.12 0.02 160 / 0.9); }
.reel-btn:active { transform: scale(0.94); }
#sound-toggle[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.reel-caption { margin: var(--space-3) 0 0; font-size: var(--text-xs); color: var(--ink-2); text-align: center; }

/* ---------- sections ---------- */

.section-title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.section-lede { font-size: var(--text-lg); color: var(--ink-2); max-width: 46ch; margin: 0 0 var(--space-6);
                text-wrap: pretty; }

/* the case: one real example, side by side */
.case { padding-block: var(--space-8); border-top: 1px solid var(--line); }
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); max-width: 44rem; }
.case-shot { margin: 0; position: relative; }
.case-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); }
.case-shot figcaption { position: absolute; left: var(--space-3); top: var(--space-3); }
.tag {
  display: inline-block; font-weight: 700; font-size: var(--text-sm); line-height: 1.2;
  padding: 0.35em 0.6em; border-radius: var(--radius-sm);
}
.tag-props { background: var(--props); color: var(--on-props); }
.tag-brand { background: var(--brand); color: var(--on-brand); }

.case-result {
  display: grid; gap: var(--space-1); max-width: 44rem; margin-top: var(--space-4);
  padding: var(--space-5); border-radius: var(--radius);
  background: var(--brand); color: var(--on-brand); text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color var(--dur) var(--ease-out);
}
.case-result:hover { background: var(--brand-strong); }
.case-result:active { transform: scale(0.985); }
.case-result-label { font-weight: 700; font-size: var(--text-sm); }
.case-result-title { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.case-result-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; margin-top: var(--space-2); }

/* how it works: a real sequence, so the numbers stay */
.how { padding-block: var(--space-8); border-top: 1px solid var(--line); }
.how-steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.how-steps li { counter-increment: step; color: var(--ink-2); max-width: 34ch; }
.how-steps li::before {
  content: counter(step); display: block; margin-bottom: var(--space-2);
  font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--brand);
}
.how-steps strong { display: block; color: var(--ink); font-size: var(--text-lg); margin-bottom: var(--space-1); }
.how-note { margin: var(--space-6) 0 0; color: var(--ink-2); font-size: var(--text-sm); max-width: 60ch; }
@media (prefers-color-scheme: light) { .how-steps li::before { color: var(--brand-strong); } }

/* panels with forms */
.panel {
  display: grid; gap: var(--space-5);
  padding-block: var(--space-7); margin-block: var(--space-6);
  background: var(--surface); border-radius: var(--radius);
  padding-inline: var(--space-5);
  width: calc(100% - 2 * max(var(--space-4), env(safe-area-inset-left)));   /* keep a gutter on phones */
  max-width: calc(var(--wide) - 2 * var(--space-4));
  outline: none;
}
.panel-brand { background: var(--brand); color: var(--on-brand); }
.panel-brand .section-lede, .panel-brand .label, .panel-brand .consent { color: var(--on-brand); }

.form { display: grid; gap: var(--space-4); max-width: 34rem; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.opt { font-weight: 400; color: var(--ink-2); }
.panel-brand .opt { color: var(--on-brand); }
.landing input[type="url"], .landing input[type="email"], .landing input[type="text"] {
  width: 100%; min-height: 52px; padding: 0 var(--space-4);
  font: inherit; font-size: var(--text-md); color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease-out);
}
.landing input::placeholder { color: var(--ink-2); opacity: 1; }
.landing input:hover { border-color: var(--ink-2); }
.landing input:focus-visible { outline: none; border-color: var(--focus); }
.landing input[aria-invalid="true"] { border-color: var(--danger); }
.panel-brand input[type="email"] { background: oklch(0.98 0.02 155); color: oklch(0.2 0.05 160); border-color: transparent; }
.panel-brand input[type="email"]::placeholder { color: oklch(0.4 0.05 160); }
.panel-brand input[type="email"]:focus-visible { border-color: var(--on-brand); }
.panel-brand :focus-visible { outline-color: var(--on-brand); }

.roles { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.roles legend { width: 100%; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4);
  border-radius: 99px; border: 2px solid var(--on-brand); font-weight: 600;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.chip input:checked + span { background: var(--on-brand); color: var(--brand); }
.chip input:focus-visible + span { outline: 3px solid var(--on-brand); outline-offset: 2px; }

.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--on-brand); }
.consent a { font-weight: 700; text-underline-offset: 3px; }

.btn-ink { background: var(--on-brand); color: var(--brand); }
.btn-ink:hover { background: oklch(0.12 0.04 160); }
.form .btn { justify-self: start; min-width: 12rem; }
.form-error { margin: 0; font-weight: 700; font-size: var(--text-sm); color: var(--danger); }
.panel-brand .form-error { color: oklch(0.35 0.16 28); }
.form-done { margin: 0; display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.form.is-done .field, .form.is-done .consent, .form.is-done .btn { display: none; }

/* support */
.support { padding-block: var(--space-7); text-align: left; }
.support .btn { min-width: 14rem; }

/* footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.foot-links { display: flex; gap: var(--space-5); }
.foot-links a { color: var(--ink-2); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--ink); }

/* ---------- wider screens: copy left, reel right ---------- */

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; padding-block: var(--space-7) var(--space-8); }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-lede { font-size: var(--text-xl); line-height: 1.45; }
  .reel { width: min(100%, 24rem); }
  .panel { grid-template-columns: 1fr 1fr; align-items: start; padding: var(--space-8) var(--space-7); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .line { animation: none; }
  .reel-btn, .case-result, .chip span { transition: none; }
}

/* ---------- legal pages ---------- */
.legal-text { max-width: 46rem; padding-block: var(--space-5) var(--space-8); flex: 1; }
.legal-text h2 { font-size: var(--text-xl); letter-spacing: -0.015em; margin: var(--space-6) 0 var(--space-2); }
.legal-text h3 { font-size: var(--text-lg); margin: var(--space-5) 0 var(--space-2); }
.legal-text p { color: var(--ink-2); max-width: 68ch; text-wrap: pretty; }
.draft { display: inline-block; background: var(--warn); color: oklch(0.2 0.04 85) !important; font-weight: 700;
         padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-sm); }
