/* Financial Pack: shared styles for the public pages (home, Meet the Pack, Send a story). */
:root {
  --navy: #14213D; --navy-2: #1B2B4F; --paper: #F5F6F8; --white: #FFFFFF; --soft: #C9D1E3;
  --line: #DDE1E8; --muted: #4A5670; --mint: #3DDC97; --mint-text: #0B7A4F; --error: #FFB4A8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--white); font-family: Archivo, Arial, sans-serif; font-size: 17px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--mint); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { font-stretch: 112%; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.5vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* Header */
header { background: var(--white); color: var(--navy); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 72px; flex-wrap: wrap; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.logo img { height: 30px; width: auto; }
.logo span { font-stretch: 112%; font-weight: 800; font-size: 22px; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--mint); }

main { flex: 1; }
section { padding-block: 64px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.lede { color: var(--soft); font-size: 19px; max-width: 40ch; margin: 18px 0 0; }
.muted { color: var(--soft); }
.small { font-size: 14px; }
.disclaimer { color: var(--soft); font-size: 14px; margin: 14px 0 0; max-width: 46ch; }
.alt { background: var(--navy-2); }

/* Buttons and links that look like buttons */
.btn, button { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 14px 22px; border-radius: 10px; background: var(--mint); color: var(--navy); text-decoration: none; text-align: center; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn.ghost:hover { border-color: var(--white); }
button:disabled { opacity: .7; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Social links */
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; gap: 8px; align-items: baseline; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: var(--white); text-decoration: none; font-size: 15px; }
.socials a span { color: var(--soft); }
.socials a:hover { border-color: var(--mint); }

/* Home: latest episode */
.watch { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "intro player" "extras player"; gap: 0 56px; }
.watch .intro { grid-area: intro; align-self: end; }
.watch .extras { grid-area: extras; align-self: start; }
.watch .player { grid-area: player; align-self: center; }
.watch > * { min-width: 0; }
.player { width: min(100%, 360px); margin-inline: auto; }
.player .frame { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #0B142A; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .disclaimer { text-align: center; margin-inline: auto; }
/* Computers get the 16:9 version when an episode has one (set by the home page script). */
.watch.wide { grid-template-areas: "intro extras" "player player"; gap: 8px 56px; }
.watch.wide .intro, .watch.wide .extras { align-self: end; }
.watch.wide .player { width: 100%; max-width: 960px; margin-top: 32px; }
.watch.wide .player .frame { aspect-ratio: 16 / 9; }
.earlier { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; max-width: 460px; }
.earlier li { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); }
.earlier img { width: 48px; height: 64px; object-fit: cover; object-position: top; border-radius: 8px; flex: none; }
.earlier .ep-title { flex: 1; font-weight: 600; min-width: 0; }
.earlier button { padding: 8px 14px; font-size: 15px; }

/* Meet the Pack cards */
.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.six { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card { display: block; color: var(--white); text-decoration: none; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; }
.card .info { display: block; padding: 14px 16px 16px; }
.card .name { font-stretch: 112%; font-weight: 800; font-size: 20px; display: block; }
.card .role { color: var(--soft); font-size: 15px; display: block; }
.card .line { display: block; margin-top: 8px; font-size: 15px; }
.cards.six .name { font-size: 16px; }
.cards.six .info { padding: 10px 12px 12px; }

/* Character page */
.back { display: inline-block; margin-bottom: 24px; color: var(--soft); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--white); }
.profile { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: start; }
.profile .portrait { position: relative; }
.profile .portrait iframe { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 18px; background: #000; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.intro-play { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; padding: 12px 20px; border-radius: 999px; background: var(--mint); color: var(--navy); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.intro-play:hover { filter: brightness(1.05); }
.intro-play span { font-size: 13px; }
.profile .portrait img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.oneliner { font-size: clamp(20px, 2.4vw, 24px); font-weight: 600; margin: 18px 0 0; color: var(--white); }
.oneliner::before { content: "\201C"; color: var(--mint); }
.oneliner::after { content: "\201D"; color: var(--mint); }
.profile h2 { font-size: 22px; margin: 36px 0 10px; }
.profile p { margin: 0 0 12px; }
.profile ul { margin: 0; padding-left: 20px; }
.profile li { margin-bottom: 6px; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lines li { margin: 0; padding: 14px 18px; border-left: 4px solid var(--mint); background: rgba(255,255,255,.06); border-radius: 0 12px 12px 0; }
.lines .who { display: block; color: var(--soft); font-size: 14px; margin-bottom: 2px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.pager a { color: var(--white); text-decoration: none; font-weight: 600; }
.pager a:hover { color: var(--mint); }

/* Forms */
.panel { background: var(--white); color: var(--navy); border-radius: 18px; padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text], input[type=email], textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid #B9C1D1; font: inherit; color: var(--navy); background: var(--white); }
textarea { min-height: 200px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--mint-text); }
.count { color: var(--muted); font-size: 13px; text-align: right; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-weight: 600; margin: 14px 0 0; min-height: 1.55em; }
.msg.ok { color: var(--mint); }
.msg.err { color: var(--error); }
.panel .msg.ok { color: var(--mint-text); }
.panel .msg.err { color: #B3261E; }
.panel a { color: var(--mint-text); }

/* Join the Pack signup */
.join { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; margin-top: 24px; }
.join input[type=email] { flex: 1 1 240px; min-width: 0; border: 0; }
.done .join { display: none; }
.note { color: var(--soft); font-size: 14px; margin: 12px 0 0; }
.note a { color: inherit; }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,.12); padding-block: 32px 72px; color: var(--soft); font-size: 14px; }
footer .socials { margin-bottom: 18px; }
footer .socials a { padding: 6px 12px; font-size: 14px; }
footer p { margin: 0 0 6px; max-width: 720px; padding-right: 84px; }
footer a { color: inherit; }
.login-link { position: fixed; right: 16px; bottom: 16px; z-index: 10; padding: 6px 14px; border-radius: 999px; background: var(--navy); border: 1px solid rgba(255,255,255,.22); color: var(--soft); font-size: 13px; text-decoration: none; }
.login-link:hover { color: var(--white); border-color: rgba(255,255,255,.5); }

@media (max-width: 960px) {
  .cards.six { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  section { padding-block: 44px; }
  .watch { grid-template-columns: 1fr; grid-template-areas: "intro" "player" "extras"; gap: 32px; }
  .profile { grid-template-columns: 1fr; gap: 32px; }
  .profile .portrait { max-width: 380px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .logo span { font-size: 18px; }
  .logo img { height: 24px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .nav { gap: 4px 18px; }
  .nav a { font-size: 15px; }
  .cards.six { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 20px 16px; }
  .card .line { display: none; }
  footer p { padding-right: 0; }
  footer { padding-bottom: 80px; }
}

/* Two-column sections (home: story + signup; story page) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split > * { min-width: 0; }
.steps { margin: 22px 0 0; padding-left: 20px; color: var(--soft); }
.steps li { margin-bottom: 8px; }
.steps strong { color: var(--white); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .profile .portrait img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 18%; }
}

/* Home: questions (also published as FAQPage structured data) */
.faq { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 760px; }
.faq details { border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--soft); margin: 0 0 18px; }
