:root {
  --ink: #f7f3ea;
  --muted: #b8bfcb;
  --bg: #07101d;
  --surface: #101c2d;
  --surface-2: #17263a;
  --wine: #28527f;
  --rose: #d5a1aa;
  --gold: #e8ca91;
  --line: rgba(255,255,255,.1);
  --shadow: 0 24px 70px rgba(0,0,0,.38);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -5%, rgba(46,101,154,.3), transparent 30rem),
    var(--bg);
  font-family: "DM Sans", system-ui, sans-serif;
  min-height: 100vh;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -50px; z-index: 100; background: var(--gold); color: #102039; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.topbar {
  height: 70px;
  position: sticky;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,16,29,.88);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.brand-mark { width: 40px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { font: 600 17px/1 "Playfair Display", serif; }
.brand-name i { display: block; color: var(--rose); }
.desktop-nav { display: none; gap: 8px; }
.desktop-nav button { border: 0; color: var(--muted); background: transparent; padding: 10px 14px; border-radius: 999px; cursor: pointer; }
.desktop-nav button.active, .desktop-nav button:hover { color: white; background: rgba(255,255,255,.07); }
.desktop-nav .nav-access { border: 1px solid rgba(232,202,145,.38); }
.install-button { border: 1px solid rgba(231,189,118,.55); background: rgba(231,189,118,.08); color: var(--gold); border-radius: 999px; cursor: pointer; }
.install-button.mini { padding: 9px 12px; font-size: 12px; }

main { min-height: calc(100vh - 70px); padding-bottom: 96px; }
.page { width: min(1180px, 100%); margin: 0 auto; padding: 26px 18px 54px; animation: enter .38s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; }
h1 { font-size: clamp(40px, 10vw, 78px); line-height: .95; margin: 0; letter-spacing: -.035em; }
h2 { font-size: clamp(29px, 6vw, 44px); line-height: 1.05; margin: 0; }
h3 { font-size: 21px; margin: 0; }
p { line-height: 1.65; }
.muted { color: var(--muted); }
.example-pill, .tag { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: #d9cdd5; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.example-pill { color: var(--gold); border: 1px solid rgba(231,189,118,.24); background: rgba(231,189,118,.06); }
.primary, .secondary, .ghost, .icon-button { border: 0; border-radius: 999px; padding: 14px 20px; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.primary { color: #0b1a2e; background: linear-gradient(135deg, #f1dcae, #d5a1aa); box-shadow: 0 10px 32px rgba(213,161,170,.22); }
.secondary { color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.ghost { color: var(--rose); background: transparent; padding-inline: 0; }
.primary:hover, .secondary:hover { transform: translateY(-2px); }
.primary:focus-visible, .secondary:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(231,189,118,.7); outline-offset: 3px; }

.hero { display: grid; gap: 28px; min-height: 560px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .subtitle { max-width: 560px; color: #d8cbd3; font-size: 17px; margin: 20px 0 24px; }
.hero-copy h1 i { color: var(--rose); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-row { display: flex; gap: 12px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.meta-row span + span::before { content: "•"; margin-right: 12px; color: var(--wine); }
.hero-art { position: relative; min-height: 390px; overflow: hidden; border-radius: 30px; background: #0b1627 url("./assets/hero-a-decisao-perfeita-v1.png") center 22% / cover no-repeat; box-shadow: var(--shadow); isolation: isolate; }
.hero-art::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(5,13,26,.08) 35%, rgba(5,13,26,.34) 62%, rgba(5,13,26,.96) 100%); }
.hero-art::after { content: ""; position: absolute; z-index: 1; inset: 0; box-shadow: inset 0 0 70px rgba(3,9,18,.38); pointer-events: none; }
.cover-line { position: absolute; left: 30px; right: 30px; top: 28px; z-index: 2; display: flex; justify-content: space-between; color: rgba(255,255,255,.8); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.cover-quote { position: absolute; z-index: 3; left: 28px; bottom: 30px; max-width: 260px; font: italic 600 29px/1.1 "Playfair Display", serif; }
.cover-quote span { display: block; color: var(--gold); font: 700 10px/1.4 "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .14em; margin-top: 13px; }

.section { margin-top: 54px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-head p { margin: 6px 0 0; }
.chapter-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 18px; scrollbar-color: var(--wine) transparent; }
.chapter-card { scroll-snap-align: start; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 0; overflow: hidden; cursor: pointer; transition: transform .2s, border-color .2s; }
.chapter-card:hover { transform: translateY(-3px); border-color: rgba(232,202,145,.38); }
.chapter-thumb { height: 155px; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 68% 20%, var(--card-glow, #315f8a), transparent 30%), linear-gradient(145deg, #1d3552, #091422); }
.chapter-thumb .num { font: 600 74px/1 "Playfair Display", serif; color: rgba(255,255,255,.09); }
.chapter-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter-thumb.has-image::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,11,22,.02) 42%, rgba(4,11,22,.82) 100%); }
.chapter-thumb.has-image .num { position: absolute; z-index: 2; left: 14px; bottom: 9px; color: rgba(255,255,255,.82); font-size: 40px; text-shadow: 0 2px 14px rgba(0,0,0,.75); }
.play-dot, .lock-dot { position: absolute; z-index: 3; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: rgba(16,10,18,.78); border: 1px solid rgba(255,255,255,.18); }
.card-body { padding: 16px; }
.card-body h3 { margin: 7px 0 5px; }
.card-body p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.5; }
.card-kicker { display: flex; align-items: center; justify-content: space-between; color: var(--rose); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.how-grid { display: grid; gap: 12px; }
.how-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border-radius: 20px; padding: 22px; }
.how-card b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--gold); background: rgba(231,189,118,.1); margin-bottom: 22px; }
.how-card h3 { margin-bottom: 8px; }
.how-card p { color: var(--muted); margin: 0; font-size: 14px; }

.page-heading { padding: 24px 0 22px; }
.page-heading p { max-width: 650px; color: var(--muted); margin-bottom: 0; }
.toolbar { display: grid; gap: 12px; margin: 8px 0 24px; }
.search { position: relative; }
.search input { width: 100%; color: white; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px 15px 44px; }
.search::before { content: "⌕"; position: absolute; left: 17px; top: 10px; font-size: 22px; color: var(--muted); }
.filters { display: flex; gap: 7px; overflow-x: auto; }
.filter { white-space: nowrap; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.filter.active { color: #0b1a2e; background: var(--gold); border-color: var(--gold); }
.catalog-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.empty { text-align: center; color: var(--muted); padding: 60px 12px; }

.player-shell { position: relative; aspect-ratio: 16/9; max-height: 670px; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: radial-gradient(circle at 50% 40%, #315f8a, #0d1b2d 58%, #040a12); box-shadow: var(--shadow); }
.player-shell.playing .player-scene { animation: scenePulse 6s ease-in-out infinite alternate; }
@keyframes scenePulse { to { transform: scale(1.08); filter: hue-rotate(-12deg); } }
.player-scene { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(213,161,170,.14)), radial-gradient(circle at 22% 30%, rgba(232,202,145,.3), transparent 24%); transition: transform 1s; }
.episode-video { position: absolute; z-index: 6; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #02060b; }
.player-title { position: relative; z-index: 2; text-align: center; padding: 24px; max-width: 500px; }
.player-title h2 { font-style: italic; }
.player-title p { color: #d3c4cd; }
.big-play { position: relative; z-index: 3; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); backdrop-filter: blur(10px); cursor: pointer; font-size: 24px; }
.progress-wrap { position: absolute; z-index: 5; bottom: 15px; left: 18px; right: 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.progress { height: 4px; background: rgba(255,255,255,.22); border-radius: 9px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--rose); transition: width .5s linear; }
.time { color: white; font-size: 11px; }
.locked-overlay { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 22px; background: rgba(9,6,10,.8); backdrop-filter: blur(10px); text-align: center; }
.locked-overlay > div { max-width: 430px; }
.locked-overlay .lock-icon { font-size: 32px; }
.chapter-layout { display: grid; gap: 28px; }
.chapter-info { padding-top: 25px; }
.chapter-info h1 { font-size: clamp(34px, 7vw, 58px); }
.chapter-info .description { color: var(--muted); max-width: 720px; }
.chapter-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; color: #bdaeb8; background: rgba(231,189,118,.06); border: 1px solid rgba(231,189,118,.15); padding: 13px 15px; border-radius: 14px; font-size: 12px; line-height: 1.5; }

.story-intro { display: grid; gap: 26px; align-items: center; }
.story-visual { min-height: 360px; border-radius: 28px; background: linear-gradient(155deg, #315f8a, #0e1b2b 74%); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.story-visual::before { content: "DECIDIR\AÉ TAMBÉM\ASENTIR"; white-space: pre; position: absolute; left: 25px; bottom: 24px; color: rgba(255,255,255,.11); font: 700 54px/.82 "Playfair Display", serif; }
.story-visual::after { content: "♡"; position: absolute; right: -14px; top: -50px; font: 600 230px/1 "Playfair Display", serif; color: rgba(231,189,118,.18); transform: rotate(14deg); }
.story-copy .lead { color: #e4d9df; font: italic 600 22px/1.45 "Playfair Display", serif; }
.character-grid { display: grid; gap: 12px; }
.character { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 20px; }
.avatar { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 18px; color: var(--gold); background: linear-gradient(145deg, #315f8a, #14243a); font-family: "Playfair Display"; font-size: 20px; }
.character p { color: var(--muted); font-size: 13px; margin-bottom: 0; }

.access-hero { text-align: center; max-width: 720px; margin: 12px auto 30px; }
.status-card { border: 1px solid var(--line); background: linear-gradient(145deg, #172b45, #0e1a2b); border-radius: 24px; padding: 22px; margin: 0 auto 24px; max-width: 720px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #d59d50; margin-right: 7px; }
.status-card.active .status-dot { background: #64d69a; box-shadow: 0 0 15px rgba(100,214,154,.5); }
.status-card h3 { margin-top: 7px; }
.plan-grid { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.plan-grid.single { max-width: 720px; }
.plan { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 24px; padding: 24px; }
.plan.featured { border-color: rgba(232,202,145,.5); background: linear-gradient(160deg, rgba(40,82,127,.32), var(--surface) 52%); }
.plan .price { font: 700 36px/1.1 "Playfair Display", serif; margin: 18px 0; }
.plan .price small { color: var(--muted); font: 500 13px/1 "DM Sans", sans-serif; }
.access-period { display: inline-flex; margin: -4px 0 14px; padding: 7px 10px; border: 1px solid rgba(231,189,118,.3); border-radius: 999px; color: var(--gold); font-size: 13px; font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { color: #d7cad2; padding: 7px 0; font-size: 14px; }
.plan li::before { content: "✓"; color: var(--rose); margin-right: 8px; }
.plan button { width: 100%; }
.safe-note { text-align: center; color: var(--muted); font-size: 12px; max-width: 620px; margin: 20px auto; }
.login-card { max-width: 720px; margin: 18px auto 0; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.access-form { display: grid; gap: 10px; margin-top: 18px; }
.access-form label { color: #d7cad2; font-size: 14px; font-weight: 600; }
.access-form input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: #091524; color: #fff; font: 500 16px/1.2 "DM Sans", sans-serif; outline: none; }
.access-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231,189,118,.12); }
.access-form button { margin-top: 6px; }
.account-email, .account-code { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.account-code strong { color: var(--gold); letter-spacing: .08em; }
.creator-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.creator-actions a { text-decoration: none; }

.bottom-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; height: calc(70px + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: rgba(7,16,29,.95); backdrop-filter: blur(18px); }
.bottom-nav button { border: 0; background: transparent; color: #8f838c; display: grid; place-items: center; align-content: center; gap: 2px; cursor: pointer; }
.bottom-nav button span { font-size: 20px; line-height: 1; }
.bottom-nav button small { font-size: 10px; }
.bottom-nav button.active { color: var(--rose); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 90px; translate: -50% 20px; width: min(90vw, 420px); background: #f5ead3; color: #102039; padding: 13px 16px; border-radius: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; text-align: center; font-size: 13px; font-weight: 600; }
.toast.show { opacity: 1; translate: -50% 0; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: end center; padding: 12px; background: rgba(5,3,6,.7); backdrop-filter: blur(8px); }
.modal { width: min(100%, 520px); background: #101e31; border: 1px solid var(--line); border-radius: 26px; padding: 25px; box-shadow: var(--shadow); animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } }
.modal h2 { font-size: 29px; }
.modal p { color: var(--muted); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions button { flex: 1; }

@media (min-width: 720px) {
  .topbar { padding-inline: 34px; }
  .desktop-nav { display: flex; }
  .bottom-nav { display: none; }
  main { padding-bottom: 0; }
  .page { padding: 42px 34px 78px; }
  .hero { grid-template-columns: 1.04fr .96fr; min-height: 650px; }
  .hero-art { min-height: 540px; }
  .chapter-strip { grid-auto-columns: minmax(270px, 31%); }
  .how-grid { grid-template-columns: repeat(3, 1fr); }
  .toolbar { grid-template-columns: 1fr auto; align-items: center; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .story-intro { grid-template-columns: .9fr 1.1fr; }
  .character-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid.single { grid-template-columns: 1fr; }
  .modal-backdrop { place-items: center; }
}

@media (min-width: 1040px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .character-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
