/* The Dead Ball funnel: the Free-Kick Test, the free sample, the book's page, and the buyer pages. Uses the tokens in site.css. */

/* the test */
.test-band { padding-top: clamp(32px, 5vw, 64px); }
.test { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; scroll-margin-top: 90px; }
.test h1 { font-size: clamp(2.5rem, 7.4vw, 4.4rem); line-height: .98; letter-spacing: -.04em; }
.test h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); line-height: 1.12; }
.test h1:focus, .test h2:focus, .test .t-big:focus { outline: none; }
.test .lede { font-size: 1.12rem; color: var(--chalk-dim); }
.t-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.t-meta span { font: 500 .76rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-dim); padding: 8px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.t-meta span:first-child { color: var(--night); background: var(--gold); box-shadow: none; }
.t-gets { list-style: none; margin: 4px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.t-gets li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--chalk-dim); }
.t-gets svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }
.t-gets b { color: var(--chalk); font-weight: 600; }
.t-prog { display: flex; align-items: center; gap: 14px; font: 500 .76rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--chalk-faint); }
.t-prog i { flex: 1; height: 6px; background: var(--navy-2); border-radius: 99px; overflow: hidden; }
.t-prog i b { display: block; height: 100%; background: var(--gold); transition: width .5s var(--ease); }
.t-img { margin: 2px 0 4px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--navy); aspect-ratio: 16 / 9; }
.t-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.t-form { display: grid; gap: 14px; margin-top: 8px; padding: clamp(18px, 3vw, 26px); border-radius: 20px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(0, 0, 0, .9); }
.t-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.t-form label small { font-weight: 400; color: var(--chalk-faint); }
.t-form input:not([type=checkbox]) { font: 400 1.05rem/1.2 var(--display); padding: 15px 14px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--night); color: var(--chalk); width: 100%; transition: box-shadow .2s; }
.t-form input:not([type=checkbox]):hover { box-shadow: inset 0 0 0 1px var(--chalk-faint); }
.t-form input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.t-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }
.t-form .t-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--chalk-dim); }
.t-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.t-form .btn { justify-self: stretch; }
@media (min-width: 560px) { .t-form .btn { justify-self: start; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* the GoHighLevel form (assets/ghl-form.js): a navy card stands in while it loads, the same shape as the form's own card */
.ghl-box { position: relative; margin-top: 8px; min-height: 344px; border-radius: 20px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(0, 0, 0, .9); transition: background .3s; }
.ghl-box::before { content: ""; position: absolute; inset: 22px 22px auto; height: 50px; border-radius: 12px; background: var(--night); box-shadow: 0 74px 0 var(--night), 0 154px 0 -14px var(--navy-2); opacity: .8; }
.ghl-box.ready { background: transparent; box-shadow: none; min-height: 0; }
.ghl-box.ready::before { display: none; }
/* color-scheme matches the form's page, so the browser keeps the frame see-through (a dark page gets an opaque white
   backdrop behind a light frame); the radius clips it to the card's corners all the same */
.ghl-frame { display: block; width: 100%; height: 344px; border: 0; border-radius: 20px; color-scheme: light; background: transparent; opacity: 0; transition: opacity .3s; }
.ghl-box.ready .ghl-frame { opacity: 1; }
.ghl-note { margin-top: 12px; }
.t-err { color: #ff9b8a; font-weight: 600; }
.t-err[hidden] { display: none; }
.t-skip { text-align: center; margin-top: 4px; }
.t-score { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 32px 18px; border-radius: 24px; background: radial-gradient(circle at 50% 0, var(--navy-3), var(--navy)); box-shadow: inset 0 0 0 1px var(--line); }
.t-score .cta-row { justify-content: center; margin-top: 14px; }
.t-label { font: 500 .76rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.t-big { font: 750 clamp(5rem, 18vw, 8rem)/1 var(--display); letter-spacing: -.05em; color: var(--gold); font-variant-numeric: tabular-nums; }
.t-big small { font-size: .4em; color: var(--chalk-faint); letter-spacing: 0; }
.t-answers { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.t-answers li { padding: 18px 20px 18px 56px; border-radius: 16px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; position: relative; }
.t-answers li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 24px; height: 24px; border-radius: 50%; background: var(--pitch) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8F4EA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.t-answers li.no::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8F4EA' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 13px no-repeat; }
.t-answers h3 { font-size: 1.05rem; line-height: 1.35; }
.t-mark { font: 600 .76rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--chalk-faint); }
.t-answers s { color: var(--chalk-faint); }
.t-locked { text-align: center; padding: 26px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 14px; justify-items: center; margin-top: 18px; }
.t-book { margin-top: 26px; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: var(--book-deep); color: var(--paper); display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 22px; align-items: start; }
.t-book img { grid-row: span 4; width: 92px; height: auto; border-radius: 2px 6px 6px 2px; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .7); transform: rotate(-3deg); }
.t-book h2 { font-size: 1.3rem; line-height: 1.2; }
.t-book p { margin: 0; color: rgba(228, 236, 227, .82); }
.t-book p a { color: var(--paper); }
.t-book .cta-row { margin-top: 8px; }
@media (max-width: 520px) { .t-book { grid-template-columns: 1fr; } .t-book img { grid-row: auto; width: 84px; } }

/* thanks and broken-link pages */
.thanks .t-book { grid-template-columns: 1fr; }
.thanks .t-book h2 { font-size: 1.3rem; }

/* the book's page */
.book-hero { background: radial-gradient(ellipse 80% 70% at 75% 30%, #0f6a4b, transparent 70%), var(--book-deep); color: var(--paper); }
.book-hero .grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
@media (min-width: 940px) { .book-hero .grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.book-hero h1 { font-size: clamp(2.6rem, 6.6vw, 5rem); line-height: .96; letter-spacing: -.045em; }
.book-hero h1 > span:not(.w) { display: block; font-size: .44em; line-height: 1.15; letter-spacing: -.02em; color: var(--gold-on-book); margin-top: 16px; font-weight: 650; }
.book-hero .lede { font-size: 1.12rem; color: rgba(228, 236, 227, .84); max-width: 58ch; margin-top: 22px; }
.book-hero .small { color: rgba(228, 236, 227, .72); margin-top: 14px; }
.book-hero .small a { color: var(--paper); }
.book-hero .btn.ghost { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(228, 236, 227, .4); }
.ledger-table { overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.ledger-table table { width: 100%; border-collapse: collapse; min-width: 420px; font-variant-numeric: tabular-nums; }
.ledger-table th, .ledger-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.ledger-table th { font: 500 .74rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-faint); background: var(--navy); }
.ledger-table td:first-child { font-family: var(--mono); color: var(--chalk-faint); width: 3.5em; }
.ledger-table tr:last-child td { border-bottom: 0; }
.ledger-table tbody tr { transition: background .2s; }
.ledger-table tbody tr:hover { background: rgba(248, 244, 234, .03); }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 820px) { .chapters { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.chapters li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.chapters b { grid-row: span 2; font: 650 1.05rem/1.4 var(--mono); color: var(--gold); }
.chapters h3 { font-size: 1.15rem; letter-spacing: -.015em; }
.chapters p { color: var(--chalk-dim); }

/* the free sample */
.free-hero .grid { position: relative; z-index: 2; display: grid; gap: 44px; align-items: center; padding-block: clamp(36px, 6vw, 88px); }
.free-copy { max-width: 620px; }
.free-copy h1 { font-size: clamp(2.4rem, 5.8vw, 4.2rem); line-height: .98; letter-spacing: -.045em; }
.free-copy h1 > span:not(.w) { display: block; font-size: .5em; line-height: 1.12; letter-spacing: -.025em; margin-top: 14px; color: var(--gold); font-weight: 650; }
.free-copy .lede { font-size: 1.1rem; color: var(--chalk-dim); max-width: 56ch; margin: 22px 0 24px; }
.free-done { display: grid; gap: 12px; padding: 26px 22px; border-radius: 20px; background: radial-gradient(circle at 0 0, var(--navy-3), var(--navy)); box-shadow: inset 0 0 0 2px var(--gold); }
.free-done h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.05; }
.free-done h2:focus { outline: none; }
.free-done p { margin: 0; color: var(--chalk-dim); }
.free-done .cta-row { margin-top: 4px; }
.free-done[hidden], #free-form[hidden] { display: none; }
/* three real pages of the sample, fanned like a hand of cards */
.free-fan { position: relative; justify-self: center; width: min(400px, 84vw); aspect-ratio: 1 / 1.08; }
.free-fan img { position: absolute; top: 4%; left: 50%; width: 56%; height: auto; border-radius: 8px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); transform-origin: 50% 90%; }
.free-fan .ff-l { transform: translateX(-50%) translateX(-44%) rotate(-11deg); filter: brightness(.82); }
.free-fan .ff-r { transform: translateX(-50%) translateX(44%) rotate(10deg); filter: brightness(.82); }
.free-fan .ff-c { transform: translateX(-50%) translateY(-3%) rotate(-1.5deg); z-index: 2; box-shadow: 0 34px 70px rgba(0, 0, 0, .6); }
@media (min-width: 900px) { .free-hero .grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .free-fan { width: min(440px, 100%); } }
@media (max-width: 899px) { .free-fan { order: -1; width: min(270px, 68vw); margin-bottom: -16px; } .free-hero .grid { gap: 28px; } }
.inside { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.inside li { display: grid; gap: 6px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .inside li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; } }
.inside h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.1; letter-spacing: -.025em; }
.inside h3 small { display: block; font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.inside p { color: var(--chalk-dim); }

/* phones: a whole question, picture to answer D, fits one screen in Instagram's browser */
@media (max-width: 640px) {
  .on-test .top { position: static; }
  .test-band { padding-top: 14px; padding-bottom: 48px; }
  .test { gap: 11px; scroll-margin-top: 12px; }
  .t-img { aspect-ratio: auto; height: auto; max-height: 30svh; display: grid; place-items: center; background: #0d1b14; }
  .t-img img { width: 100%; height: auto; max-height: 30svh; object-fit: contain; }
  .test h2.t-q { font-size: 1.3rem; line-height: 1.2; }
  .t-opts { gap: 8px; }
  .t-opt { min-height: 54px; padding: 10px 14px; font-size: 1rem; }
  .t-opt span { width: 28px; height: 28px; }
  .t-form { padding: 16px; gap: 12px; }
  .t-form .btn, .t-locked .btn, .t-score .btn { width: 100%; }
  .t-skip .linkish { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; }
  /* the start screen: the button straight under the intro, the three promises after it, so it's on the first screen */
  .t-gets { order: 1; }
  .test > .cta-row { margin-top: 6px; }
  .test > .cta-row [data-go] { width: 100%; }
}
/* narrow phones: keep "The Free-Kick Test" from breaking at the hyphen */
@media (max-width: 380px) { .test h1 { font-size: 2.15rem; } }
/* short phones (an SE in Safari): a smaller picture keeps answer D on screen */
@media (max-width: 640px) and (max-height: 600px) {
  .t-img, .t-img img { max-height: 24svh; }
}
.t-locked .btn { white-space: nowrap; max-width: 100%; }

/* the weekly quiz (/quiz/): the week label above the title */
.t-kicker { margin: 0 0 6px; font: 600 .78rem/1.2 var(--mono, "Geist Mono", monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* desktop and tablet: the picture beside the question, so the answers are on screen without scrolling (both quizzes) */
@media (min-width: 900px) {
  .test:has(> .t-opts) { max-width: 1120px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 40px; row-gap: 18px; align-items: start; }
  .test:has(> .t-opts) > .t-prog { grid-column: 1 / -1; }
  .test:has(> .t-opts) > .t-img { grid-column: 1; grid-row: 2 / span 2; margin: 0; }
  .test:has(> .t-opts) > .t-q { grid-column: 2; grid-row: 2; align-self: end; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
  .test:has(> .t-opts) > .t-opts { grid-column: 2; grid-row: 3; }
  .on-test .top { position: static; }
}
/* in between (tablets, small laptops): a shorter picture */
@media (min-width: 641px) and (max-width: 899px) {
  .t-img { aspect-ratio: auto; max-height: 34vh; display: grid; place-items: center; }
  .t-img img { width: 100%; height: auto; max-height: 34vh; object-fit: contain; }
  .on-test .top { position: static; }
}
