:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #1c2b2d;
  --muted: #697779;
  --line: #e7eeec;
  --accent: #3eab98;
  --accent-2: #ff6412;
  --accent-3: #ffc845;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
}

.site-header .wrap,
.top-nav,
.actions,
.meta,
.action-row,
.stats-row,
.tool-row,
.session-meta {
  display: flex;
  gap: 12px;
}

.site-header .wrap {
  justify-content: flex-start;
  align-items: center;
  padding: 14px 0;
}

.play-page .top-nav {
  display: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text {
  display: inline-block;
  transform: translateY(1px);
}

.top-nav a {
  padding: 8px 12px;
}

.top-nav-landing {
  margin-left: auto;
  align-items: center;
}

.top-nav-landing a {
  color: var(--ink);
  opacity: 0.82;
}

.top-nav-landing a:hover {
  color: var(--accent-2);
}

main.wrap {
  padding: 32px 0 48px;
}

.hero,
.grid.two-up {
  display: grid;
  gap: 20px;
}

.hero,
.grid.two-up {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.stat-card,
.flow-card,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(28, 43, 45, 0.06);
}

.card,
.notice {
  padding: 24px;
}

.hero {
  margin-bottom: 24px;
  align-items: start;
}

.hero h1,
.play-card h1,
.admin-header h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 0.98;
}

.hero-panel h3,
.card h2,
.card h3,
.flow-card h4 {
  margin-top: 0;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plain-list {
  padding-left: 18px;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(62, 171, 152, 0.2);
}

.button.secondary,
.button.ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(255, 100, 18, 0.26);
}

.button.secondary:hover,
.button.ghost:hover {
  background: rgba(255, 100, 18, 0.06);
  box-shadow: none;
}

.stack-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  background: white;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(255, 200, 69, 0.22);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.meta.vertical {
  flex-direction: column;
}

.stat-card {
  padding: 18px;
  min-width: 160px;
  flex-direction: column;
}

.stat-card strong {
  font-size: 32px;
}

.quest-card p,
.flow-card p {
  color: var(--muted);
}

.admin-header,
.actions,
.action-row {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.flow-card {
  padding: 18px;
  position: relative;
}

.flow-code {
  font-size: 12px;
  color: var(--muted);
}

.flow-arrow {
  margin-top: 12px;
  color: var(--accent);
}

.flow-start {
  border-color: rgba(62, 171, 152, 0.38);
}

.flow-question {
  border-color: rgba(255, 100, 18, 0.32);
}

.flow-finish {
  border-color: rgba(255, 200, 69, 0.55);
}

.step-image {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #fbfbfb;
  border-radius: 18px;
  margin: 12px 0 20px;
}

.step-media {
  margin: 18px 0 20px;
}

.step-media figcaption {
  margin-top: -8px;
  color: var(--muted);
  font-size: 14px;
}

.flash {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(62, 171, 152, 0.1);
  border: 1px solid rgba(62, 171, 152, 0.22);
}

.notice {
  margin: 18px 0;
  border-left: 6px solid var(--accent-3);
  background: #fffdf7;
}

.play-card {
  max-width: 920px;
  margin: 0 auto;
}

.landing-page main.wrap {
  padding-top: 48px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 36px;
}

.landing-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  max-width: 12ch;
}

.landing-lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.landing-hero-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(62, 171, 152, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 100, 18, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(62, 171, 152, 0.14), transparent 28%),
    #ffffff;
}

.landing-banner {
  display: block;
  width: 100%;
  border-radius: 18px;
  margin: 18px 0 10px;
  border: 1px solid var(--line);
  background: #fffdf7;
}

.landing-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 200, 69, 0.22);
  color: var(--ink);
  font-size: 14px;
}

.landing-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.landing-section {
  margin: 48px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  max-width: 14ch;
}

.landing-features,
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  padding: 12px;
}

.feature-card h3 {
  margin: 16px 0 10px;
  font-size: 28px;
}

.feature-card p,
.step-card p,
.contact-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-spot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 28px;
}

.feature-spot-teal {
  background: var(--accent);
}

.feature-spot-orange {
  background: var(--accent-2);
}

.feature-spot-yellow {
  background: var(--accent-3);
}

.feature-spot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.landing-quest {
  display: grid;
  gap: 18px;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}

.step-card strong {
  color: var(--accent-2);
  font-size: 18px;
}

.step-card h3 {
  margin: 10px 0;
  font-size: 28px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 22px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-shell {
  border-color: rgba(62, 171, 152, 0.18);
}

.payment-shell {
  border-color: rgba(255, 100, 18, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 200, 69, 0.12), transparent 26%),
    #ffffff;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 24px;
  align-items: start;
}

.payment-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.payment-copy h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 0.98;
}

.payment-copy .landing-lead {
  margin: 0;
}

.purchase-form {
  align-self: start;
  margin-top: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdf9;
}

.purchase-form .button {
  width: 100%;
  min-height: 58px;
  font-size: 20px;
  font-weight: 700;
}

.pay-status-card {
  max-width: 720px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.contact-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.contact-copy h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 0.98;
}

.contact-card {
  align-self: start;
  width: min(520px, 100%);
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  background: #fffdf7;
}

.contact-card a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.session-strip {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.session-strip strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}

.session-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.tool-row {
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

.tool-row form {
  margin: 0;
}

.play-actions {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.primary-action {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.primary-action form {
  width: min(440px, 100%);
}

.primary-action .stack-form {
  gap: 12px;
}

.primary-action input[type="text"] {
  text-align: center;
}

.primary-action .button {
  width: 100%;
  min-height: 56px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--accent);
  box-shadow: 0 18px 28px rgba(62, 171, 152, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

pre {
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .session-strip {
    gap: 14px;
  }

  .landing-hero,
  .landing-features,
  .landing-steps,
  .landing-quest,
  .contact-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .top-nav-landing {
    display: none;
  }

  .feature-spot {
    width: 120px;
    height: 120px;
    font-size: 34px;
  }
}
