/* ===========================================================================
   kofai — story deck styles (the landing, every viewport)
   =========================================================================== */

/* ───────────────────────── mobile story deck ─────────────────────────
   Base styles always defined; the media query only toggles display. */
/* display is controlled by the media-query toggle in landing.css — don't re-declare it here */
/* dvh (not vh) so slides + the pinned action bar account for the collapsing mobile browser bar */
.deck { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh;
  overflow: hidden; background: var(--bg); }

.deck-slide { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; text-align: center;
  /* bottom pad clears the persistent DUK pill so tall slides' CTA never sits under it */
  padding: 70px 22px max(96px, calc(env(safe-area-inset-bottom) + 78px)); overflow-y: auto;
  visibility: hidden; pointer-events: none; }
.deck-slide.on { visibility: visible; pointer-events: auto; }
.deck-slide::-webkit-scrollbar { width: 0; }
.deck-wrap { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; margin: auto; flex: none; }

/* every advancing slide carries a single action bar pinned at the bottom, so it
   reserves room for it; the bar owns the primary CTA + a collapsed „? DUK". */
.deck-slide--bar { padding-bottom: calc(env(safe-area-inset-bottom) + 104px); }
/* dense slides (receipt / „kas iš to?") top-align so all content fits one viewport;
   the sparse personalization slides stay vertically centred. */
.deck-slide--top { padding-top: 58px; justify-content: flex-start; }
.deck-slide--top .deck-wrap { margin: 0; }

/* ───────────────────────── pinned bottom action bar ─────────────────────────
   primary CTA + a collapsed „? DUK", on a fade so content reads cleanly under it,
   lifted above the browser bar via safe-area inset. Pinned to the viewport;
   visibility is inherited from the active slide, so only the on-slide's bar shows. */
.deck-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 7;
  width: min(440px, 100%); display: flex; align-items: stretch; gap: 10px;
  padding: 30px 16px max(18px, calc(env(safe-area-inset-bottom) + 14px));
  background: linear-gradient(to top, var(--bg) 64%, rgba(241,242,240,0)); pointer-events: none; }
.deck-bar > * { pointer-events: auto; }
.deck-bar .deck-adv { flex: 1; height: 54px; margin-top: 0; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.deck-bar-duk { flex: none; height: 54px; padding: 0 17px; border-radius: var(--r-md);
  background: var(--card); border: none; cursor: pointer; font-family: var(--font);
  font-weight: 800; font-size: 14px; color: var(--ink); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 4px rgba(12,17,16,0.05), 0 10px 22px -14px rgba(12,17,16,0.32);
  transition: transform .14s var(--ease); }
.deck-bar-duk:active { transform: scale(.96); }
.deck-bar-duk .duk-pill-q { width: 21px; height: 21px; font-size: 13px; }

/* progress dots */
.deck-nav { position: fixed; left: 0; right: 0; top: 0; z-index: 5; display: flex; justify-content: center;
  padding-top: max(18px, env(safe-area-inset-top)); }
.deck-dots { display: flex; gap: 7px; }
.pdot { width: 7px; height: 7px; border-radius: 4px; background: var(--line-2); transition: width .3s var(--ease), background .3s var(--ease); }
.pdot.on { width: 22px; background: var(--accent); }
.deck-back { position: fixed; top: max(13px, env(safe-area-inset-top)); left: 14px; z-index: 6;
  background: var(--card); box-shadow: var(--sh-xs); border: none; color: var(--ink-2); width: 40px; height: 40px;
  border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center;
  justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.deck-back.show { opacity: 1; pointer-events: auto; }

/* persistent login — always reachable, mirrors the back button */
.deck-login { position: fixed; top: max(13px, env(safe-area-inset-top)); right: 14px; z-index: 6;
  display: inline-flex; align-items: center; height: 40px; padding: 0 17px;
  background: var(--card); box-shadow: var(--sh-sm); border: none; border-radius: var(--r-pill);
  font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em;
  transition: transform .14s var(--ease), background .15s; }
.deck-login:active { transform: scale(.96); background: var(--card-2); }

/* reveal stagger — base visible+shifted so it can never get stuck blank */
.dv { opacity: 1; transform: translateY(12px); }
.dv.in { transform: none; transition: transform .5s var(--ease); }

.deck .kicker { margin-bottom: 22px; }
.deck-h { font-size: clamp(30px, 8.5vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
.deck-h .g { color: var(--accent-deep); }
.deck-sub { font-size: 18px; color: var(--ink-2); margin-top: 16px; line-height: 1.45; max-width: 28ch; }
.deck-adv { font-family: var(--font); font-weight: 800; font-size: 17px; color: #fff; background: var(--accent);
  border: none; padding: 16px 28px; border-radius: var(--r-md); cursor: pointer; margin-top: 30px; box-shadow: var(--sh-accent); }
.deck-adv:active { transform: scale(.97); }

/* hook number */
.hook-num { font-size: clamp(96px, 34vw, 200px); font-weight: 800; line-height: 0.86; color: var(--accent);
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hook-num.dn { color: var(--neg); }
.hook-num .car { display: inline-block; width: 0.05em; height: 0.62em; background: var(--accent);
  margin-left: 0.06em; vertical-align: baseline; border-radius: 2px; animation: blink 1.1s steps(1) infinite; }
.hook-num.dn .car { background: var(--neg); }
@keyframes blink { 50% { opacity: 0; } }
.hook-sub { margin-top: 20px; font-size: clamp(22px, 6.5vw, 30px); font-weight: 800; line-height: 1.12; max-width: 15ch; letter-spacing: -0.01em; }

/* hook rhythm — one centred stack: counter → sub → CTA → trust (mirrors /login) */
.hook-wrap { margin: auto; gap: 0; }
.hook-hero { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hook-cta { width: min(330px, 100%); }

/* trust strip — sits directly below the CTA, mirrors the /login page */
.hook-trust { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.hook-trust .kicker { margin-bottom: 0; gap: 14px; opacity: 0.9; }
.hook-trust .book-badge { width: 24px; height: 24px; border-radius: 8px; }
.hook-trust-cap { font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-align: center; }

/* selectors (bankroll / time) */
.sel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; width: min(340px, 100%); margin-top: 26px; }
.sel-grid.three { grid-template-columns: repeat(3, 1fr); }
.sel-pill { font-family: var(--font); font-size: 19px; font-weight: 800; cursor: pointer; border: none;
  padding: 18px 0; border-radius: var(--r-md); background: var(--card); color: var(--ink-2); box-shadow: var(--sh-sm);
  transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.sel-pill.on { background: var(--accent); color: #fff; box-shadow: var(--sh-accent); }
.sel-sub { font-size: 14px; color: var(--ink-3); font-weight: 600; margin-top: 18px; }

/* result */
.res-num { font-size: clamp(58px, 17vw, 92px); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-delta { font-size: 22px; font-weight: 800; color: var(--accent); margin-top: 10px; }
.res-panel { width: min(420px, 92vw); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-md);
  padding: 18px; margin-top: 22px; }
.res-panel canvas { width: 100%; height: 120px; display: block; }
.res-cap { font-size: 14px; color: var(--ink-2); margin-top: 16px; line-height: 1.5; max-width: 30ch; }

/* signup */
.plan-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800;
  color: var(--accent-deep); background: var(--accent-tint); padding: 8px 14px; border-radius: var(--r-pill); margin-top: 8px; }
.deck-signup { display: flex; flex-direction: column; gap: 10px; width: min(340px, 100%); margin-top: 24px; }

/* ───────────────────────── screen · ČEKIS ─────────────────────────
   The receipt reframed as an explicit duel: Pinnacle's fair price (dark =
   "the truth") vs the dumb book's over-generous price (green), the gap as
   one hero number in euros. €100 stake, two payouts. */
.cek { width: min(366px, 100%); display: flex; flex-direction: column; text-align: left; }
.cek-when { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); margin-bottom: 9px; }
.cek-when .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,166,86,0.18); }
.cek-h { font-size: clamp(28px, 8vw, 33px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.cek-match { font-size: 12.5px; color: var(--ink-2); font-weight: 600; line-height: 1.35; margin-top: 12px; }
.cek-match .mkt { display: block; color: var(--ink-3); margin-top: 1px; }
.cek-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.cek-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.cek-row { border-radius: 18px; padding: 15px 18px; display: flex; align-items: center; gap: 13px; }
.cek-row--pin { background: #15191A; color: #fff; }
.cek-row--book { background: var(--card); outline: 1.5px solid rgba(0,166,86,0.5);
  box-shadow: 0 12px 26px -16px rgba(0,166,86,0.45); }
.cek-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.cek-ico--pin { background: #222B2C; }
.cek-ico--pin i { width: 11px; height: 11px; border-radius: 2px; transform: rotate(45deg); background: #fff; }
.cek-row .book-badge { width: 34px; height: 34px; }
.cek-mid { flex: 1; min-width: 0; }
.cek-name { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }
.cek-sub { font-size: 11.5px; font-weight: 600; margin-top: 1px; }
.cek-row--pin .cek-sub { color: #9BA6A1; }
.cek-row--book .cek-sub { color: var(--ink-2); }
.cek-stake-pill { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; color: #fff; background: var(--accent); padding: 2px 7px; border-radius: 6px;
  vertical-align: middle; margin-left: 5px; white-space: nowrap; }
.cek-pay { flex: none; text-align: right; }
.cek-pay .n { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.cek-row--book .cek-pay .n { color: var(--accent-deep); }
.cek-pay .c { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.cek-row--pin .cek-pay .c { color: #7E8A85; }
.cek-row--book .cek-pay .c { color: var(--ink-3); }

/* compact horizontal payoff: label left, the +€ hero + math right — saves the
   vertical space the old centred stack ate, so the slide fits without scrolling */
.cek-hero { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--accent-tint); border: 1px solid rgba(0,166,86,0.22); border-radius: 16px; padding: 13px 16px; }
.cek-hero-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-deep); line-height: 1.2; }
.cek-hero-r { flex: none; text-align: right; }
.cek-hero-num { font-size: clamp(38px, 12vw, 44px); font-weight: 800; letter-spacing: -0.04em;
  color: var(--accent); line-height: 1; white-space: nowrap; }
.cek-hero-edge { font-size: 12px; font-weight: 800; color: var(--accent-deep); margin-top: 3px; white-space: nowrap; }

.cek-foot { margin: 12px auto 0; display: flex; align-items: flex-start; gap: 9px; max-width: 33ch; }
.cek-foot-ico { flex: none; width: 18px; height: 18px; border-radius: 5px; background: #15191A;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.cek-foot-ico i { width: 6px; height: 6px; border-radius: 1.5px; transform: rotate(45deg); background: #fff; }
.cek-foot-tx { font-size: 12px; color: var(--ink-3); font-weight: 600; line-height: 1.45; }
.cek-foot-tx b { color: var(--ink-2); }
/* quiet inline „show another error" — the primary CTA now lives in the bottom bar */
.cek-more { align-self: flex-start; margin-top: 11px; padding: 2px 0; background: none; border: none;
  font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.cek-more:active { color: var(--ink-2); }

/* ─── B variantas · braukiama klaidų kortelė (carousel) ───────────────────
   The receipt is now a swipe deck: a horizontal scroll-snap track of full
   čekis cards, the next one peeking from the right so „there's more" is
   obvious. Visible arrows + progress flank the swipe — never swipe-only. */
.rcpt-deck { position: relative; width: 100%; margin-top: 4px; }
.rcpt-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding: 10px 2px 24px;
  outline: none; cursor: grab; scrollbar-width: none; -ms-overflow-style: none; }
.rcpt-track::-webkit-scrollbar { display: none; }
.rcpt-track:active { cursor: grabbing; }
/* each card a touch narrower than the track so the next card's edge peeks */
.rcpt-card { flex: none; width: calc(100% - 34px); scroll-snap-align: start; box-sizing: border-box;
  background: var(--card); border-radius: 20px; padding: 16px 17px 17px; user-select: none;
  box-shadow: 0 1px 2px rgba(12,17,16,0.05), 0 18px 38px -24px rgba(12,17,16,0.35); }
.rcpt-card .cek { width: 100%; }
.rcpt-card img { -webkit-user-drag: none; user-drag: none; }

.rcpt-nav { width: 100%; max-width: 366px; margin: 14px auto 0; display: flex; align-items: center; gap: 14px; }
.rcpt-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-family: var(--font); font-size: 19px; line-height: 1;
  cursor: pointer; transition: opacity .2s var(--ease), transform .12s ease; }
.rcpt-arrow--prev { border: 1.5px solid rgba(12,17,16,0.12); background: var(--card); color: var(--ink);
  box-shadow: 0 1px 2px rgba(12,17,16,0.05); }
.rcpt-arrow--next { border: none; background: var(--accent); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(0,166,86,0.7); }
.rcpt-arrow:active { transform: scale(.94); }
.rcpt-arrow[disabled] { opacity: .3; pointer-events: none; }
.rcpt-prog { flex: 1; height: 5px; border-radius: 3px; background: rgba(12,17,16,0.10); overflow: hidden; }
.rcpt-prog > span { display: block; width: 5%; height: 100%; border-radius: 3px; background: var(--accent);
  transition: width .25s var(--ease); }
.rcpt-hint { margin-top: 9px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-align: center; }

/* ───────────────────────── screen · KAS IŠ TO? ─────────────────────────
   One digestible idea: a single +EV bet is a coinflip you often lose, but
   repeated across hundreds the edge is unavoidable. One climbing-bank visual,
   one casino punchline. */
.why { width: min(366px, 100%); display: flex; flex-direction: column; text-align: left; }
.why-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 11px; }
.why-h { font-size: clamp(28px, 8vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 12px; }
.why-h .g { color: var(--accent-deep); }
.why-lead { font-size: 14.5px; color: var(--ink-2); font-weight: 600; line-height: 1.5; }
.why-lead b { color: var(--ink); }

.why-card { margin-top: 18px; background: var(--card); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(12,17,16,0.05), 0 18px 40px -22px rgba(12,17,16,0.26); padding: 16px 18px 14px; }
.why-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.why-card-head .t { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.why-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800;
  color: var(--accent-deep); background: var(--accent-tint); padding: 5px 11px; border-radius: var(--r-pill); }
.why-bars { display: flex; align-items: flex-end; gap: 4px; height: 96px; border-bottom: 2px solid var(--line); }
.why-bars i { flex: 1; border-radius: 4px 4px 0 0; }
.why-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; font-weight: 700;
  color: #B6BCB8; text-transform: uppercase; letter-spacing: 0.05em; }

.why-punch { margin-top: 16px; background: #15191A; border-radius: 18px; padding: 16px 20px; text-align: center;
  font-size: 17px; font-weight: 800; color: #fff; line-height: 1.22; letter-spacing: -0.01em; }
.why-punch .gg { color: #5FE0A0; }

/* ───────────────────────── DUK answer sheet ─────────────────────────
   The collapsed „? DUK" in each slide's action bar opens this full FAQ sheet,
   which slides up over the current slide. */
@keyframes dukSheetUp { from { transform: translateY(102%); } to { transform: translateY(0); } }
@keyframes dukFadeIn  { from { opacity: 0; } to { opacity: 1; } }

/* the „?" disc, reused inside every action bar's DUK button */
.duk-pill-q { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 19px; height: 19px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }

.duk-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(12,17,16,0.34); animation: dukFadeIn .25s var(--ease); }
.duk-backdrop[hidden] { display: none; }

.duk-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; height: min(87%, 760px);
  background: var(--card-2); border-radius: 26px 26px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 -24px 50px -20px rgba(12,17,16,0.30); animation: dukSheetUp .34s var(--ease); }
.duk-sheet[hidden] { display: none; }
.duk-grip { flex: none; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 12px 0 4px; }
.duk-sheet-head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 24px 16px; }
.duk-sheet-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.duk-sheet-sub { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; font-weight: 500; }
.duk-close { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: none;
  color: var(--ink-2); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: var(--sh-xs);
  transition: transform .14s var(--ease); }
.duk-close:active { transform: scale(.94); }

.duk-scroll { flex: 1; overflow-y: auto; padding: 0 18px 26px; -webkit-overflow-scrolling: touch; }
.duk-scroll::-webkit-scrollbar { width: 0; height: 0; }
.duk-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 2px 18px; }

.duk-item { border-bottom: 1px solid var(--line); }
.duk-item:last-child { border-bottom: none; }
.duk-q { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px;
  background: none; border: none; color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 700;
  text-align: left; padding: 17px 0; cursor: pointer; line-height: 1.3; letter-spacing: -0.01em; }
.duk-sign { flex: none; color: var(--accent); font-size: 22px; font-weight: 700; width: 18px; text-align: center; line-height: 1; }
.duk-a { padding: 0 0 17px; color: var(--ink-2); font-size: 14px; line-height: 1.62; font-weight: 500; }
.duk-a[hidden] { display: none; }
