/* ============================================
   PROFIT PLAYBOOK — funnel pages
   Used by: index.html (landing), quiz.html, testimonials.html
   (privacy.html and tos.html still use style.css)
   ============================================ */

/* Brand colours. Change the gold here and every page follows. */
:root {
  --accent: #D9A53B;             /* gold buttons, play buttons, progress bar */
  --on-accent: #141414;          /* text on gold */
  --accent-soft: #FAF2E4;        /* pale gold pill backgrounds */
  --accent-line: #F0DBB1;        /* pill borders */
  --accent-ink: #846524;         /* small gold labels on light backgrounds */
  --accent-display: #B48931;     /* gold part of the big headlines */
  --accent-on-dark: #D9A53B;     /* gold on the dark boxes */
  --accent-on-dark-text: #141414;
}

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FAFAF7; }

a { color: #55534E; }
a:hover { color: #141414; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

/* Top bar: one row on desktop; on phones the name and button share a row and the links drop below. */
.pp-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 640px) {
  .pp-hdr { column-gap: 8px !important; }
  .pp-nav { order: 3; width: 100%; margin-left: 0; }
  .pp-cta { margin-left: auto; padding: 0 14px !important; font-size: 13px !important; }
}

/* Quiz: blocks that quiz.js shows and hides. */
.if { display: contents; }
.if[hidden] { display: none; }

/* Booking calendar once a calendar link is set in quiz.js. */
.quiz-calendar-frame { display: block; width: 100%; min-height: 760px; border: 0; border-radius: 24px; background: #FFFFFF; }

/* Sales-dashboard screenshot in About: sits under the photos on wide screens, under the number tiles on narrow ones. */
.pp-proof-wide { display: none; }
@media (min-width: 1000px) {
  .pp-proof-wide { display: block; }
  .pp-proof-narrow { display: none; }
}

/* Photo labels in About: smaller on phones so they cover less of the picture. */
@media (max-width: 640px) {
  .pp-chip { padding: 6px 9px !important; border-radius: 9px !important; gap: 0 !important; top: -22px !important; left: -8px !important; }
  .pp-chip span:first-child { font-size: 9px !important; }
  .pp-chip span:last-child { font-size: 12px !important; white-space: nowrap; }
}

/* FAQ rows (landing page): tap a question to open it. */
.pp-faq { border-top: 1px solid #E7E4DD; }
.pp-faq:last-child { border-bottom: 1px solid #E7E4DD; }
.pp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #141414; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 8px; }
.pp-faq-mark { flex: none; position: relative; width: 16px; height: 16px; }
.pp-faq-mark::before, .pp-faq-mark::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 2px; background: var(--accent-ink); transition: transform 0.2s ease; }
.pp-faq-mark::after { transform: rotate(90deg); }
.pp-faq[open] .pp-faq-mark::after { transform: rotate(0deg); }
.pp-faq p { margin: 0; padding: 0 44px 24px 4px; font-size: 16px; line-height: 1.65; color: #55534E; }
@media (prefers-reduced-motion: reduce) { .pp-faq-mark::before, .pp-faq-mark::after { transition: none; } }

/* FAQ: social profile links in the "Where else can I find you?" answer */
.pp-faq p + p.pp-faq-links { margin-top: -10px; }
.pp-faq-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-faq-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D9D5CC; background: #FFFFFF; color: #141414; font-size: 15px; font-weight: 600; text-decoration: none; }
.pp-faq-links a:hover { border-color: #141414; }

/* Home page top bar on phones: one clean row (logo + tabs). The big assessment button sits right below in the hero. */
@media (max-width: 640px) {
  .pp-hdr-home .pp-cta { display: none !important; }
  .pp-hdr-home .pp-nav { order: 0; width: auto; margin-left: auto; flex-wrap: nowrap; gap: 18px; }
}

/* Phones: tighten the page so it reads lighter. Less empty space between sections, looser headline letters,
   smaller step cards, the dashboard screenshot lined up with the tiles, and no repeated "Included" tags. */
@media (max-width: 640px) {
  .pp-wide-only { display: none; }
  .pp-eyebrow { letter-spacing: 0.1em !important; font-size: 10.5px !important; white-space: nowrap; }
  h1, h2 { letter-spacing: -0.015em !important; }
  [style*="padding: 96px 24px"] { padding-top: 60px !important; padding-bottom: 60px !important; }
  [style*="padding: 56px 24px 96px"] { padding-top: 32px !important; padding-bottom: 60px !important; }
  .pp-proof-narrow img { max-width: 100% !important; }
  .pp-inc { display: none !important; }
  .pp-step { display: grid !important; grid-template-columns: 36px 1fr; gap: 6px 14px !important; align-items: center; padding: 20px !important; border-radius: 16px !important; }
  .pp-step > span { width: 36px !important; height: 36px !important; font-size: 14px !important; }
  .pp-step > h3 { font-size: 19px !important; }
  .pp-step > p { grid-column: 2; font-size: 15px !important; }
}

/* Phones: the button under the About numbers runs full width. */
@media (max-width: 640px) { .pp-about-cta { align-self: stretch !important; padding: 0 16px !important; font-size: 15px !important; } .pp-case { padding: 22px !important; } }

/* ===== Student proof band =====
   The students' screenshots are all dark (Discord, iMessage), so this one section is dark and they sit in it natively.
   Each student is a card that turns over: front = one win as posted, back = their total and their own words. */
.pp-proof { background: #171716; color: #F4F2EC; padding: 96px 0; display: flex; flex-direction: column; gap: 28px; overflow: hidden; }
.pp-proof-box { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.pp-proof-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pp-proof-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-on-dark); }
.pp-proof-head h2 { margin: 0; max-width: 820px; font-family: 'Inter Tight', Inter, system-ui, sans-serif; font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; color: #FFFFFF; }
.pp-proof-head p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: #B9B5AC; }

/* The row. It runs edge to edge; the side padding lines the first card up with the page column. */
.pp-wins { --edge: max(24px, calc((100% - 1072px) / 2)); position: relative; display: flex; gap: 20px; margin: 0; padding: 16px var(--edge) 44px; scroll-padding-inline: var(--edge); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pp-wins::-webkit-scrollbar { display: none; }
.pp-win { flex: 0 0 min(82vw, 340px); margin: 0; perspective: 2400px; scroll-snap-align: start; }
@media (min-width: 900px) { .pp-win { flex-basis: 360px; } }

/* The card. Both faces sit in the same grid cell; the card rotates and each face hides when it faces away. */
.pp-flip { display: grid; border-radius: 22px; cursor: pointer; outline: none; transform-style: preserve-3d; transition: transform 0.62s cubic-bezier(0.65, 0, 0.35, 1); -webkit-tap-highlight-color: transparent; }
.pp-win.is-flipped .pp-flip { transform: rotateY(180deg); }
.pp-win.is-turning .pp-flip { animation: pp-press 0.62s cubic-bezier(0.65, 0, 0.35, 1); }
.pp-win.is-peek .pp-flip { animation: pp-peek 1.25s ease-in-out 0.15s 1 both; }
@keyframes pp-press { 50% { scale: 0.93; } }
@keyframes pp-peek { 35% { rotate: y -26deg; } 60% { rotate: y -26deg; } }
.pp-face { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #242321; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: visibility 0s linear 0.31s, border-color 0.2s ease; }
.pp-face-back { transform: rotateY(180deg); visibility: hidden; }
.pp-win.is-flipped .pp-face-front { visibility: hidden; }
.pp-win.is-flipped .pp-face-back { visibility: visible; }
.pp-win.is-flipped .pp-face { border-color: rgba(217, 165, 59, 0.55); }
.pp-flip:focus-visible .pp-face { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 165, 59, 0.55), 0 16px 32px rgba(0, 0, 0, 0.45); }
@media (hover: hover) { .pp-flip:hover .pp-face { border-color: rgba(217, 165, 59, 0.6); } }

/* The screenshot sits in a fixed 3:4 stage, whole and uncropped, whatever shape it is. */
.pp-stage { position: relative; aspect-ratio: 3 / 4; background: #1A1918; }
.pp-stage img { position: absolute; inset: 12px; margin: auto; display: block; width: auto; height: auto; max-width: calc(100% - 24px); max-height: calc(100% - 24px); border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 26px rgba(0, 0, 0, 0.5); }

/* Name tag and the turn button. */
.pp-cap { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: left; }
.pp-cap-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-cap-id b { font-family: 'Inter Tight', Inter, system-ui, sans-serif; font-weight: 700; font-size: 19px; line-height: 1.15; letter-spacing: -0.01em; color: #FFFFFF; }
.pp-cap-id span { font-size: 13px; line-height: 1.3; color: #A6A299; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-cap-turn { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--accent-on-dark); color: var(--accent-on-dark-text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pp-face-back .pp-cap-turn { background: transparent; color: #F4F2EC; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); }

/* Arrows (mouse only), dots, hint, small print. */
.pp-proof-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: -20px; }
.pp-wins-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; }
.pp-wins-ctl[hidden] { display: none; }
.pp-wins-dots { display: flex; align-items: center; gap: 2px; }
.pp-wins-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pp-wins-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); transition: width 0.25s ease, background-color 0.25s ease; }
.pp-wins-dot[aria-current="true"]::before { width: 22px; background: var(--accent-on-dark); }
.pp-wins-arrow { display: none; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.28); background: transparent; color: #FFFFFF; cursor: pointer; align-items: center; justify-content: center; transition: border-color 0.2s ease, opacity 0.2s ease; }
.pp-wins-arrow:hover { border-color: var(--accent-on-dark); }
.pp-wins-arrow:disabled { opacity: 0.3; cursor: default; border-color: rgba(255, 255, 255, 0.28); }
.pp-wins-dot:focus-visible, .pp-wins-arrow:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .pp-wins-arrow { display: inline-flex; } }
.pp-wins-hint { margin: 0; font-size: 14px; color: #A6A299; text-align: center; }
.pp-proof-notes { max-width: 760px; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.pp-proof-notes p { margin: 0; font-size: 14px; line-height: 1.6; color: #B9B5AC; }
.pp-proof-notes p + p { font-size: 13px; color: #918D85; }

@media (max-width: 640px) {
  .pp-proof { padding: 60px 0; gap: 20px; }
  .pp-wins { gap: 14px; padding-bottom: 40px; }
  .pp-cap-id b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-flip { transition: none; }
  .pp-face { transition: none; }
  .pp-win.is-turning .pp-flip, .pp-win.is-peek .pp-flip { animation: none; }
}

/* Link from the home student cards to the wins page. */
.pp-proof-more { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 6px; padding: 0 26px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.4); color: #FFFFFF; font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color 0.2s ease; }
.pp-proof-more:hover { border-color: var(--accent-on-dark); }
.pp-proof-more:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 3px; }

/* ===== Wins page ===== */
/* Featured student at the top. The picture slot is where his interview video goes. */
.pp-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 40px; padding: 36px; border-radius: 24px; background: #FFFFFF; border: 1px solid #E7E4DD; box-shadow: 0 10px 24px rgba(20, 20, 20, 0.06); }
.pp-feature-text { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.pp-feature h2 { margin: 0; font-family: 'Inter Tight', Inter, system-ui, sans-serif; font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -0.03em; color: #141414; }
.pp-feature p { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: #55534E; }
.pp-feature p.pp-feature-note { font-size: 13px; color: #6B6862; }
.pp-feature img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 12px 28px rgba(20, 20, 20, 0.16); }
@media (max-width: 820px) { .pp-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px; } .pp-feature h2 { letter-spacing: -0.015em; } }

/* The wall: Discord posts in columns, each with the student's name under it. One readable column on phones. */
.pp-wall { columns: 1; column-gap: 16px; }
@media (min-width: 620px) { .pp-wall { columns: 2; } }
@media (min-width: 980px) { .pp-wall { columns: 3; } }
.pp-shot { break-inside: avoid; margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: #1E1F22; border: 1px solid rgba(255, 255, 255, 0.1); }
.pp-shot a { display: block; cursor: zoom-in; }
.pp-shot a:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: -3px; }
.pp-shot img { display: block; width: 100%; height: auto; }
.pp-shot figcaption { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: #242321; color: #FFFFFF; font-size: 15px; font-weight: 700; text-align: left; }
.pp-shot figcaption::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--accent-on-dark); }
@media (hover: hover) { .pp-shot { transition: border-color 0.2s ease; } .pp-shot:hover { border-color: rgba(217, 165, 59, 0.6); } }

/* Full-size view. */
.pp-zoom { width: min(92vw, 620px); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #1E1F22; color: #FFFFFF; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.pp-zoom::backdrop { background: rgba(10, 10, 10, 0.82); }
.pp-zoom img { display: block; width: 100%; height: auto; max-height: calc(92vh - 50px); object-fit: contain; background: #1E1F22; }
.pp-zoom p { margin: 0; padding: 12px 16px; background: #242321; font-size: 15px; font-weight: 700; text-align: left; }
.pp-zoom-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.65); color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; }
.pp-zoom-close:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 2px; }

/* ===== QUIZ: personal result ===== */
.quiz-read { display: flex; flex-direction: column; gap: 18px; }
.quiz-wait { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
.quiz-wait-bar { display: block; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #EFECE5 25%, #F8F6F1 50%, #EFECE5 75%); background-size: 200% 100%; animation: quiz-wait 1.3s linear infinite; }
@keyframes quiz-wait { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.quiz-weeks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: week; }
.quiz-weeks li { counter-increment: week; display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid #E7E4DD; font-size: 16px; line-height: 1.55; color: #3B3A36; }
.quiz-weeks li:last-child { padding-bottom: 0; }
.quiz-weeks li::before { content: "Week " counter(week); font-weight: 700; color: #141414; white-space: nowrap; }
.quiz-points { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.quiz-points li { position: relative; padding: 14px 16px 14px 42px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); font-size: 16px; line-height: 1.45; font-weight: 500; color: #FFFFFF; }
.quiz-points li::before { content: ""; position: absolute; left: 17px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-on-dark); }
@media (prefers-reduced-motion: reduce) { .quiz-wait-bar { animation: none; } }
