/* IBA Year 1 landing: the page layer on top of the live V3 CSS (assets/v3, copied from
   apps/web/app/styles/v3). LAYOUT ONLY, plus the one button override block below. Components come from
   the bank as the V3 site uses them; nothing here restyles one. */

/* ===== Button: the spaceOS button, chosen by Dima at 16:54 on 7 Oct ("this is the one!! we build this.") =====
   Copied from lab/buttons/d-spaceos-mcp.html (.sb, its .pty skin, the phone-hero version .sb--l .sb--block):
   46 px (large 56), 12 px radius, gradient btn-top to btn, inset highlight plus coloured shadow, a chevron
   after the label, full width on phone. Applied to the bank's .v3-btn while body[data-btn="spaceos"];
   ?btn=flat (body[data-btn="flat"]) shows the bank's flat pill as is, chevron hidden. */
body[data-btn="spaceos"].lp .v3-btn:not(.v3-btn--secondary):not(.v3-btn--tertiary) {
  --btn: var(--v3-anchor); --btn-top: var(--v3-l-500, #4f8a6c); --glow: color-mix(in srgb, var(--v3-anchor) 60%, transparent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 12px;
  font: 600 16px/1 var(--v3-font-body); color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, var(--btn-top), var(--btn)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 20px -8px var(--glow);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
body[data-btn="spaceos"].lp .v3-btn:not(.v3-btn--secondary):not(.v3-btn--tertiary):hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 26px -10px var(--glow); }
body[data-btn="spaceos"].lp .v3-btn:not(.v3-btn--secondary):not(.v3-btn--tertiary):active { transform: translateY(1px) scale(.99); filter: brightness(.95); }
html body[data-btn="spaceos"].lp .v3-btn:not(.v3-btn--secondary):not(.v3-btn--tertiary):focus-visible { border-radius: 12px; outline: 2px solid var(--btn-top); outline-offset: 0; }
body[data-btn="spaceos"].lp .v3-btn.v3-btn--l:not(.v3-btn--secondary):not(.v3-btn--tertiary) { height: 56px; padding: 0 30px; font-size: 17px; }
body[data-btn="spaceos"].lp .v3-btn.v3-btn--s:not(.v3-btn--secondary):not(.v3-btn--tertiary) { height: 34px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
body[data-btn="spaceos"].lp .v3-btn svg.lp-chev { width: 18px; height: 18px; flex: none; }
@media (max-width: 639px) { body[data-btn="spaceos"].lp .v3-btn.v3-btn--l:not(.v3-btn--secondary):not(.v3-btn--tertiary) { display: flex; width: 100%; max-width: 420px; } }
body[data-btn="flat"].lp .lp-chev { display: none; }
/* ===== end of the button override ===== */

/* The live CSS reads these two from Next's font loader; a static page names the faces directly. */
body.lp { --font-display: Guton; --font-v3-body: Inter; margin: 0; overflow-x: hidden; }
.lp img { max-width: 100%; }

/* Header: logo and the exam clock, no menu */
.lp-top__in { display: flex; align-items: center; justify-content: space-between; height: var(--v3-size-header); }
.lp-logo { height: 20px; width: auto; display: block; }

/* S1: hero and offer card, as the V3 accelerator hero lays them out (accelerator.css .acc-layout):
   phone reads hero then card; from 900 px the card sits on the right, 400 px, sticky. */
.lp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.lp-layout__offer { min-width: 0; }
.lp-offer__name { margin-top: 0; margin-bottom: 10px; font-weight: 600; color: var(--v3-ink); }
.lp-offer__cancel { text-align: center; margin-top: 10px; }
@media (min-width: 900px) {
  .lp-layout { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 72px; align-items: start; }
  .lp-layout__offer { position: sticky; top: 24px; }
}
/* S1 */
.lp-s1 { padding-bottom: 24px; }
.lp-eyebrow { font-weight: 600; color: var(--v3-anchor); }

/* S2 video frame: a well card at 16:9 until the file arrives */
/* the founder film is landscape 16:9, framed at its own shape and never cropped (contain) */
.lp-video { margin: 28px 0 0; display: grid; gap: 10px; width: 100%; }
.lp-video__frame { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 0; overflow: hidden; background: #0d1f17; }
.lp-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

/* S5 value stack: item and value side by side inside the offer's points */
.lp-points li { align-items: flex-start; }
.lp-point { display: grid; gap: 2px; flex: 1; min-width: 0; }
.lp-point__val { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }

/* S6 lead fact sits between the heading and the quotes */
/* S6 two stats side by side: the number big, what it means under it */
.lp-proof-fact { margin: -8px 0 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.lp-stat { display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--v3-radius-card); background: var(--v3-card); box-shadow: inset 0 0 0 1px var(--v3-line); }
.lp-stat b { font: var(--v3-display-weight, 700) clamp(32px, 5vw, 52px)/1 var(--v3-font-display); letter-spacing: -.02em; color: var(--v3-ink); }
.lp-stat span { font-size: 15px; line-height: 1.4; color: var(--v3-soft); }
/* S3 pains as cards: one column on phone, two from 760 px */
.lp-problem { display: grid; gap: 12px; }
@media (min-width: 760px) { .lp-problem { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.lp-problem__item { display: grid; gap: 6px; align-content: start; }
.lp-problem__pain { margin: 0; font: 600 17px/1.3 var(--v3-font-display); color: var(--v3-ink); }
.lp-problem__fix { margin: 0; font-size: 15px; line-height: 1.5; color: var(--v3-soft); }
.lp-layout__offer .v3-offer { --pad-b: 28px; } /* the bank's card drops its bottom padding at 900px for a footer strip we do not have; without this the proof line is cut off (QA 7 Oct) */
.lp-offer__proof { margin-top: 18px; padding-top: 14px; box-shadow: inset 0 1px 0 var(--v3-line); font-size: 14px; }

/* S7 grid */
.lp-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-grid .v3-quote__by { margin-bottom: 10px; }

/* Footer clearance for the phone bar */
@media (max-width: 899px) { .lp .v3-footer { padding-bottom: 110px; } }
@media (min-width: 900px) { .lp-bar { display: none; } }

/* Consent card: bottom left on laptop, above the phone bar on phones */
.lp-consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 420px; display: grid; gap: 12px; box-shadow: inset 0 0 0 1px var(--v3-line-strong), var(--v3-shadow-soft); }
.lp-consent[hidden] { display: none; }
.lp-consent .v3-card__text { margin: 0; }
@media (max-width: 899px) { .lp-consent { bottom: 92px; } }
.lp-video__frame .v3-card__title { color: #fff; }

/* S2 founder video facade, ported from /maths (maths.css .mx-video__play): reads as a designed player before it plays.
   The cover (assets/covers/cover-NN.jpg) carries Dima and the PDF pages; the words sit here so they stay sharp.
   The whole frame is the button; app.js removes it on click and the browser's own controls take over. */
.lp-video__frame { container-type: inline-size; }
.lp-video__frame .lp-video__play { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; border-radius: inherit; color: #fff; text-align: left; font-family: var(--v3-font-body); }
.lp-video__play:focus-visible { outline: 3px solid var(--v3-anchor); outline-offset: 2px; }
.lp-play__dot { position: absolute; left: 50%; top: 46%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.94); box-shadow: 0 0 0 10px rgba(255,255,255,.18), 0 18px 40px -12px rgba(0,0,0,.6);
  transition: transform .18s ease, box-shadow .18s ease; }
.lp-play__dot svg { width: 32px; height: 32px; margin-left: 5px; fill: #2b6550; } /* the brand forest, fixed: draft c turns --v3-anchor light green */
.lp-video__play:hover .lp-play__dot { transform: scale(1.07); box-shadow: 0 0 0 14px rgba(255,255,255,.22), 0 22px 46px -12px rgba(0,0,0,.65); }
.lp-play__time { position: absolute; right: 14px; top: 14px; padding: 5px 9px; border-radius: 8px; background: rgba(0,0,0,.62);
  font: 600 13px/1 var(--v3-font-body); font-variant-numeric: tabular-nums; }
.lp-play__who { position: absolute; left: 3.2cqw; bottom: 6.4cqw; display: grid; gap: .5cqw; }
.lp-play__who b { font: 600 clamp(15px, 2.6cqw, 26px)/1.1 var(--v3-font-display); letter-spacing: -.01em; }
.lp-play__who span { font: 500 clamp(12px, 1.6cqw, 16px)/1.2 var(--v3-font-body); color: rgba(255,255,255,.82); }
.lp-play__label { position: absolute; left: 58cqw; right: 3cqw; bottom: 6.6cqw; font: 500 clamp(12px, 1.55cqw, 16px)/1.25 var(--v3-font-body); color: rgba(230,242,236,.72); }
.lp-play__label b { font-weight: 600; color: #fff; }
.lp-play__bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); overflow: hidden; }
.lp-play__bar i { display: block; width: 3%; height: 100%; background: #fff; }
@container (max-width: 560px) {
  .lp-play__dot { width: 60px; height: 60px; margin: -30px 0 0 -30px; box-shadow: 0 0 0 7px rgba(255,255,255,.18), 0 14px 30px -10px rgba(0,0,0,.6); }
  .lp-play__dot svg { width: 24px; height: 24px; margin-left: 4px; }
  .lp-play__time { right: 10px; top: 10px; padding: 4px 7px; font-size: 12px; }
  .lp-play__who { left: 12px; bottom: 11px; gap: 3px; }
  .lp-play__label, .lp-play__bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-play__dot { transition: none; } }

/* phone bar: the price on one line, its term small beside it (Bence, 7 Oct: it wrapped at 390) */
.lp-bar .v3-offerbar__price { white-space: nowrap; }
.lp-bar__per { font: 500 12px/1 var(--v3-font-body); color: var(--v3-soft); letter-spacing: 0; }

/* the count-up wraps digits in spans inside the stat figure; they keep the figure's own type (not .lp-stat span) */
.lp-stat b span { font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit; }
