/* Phase of Play — site redesign concept. A cousin of the Finalthird site (same owner):
   shared type and graphic language (Manrope, bold line + light line titles, tracked labels with a rule and a tag,
   pill buttons, square bullets), with its own layout built to sell e-books, in Phase of Play's colours. Bebas stays inside the product: covers, e-book pages, videos. */
@font-face { font-family: "Bebas"; src: url("fonts/bebas.otf") format("opentype"); font-display: block; }
@font-face { font-family: "Gilroy"; src: url("fonts/gilroy.ttf") format("truetype"); font-weight: 700; font-display: block; }
@font-face { font-family: "Glacial"; src: url("fonts/glacial.otf") format("opentype"); font-display: block; }

:root {
  --bg: #0B0B0B; --bg2: #111111; --card: #161616; --card2: #1C1C1C;
  --txt: #F2F2F2; --mute: #9A9A9A; --soft: #B5B5B5; --rule: #262626; --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.22);
  --acc: #FFFFFF; --acc-ink: #0B0B0B;
  --paper: #F4F4F2; --line-l: #DEDED9;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; background: var(--bg); color: var(--txt); font: 17px/1.55 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap > * { min-width: 0; }
section { padding: 110px 0; position: relative; }

/* titles: bold line + light line (as on Finalthird) */
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.d1 { font-size: clamp(40px, 4.9vw, 64px); letter-spacing: -.03em; line-height: 1.04; }
.d2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.03em; line-height: 1.04; }
.d3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.1; }
h1 span, h2 span, .d1 span, .d2 span, .d3 span { display: block; font-weight: 400; letter-spacing: -.02em; }
.lede { color: var(--mute); font-size: 19px; max-width: 600px; }
.small { font-size: 15px; line-height: 1.5; }
.mute { color: var(--mute); }

/* label: text, rule, tag */
.label { display: flex; align-items: center; gap: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: 26px; }
.label i { flex: 1; height: 1px; background: var(--rule); }
.label b { color: var(--acc); font-weight: 700; }

/* square chips and bullets */
.chip { display: inline-block; font: 800 11.5px/1 Manrope, sans-serif; letter-spacing: .06em; text-transform: uppercase; background: var(--acc); color: var(--acc-ink); padding: 6px 9px 5px; border-radius: 2px; }
.chip.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.sq { list-style: none; display: grid; gap: 12px; }
.sq li { display: flex; gap: 14px; font-weight: 600; }
.sq li::before { content: ""; width: 10px; height: 10px; flex: none; margin-top: 8px; background: var(--acc); }

/* buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 16px/1 Manrope, sans-serif; border-radius: 999px; padding: 16px 26px; border: 0; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.btn-primary { background: var(--acc); color: var(--acc-ink); }
.btn-primary:hover { filter: brightness(.88); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line2); color: var(--txt); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-dark { background: #0B0B0B; color: #fff; } .btn-dark:hover { background: #333; }
.btn .arr { transition: transform .15s; } .btn:hover .arr { transform: translateX(3px); }
.textlink { color: var(--acc); font-weight: 700; display: inline-flex; gap: 8px; }
.micro { font-size: 13.5px; color: var(--mute); margin-top: 14px; display: flex; flex-wrap: wrap; gap: 0 16px; }
.micro span + span::before { content: "·"; margin-right: 16px; color: #444; }
s { color: var(--mute); text-decoration-thickness: 1px; font-weight: 500; }

.rel { position: relative; z-index: 1; }

/* nav */
nav.top { position: sticky; top: 0; z-index: 50; background: rgba(11,11,11,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; height: 72px; gap: 32px; }
nav.top .logo img { height: 30px; width: auto; }
nav.top ul { display: flex; gap: 26px; list-style: none; font-size: 15px; font-weight: 600; color: var(--mute); }
nav.top ul a:hover, nav.top ul a.on { color: var(--txt); }
nav.top .right { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; font-weight: 700; }
nav.top .right .btn { padding: 11px 20px; font-size: 15px; }
nav.top .bag { display: inline-flex; gap: 8px; align-items: center; }
nav.top .bag i { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--card2); font-size: 12px; }
nav.top .burger { display: none; width: 24px; height: 14px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; position: relative; }
nav.top .burger::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: #fff; }

/* framed diagram (Finalthird's app frame, here a book page) */
.frame { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.frame .bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mute); font-weight: 600; }
.frame .bar .tag { margin-left: auto; color: var(--acc); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.frame .bar .tag::before { content: ""; width: 7px; height: 7px; background: var(--acc); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.timeline { display: flex; gap: 6px; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--card); }
.timeline div { flex: 1; font-size: 11.5px; color: var(--mute); font-weight: 600; line-height: 1.3; }
.timeline div::before { content: ""; display: block; height: 4px; border-radius: 4px; background: #2A2A2A; margin-bottom: 8px; background-image: linear-gradient(var(--acc), var(--acc)); background-repeat: no-repeat; background-size: var(--p, 0%) 100%; }
.timeline div.on { color: var(--txt); }

/* book cards */
.cover { aspect-ratio: 1410 / 2250; width: 100%; object-fit: cover; background: #1a1a1a; border-radius: 3px; }
.bookcard { display: block; }
.bookcard .cv { position: relative; overflow: hidden; border-radius: 3px; }
.bookcard .cover { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.bookcard:hover .cover { transform: scale(1.025); }
.bookcard .cv .chip { position: absolute; left: 12px; top: 12px; background: #fff; color: #0B0B0B; }
.bookcard h3 { font-size: 19px; margin-top: 18px; letter-spacing: -.01em; line-height: 1.25; }
.bookcard p { font-size: 15px; line-height: 1.5; color: var(--mute); margin-top: 6px; max-width: 30em; }
.bookcard .row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 700; }
.bookcard .row span:last-child { color: var(--mute); font-weight: 600; font-size: 14px; }
.bookcard .swatch { display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--c); }

/* vertical video tiles */
.vtile { position: relative; display: block; }
.vtile video, .vtile img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #161616; border-radius: 6px; }
.vtile .cap { padding: 12px 0 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
.vtile .cap small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }

/* FAQ */
.faq { max-width: 860px; margin-top: 40px; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--acc); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--mute); margin-top: 12px; max-width: 700px; }

/* footer (as on Finalthird) */
footer.site { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--mute); font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
footer.site h4 { color: var(--txt); font-size: 14px; margin-bottom: 14px; }
footer.site a { display: block; margin-bottom: 8px; } footer.site a:hover { color: var(--txt); }
footer.site .logo img { height: 30px; width: auto; margin-bottom: 14px; }
footer.site form { display: flex; gap: 8px; margin-top: 12px; }
footer.site input { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line2); border-radius: 999px; padding: 11px 16px; color: var(--txt); font: 500 14px Manrope, sans-serif; outline: none; }
footer.site form button { background: transparent; border: 1px solid var(--line2); color: var(--txt); border-radius: 999px; padding: 0 16px; font: 700 14px Manrope, sans-serif; cursor: pointer; }
footer.site .copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; display: flex; justify-content: space-between; }

/* reveal on scroll (CSS animation, so the recorder can drive it) */
.rv { opacity: 0; transform: translateY(18px); }
.rv.in { animation: rv .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rv { to { opacity: 1; transform: none; } }

/* phone sticky buy bar */
.mcta { display: none; }

@media (max-width: 960px) {
  section { padding: 72px 0; }
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
  nav.top .wrap { height: 64px; gap: 14px; }
  nav.top .logo img { height: 26px; }
  nav.top ul, nav.top .right .txt { display: none; }
  nav.top .right .btn { padding: 9px 14px; font-size: 13px; }
  nav.top .burger { display: block; }
  .lede { font-size: 17px; }
  .btn { padding: 15px 22px; font-size: 15px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  footer.site .cols > div:first-child, footer.site .cols > div:last-child { grid-column: 1 / -1; }
  .mcta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(11,11,11,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px 20px; gap: 14px; align-items: center; }
  .mcta .t { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--mute); line-height: 1.3; }
  .mcta .t b { display: block; color: var(--txt); font-size: 18px; font-weight: 800; }
  .mcta .btn { padding: 13px 22px; }
}

/* light sections keep the same system with inverted tokens */
.light { --txt: #0B0B0B; --mute: #5F5F5A; --soft: #6E6E69; --rule: #DCDCD6; --line: rgba(0,0,0,.10); --line2: rgba(0,0,0,.24); --acc: #0B0B0B; --acc-ink: #FFFFFF; --card: #FFFFFF; --card2: #EDEDE8; background: var(--paper); color: var(--txt); }
.light.white { background: #fff; }
