/* Master Project Financials (/financials, /financials-thank-you) — page layout
   on top of styles.css tokens. Buttons, eyebrow and CTA notes come from
   css/tripwire.css. */

.fin-main { padding-top: 0; line-height: 1.6; }
.fin-wrap { max-width: 1120px; margin: 0 auto; padding: 80px 24px; }
.fin-band { border-top: 1px solid var(--border); }
.fin-band.alt { background: var(--bg-card); }
.fin-main .eyebrow { margin-bottom: 0; }
.fin-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.fin-accent { color: var(--accent); }
.fin-muted { color: var(--text-secondary); }
.fin-lead { color: var(--text-secondary); font-size: 18px; }
.fin-fine { font-size: 14px; color: var(--text-secondary); }
.fin-fine a, .fin-note a { color: var(--accent); text-decoration: none; font-weight: 600; }
.fin-fine a:hover, .fin-note a:hover { text-decoration: underline; }
.fin-h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.fin-h2.sm { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; }
.fin-main .cta-big { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 36px; text-align: center; }

/* Hero */
.fin-hero { background: radial-gradient(ellipse at 50% 20%, rgba(220, 171, 60, 0.1) 0%, transparent 65%); }
.fin-hero .fin-wrap { padding-top: 72px; display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; animation: fadeInUp 0.6s ease-out; }
.fin-hero h1 { max-width: 940px; font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.fin-hero h1 em { font-style: normal; color: var(--accent); }
.fin-sub { max-width: 760px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-secondary); }

/* Video frame (Bunny embed or placeholder) */
.fin-video { position: relative; width: 100%; max-width: 880px; aspect-ratio: 16 / 9; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.fin-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fin-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
/* Overlay on the muted, autoplaying video: one tap turns the sound on. Light
   scrim and a centred card, so the captions at the bottom stay readable. */
.fin-cue { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; border: 0; margin: 0; background: rgba(5, 8, 15, 0.32); color: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fin-cue[hidden] { display: none; }
.fin-cue-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 26px; border-radius: 16px; border: 2px solid var(--accent); background: rgba(11, 15, 26, 0.84); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); text-align: center; line-height: 1.25; }
.fin-cue-card svg { color: var(--accent); margin-bottom: 4px; animation: fin-cue-pulse 1.6s ease-in-out infinite; }
.fin-cue-card strong { font-size: 19px; font-weight: 800; }
.fin-cue-card span { font-size: 16px; font-weight: 700; color: var(--accent); }
.fin-cue:hover .fin-cue-card, .fin-cue:focus-visible .fin-cue-card { background: rgba(11, 15, 26, 0.94); }
@keyframes fin-cue-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .fin-cue-card svg { animation: none; } }
@media (max-width: 640px) { .fin-cue-card { padding: 11px 18px; border-radius: 13px; } .fin-cue-card svg { width: 30px; height: 30px; } .fin-cue-card strong { font-size: 15.5px; } .fin-cue-card span { font-size: 14px; } }
/* After the opening line the card moves out of the picture (class set by the
   page's player script): the muted preview is what nearly every visitor sees,
   and the video's graphics sit where the card was. The whole frame stays the
   tap target. */
.fin-cue.docked { align-items: flex-start; justify-content: flex-end; padding: 8px; background: transparent; }
.fin-cue.docked .fin-cue-card { flex-direction: row; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 999px; border-width: 1.5px; background: rgba(11, 15, 26, 0.9); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.fin-cue.docked .fin-cue-card svg { width: 18px; height: 18px; margin: 0; }
.fin-cue.docked .fin-cue-card strong { display: none; }
.fin-cue.docked .fin-cue-card span { font-size: 13px; }
@media (min-width: 641px) { .fin-cue.docked { padding: 14px; } .fin-cue.docked .fin-cue-card { padding: 8px 16px 8px 12px; } .fin-cue.docked .fin-cue-card svg { width: 22px; height: 22px; } .fin-cue.docked .fin-cue-card span { font-size: 15px; } }
.fin-video.empty { border: 2px dashed var(--border); box-shadow: none; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.fin-video.empty svg { color: var(--accent); }
.fin-video.empty strong { font-size: 20px; font-weight: 700; }
.fin-video.empty span { font-size: 14px; color: var(--text-secondary); max-width: 460px; }

/* Buyer quote: one band under the hero, a card with the buyer's own words */
.fin-proof .fin-wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.fin-h2.fin-proof-head { max-width: 820px; text-align: center; margin-bottom: 8px; }
.fin-quote { width: 100%; max-width: 820px; margin: 0; background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 16px; padding: 32px 36px; display: flex; flex-direction: column; gap: 18px; }
.fin-quote .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fin-stars { color: var(--accent); font-size: 24px; letter-spacing: 4px; line-height: 1; white-space: nowrap; }
.fin-quote .mark { font-family: Georgia, 'Times New Roman', serif; font-size: 64px; line-height: 0.7; height: 28px; color: var(--accent); }
.fin-quote blockquote { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 18px; color: var(--text-secondary); }
.fin-quote figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--border); }
.fin-quote .who { font-weight: 700; }

/* Layout helpers */
.fin-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.fin-split.center { align-items: center; }
.fin-split > * { flex: 1 1 380px; min-width: 0; }
.fin-stack { display: flex; flex-direction: column; gap: 20px; }
.fin-stack.g16 { gap: 16px; }
.fin-stack.g24 { gap: 24px; }
.fin-stack.g40 { gap: 40px; }
.fin-intro { max-width: 760px; }

/* Arrow lists */
.fin-arrows { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.fin-arrows.tight { gap: 12px; }
.fin-arrows li { display: flex; gap: 12px; }
.fin-arrows li::before { content: '\2192'; color: var(--accent); flex-shrink: 0; }

/* Panels (inside tinted bands) and cards (inside plain bands) */
.fin-panel { background: var(--bg-card-hover); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.fin-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.fin-card { flex: 1 1 300px; min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.fin-cards.w320 .fin-card { flex-basis: 320px; }
.fin-card.bonus { border-color: var(--accent); }
.fin-card h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.fin-card p { color: var(--text-secondary); }

/* Sample project panel */
.fin-figs { display: flex; flex-wrap: wrap; gap: 24px; }
.fin-fig { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fin-fig .v { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.fin-verdict { border: 1px solid var(--accent); border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.fin-minis { display: flex; flex-wrap: wrap; gap: 16px; }
.fin-mini { flex: 1 1 160px; min-width: 0; background: var(--bg-primary); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.fin-mini .l { font-size: 13px; color: var(--text-secondary); }
.fin-mini .v { font-size: 22px; font-weight: 700; }
.fin-note { font-size: 13px; color: var(--text-secondary); }

/* Cost types */
.fin-types { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.fin-types .say { font-weight: 600; }
.fin-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.fin-pills li { padding: 8px 16px; border-radius: 30px; background: var(--bg-card-hover); font-size: 14px; }

/* Steps */
.fin-steps { display: flex; flex-wrap: wrap; gap: 32px; }
.fin-step { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fin-steps.four .fin-step { flex-basis: 200px; }
.fin-step .n { font-size: 40px; font-weight: 800; line-height: 1; color: var(--accent); }
.fin-step h3 { font-size: 20px; font-weight: 700; }
.fin-step p { color: var(--text-secondary); }

/* About */
.fin-about { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.fin-photo { flex: 0 0 200px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid var(--border); object-fit: cover; }
.fin-about .fin-stack { flex: 1 1 420px; min-width: 0; }
.fin-yt { display: flex; align-items: flex-start; gap: 10px; }
.fin-yt svg { flex: 0 0 24px; width: 24px; height: 24px; }
.fin-yt strong { color: var(--text-primary); }

/* Offer */
.fin-offer .fin-wrap { display: flex; justify-content: center; }
.fin-offerbox { width: 100%; max-width: 640px; background: var(--bg-primary); border: 1px solid var(--accent); border-radius: 20px; padding: 48px 32px; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.fin-offerquote { width: 100%; margin: 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.fin-offerquote .fin-stars { font-size: 18px; letter-spacing: 3px; }
.fin-offerquote blockquote { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600; }
.fin-price { font-size: 64px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }

/* FAQ */
.fin-faq { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.fin-faq > div { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fin-faq h3 { font-size: 17px; font-weight: 600; }
.fin-faq p { color: var(--text-secondary); }

/* Closing */
.fin-close { background: radial-gradient(ellipse at 50% 60%, rgba(220, 171, 60, 0.1) 0%, transparent 65%); }
.fin-close .fin-wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.fin-close h2 { max-width: 760px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }

/* Thank-you page */
.fin-ty .fin-wrap { max-width: 880px; padding-top: 72px; display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.fin-check { width: 84px; height: 84px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(22, 199, 158, 0.35); }
.fin-ty h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.fin-download { width: 100%; max-width: 640px; background: var(--bg-card); border: 1px solid var(--accent); border-radius: 20px; padding: 36px 28px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.fin-download button.cta-big { border: 0; cursor: pointer; font-family: inherit; }
.fin-download button.cta-big[disabled] { opacity: 0.6; cursor: default; transform: none; }
.fin-status { font-size: 14px; color: var(--text-secondary); min-height: 22px; }
.fin-status.err { color: #E5746B; }
.fin-status a { color: var(--accent); font-weight: 600; text-decoration: none; }
.fin-support { text-align: center; padding: 0 24px 72px; color: var(--text-secondary); font-size: 14px; }
.fin-support a { color: var(--accent); text-decoration: none; font-weight: 600; }

@media (max-width: 640px) {
    .fin-wrap { padding: 56px 20px; }
    .fin-panel, .fin-card, .fin-types { padding: 24px; }
    .fin-main .cta-big { padding: 0 24px; }
    /* Buy buttons: the label and the price on one line. The button fills its column and the type
       shrinks a little on narrow phones; where it still cannot fit (320 wide) it wraps as two
       even lines. As a block, not a flex row, so the price never sits beside a wrapped label. */
    .fin-main a.cta-big[data-offer] { display: block; width: 100%; max-width: 400px; padding: 17px 10px; line-height: 1.3; font-size: clamp(14px, calc((100vw - 64px) / 17.6), 17px); text-wrap: balance; }
    .fin-offerbox a.cta-big[data-offer] { font-size: clamp(14px, calc((100vw - 100px) / 17.6), 17px); }
    .fin-about { justify-content: center; }
    .fin-offerbox { padding: 36px 16px; }
    /* The whole quote should fit about one phone screen. */
    .fin-proof .fin-wrap { padding-top: 32px; padding-bottom: 32px; gap: 12px; }
    .fin-h2.fin-proof-head { font-size: 21px; line-height: 1.3; margin-bottom: 0; }
    .fin-quote { padding: 20px; gap: 12px; }
    .fin-quote .mark { font-size: 48px; height: 18px; }
    .fin-stars { font-size: 21px; letter-spacing: 3px; }
    .fin-quote blockquote { font-size: 16px; line-height: 1.5; gap: 10px; }
    .fin-quote figcaption { padding-top: 12px; }
    /* Phones: keep the sales video on the first screen. Less air above the
       headline and between the hero's parts. */
    .fin-hero .fin-wrap { padding-top: 16px; gap: 14px; }
    /* Same on the thank-you page, so its video starts on the first screen.
       This page has the site header fixed over the top (about 73px on a
       phone), so the content starts below it. */
    .fin-ty .fin-wrap { padding-top: 84px; gap: 14px; }
    .fin-check { width: 56px; height: 56px; }
    .fin-check svg { width: 28px; height: 28px; }
}

/* Holiday sale */
.fin-salebar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; align-items: center; padding: 12px 16px; background: var(--accent); color: var(--on-accent); font-size: 15px; text-align: center; }
.fin-salebar[hidden], .fin-was[hidden], .fin-ends[hidden] { display: none; }
.fin-clock { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Phones: the bar is sticky, so every line it takes is taken from the whole
   page. Two tight lines, with the clock running on from the text. */
@media (max-width: 640px) {
    .fin-salebar { display: block; padding: 7px 14px; font-size: 13.5px; line-height: 1.3; }
    .fin-salebar .fin-clock { margin-left: 4px; }
}
.fin-was { font-size: 15px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.fin-was s { color: var(--text-secondary); }
.fin-ends { font-size: 15px; color: var(--text-secondary); }
.fin-ends strong { color: var(--text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Thank-you page upsell */
.fin-upsell { max-width: 720px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
/* Two versions share the page (offer / already bought); display:flex above
   would otherwise override the hidden attribute. */
.fin-upsell[hidden] { display: none; }
.fin-upsell-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; }
.fin-upsell-alt { color: var(--accent); font-weight: 600; text-decoration: none; }
.fin-upsell-alt:hover { text-decoration: underline; }
@media (max-width: 640px) { .fin-upsell { padding: 28px 20px; } }

/* Sample project chart */
.fin-split > .fin-chart { flex: 1 1 100%; }
.fin-chart { background: var(--bg-card-hover); border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.fin-chart-head h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.fin-chart-head p { margin: 0; font-size: 15px; }
.fin-chart-scroll { overflow-x: auto; }
.fin-chart svg { display: block; width: 100%; min-width: 520px; height: auto; max-width: 900px; margin: 0 auto; }
.fin-chart .ax { font-size: 12px; fill: var(--text-secondary); font-variant-numeric: tabular-nums; }
.fin-chart .lab { font-size: 13px; font-weight: 700; fill: var(--text-primary); }
.fin-chart .lab.acc { fill: var(--accent); }
.fin-chart .g { stroke: var(--border); stroke-width: 1; }
.fin-chart .now { stroke: var(--text-secondary); stroke-width: 1; opacity: 0.6; }
.fin-chart .bud { stroke: var(--text-primary); stroke-width: 1.5; }
.fin-chart .plan { fill: none; stroke: var(--text-secondary); stroke-width: 2.5; stroke-linejoin: round; }
.fin-chart .act, .fin-chart .fc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.fin-chart .fc { stroke-dasharray: 7 6; }
.fin-chart .area { fill: var(--accent); opacity: 0.12; }
.fin-chart .dot { fill: var(--accent); stroke: var(--bg-card-hover); stroke-width: 2; }
.fin-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 14px; color: var(--text-secondary); }
.fin-legend span { display: inline-flex; align-items: center; gap: 8px; }
.fin-legend .k { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--accent); }
.fin-legend .k.fc { border-top-style: dashed; }
.fin-legend .k.plan { border-top-color: var(--text-secondary); }
@media (max-width: 640px) { .fin-chart { padding: 24px 16px; } }

/* The sale bar is pinned to the top, so anchored sections stop below it. */
#offer { scroll-margin-top: 64px; }
