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

.staging-banner {
  background: #92400e;
  color: #fef3c7;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .3rem 1rem;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 100;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/nunito-sans.woff2') format('woff2');
}

h1, h2, h3, .brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

:root {
  --bg:         #bc6901;
  --surface:    #FFFFFF;
  --card:       #FFFFFF;
  --card-solid: #FFFFFF;
  --border:     rgba(200, 140, 0, 0.28);
  --border-dim: rgba(200, 140, 0, 0.16);
  --text:       #1A1A1A;
  --muted:      #4A4A4A;
  --faint:      #888888;
  --amber:      #FFD166;
  --amber-dim:  #e8b840;
  --amber-deep: #9a6f00;
  --amber-soft: #FFE599;
  --gold:       #FFBF00;
  --green:      #4CAF50;
  --orange:     #F97316;
  --radius:     12px;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

header, section, footer, .site-header { position: relative; z-index: 1; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
}

.site-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .9rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(150, 84, 1, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: rgba(255, 243, 214, 0.75);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .15s;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; }
.header-spacer { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  line-height: 1.3;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-amber {
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: #1A1A1A;
  box-shadow: 0 10px 30px rgba(255, 209, 102, 0.30);
}

.btn-appstore {
  background: rgba(0,0,0,0.08);
  color: #1A1A1A;
  border: 1.5px solid rgba(0,0,0,0.12);
}

.btn-googleplay {
  background: linear-gradient(135deg, #0d7f60, #1a9873);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(92, 56, 0, 0.25);
  color: var(--text);
}

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.hero-copy {
  padding: 2.4rem 2.4rem 2.2rem;
  background: var(--surface);
  border: 1px solid rgba(212, 168, 0, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(92, 56, 0, 0.22);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.20), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: .6rem 0 1rem;
}

.accent { color: var(--orange); }

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.store-sub {
  display: block;
  font-size: .66rem;
  font-weight: 400;
  opacity: .6;
  margin-top: .12rem;
}

.hero-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art {
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(255, 191, 0, 0.20);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--amber-soft), var(--gold));
}

.hero-art video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.landing-section {
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}
.section-header { margin-bottom: 2.5rem; text-align: center; }
.section-title .accent { color: #fff; font-style: italic; }
.section-title {
  font-size: 1.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .45rem;
  line-height: 1.1;
}
.section-sub {
  font-size: .95rem;
  color: rgba(255, 243, 214, 0.82);
  max-width: 480px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 22px;
  padding: 1.7rem;
  box-shadow: 0 16px 44px rgba(92, 56, 0, 0.15);
}
.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--amber-deep);
  margin-bottom: .45rem;
}
.feature-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 22px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 16px 44px rgba(92, 56, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.pricing-card.recommended {
  border-color: var(--amber);
  background: var(--surface);
  position: relative;
}

.pricing-card.recommended::before {
  content: 'Best Value';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #1A1A1A;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .2rem .8rem;
  border-radius: 999px;
}

.pricing-card-kicker {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--amber-deep);
  margin-bottom: .4rem;
}

.pricing-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

.pricing-card-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber-deep);
  margin-bottom: .2rem;
}

.pricing-card-price-note {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .8rem;
}

.pricing-card-desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.pricing-card .btn {
  margin-top: 1.2rem;
}

.badge-free {
  display: inline-block;
  background: rgba(76, 175, 80, 0.15);
  color: var(--green);
  font-size: .62rem;
  font-weight: 700;
  padding: .12rem .4rem;
  border-radius: 4px;
  vertical-align: middle;
}

.hero-points {
  list-style: none;
  display: grid;
  gap: .8rem;
  margin-top: .7rem;
}
.hero-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}
.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 191, 0, 0.45);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem;
  text-align: center;
  font-size: .78rem;
  color: rgba(255, 243, 214, 0.55);
  margin-top: 4rem;
}
.site-footer a { color: rgba(255, 243, 214, 0.80); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.screenshots-section { overflow: hidden; }

.platform-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.platform-toggle button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: rgba(255, 243, 214, 0.80);
  padding: .38rem 1.5rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.platform-toggle button:first-child { border-radius: 8px 0 0 8px; border-right: none; }
.platform-toggle button:last-child { border-radius: 0 8px 8px 0; }
.platform-toggle button.active {
  background: var(--gold);
  color: #1A1A1A;
  border-color: var(--gold);
}
.platform-toggle button:not(.active):hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.screenshots-row {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: none;
}
.screenshots-row::-webkit-scrollbar { display: none; }

.screenshot-wrap {
  flex: 0 0 auto;
  width: 180px;
  text-align: center;
}

.screenshot-wrap img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(92, 56, 0, 0.12);
  display: block;
}

.screenshot-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 243, 214, 0.65);
  margin-top: .75rem;
}

.screenshots-platforms {
  text-align: center;
  font-size: .82rem;
  color: rgba(255, 243, 214, 0.65);
  margin-top: 1.6rem;
}
.screenshots-platforms strong { color: #fff; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 22px;
  padding: 1.7rem;
  box-shadow: 0 16px 44px rgba(92, 56, 0, 0.15);
  position: relative;
}

.step-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  opacity: .45;
  margin-bottom: .6rem;
}

.step-card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .45rem;
}

.step-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .15s;
}

.faq-item[open] { border-color: var(--border); }

.faq-q {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

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

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] .faq-q::after { transform: rotate(45deg); }

.faq-a {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 1.4rem 1.1rem;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .screenshot-wrap { width: 140px; }
  .screenshot-wrap img { border-radius: 16px; }
}

.hero-legal { padding-bottom: 2rem; }
.hero-legal .hero-copy { max-width: 760px; }
.legal-layout { padding-top: 0; }
.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.7fr);
  gap: 1.2rem;
  align-items: start;
}
.legal-card, .legal-aside {
  background: var(--surface);
  border: 1px solid rgba(212, 168, 0, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(92, 56, 0, 0.18);
}
.legal-card { padding: 2rem; }
.legal-aside {
  padding: 1.4rem;
  position: sticky;
  top: 6.4rem;
}
.legal-eyebrow {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--amber-deep);
  margin-bottom: .7rem;
}
.legal-updated {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.legal-card h2 {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 .7rem;
}
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p, .legal-card li, .legal-aside p, .legal-aside li {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
}
.legal-card ul, .legal-aside ul { padding-left: 1.2rem; margin-top: .6rem; }
.legal-card li, .legal-aside li { margin-bottom: .45rem; }
.legal-card a, .legal-aside a { color: var(--amber-deep); text-decoration: none; }
.legal-card a:hover, .legal-aside a:hover { color: var(--text); }
.legal-card hr { border: none; border-top: 1px solid var(--border-dim); margin: 2rem 0 1.4rem; }
.legal-note { font-size: .82rem; color: var(--faint); }
.legal-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .35rem;
}
.legal-subtitle {
  color: var(--amber-deep);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0;
}
.intro-copy { margin-bottom: 1.4rem; }

@media (max-width: 900px) {
  .hero-shell, .legal-shell { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .legal-aside { position: static; }
}

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; gap: .8rem 1rem; padding: .9rem 1rem; }
  .brand { font-size: 1.15rem; }
  .site-nav { width: 100%; justify-content: space-between; }
  .hero, .section { padding-left: 1rem; padding-right: 1rem; }
  .hero-copy { padding: 1.4rem; border-radius: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-art { max-width: 100%; }
}

.library-hero {
  padding: 4rem 2rem 2.5rem;
  text-align: center;
}
.library-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); color: #fff; margin-bottom: .75rem; }
.library-hero p  { color: rgba(255, 243, 214, 0.82); font-size: 1rem; max-width: 520px; margin: 0 auto; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem;
}

.story-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-solid);
  cursor: default;
  box-shadow: 0 4px 16px rgba(92, 56, 0, 0.15);
}

.story-card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #FFE599;
  overflow: hidden;
}
.story-card-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.story-card-art-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

.story-card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.82) 100%);
  pointer-events: none;
}

.story-card-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
}
.story-card-title {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card-narrator {
  font-size: .72rem;
  color: var(--amber);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story-card-duration {
  font-size: .68rem;
  color: rgba(255,255,255,0.60);
  margin-top: 1px;
}

.story-badge-free {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(27, 77, 27, 0.9);
  color: #4ade80;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 2px 6px;
  border-radius: 4px;
}

.story-preview-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.60);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s;
}
.story-preview-btn::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.story-preview-btn.playing::after {
  content: '';
  display: block;
  width: 8px; height: 10px;
  border: none;
  background: transparent;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
  margin-left: 0;
}
.story-preview-btn:hover { background: rgba(0,0,0,0.80); }
.story-preview-btn.playing { background: rgba(255, 209, 102, 0.30); }

.state-box {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 243, 214, 0.75);
  padding: 3rem 0;
  font-size: .95rem;
}
