/* Better Gamers site styles.
   Values follow the "Page system" board in the Better Gamers design canvas.
   Every page links this one file. Sections, in order:
   1. Tokens   2. Base   3. Layout   4. Header & menu   5. Buttons
   6. Hero     7. Sections   8. Panels & mockups   9. Offer cards
   10. Testimonials   11. Forms   12. Footer   13. Responsive
   Page recipe: nav, hero, optional middle sections (image rows, long text,
   numbered rows, offer cards, testimonials; never the same layout twice in a row),
   close, footer. Sales pages drop the menu, add a gold audience line above the
   headline, and put the VSL in the hero.
   Build new pages from these pieces; add a new component here, not inline on a page. */

/* 1. Tokens */
:root {
  color-scheme: dark;

  /* Color */
  --bg: #420200;
  --panel: #2a0401;              /* image cards and mockups */
  --panel-line: rgba(255, 255, 255, 0.08);
  --box: rgba(255, 255, 255, 0.05); /* plain boxes */
  --card: #4c0f0d;
  --tile: #34110d;
  --field: #2f0503;
  --field-line: rgba(255, 255, 255, 0.18);
  --rule: rgba(255, 255, 255, 0.14);
  --ink: #ffffff;                /* headings */
  --ink-soft: #e6d6d1;           /* body text */
  --ink-mute: #cbb7b2;           /* labels */
  --ink-quiet: #a88f8a;          /* quiet proof and small notes */
  --gold: #fdc10b;
  --gold-ink: #111111;
  --gold-glow: rgba(253, 193, 11, 0.35);
  --paper: #ffffff;
  --paper-ink: #111111;
  --paper-mute: #444444;
  --avatar: #7a3a34;
  --down: #ff8a7a;
  --error: #ff9b8c;

  /* Type */
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --size-hero: clamp(44px, 8.5vw, 84px);
  --size-hero-long: clamp(40px, 6.5vw, 76px);
  --size-section: clamp(32px, 4.5vw, 48px);
  --size-row: clamp(26px, 3vw, 36px);
  --size-lede: clamp(17px, 2.2vw, 20px);

  /* Layout */
  --wrap: 1100px;
  --space-section: 112px;
  --space-after-hero: 192px;
  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-panel: 18px;
  --radius-field: 12px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.3);
  --shadow-box: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px -14px rgba(0, 0, 0, 0.5);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 2. Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); height: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 30;
  height: env(safe-area-inset-top, 0px); background: var(--bg);
}
main { flex: 1; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.03em; line-height: 1.08; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 3. Layout */
.gutter {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* 4. Header & menu */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease;
}
.site-header.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.menu-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 10px;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.08); }
.menu-btn svg { width: 22px; height: 22px; }
.menu {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 64px;
  min-width: 220px; padding: 8px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: grid; gap: 2px;
}
.menu a { text-decoration: none; padding: 10px 14px; border-radius: 9px; font-weight: 500; font-size: 15px; }
.menu a:hover { background: rgba(255, 255, 255, 0.07); }
.menu a[aria-current="page"] { color: var(--gold); }

/* 5. Buttons */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 34px; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  background: var(--gold); color: var(--gold-ink);
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 8px 28px var(--gold-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(253, 193, 12, 0.45); }
.btn-gold:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn-gold.btn-sm { padding: 10px 20px; font-size: 14.5px; box-shadow: 0 6px 18px var(--gold-glow); }
.btn-ghost {
  display: inline-flex; padding: 10px 28px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.3); color: var(--ink); background: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.05); }
.link-arrow { color: var(--gold); font-weight: 700; text-decoration: none; font-size: 15.5px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 6. Hero: the opening block of every page */
.hero { text-align: center; padding-block: 72px 0; }
.hero:last-child { padding-bottom: var(--space-section); }
.hero.full {
  min-height: calc(100svh - 76px - env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; justify-content: center; padding-block: 40px 56px;
}
.hero.full + .section { padding-top: var(--space-section); }
.hero + .section { padding-top: var(--space-after-hero); }
.hero h1 { font-size: var(--size-hero); }
.hero h1.long { font-size: var(--size-hero-long); max-width: 15em; margin-inline: auto; line-height: 1.04; }
.eyebrow {
  display: block; margin-bottom: 20px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.hero .lede {
  margin: 28px auto 0; max-width: 34em;
  font-size: var(--size-lede); color: var(--ink-soft); line-height: 1.55;
}
.hero .btn-gold { margin-top: 40px; }
.hero-form { margin: 44px auto 0; max-width: 440px; }
.proof {
  margin-top: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 18px; font-size: 14px; color: var(--ink-quiet);
}
.proof strong { color: var(--ink-mute); font-weight: 600; }
.hero .btn-gold + .proof { margin-top: 28px; }
.hero-form .proof { margin-top: 28px; }
.faces { display: flex; }
.faces span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #5e1e18; color: var(--ink-mute); font-size: 10px; font-weight: 600;
  border: 2px solid var(--bg); margin-left: -6px;
}
.faces span:first-child { margin-left: 0; }
.faces img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid var(--bg); margin-left: -8px; background: var(--avatar);
}
.faces img:first-child { margin-left: 0; }

/* Split hero: landing pages with a form beside an illustration. Stacks on phones. */
.hero.split { text-align: left; padding-block: 64px var(--space-section); }
.split-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-copy h1.long { margin-inline: 0; max-width: 13em; font-size: clamp(36px, 4.6vw, 60px); }
.split-copy .lede { margin-inline: 0; }
.split-copy .hero-form { margin-inline: 0; }
.split-copy .proof { justify-content: flex-start; }

/* Assessment illustration: a question card with a results card tucked under it */
.assess-visual { position: relative; padding-bottom: 96px; text-align: left; }
.assess-q { position: relative; z-index: 1; margin-right: 24px; }
.assess-r { position: absolute; z-index: 2; right: 0; bottom: 0; width: 72%; padding: 20px 22px; }
.assess-progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-bottom: 20px; }
.assess-progress span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.assess-ask { font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.assess-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.assess-options li {
  padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); color: var(--ink-soft);
}
.assess-options li.picked { border-color: var(--gold); color: var(--ink); background: rgba(253, 193, 11, 0.1); }
.assess-scores { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.assess-scores li { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 12px; color: var(--ink-soft); }
.assess-scores i { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.assess-scores em { display: block; height: 100%; border-radius: inherit; background: var(--ink-mute); }
.assess-scores li.low span { color: var(--ink); font-weight: 600; }
.assess-scores li.low em { background: var(--gold); }

/* VSL video: 16:9 frame in the hero */
.video {
  position: relative; margin: 48px auto 0; width: 100%; max-width: 928px; aspect-ratio: 16 / 9;
  border-radius: var(--radius-panel); overflow: hidden; background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 56px -18px rgba(0, 0, 0, 0.65);
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; color: var(--ink-quiet); font-size: 15px;
}
.video-placeholder .play {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); box-shadow: 0 12px 36px -8px rgba(253, 193, 11, 0.55);
}
.video-placeholder .play svg { width: 34px; height: 34px; margin-left: 4px; }

/* 7. Sections */
.section { padding-block: var(--space-section); }
.section-title { text-align: center; font-size: var(--size-section); margin-bottom: 56px; }
.closing { text-align: center; padding-block: var(--space-section) 144px; }
.closing h2 { font-size: var(--size-section); margin-bottom: 34px; }

.problems { display: grid; gap: 96px; max-width: 980px; }
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.problem.flip .mock { order: 2; }
.problem h3 { font-size: var(--size-row); line-height: 1.15; margin-bottom: 18px; }
.problem p { color: var(--ink-soft); font-size: 16.5px; max-width: 32em; }
.problem p strong { color: var(--ink); font-weight: 700; }

/* Long text: copy that needs room to persuade */
.long-text { max-width: 640px; display: grid; gap: 28px; font-size: 20px; line-height: 1.75; color: var(--ink); }
.long-text .hl { color: var(--gold); font-weight: 600; }
.long-text .truth {
  margin-block: 28px; padding-left: 24px; border-left: 3px solid var(--gold);
  font-size: clamp(24px, 2.75vw, 30px); line-height: 1.35; font-weight: 700; letter-spacing: -0.02em;
}

/* Numbered rows: steps or a process */
.num-rows { max-width: 960px; border-bottom: 1px solid var(--rule); }
.num-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px;
  padding-block: 36px; border-top: 1px solid var(--rule);
}
.num-row .n { flex: 0 0 40px; font-size: 16px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold); }
.num-row h3 { flex: 1 1 16rem; font-size: clamp(22px, 2.5vw, 26px); line-height: 1.3; letter-spacing: -0.02em; }
.num-row p { flex: 1.4 1 20rem; color: var(--ink-soft); font-size: 19px; }
.section-cta { display: flex; justify-content: center; margin-top: 48px; }

/* Booking: the call calendar in a sales page's close */
.closing .note { margin-top: -14px; font-size: 15px; color: var(--ink-quiet); }
.booking {
  margin: 48px auto 0; width: 100%; max-width: 832px; min-height: 660px;
  border-radius: var(--radius-panel); background: var(--box); box-shadow: var(--shadow-box); overflow: hidden;
}
/* Calendly fills its frame edge to edge only below ~600px wide; data-resize sizes the height. */
.booking.calendly-inline-widget { max-width: 560px; min-height: 0; height: 600px; background: var(--bg); }
.booking.calendly-inline-widget iframe { display: block; }
.closing .booking-fallback { margin-top: 20px; }
.closing .booking-fallback a { color: var(--ink-mute); }
.booking-placeholder {
  min-height: 660px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--ink-quiet); font-size: 16px;
}
.booking-placeholder svg { width: 44px; height: 44px; }

/* 8. Panels & mockups */
.mock {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius-panel);
  padding: 24px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-size: 15px;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.mock-head b { font-weight: 600; }
.mock-head small { color: var(--ink-mute); font-size: 12.5px; white-space: nowrap; }
.chip {
  font-size: 12px; color: var(--ink-mute); padding: 2px 10px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ideas li { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.45); }
.ideas .live {
  color: var(--ink); text-decoration: none; padding-top: 14px; margin-top: 4px;
  border-top: 1px solid var(--panel-line);
}
.caret {
  display: inline-block; width: 2px; height: 1.05em; background: var(--gold);
  vertical-align: -2px; margin-left: 3px; animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--tile); border-radius: 10px; padding: 12px 12px 14px; border: 1px solid transparent; }
.stat.flag { border-color: rgba(255, 255, 255, 0.35); }
.stat small { display: block; color: var(--ink-soft); font-size: 12.5px; margin-bottom: 4px; }
.stat b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .delta { display: block; color: var(--down); font-size: 11.5px; font-weight: 600; margin-top: 4px; }

.bars { height: 112px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; }
.bars span { border-radius: 6px; background: var(--gold); }
.bars span.empty { height: 6%; background: rgba(255, 255, 255, 0.1); }
.bars-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--ink-mute); }

.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tasks label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tasks input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 17px; height: 17px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 4px;
  display: grid; place-items: center; cursor: pointer; background: transparent;
}
.tasks input:checked { background: var(--gold); border-color: var(--gold); }
.tasks input:checked::after {
  content: ""; width: 5px; height: 9px; border: solid var(--gold-ink); border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.tasks .who { margin-left: auto; }
.tasks input:checked ~ .task { color: var(--ink-mute); text-decoration: line-through; }
.tasks input:checked ~ .who { background: rgba(253, 193, 12, 0.18); color: var(--gold); }

.notice {
  padding: 28px 24px; border-radius: var(--radius-panel);
  background: var(--panel); border: 1px solid var(--panel-line);
}
.notice b { display: block; font-size: 20px; margin-bottom: 6px; }
.notice p { color: var(--ink-soft); }

/* 9. Offer cards */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; }
.offer {
  background: var(--card); border-radius: var(--radius-card); padding: 40px 36px 38px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.offer h3 { font-size: 24px; letter-spacing: -0.02em; }
.offer .tier { color: var(--ink-mute); font-style: italic; font-size: 14.5px; margin-top: 4px; }
.offer ul { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--panel-line); flex: 1; }
.offer li {
  display: flex; gap: 12px; align-items: center; padding-block: 12px;
  border-bottom: 1px solid var(--panel-line); font-size: 15px;
}
.offer li span[aria-hidden] { width: 18px; text-align: center; font-size: 14px; }
.offer .link-arrow { margin-top: 28px; align-self: flex-start; }

/* 10. Testimonials */
.quotes { display: grid; gap: 20px; max-width: 900px; }
.quote {
  margin: 0; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-panel);
  padding: 36px 40px; box-shadow: var(--shadow-card);
}
.who-row { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: var(--avatar); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 17px;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.who-row b { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.who-row small { color: var(--paper-mute); font-size: 14px; }
.quote .result { font-size: clamp(24px, 3.2vw, 31px); margin-top: 18px; color: var(--paper-ink); }
.quote blockquote { margin: 16px 0 0; color: var(--paper-mute); font-size: 16px; max-width: 46em; display: grid; gap: 12px; }
.more { display: flex; justify-content: center; margin-top: 34px; }

/* 11. Forms */
.form { display: grid; gap: 14px; text-align: left; }
.field { display: grid; gap: 6px; }
.field input {
  width: 100%; padding: 16px 18px; border-radius: var(--radius-field);
  background: var(--field); border: 1px solid var(--field-line); color: var(--ink);
  font: inherit; font-size: 16px;
}
.field input::placeholder { color: var(--ink-soft); opacity: 1; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(253, 193, 12, 0.2); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field .err, .form-err { font-size: 13.5px; color: var(--error); }
.form-err { text-align: center; }
.form .btn-gold { margin-top: 6px; width: 100%; padding-block: 16px; }

/* 12. Footer */
.site-footer .bar {
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--panel-line); padding-block: 22px 40px; font-size: 14px;
}
.site-footer .brand { font-size: 14.5px; }
.site-footer small { color: var(--ink-mute); font-size: 14px; }

/* 13. Responsive */
@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero.split { text-align: center; }
  .split-copy h1.long, .split-copy .lede, .split-copy .hero-form { margin-inline: auto; }
  .split-copy .proof { justify-content: center; }
  .assess-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .offers { grid-template-columns: 1fr; max-width: 520px; }
  .problem { grid-template-columns: 1fr; gap: 32px; }
  .problem.flip .mock { order: 0; }
  .problems { gap: 72px; }
}
@media (max-width: 480px) {
  .hero { padding-top: 40px; }
  .section { padding-block: 56px; }
  .mock { padding: 20px; }
  .stat b { font-size: 17px; }
  .offer { padding: 32px 26px; }
  .quote { padding: 28px 24px; }
  .closing { padding-block: 72px 96px; }
  .hero + .section { padding-top: 120px; }
  .long-text { font-size: 18px; }
  .booking, .booking-placeholder { min-height: 560px; }
}
