:root {
  color-scheme: dark;
  --ink: #f7f5fb;
  --muted: #aaa4b7;
  --panel: #24202d;
  --panel-soft: #2d2838;
  --line: #413a4e;
  --purple: #7557ff;
  --purple-soft: #9986ff;
  --orange: #ff824d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, #392a6d 0, transparent 28rem),
    radial-gradient(circle at 92% 82%, #4b261e 0, transparent 25rem),
    #17141f;
}

a { color: inherit; }

.topbar {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.5px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #8e75ff, #5d3df0);
  box-shadow: 0 10px 24px #5d3df044;
  font-size: 20px;
  font-weight: 900;
}

.pro-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.5px;
}

.pro-badge { color: #e8e2ff; border: 1px solid #5a4c7d; text-decoration: none; }
.status-badge.live { color: #fff; background: #d64e32; }
.status-badge.always { color: #fff; background: #5d3df0; }
.status-badge.upcoming { color: #e8e2ff; background: #44386b; }
.status-badge.ended { color: #c7c1ce; background: #3c3743; }

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.phone-stage {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #4b4358;
  border-radius: 38px;
  background: #0d0b11;
  box-shadow: 0 34px 80px #00000066;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 29px;
  background:
    radial-gradient(circle at 50% 28%, #7557ff55 0, transparent 15rem),
    #211c2a;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d0b11;
}

.audio-state audio {
  width: 100%;
  margin-top: 26px;
}

.media-state {
  display: grid;
  height: 100%;
  padding: 28px;
  place-content: center;
  text-align: center;
}

.media-state strong {
  display: block;
  margin-top: 16px;
  font-size: 23px;
  line-height: 1.3;
}

.media-state p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.state-icon { font-size: 44px; }

.content { min-width: 0; }
.category { margin: 0 0 14px; color: var(--purple-soft); font-size: 13px; font-weight: 800; }

h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(36px, 5vw, 61px);
  line-height: 1.08;
  letter-spacing: -2.6px;
}

.hook { margin: 22px 0 0; color: #c5bfcc; font-size: 17px; line-height: 1.65; }

.dialogue {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.line-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #24202dcc;
}

.line-card span { color: var(--muted); font-size: 11px; font-weight: 800; }
.line-card p { margin: 7px 0 0; font-size: 18px; font-weight: 720; line-height: 1.45; }
.line-card.answer { border-color: #6653a6; background: #2b2441; }
.line-card.answer p { color: #c7bcff; }

.practice-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.countdown {
  margin-top: 22px;
  color: #ded8e5;
  font-size: 14px;
  font-weight: 750;
}

.store-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.store-button {
  display: grid;
  min-height: 52px;
  padding: 0 16px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--purple);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.preview-tools {
  display: flex;
  max-width: 1120px;
  margin: 0 auto 22px;
  padding: 10px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #211d2acc;
}

.preview-tools a {
  flex: 1;
  padding: 9px 10px;
  border-radius: 10px;
  color: #bbb4c6;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}

.preview-tools a.active { color: #fff; background: var(--purple); }

.loading,
.message-card {
  margin: 18vh auto 0;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.archive-page,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.archive-page { padding: 54px 0 90px; }

.archive-hero {
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid #4b4358;
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 20%, #ff824d2e 0, transparent 20rem),
    linear-gradient(145deg, #2a2148, #201c2a 62%);
  box-shadow: 0 32px 80px #00000038;
}

.archive-eyebrow {
  margin: 0 0 14px;
  color: var(--purple-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.2px;
}

.archive-hero h1 {
  max-width: 820px;
  font-size: clamp(44px, 7vw, 76px);
}

.archive-intro {
  max-width: 660px;
  margin: 24px 0 0;
  color: #c9c3d1;
  font-size: 17px;
  line-height: 1.7;
}

.archive-count {
  display: inline-flex;
  min-height: 42px;
  margin-top: 30px;
  padding: 0 16px;
  align-items: center;
  border: 1px solid #66558d;
  border-radius: 999px;
  color: #ebe6f4;
  background: #17131f88;
  font-size: 13px;
  font-weight: 800;
}

.archive-section { padding-top: 74px; }

.archive-heading {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
}

.archive-heading h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: -1.7px;
}

.archive-heading > p {
  max-width: 380px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.preview-notice {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #6653a6;
  border-radius: 14px;
  color: #d9d0ff;
  background: #2b2441;
  font-size: 13px;
}

.free-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.free-card {
  display: flex;
  min-height: 330px;
  padding: 28px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #24202dcc;
  transition: transform 160ms ease, border-color 160ms ease;
}

.free-card:hover { transform: translateY(-3px); border-color: #6c5b9d; }
.free-card.is-upcoming { border-style: dashed; opacity: 0.84; }

.free-card-topline {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.category-pill,
.publish-date {
  color: var(--purple-soft);
  font-size: 11px;
  font-weight: 800;
}

.publish-date { color: var(--muted); text-align: right; }

.free-card h3 {
  margin: 25px 0 0;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -1px;
}

.free-card-hook {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.free-card-sentence {
  margin: 22px 0 0;
  color: #d5cbff;
  font-size: 19px;
  font-weight: 780;
  line-height: 1.45;
}

.practice-link {
  display: flex;
  margin-top: auto;
  padding-top: 26px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.practice-link span { color: var(--orange); font-size: 22px; }

.shorts-grid { align-items: stretch; }

.shorts-card { min-height: 0; }

.shorts-script-block {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #211d2a;
}

.shorts-script-block.mission { border-color: #6653a6; background: #2b2441; }
.shorts-script-block span,
.shorts-answer span,
.shorts-app-path span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.shorts-script-block p,
.shorts-app-path p { margin: 7px 0 0; font-size: 15px; font-weight: 720; line-height: 1.45; }

.shorts-answer {
  display: grid;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #352957, #2a2340);
}

.shorts-answer strong { margin-top: 9px; color: #fff; font-size: 27px; line-height: 1.35; }
.shorts-answer em { margin-top: 7px; color: #c7bcff; font-size: 13px; font-style: normal; line-height: 1.5; }

.shorts-chunks {
  margin: 12px 0 0;
  color: #f0ecff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.shorts-app-path {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.shorts-app-path p { color: #d6cff0; font-size: 13px; }

.shorts-template {
  margin-top: 72px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #4b4358;
  border-radius: 28px;
  background: #24202dcc;
}

.shorts-template h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -1.3px; }

.timing-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.timing-list li {
  display: grid;
  padding: 15px 17px;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #211d2a;
}

.timing-list strong { color: var(--purple-soft); font-size: 13px; }
.timing-list span { color: #d6d0dd; font-size: 13px; line-height: 1.45; }

.archive-loading,
.empty-library {
  grid-column: 1 / -1;
  padding: 46px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #24202d99;
}

.empty-library strong { color: var(--ink); font-size: 19px; }
.empty-library p { margin: 8px 0 0; }

.site-footer {
  display: flex;
  min-height: 92px;
  padding: 24px 0;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #383241;
  color: #8f8999;
  font-size: 12px;
}

.site-footer nav { display: flex; gap: 18px; }

.legal-page {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.legal-hero {
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid #4b4358;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, #7557ff33 0, transparent 20rem),
    linear-gradient(145deg, #2a2148, #201c2a 66%);
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: -2px;
}

.legal-lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: #c9c3d1;
  font-size: 16px;
  line-height: 1.75;
}

.legal-meta {
  display: flex;
  margin-top: 24px;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.legal-nav {
  display: flex;
  margin: 18px 0 0;
  padding: 12px;
  gap: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #211d2acc;
}

.legal-nav a {
  min-width: max-content;
  padding: 9px 12px;
  border-radius: 10px;
  color: #bbb4c6;
  text-decoration: none;
  font-size: 12px;
  font-weight: 760;
}

.legal-nav a[aria-current="page"] { color: #fff; background: var(--purple); }

.legal-document {
  margin-top: 24px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #24202de8;
  box-shadow: 0 26px 70px #0000002b;
}

.legal-document section + section {
  margin-top: 42px;
  padding-top: 4px;
}

.legal-document h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.6px;
}

.legal-document h3 {
  margin: 24px 0 10px;
  color: #eeeaf5;
  font-size: 16px;
}

.legal-document p,
.legal-document li,
.legal-table th,
.legal-table td {
  color: #c5bfcc;
  font-size: 14px;
  line-height: 1.75;
}

.legal-document p { margin: 10px 0 0; }
.legal-document ul,
.legal-document ol { margin: 10px 0 0; padding-left: 21px; }
.legal-document li + li { margin-top: 6px; }
.legal-document strong { color: #eeeaf5; }
.legal-document a { color: #b6a8ff; }

.legal-note {
  margin-top: 18px !important;
  padding: 16px 18px;
  border: 1px solid #6653a6;
  border-radius: 14px;
  color: #ded7ff !important;
  background: #2b2441;
}

.legal-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

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

.legal-table th { color: #f0ecf6; background: #2d2838; font-size: 12px; }
.legal-table tr:last-child td { border-bottom: 0; }

.legal-actions {
  display: flex;
  margin-top: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #705de0;
  border-radius: 14px;
  color: #fff !important;
  background: var(--purple);
  text-decoration: none;
  font-size: 14px;
  font-weight: 820;
}

.legal-button.secondary { color: #ded7ff !important; background: transparent; }

.contact-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #1d1925;
}

.contact-card p:first-child { margin-top: 0; }

.center-page { display: grid; place-items: center; }
.message-card { margin: 0; }
.message-card .brand-mark { margin: 0 auto 18px; }
.message-card h1 { font-size: 30px; letter-spacing: -1px; }

@media (max-width: 780px) {
  .topbar,
  .page { width: min(100% - 24px, 1120px); }
  .topbar { min-height: 66px; }
  .demo-layout { grid-template-columns: 1fr; gap: 34px; }
  .content { text-align: left; }
  .phone-stage { width: min(92vw, 360px); }
  h1 { font-size: 38px; letter-spacing: -1.7px; }
  .archive-page,
  .site-footer { width: min(100% - 24px, 1120px); }
  .archive-page { padding-top: 20px; }
  .archive-hero { padding: 34px 24px; border-radius: 26px; }
  .archive-hero h1 { font-size: 43px; }
  .archive-heading { display: block; }
  .archive-heading > p { margin-top: 14px; }
  .free-grid { grid-template-columns: 1fr; }
  .timing-list { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer nav { flex-wrap: wrap; }
  .legal-page { width: min(100% - 24px, 960px); padding-top: 18px; }
  .legal-hero { padding: 30px 24px; border-radius: 24px; }
  .legal-hero h1 { font-size: 38px; letter-spacing: -1.4px; }
  .legal-document { padding: 28px 22px; border-radius: 22px; }
}

@media (max-width: 430px) {
  .pro-badge { display: none; }
  .page { padding-top: 12px; }
  .phone-stage { width: 100%; border-radius: 31px; }
  .video-frame { border-radius: 23px; }
  .preview-tools { flex-wrap: wrap; }
  .preview-tools a { min-width: 30%; }
  .store-actions { grid-template-columns: 1fr; }
}
