/* Aligner marketing site · matches extension Home tokens */
:root {
  --color-ink: #14201b;
  --color-ink-soft: #3d4a44;
  --color-paper: #f3efe6;
  --color-paper-2: #e7e0d2;
  --color-paper-3: #d9d0be;
  --color-surface: #fffdf8;
  --color-accent: #0f6b5c;
  --color-accent-2: #c45c26;
  --color-line: rgba(20, 32, 27, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(20, 32, 27, 0.08);
  --max: 1080px;
  --header-offset: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 107, 92, 0.08), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(196, 92, 38, 0.08), transparent 28%),
    var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
}

a {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--color-surface);
  padding: 10px 14px;
  border-radius: 10px;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid var(--color-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-ink);
}

.nav a.btn.star,
.nav a.btn.star:hover,
.nav a.btn.star:focus-visible {
  color: #fff;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(15, 107, 92, 0.35);
  outline-offset: 2px;
}

.btn.solid {
  background: var(--color-accent);
  color: #fff;
}

.btn.solid:hover,
.btn.solid:focus-visible {
  color: #fff;
  background: #0c5a4d;
}

.btn.ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
}

.btn.star {
  background: #111827;
  color: #fff;
}

.btn.star:hover,
.btn.star:focus-visible {
  color: #fff;
  background: #0b1220;
  transform: translateY(-1px) scale(1.02);
}

.hero {
  padding: 48px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  overflow-wrap: anywhere;
  min-width: 0;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.05;
}

.lede {
  margin: 0 0 20px;
  color: var(--color-ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 52ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-pills li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-paper-2);
  border: 1px solid var(--color-line);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-visual {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  cursor: zoom-in;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.section {
  padding: 42px 0;
  scroll-margin-top: calc(var(--header-offset) + 108px);
}

.section-head {
  margin-bottom: 20px;
  max-width: 62ch;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  margin: 0;
  color: var(--color-ink-soft);
  line-height: 1.55;
}

.feature-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.card {
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card.wide {
  grid-column: 1 / -1;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0 0 8px;
  color: var(--color-ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.card p:last-child {
  margin-bottom: 0;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.feature-tags li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--color-line);
}

.roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.roster-group {
  min-width: 0;
  padding: 18px 18px 14px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}

.roster-group.accent {
  grid-column: 1 / -1;
  background:
    linear-gradient(160deg, rgba(33, 117, 155, 0.1), transparent 42%),
    var(--color-surface);
}

.roster-group h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.roster-lead {
  margin: 0 0 12px;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.roster-list {
  margin: 0;
  display: grid;
  gap: 0;
}

.roster-group.accent .roster-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0 18px;
}

.roster-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
  gap: 8px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--color-line);
  align-items: baseline;
}

.roster-list dt {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-ink);
}

.roster-list dd {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.helper-card {
  background:
    linear-gradient(135deg, rgba(15, 107, 92, 0.08), transparent 40%),
    var(--color-surface);
}

.helper-needs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 14px 0 0;
}

.helper-needs strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.helper-needs ul {
  margin: 0;
  padding-left: 18px;
  color: var(--color-ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.helper-needs li + li {
  margin-top: 8px;
}

.helper-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .roster {
    grid-template-columns: 1fr;
  }

  .roster-group.accent {
    grid-column: auto;
  }

  .roster-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.shot {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.shot:hover,
.shot:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(20, 32, 27, 0.12);
  outline: none;
}

.shot:focus-visible {
  outline: 3px solid rgba(15, 107, 92, 0.35);
  outline-offset: 2px;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.shot figcaption {
  padding: 10px 12px 12px;
  color: var(--color-ink-soft);
  font-size: 0.88rem;
}

.shot-lightbox {
  position: relative;
  max-width: min(960px, calc(100vw - 32px));
  width: 100%;
  margin: auto;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 30px 80px rgba(20, 32, 27, 0.28);
}

.shot-lightbox::backdrop {
  background: rgba(20, 32, 27, 0.55);
  backdrop-filter: blur(4px);
}

.shot-lightbox img {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  border-radius: 12px;
  background: var(--color-paper-2);
}

.shot-lightbox p {
  margin: 12px 4px 0;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.shot-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.update-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 92, 0.1), transparent 45%),
    var(--color-surface);
  border: 1px solid var(--color-line);
}

.update-box p {
  margin: 0 0 12px;
  color: var(--color-ink-soft);
  line-height: 1.5;
}

.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--color-ink-soft);
  line-height: 1.55;
}

.audience-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.audience-pin {
  min-width: 0;
}

.audience-stack-meter {
  display: none;
  margin: 12px 0 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.audience-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(15, 107, 92, 0.06), transparent 42%),
    var(--color-surface);
  box-shadow: var(--shadow);
}

/* Sticky stack deck — pin sticks, card scales under the next one */
@media (min-width: 861px) {
  .audience-list[data-stack] {
    gap: 72px;
    padding-bottom: 30vh;
    isolation: isolate;
  }

  .audience-list[data-stack] .audience-pin {
    position: sticky;
    top: calc(var(--header-offset, 72px) + 16px + (var(--i, 0) * 8px));
    z-index: calc(10 + var(--i, 0));
    margin: 0;
    min-height: 0;
    display: block;
  }

  .audience-list[data-stack] .audience-row {
    position: relative;
    width: 100%;
    transform: translateY(var(--stack-y, 0px)) scale(var(--stack-scale, 1));
    transform-origin: center top;
    filter: brightness(var(--stack-bright, 1));
    box-shadow:
      0 18px 40px rgba(20, 32, 27, calc(0.08 + var(--stack-depth, 0) * 0.04)),
      0 0 0 1px rgba(15, 107, 92, calc(var(--stack-depth, 0) * 0.12));
    transition: box-shadow 160ms ease;
    will-change: transform, filter;
  }

  .audience-stack-meter {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
  }

  .audience-stack-meter .den {
    color: var(--color-ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audience-list[data-stack] {
    gap: 28px;
    padding-bottom: 0;
  }

  .audience-list[data-stack] .audience-pin {
    position: static;
  }

  .audience-list[data-stack] .audience-row {
    transform: none !important;
    filter: none !important;
  }

  .audience-stack-meter {
    display: none !important;
  }
}

.audience-row.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.audience-row.reverse .audience-copy {
  order: 2;
}

.audience-row.reverse .audience-shot {
  order: 1;
}

.audience-who {
  margin: 0 0 6px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audience-copy h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.2;
}

.audience-problem,
.audience-solve {
  margin: 0 0 10px;
  color: var(--color-ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.audience-solve {
  margin-bottom: 0;
}

.audience-problem strong,
.audience-solve strong {
  color: var(--color-ink);
  font-weight: 600;
}

.audience-shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  background: #ece7dc;
  cursor: zoom-in;
}

.audience-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 280ms ease;
}

.audience-shot:hover img,
.audience-shot:focus-visible img {
  transform: scale(1.02);
}

.audience-shot figcaption {
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.maker {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.maker img {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  object-fit: cover;
}

.maker h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.maker .role {
  margin: 0 0 12px;
  color: var(--color-accent-2);
  font-weight: 700;
}

.maker p {
  margin: 0 0 10px;
  color: var(--color-ink-soft);
  line-height: 1.55;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.workshop {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.workshop th,
.workshop td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.workshop th {
  background: var(--color-paper-2);
  font-size: 0.85rem;
}

.workshop tr:last-child td {
  border-bottom: 0;
}

.workshop a {
  font-weight: 700;
  text-decoration: none;
}

.workshop a:hover {
  text-decoration: underline;
}

.support {
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 107, 92, 0.12), transparent 42%),
    var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}

.support h2 {
  margin: 0 0 10px;
}

.support p {
  margin: 0 0 16px;
  color: var(--color-ink-soft);
  line-height: 1.55;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 28px 0 40px;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--color-ink-soft);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .audience-row,
  .audience-row.reverse {
    grid-template-columns: 1fr;
  }

  .audience-row.reverse .audience-copy,
  .audience-row.reverse .audience-shot {
    order: initial;
  }

  .audience-list[data-stack] {
    gap: 28px;
    padding-bottom: 0;
  }

  .audience-list[data-stack] .audience-pin {
    position: static;
    min-height: auto;
    margin-bottom: 0;
    display: block;
  }

  .audience-list[data-stack] .audience-row {
    transform: none !important;
    filter: none !important;
  }

  .audience-stack-meter {
    display: none;
  }

  .quest-badges {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .quest-badges li {
    flex: 0 0 auto;
  }

  .maker {
    grid-template-columns: 1fr;
  }

  .workshop {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  .btn {
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
  }
}

/* Motion · explorer progress · interactions */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transform-origin: left center;
  pointer-events: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--color-accent);
}

.stat span {
  color: var(--color-ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.quest-sticky-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}

.quest-sticky {
  position: sticky;
  top: var(--header-offset);
  z-index: 25;
  padding: 10px 0 12px;
  margin: 0 0 8px;
  background: linear-gradient(
    180deg,
    rgba(243, 239, 230, 0.96) 0%,
    rgba(243, 239, 230, 0.88) 70%,
    rgba(243, 239, 230, 0)
  );
}

.quest-sticky.is-compact .quest-panel {
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(20, 32, 27, 0.1);
}

.quest-sticky.is-compact .quest-top strong {
  font-size: 1rem;
}

.quest-sticky.is-compact .quest-meter {
  font-size: 1.35rem;
}

.quest-sticky.is-compact .quest-hint {
  display: none;
}

.quest-panel {
  margin: 0;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15, 107, 92, 0.1), transparent 48%),
    var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}

.quest-top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.quest-top strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.quest-meter {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.quest-den {
  color: var(--color-ink-soft);
  font-size: 1rem;
  font-weight: 600;
}

.quest-track {
  height: 8px;
  border-radius: 999px;
  background: var(--color-paper-2);
  overflow: hidden;
  margin-bottom: 12px;
}

.quest-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quest-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quest-badges li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed var(--color-line);
  background: var(--color-paper-2);
  color: var(--color-ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.55;
  cursor: pointer;
  transition: transform 220ms ease, opacity 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.quest-badges li:hover,
.quest-badges li:focus-visible {
  opacity: 0.9;
  color: var(--color-ink);
}

.quest-badges li.is-unlocked {
  opacity: 1;
  border-style: solid;
  border-color: var(--color-accent);
  background: rgba(15, 107, 92, 0.1);
  color: var(--color-accent);
  transform: translateY(-1px);
  animation: badge-pop 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quest-badges li.is-active {
  opacity: 1;
  border-style: solid;
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(15, 107, 92, 0.2);
}

.quest-hint {
  margin: 10px 0 0;
  color: var(--color-ink-soft);
  font-size: 0.88rem;
}

.preset-play {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 10px;
}

.preset-chip {
  text-align: left;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  font: inherit;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.preset-chip strong,
.preset-chip span {
  display: block;
}

.preset-chip strong {
  margin-bottom: 4px;
  font-family: var(--font-display);
}

.preset-chip span {
  color: var(--color-ink-soft);
  font-size: 0.82rem;
}

.preset-chip:hover,
.preset-chip.is-active {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent), var(--shadow);
}

.preset-feedback {
  margin: 12px 0 0;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.3em;
}

.roster-group.is-spotlight,
.catalog.is-spotlight {
  animation: spotlight-pulse 900ms ease;
  box-shadow: 0 0 0 2px rgba(15, 107, 92, 0.35), var(--shadow);
}

.catalog.is-spotlight {
  border-radius: 20px;
  padding: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.audience-list .reveal:nth-child(2) { transition-delay: 50ms; }
.audience-list .reveal:nth-child(3) { transition-delay: 100ms; }
.audience-list .reveal:nth-child(4) { transition-delay: 150ms; }

.detail-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.detail-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.detail-grid .reveal:nth-child(4) { transition-delay: 180ms; }
.detail-grid .reveal:nth-child(5) { transition-delay: 240ms; }
.shot-grid .reveal:nth-child(2) { transition-delay: 50ms; }
.shot-grid .reveal:nth-child(3) { transition-delay: 100ms; }
.shot-grid .reveal:nth-child(4) { transition-delay: 150ms; }
.shot-grid .reveal:nth-child(5) { transition-delay: 200ms; }
.roster .reveal:nth-child(2) { transition-delay: 70ms; }
.roster .reveal:nth-child(3) { transition-delay: 140ms; }

.card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 107, 92, 0.28);
}

.btn.solid {
  position: relative;
  overflow: hidden;
}

.btn.solid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28), transparent 80%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.btn.solid:hover::after {
  transform: translateX(120%);
}

.hero-visual {
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.hero-visual:hover {
  transform: translateY(-4px) scale(1.01);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 107, 92, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  display: grid;
  place-items: center;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top span {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 700;
}

.scroll-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-top-bg,
.scroll-top-fg {
  fill: none;
  stroke-width: 2.5;
}

.scroll-top-bg {
  stroke: rgba(255, 255, 255, 0.25);
}

.scroll-top-fg {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 97.4;
  transition: stroke-dashoffset 120ms linear;
}

@keyframes badge-pop {
  0% { transform: scale(0.86); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes spotlight-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 107, 92, 0.0); }
  40% { box-shadow: 0 0 0 4px rgba(15, 107, 92, 0.22); }
  100% { box-shadow: 0 0 0 2px rgba(15, 107, 92, 0.35), var(--shadow); }
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .quest-fill,
  .quest-badges li,
  .card,
  .btn.solid::after,
  .hero-visual,
  .scroll-top,
  .preset-chip {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
