/* ============================================================
   The ads funnel's page layouts (opt-in, schedule, thank-you), built
   November 15, 2026 and approved November 16; moved into the repo
   November 18. The opt-in page's own layout is in its <style>.
   styles.css is the funnel's copy of the website's stylesheet
   (projects/website-studiohub-ai/pages/styles.css): its colours, type,
   white blocks, bands, buttons, form and footer. This file only lays out
   the new words. Every colour here is a website token.

   Spacing. One gap between sections, everywhere: 112px on a computer
   (the website's 56 + 56) and 80px on a phone (its 40 + 40). Inside the
   blue band, the space from the deepest point of each curve to the
   nearest words is the same at the top and the bottom (Hervin's note on
   the phone version of the earlier opt-in page). The band's numbers are
   measured from the rendered page, not guessed: see the comment on
   .help-band.
   ============================================================ */

:root { --gap: 112px; }
@media (max-width: 640px) { :root { --gap: 80px; } }

/* every section on these pages uses the one gap */
section.s { padding: 0; margin: var(--gap) 0 0; }
br.d { display: inline; }
@media (max-width: 640px) { br.d { display: none; } }

/* ---- headings ----------------------------------------------------- */
.h2 { font-size: 44px; line-height: 1.25; margin: 0 auto; max-width: 960px; text-align: center; }
@media (max-width: 640px) { .h2 { font-size: min(27px, 6.9vw); line-height: 1.3; } }

/* ---- opt-in: the top -------------------------------------------- */
.hero.top { padding-top: 70px; }
.top h1 { font-size: 66px; line-height: 1.18; max-width: 1000px; margin: 0 auto 30px; }
.top .why { font-size: 24px; line-height: 1.6; font-weight: 500; color: var(--ink); margin: 0 auto; max-width: 820px; }
.top .why span { display: block; }
.top .cta { margin: 48px 0 0; }
@media (max-width: 640px) {
  .hero.top { padding-top: 48px; }
  .top h1 { font-size: min(30px, 7.7vw); margin-bottom: 20px; }
  .top .why { font-size: 18px; line-height: 1.5; text-wrap: balance; }
  .top .why span + span { margin-top: 10px; }
  .top .cta { margin-top: 32px; }
}

/* ---- opt-in: what we do (the website's blue band and its curves) --
   The curve is the website's own SVG at 282% of the band's width, so only
   its left part shows. Measured on the rendered page: the lavender of the
   top curve reaches 70px into the band at 1280 (47px at 390, where the
   website's --wave is 100px), at about three quarters of the way across;
   the bottom curve is the same shape turned round. Over the heading's width
   the lavender reaches 84px down at 1280 (56px at 390). The padding is set
   so the clear space from the deepest point of the top curve to the tops of
   the heading's letters equals the space from the button's shadow to the
   highest point of the bottom curve: 88px on a computer, 56px on a phone
   (measure.py checks it). The band visibly starts about 35px below its box
   (where the curve is shallowest), so the margins above and below it are
   one gap minus that, which makes the space from the hero's button to the
   first blue, and from the last blue to the next heading, one gap too. */
.help-band { margin-top: calc(var(--gap) - 35px); padding: 162px 0 175px; }
.help-band + section.s { margin-top: calc(var(--gap) - 36px); }
@media (max-width: 640px) {
  .help-band { margin-top: calc(var(--gap) - 23px); padding: 106px 0 115px; }
  .help-band + section.s { margin-top: calc(var(--gap) - 24px); }
}
.help-band .h2 { color: var(--white); max-width: 900px; }
.two-things { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin: 86px auto 0; }
.two-things .thing { padding: 52px 34px 34px; }
.two-things .thing h3 { font-size: 22px; line-height: 1.45; margin: 0 0 18px; color: var(--ink); text-wrap: balance; }
.two-things .thing p { font-size: 18px; line-height: 1.6; color: var(--body); margin: 0 0 10px; text-wrap: balance; }
.two-things .thing p:last-child { margin-bottom: 0; }
/* the part after the two reasons: one white block across both columns,
   no number, because it is not a third reason */
.and-more { max-width: 980px; margin: 28px auto 0; padding: 34px 40px; text-align: center; background: var(--white); border: 2px solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); }
.and-more p { color: var(--body); font-size: 18px; line-height: 1.6; margin: 0 0 8px; }
.and-more p.lead-in { color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1.45; margin-bottom: 14px; }
.and-more p:last-child { margin-bottom: 0; }
.help-band .cta { margin: 56px 0 0; text-align: center; }
@media (max-width: 640px) {
  .two-things { grid-template-columns: 1fr; gap: 52px; margin-top: 64px; }
  .two-things .thing { padding: 46px 22px 26px; }
  .two-things .thing h3 { font-size: 19px; margin-bottom: 14px; }
  .two-things .thing p { font-size: 16px; }
  .and-more { margin-top: 28px; padding: 26px 22px; }
  .and-more p { font-size: 16px; text-wrap: balance; }
  .and-more p.lead-in { font-size: 19px; text-wrap: balance; }
  .help-band .cta { margin-top: 44px; }
}

/* ---- opt-in: owners who were stuck (quote cards, three across) ----
   Each card uses the row's three lines (subgrid), so across the row the
   blue results start at one height and the names at another. */
.owners .h2 { max-width: 1000px; }
.owner-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 64px 0 0; }
.owner-cards .quote { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 28px 28px 22px; }
.owner-cards .said { font-size: 20px; line-height: 1.55; color: var(--ink); margin: 0 0 18px; }
.owner-cards .result { font-size: 17px; line-height: 1.55; font-weight: 700; color: var(--blue-ink); margin: 0 0 22px; }
.owner-cards .who-said { align-self: end; }
.owner-cards .who-said strong { font-size: 18px; }
.owner-cards .who-said span { display: block; font-size: 15px; line-height: 1.45; }
.owners .cta { margin: 56px 0 0; text-align: center; }
@media (max-width: 900px) { .owner-cards { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
@media (max-width: 640px) {
  .owner-cards { gap: 24px; margin-top: 40px; }
  .owner-cards .quote { padding: 22px 20px 18px; }
  .owner-cards .said { font-size: 18px; }
  .owner-cards .result { font-size: 16px; }
  .owners .cta { margin-top: 44px; }
}

/* ---- opt-in: the close ------------------------------------------- */
.close .h2 { max-width: 880px; }
.close .cta { margin: 44px 0 0; text-align: center; }
.page-end { height: calc(var(--gap) - 40px); }   /* + the footer's own 40px margin = one gap */
@media (max-width: 640px) { .close .cta { margin-top: 32px; } .page-end { height: calc(var(--gap) - 32px); } }

/* ---- the form's pop-up -------------------------------------------- */
.modal .panel.form-panel { padding: 46px 44px 34px; max-width: 600px; text-align: center; }
.form-panel h2 { font-size: 36px; margin: 0; }
.form-panel .qform { margin-top: 30px; }
.form-panel .qf select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 52px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%23111318' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 22px center / 14px 9px;
}
.form-panel .qf select:invalid { color: var(--grey); }
.form-panel .qf select option { color: var(--ink); }
.form-panel .qf input:focus, .form-panel .qf select:focus { outline: none; }
.form-panel .qf input:focus-visible, .form-panel .qf select:focus-visible,
.form-panel .qf-terms input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-panel .qf-terms input { accent-color: var(--blue-ink); }
@media (max-width: 640px) {
  .modal .panel.form-panel { padding: 40px 20px 22px; }
  .form-panel h2 { font-size: 28px; }
  .form-panel .qform { margin-top: 24px; }
}

/* ---- a video that isn't made yet ----------------------------------
   Hervin's picture from the website's own video poster, the script's
   first line where the video's words will show, and a small tag above so
   nobody takes it for the finished video. */
.video-slot { max-width: 870px; margin: 0 auto; }
.mock-tag { text-align: center; margin: 0 0 14px; }
.mock-tag span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--white); border: 1px dashed var(--grey); color: var(--grey); font-size: 13px; font-weight: 500; letter-spacing: .2px; }
.standin { position: relative; aspect-ratio: 16 / 9; }
.standin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.standin .play { position: absolute; left: 50%; top: 46%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(0,0,0,0.72); border: 2px solid var(--white); }
.standin .play::after { content: ""; position: absolute; left: 32px; top: 24px; border-style: solid; border-width: 17px 0 17px 27px; border-color: transparent transparent transparent var(--white); }
.standin .line { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); max-width: 86%; width: max-content; background: var(--white); color: var(--ink); border: 2px solid var(--black); border-radius: 12px; padding: 10px 20px; font-size: 22px; font-weight: 700; line-height: 1.3; text-align: center; }
@media (max-width: 640px) {
  .standin .play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .standin .play::after { left: 21px; top: 15px; border-width: 12px 0 12px 19px; }
  .standin .line { font-size: 13px; padding: 6px 10px; border-radius: 8px; bottom: 6%; }
  .mock-tag span { font-size: 12px; }
}

/* ---- schedule ----------------------------------------------------- */
.hero.flow.sched { padding-top: 70px; }
.sched h1 { margin-bottom: 0; }
.sched-video { margin-top: 44px; }
.sched-cal { margin-top: 44px; }
.results-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 56px 0 0; }
.results-row .quote { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; padding: 26px 26px 20px; }
.results-row .r { font-size: 19px; line-height: 1.55; color: var(--ink); margin: 0 0 18px; }
.results-row .where { border-top: 1px solid var(--line); padding-top: 14px; margin: 0; font-size: 15px; line-height: 1.45; color: var(--body); align-self: end; }
.sched-results .h2 { font-size: 36px; max-width: 860px; }
@media (max-width: 900px) { .results-row { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
@media (max-width: 640px) {
  .hero.flow.sched { padding-top: 48px; }
  .sched-video, .sched-cal { margin-top: 32px; }
  .sched-results .h2 { font-size: min(24px, 6.2vw); }
  .results-row { gap: 24px; margin-top: 36px; }
  .results-row .quote { padding: 22px 20px 16px; }
  .results-row .r { font-size: 17px; }
}

/* ---- thank-you: the top -------------------------------------------- */
.hero.flow.ty { padding-top: 70px; }
.ty h1 { margin: 0 0 26px; }
/* "Reply Y" is the one thing that keeps her call, so it sits in a white
   block right under the headline, nearly the headline's size. */
.reply-y { display: inline-flex; align-items: center; gap: 18px; max-width: 760px; text-align: left; margin: 0 auto; padding: 22px 30px; background: var(--white); border: 2px solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); }
.reply-y svg { flex: none; width: 44px; height: 44px; }
.reply-y p { margin: 0; font-size: 28px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.ty .watch { font-size: 22px; line-height: 1.55; color: var(--ink); max-width: 760px; margin: 52px auto 0; }
.ty-video { margin-top: 32px; }
.together { font-size: 20px; line-height: 1.55; color: var(--body); max-width: 700px; margin: 32px auto 0; text-align: center; }
@media (max-width: 640px) {
  .hero.flow.ty { padding-top: 48px; }
  .ty h1 { margin-bottom: 22px; }
  .reply-y { gap: 14px; padding: 16px 18px; border-radius: 18px; }
  .reply-y svg { width: 34px; height: 34px; }
  .reply-y p { font-size: 20px; }
  .ty .watch { font-size: 18px; margin-top: 40px; text-wrap: balance; }
  .ty-video { margin-top: 24px; }
  .together { font-size: 17px; margin-top: 24px; text-wrap: balance; }
}

/* ---- thank-you: testimonials (five clip cards, three then two) ---- */
.ty-stories .h2 { max-width: 920px; }
.clip-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 44px 28px; margin: 64px 0 0; }
.clip-card { grid-column: span 2; margin: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 14px 14px 18px; background: var(--white); border: 2px solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); }
.clip-card:nth-child(4) { grid-column: 2 / span 2; }
.clip-card:nth-child(5) { grid-column: 4 / span 2; }
.clip-card .tresult, .faq-clip .tresult { margin: 20px 8px 0; font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--blue-ink); }
.clip-card .twho, .faq-clip .twho { margin: 10px 8px 0; font-size: 15px; line-height: 1.45; color: var(--body); }
.clip-card .twho strong, .faq-clip .twho strong { display: block; color: var(--ink); font-size: 17px; }
.clip-card .twho { align-self: end; }
@media (max-width: 900px) {
  .clip-cards { grid-template-columns: repeat(4, 1fr); }
  .clip-card, .clip-card:nth-child(4) { grid-column: span 2; }
  .clip-card:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 640px) {
  .clip-cards { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .clip-card, .clip-card:nth-child(4), .clip-card:nth-child(5) { grid-column: 1; padding: 12px 12px 16px; }
  .clip-card .tresult, .faq-clip .tresult { font-size: 17px; margin-top: 16px; }
}

/* ---- thank-you: Frequently Asked Questions ------------------------ */
.ty-faq .faq-wrap { max-width: 900px; margin-top: 64px; }
.ty-faq .faq { padding: 8px 52px; }
.ty-faq .faq details.faq-item { padding: 0; }
.ty-faq .faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 0; }
.ty-faq .faq summary::-webkit-details-marker { display: none; }
.ty-faq .faq summary h3 { margin: 0; font-size: 21px; line-height: 1.4; text-wrap: pretty; }
.ty-faq .chev { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--black); }
.ty-faq .chev::before, .ty-faq .chev::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.ty-faq .chev::before { width: 13px; height: 2px; }
.ty-faq .chev::after { width: 2px; height: 13px; }
.ty-faq details[open] .chev::after { display: none; }
.ty-faq .faq-body { padding: 0 0 36px; }
.ty-faq .faq-body p.a { font-size: 18px; line-height: 1.6; color: var(--ink); margin: 0 0 10px; max-width: 720px; }
.faq-clip { max-width: 460px; margin: 26px 0 0; }
@media (max-width: 640px) {
  .ty-faq .faq-wrap { margin-top: 40px; }
  .ty-faq .faq { padding: 4px 20px; }
  .ty-faq .faq summary { padding: 22px 0; gap: 16px; }
  .ty-faq .faq summary h3 { font-size: 18px; }
  .ty-faq .chev { width: 28px; height: 28px; }
  .ty-faq .faq-body { padding-bottom: 28px; }
  .ty-faq .faq-body p.a { font-size: 16px; }
  .faq-clip { margin-top: 20px; }
}

/* the clip frame: the website's 16:9 video frame with a play button */
.tframe { border-radius: 14px; }
.tframe .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.tframe .play::after { left: 24px; top: 17px; border-width: 13px 0 13px 21px; }

/* ---- thank-you: the last line ------------------------------------- */
.ty-end p { text-align: center; font-size: 20px; color: var(--ink); margin: 0; }
.ty-end a { font-weight: 700; }
@media (max-width: 640px) { .ty-end p { font-size: 17px; } }

/* No one-word last lines in short blocks. */
.quote p, .clip-card p, .faq-item p { text-wrap: pretty; }
.nw { white-space: nowrap; }

/* The website's size for a step page's headline (.hero.flow h1 in the
   website's styles.css: 48px, smaller on phones). The funnel's copy of the
   stylesheet left that section out. On a phone 30px, the hero's own phone
   size, keeps "Pick a time for your demo." on one line. */
.hero.flow h1 { font-size: 48px; line-height: 1.25; }
@media (max-width: 640px) { .hero.flow h1 { font-size: min(30px, 7.7vw); } }
.reply-y { max-width: 920px; }
.ty .watch { text-wrap: balance; }
.ty .watch { max-width: 940px; }
.together { max-width: 900px; }
/* in an answer, the result and name line up with the answer's own text */
.faq-clip .tresult, .faq-clip .twho { margin-left: 0; margin-right: 0; }
/* On a phone the icon sits above the words, so the words get the block's
   full width and "Reply Y" never splits across lines. */
@media (max-width: 640px) {
  .reply-y { flex-direction: column; gap: 10px; text-align: center; padding: 18px 16px 20px; }
  .reply-y p { text-wrap: balance; }
}

/* ---- opt-in rewrite (main session's words, November 15, night) ----- */
/* The sentence under the band's heading: white like the website's band
   text, a little larger than body text. */
.help-band .band-lead { color: var(--white); font-size: 22px; line-height: 1.55; font-weight: 500; text-align: center; max-width: 820px; margin: 26px auto 0; text-wrap: balance; }
/* each block now holds one sentence, in ink so it reads as the answer */
.two-things .thing p, .and-more p { color: var(--ink); font-size: 19px; line-height: 1.6; text-wrap: balance; }
.two-things .thing { display: flex; align-items: center; justify-content: center; padding: 50px 34px 36px; }
.and-more { padding: 30px 48px; }
/* the paid-before section: one white block, the website's card */
.paid-box { max-width: 820px; margin: 0 auto; padding: 40px 48px; text-align: center; background: var(--white); border: 2px solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); }
.paid-box p { font-size: 19px; line-height: 1.6; color: var(--body); margin: 0; text-wrap: balance; }
.paid-box p.first { font-size: 22px; line-height: 1.5; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
@media (max-width: 640px) {
  .help-band .band-lead { font-size: 18px; margin-top: 20px; }
  .two-things .thing p, .and-more p { font-size: 17px; }
  .two-things .thing { padding: 44px 22px 26px; }
  .and-more { padding: 24px 22px; }
  .paid-box { padding: 28px 22px; }
  .paid-box p { font-size: 17px; }
  .paid-box p.first { font-size: 19px; margin-bottom: 12px; }
}

/* thank-you top, November 16 (Hervin): the headline, the line under it,
   then the business-partner line directly above the video. */
.ty .watch { margin: 0 auto; max-width: 860px; font-size: 23px; line-height: 1.5; color: var(--ink); }
.ty-video { margin-top: 48px; }
.partner { text-align: center; font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--body); max-width: 860px; margin: 0 auto 22px; text-wrap: balance; }
.mock-tag.below { margin: 14px 0 0; }
@media (max-width: 640px) {
  .ty .watch { font-size: 18px; }
  .ty-video { margin-top: 36px; }
  .partner { font-size: 17px; margin-bottom: 16px; }
}
