:root {
  --paper: #FDFBF8;
  --paper-shade: #F1F1E8;
  --ink: #2A2420;
  --ink-muted: #7A7266;
  --border: #E2D9C7;
  --accent: #D76259;
  --shield: #3F6B4F;
  --shield-tint: #EAF0EB;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #b84a41;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.serif {
  font-family: 'Playfair Display', Georgia, serif;
}

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

.eyebrow.shield {
  color: var(--shield);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(215, 98, 89, 0.28);
  min-height: 44px;
}

.btn-primary:hover {
  color: var(--paper);
  opacity: .92;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  min-height: 44px;
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  font-size: 14px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-nav:hover {
  color: var(--paper);
  opacity: .92;
}

nav {
  display: flex;
  align-items: center;
  padding: 20px 40px;
  position: relative;
  z-index: 5;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.nav-logo,
.nav-btn {
  display: flex;
  flex: 1;
}

.nav-btn {
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex: 1;
}

.nav-links a {
  color: var(--ink-muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ---- cover grid (matches app OnboardingScreen: 4-col, 125% bleed, 1.6 aspect, radius 4px) ---- */
.grid-stage {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.cover-grid {
  display: flex;
  flex-wrap: wrap;
  width: 125%;
  margin-left: -12.5%;
  margin-top: -60px;
}

.cover {
  width: calc(16.6667% - 8px);
  aspect-ratio: 1/1.6;
  margin: 4px;
  border-radius: 4px;
  background: var(--paper-shade);
  overflow: hidden;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82%;
  background: linear-gradient(to bottom, rgba(253, 251, 248, 0) 0%, var(--paper) 88%);
  pointer-events: none;
}

/* hero content rises into the faded base of the grid, so the two feel like one composition */
.hero-content {
  text-align: center;
  padding: 0 32px 140px;
  position: relative;
  z-index: 2;
  margin-top: -120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content .mark {
  margin-bottom: 20px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.eyebrow-row .rule {
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.hero-content h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 auto 20px;
  max-width: 17ch;
}

.hero-content p.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 48ch;
  margin: 0 auto 30px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
}

.strip-row {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.strip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 220px;
}

.strip-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.strip-item span {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}

.section {
  padding: 120px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  margin: 0 0 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* recap card - styled like a TV title card: accent rule at top, a scrub-style progress bar at bottom */
.recap-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 48px 44px 40px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.recap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.recap-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.recap-eyebrow .bar {
  width: 16px;
  height: 2px;
  background: var(--accent);
}

.recap-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 16px;
}

.recap-body {
  font-size: 15.5px;
  line-height: 1.7;
  color: #D8D2C8;
  margin: 0 0 26px;
}

.recap-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(215, 98, 89, 0.18);
  color: #F0B3A9;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.recap-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.recap-progress-fill {
  height: 100%;
  width: 44%;
  background: var(--accent);
  border-radius: 999px;
}

.recap-progress-caption {
  font-size: 11px;
  color: #9C9186;
  margin-top: 9px;
}

/* spoiler shield */
.shield-panel {
  background: var(--shield-tint);
  border-radius: 20px;
  padding: 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.shield-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--shield);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.shield-panel h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.2;
}

.shield-panel p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
}

.lock-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--border);
}

.lock-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--shield);
  flex-shrink: 0;
}

.lock-row .t {
  font-size: 14px;
  color: var(--ink);
  flex: 1;
}

.lock-boundary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}

.lock-boundary .l {
  flex: 1;
  height: 1px;
  background: var(--shield);
}

.lock-boundary span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--shield);
}

.lock-row.locked {
  opacity: .55;
  background: transparent;
  border-style: dashed;
}

.lock-row.locked .t {
  color: var(--ink-muted);
}

.lock-row.locked .dot {
  background: var(--ink-muted);
}

/* character tracking */
.character-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  direction: rtl;
}

.character-panel>div {
  direction: ltr;
}

.character-panel .eyebrow {
  margin-bottom: 14px;
  display: block;
}

.character-panel h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.2;
}

.character-panel p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
}

.character-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.character-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
}

.character-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--paper);
  flex-shrink: 0;
}

.character-avatar.locked {
  background: var(--border);
  color: var(--ink-muted);
}

.character-info {
  flex: 1;
  min-width: 0;
}

.character-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.character-role {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.character-row.hidden {
  opacity: .6;
  background: transparent;
  border-style: dashed;
}

.character-row.hidden .character-name {
  color: var(--ink-muted);
}

/* AI chat */
.chat-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.chat-panel .eyebrow {
  margin-bottom: 14px;
  display: block;
}

.chat-panel h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.2;
}

.chat-panel p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
}

.chat-mock {
  background: var(--ink);
  border-radius: 16px;
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
}

.chat-mock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-head span {
  font-size: 13px;
  font-weight: 600;
  color: #D8D2C8;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}

.bubble.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #EDE8E0;
  border-bottom-left-radius: 4px;
}

.bubble.declined {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  color: #D8D2C8;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-bottom-left-radius: 4px;
}

.bubble .shield-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8FB89C;
}

/* who it's for */
.personas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.persona {
  padding: 0;
}

.persona svg {
  margin-bottom: 16px;
}

.persona h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.persona p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.step {
  background: var(--paper-shade);
  border-radius: 12px;
  padding: 32px 28px;
}

.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}

.step p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.plan {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  background: var(--paper);
}

.plan.highlight {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(215, 98, 89, 0.14);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--accent);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}

.plan h3 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
  margin: 6px 0 12px;
}

.plan .price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 6px;
}

.plan .price span {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
}

.plan .sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 24px;
}

.plan-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 16px 0 0;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  align-items: flex-start;
}

.plan li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.cta-band {
  background: var(--accent);
  color: var(--paper);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band .wrap {
  position: relative;
  z-index: 1;
}

.cta-watermark {
  position: absolute;
  top: 50%;
  right: -60px;
  width: 260px;
  height: 352px;
  transform: translateY(-50%) rotate(10deg);
  color: var(--paper);
  opacity: 0.08;
  z-index: 0;
}

.cta-band h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 0 0 14px;
}

.cta-band h2 em {
  font-style: italic;
  font-weight: 400;
}

.cta-band p {
  font-size: 17px;
  color: #FBE2DE;
  margin: 0 0 32px;
}

/* store badges */
.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  min-height: 48px;
}

.store-badge svg {
  flex-shrink: 0;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-badge .badge-eyebrow {
  font-size: 10.5px;
  color: #D8D2C8;
}

.store-badge .badge-name {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.store-badge-disabled {
  opacity: .45;
  pointer-events: none;
}

footer {
  padding: 40px 0 40px;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.foot-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.foot-links a {
  color: var(--ink-muted);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.foot-links a:hover {
  color: var(--accent);
}

.foot-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 10px;
}

.foot-copy {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: left;
  margin: 16px 0 0;
}

/* legal placeholder pages (privacy.html, terms.html) */
.legal {
  padding: 64px 0 96px;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  margin: 0 0 8px;
}

.legal .legal-updated {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 40px;
}

.legal-notice {
  background: var(--shield-tint);
  border: 1px solid var(--shield);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 44px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.legal p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

@media (max-width:900px) {
  .wrap {
    padding: 0 24px;
  }

  .wrap.hero-content {
    padding: 0 16px 96px;
  }

  nav {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  .grid-stage {
    height: 240px;
  }

  .shield-panel {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }

  .character-panel,
  .chat-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

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

  .strip-row {
    gap: 24px;
  }

  .section {
    padding: 64px 0;
  }

  .recap-card {
    padding: 30px;
  }
}

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