/* styles.css */
/* ============================================================
   Bet Journal — core tokens, base, paper, nav, hero, phone
   ============================================================ */

:root {
  /* paper + ink */
  --paper:      #fffcf2;
  --paper-2:    #f5f3ec;
  --card:       #fcfbf7;
  --card-edge:  #e9e3d4;
  --ink:        #221d17;
  --ink-soft:   #6f665a;
  --ink-faint:  #9a9081;
  --line:       #e3dccb;
  --rule:       #cdd8d6;   /* notebook ruled line (bluish) */

  /* brand */
  --teal:       #15a3a1;
  --teal-deep:  #0f7d7b;
  --teal-dark:  #0a5a58;
  --teal-wash:  #dcece9;
  --brick:      #c4452f;   /* loss / negative */
  --brick-wash: #f1ddd5;

  /* accent (tweakable) defaults to teal */
  --accent:      var(--teal);
  --accent-deep: var(--teal-deep);
  --accent-dark: var(--teal-dark);
  --accent-wash: var(--teal-wash);

  /* dark surface */
  --dark:       #181410;
  --dark-2:     #221c16;
  --dark-edge:  #34291f;

  /* type */
  --display: 'Bricolage Grotesque', 'Schibsted Grotesk', sans-serif;
  --sans:    'Schibsted Grotesk', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;
  --hand:    'Instrument Serif', serif;
  --hand-style: italic;

  --shadow-sm: 0 1px 2px rgba(34,29,23,.06), 0 2px 6px rgba(34,29,23,.05);
  --shadow:    0 4px 10px rgba(34,29,23,.07), 0 18px 40px -18px rgba(34,29,23,.22);
  --shadow-lg: 0 12px 30px rgba(34,29,23,.12), 0 40px 80px -30px rgba(34,29,23,.35);

  --maxw: 1200px;
  --gut: clamp(16px, 4.5vw, 64px);
}

/* accent (hand) font tweak hook */
:root[data-hand="script"] { --hand: 'Shadows Into Light', cursive; --hand-style: normal; }
:root[data-hand="caveat"] { --hand: 'Caveat', cursive; --hand-style: normal; }

/* display-font tweak hook */
:root[data-font="grotesk"] { --display: 'Schibsted Grotesk', sans-serif; }
:root[data-font="space"]   { --display: 'Space Grotesk', 'Bricolage Grotesque', sans-serif; }

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-anchor: none;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce), (max-width: 900px), (hover: none) and (pointer: coarse) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
}
body.nav-open {
  overflow: hidden;
}

/* paper grain overlay (toggleable) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .1;
  mix-blend-mode: multiply;
  background-image: url("assets/grain.svg");
  background-size: 220px 220px;
  transition: opacity .4s ease;
}
:root[data-grain="off"] body::before { opacity: 0; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { position: relative; z-index: 2; padding-block: clamp(40px, 6vw, 88px); }
@media (max-width: 620px) {
  .section { padding-block: clamp(32px, 8vw, 48px); }
}

/* ---- handwritten annotation ---- */
.hand {
  font-family: var(--hand);
  font-style: var(--hand-style, normal);
  color: var(--accent-deep);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.05;
  transform: rotate(-5deg);
  display: inline-block;
}
.ink-accent, .scribble-note { font-style: var(--hand-style, normal); }
.scribble { stroke: var(--accent-deep); fill: none; stroke-width: 3; stroke-linecap: round; }

/* ---- eyebrow ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }

/* ---- buttons ---- */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -4px color-mix(in oklab, var(--accent) 60%, transparent); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* app store style button — accent outline + label (matches brand CTAs) */
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: #fff; color: var(--accent-deep);
  padding: 11px 18px 11px 16px; border-radius: 13px;
  border: 1.5px solid var(--accent);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  box-shadow: none;
  text-decoration: none;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px color-mix(in oklab, var(--accent) 35%, transparent);
  border-color: var(--accent-deep);
}
.store-btn .lab { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn .lab small {
  font-size: 10.5px; letter-spacing: .02em; white-space: nowrap;
  color: var(--ink-soft); opacity: 1;
}
.store-btn .lab b { font-size: 16.5px; font-weight: 700; font-family: var(--display); letter-spacing: -.01em; color: var(--accent-deep); }
.store-btn svg { width: 22px; height: 22px; flex: none; color: var(--accent-deep); }
.store-btn.web {
  background: #fff; color: var(--accent-deep);
  border-color: var(--accent); box-shadow: none;
}
.stores.on-dark .store-btn {
  background: #fff; color: var(--accent-deep); border-color: var(--accent);
}
.stores.on-dark .store-btn.web {
  background: transparent; color: #fff;
  border-color: color-mix(in oklab, var(--accent) 45%, #6a5f52);
}
.stores.on-dark .store-btn.web .lab small { color: #c4baa6; }
.stores.on-dark .store-btn.web .lab b,
.stores.on-dark .store-btn.web svg { color: #fff; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (max-width: 620px) {
  .store-btn { padding: 9px 14px 9px 12px; gap: 9px; border-radius: 11px; }
  .store-btn svg { width: 18px; height: 18px; }
  .store-btn .lab small { font-size: 9px; }
  .store-btn .lab b { font-size: 14px; }
  .stores { gap: 10px; }
}
@media (max-width: 520px) {
  /* Stack inline store badges at content width (match hero CTA) */
  .stores.stores-inline {
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    gap: 10px;
  }
  .stores.stores-inline .store-btn {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }
}
@media (max-width: 400px) {
  /* Equal-width stack sized to content — not full viewport stretch */
  .stores:not(.stores-inline) {
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
  }
  .stores:not(.stores-inline) .store-btn {
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.nav.scrolled {
  background: color-mix(in oklab, var(--paper) 94%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(34,29,23,.4);
}
body.has-nav { padding-top: 76px; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 12px; }
.nav-logo { flex-shrink: 0; min-width: 0; }
.nav-logo img { height: 32px; width: auto; max-width: 140px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:var(--accent); transition:width .2s ease; }
.nav-links a:hover::after { width:100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-end { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.foot-locale { font-size: 0.92rem; color: var(--muted); }
.foot-locale a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-locale a:hover { color: var(--ink); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  flex-shrink: 0;
  width: 40px; height: 40px; padding: 9px; margin: 0;
  background: color-mix(in oklab, var(--paper) 80%, var(--line));
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  border-radius: 1px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }
  .nav-logo { grid-column: 1; grid-row: 1; min-width: 0; }
  .nav-end {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
    margin-left: 0;
    flex-shrink: 0;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gut) 20px;
    background: color-mix(in oklab, var(--paper) 98%, transparent);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -12px rgba(34,29,23,.2);
    z-index: 99;
    max-height: calc(100svh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; }
  .nav-cta { gap: 0; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-accent {
    padding: 8px 11px;
    font-size: 12px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 12px -4px color-mix(in oklab, var(--accent) 55%, transparent);
  }
  .nav-toggle {
    display: flex;
  }
}

/* ============================================================
   HERO  (shared shell; variants via :root[data-hero])
   ============================================================ */
.hero { position: relative; z-index: 2; overflow: clip; padding-block: clamp(12px, 2.5vw, 30px) clamp(48px, 7vw, 96px); }
.hero-variant { display: none; }
:root[data-hero="a"] #hero-a,
:root[data-hero="b"] #hero-b,
:root[data-hero="c"] #hero-c { display: block; }
/* default if attr missing */
:root:not([data-hero]) #hero-a { display: block; }

.hero h1 { font-size: clamp(44px, 7.2vw, 92px); letter-spacing: -.035em; }
.hero h1 .ink-accent { color: var(--accent-deep); font-family: var(--hand); font-weight: 400; letter-spacing: 0; }
.hero .sub { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-soft); max-width: 30ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .m b { font-family: var(--mono); font-size: 22px; color: var(--ink); display:block; letter-spacing:-.02em; }
.hero-meta .m span { font-size: 13px; color: var(--ink-soft); }

/* parallax decorative slips */
.slip {
  position: absolute; z-index: 0; pointer-events: none;
  background: var(--card); border: 1px solid var(--card-edge);
  box-shadow: var(--shadow); border-radius: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  padding: 10px 12px; line-height: 1.5;
}
.slip .win { color: var(--accent-deep); font-weight: 700; }
.slip .loss { color: var(--brick); font-weight: 700; }

/* ---- Hero A: Ledger (two col) ---- */
#hero-a .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: clamp(20px, 4vw, 52px); }
#hero-a .phone-slot { position: relative; display: grid; place-items: center; min-height: 560px; }
@media (max-width: 880px) { #hero-a .grid { grid-template-columns: 1fr; } #hero-a .phone-slot { min-height: 520px; } }

/* ---- Hero B: Notebook spread (centered) ---- */
#hero-b .center { text-align: center; padding-block: clamp(48px, 7vw, 80px); display: flex; flex-direction: column; align-items: center; }
#hero-b h1 { max-width: 14ch; }
#hero-b .sub { margin-inline: auto; max-width: 46ch; text-align: center; }
#hero-b .hero-cta { justify-content: center; }
#hero-b .phone-slot { position: relative; margin-top: 54px; display: grid; place-items: center; min-height: 600px; width: 100%; }
#hero-b .notebook {
  position: relative; background: var(--card);
  border: 1px solid var(--card-edge); border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 46px; max-width: 720px; width: 100%;
  background-image: repeating-linear-gradient(var(--card) 0 39px, var(--rule) 39px 40px);
}
#hero-b .notebook::before { /* red margin line */
  content:""; position:absolute; left:54px; top:0; bottom:0; width:2px; background: color-mix(in oklab, var(--brick) 55%, transparent); opacity:.5;
}

/* ---- Hero C: Bold receipt ---- */
#hero-c .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding-block: clamp(40px, 6vw, 80px); }
#hero-c h1 { font-size: clamp(52px, 9vw, 116px); line-height: .92; }
#hero-c .phone-slot { position: relative; display: grid; place-items: center; min-height: 600px; }
@media (max-width: 880px) { #hero-c .grid { grid-template-columns: 1fr; } }

/* tape + stamp helpers */
.tape {
  position: absolute; width: 110px; height: 30px;
  background: color-mix(in oklab, var(--accent) 22%, #fff);
  border: 1px dashed color-mix(in oklab, var(--accent-deep) 40%, transparent);
  opacity: .85; box-shadow: var(--shadow-sm);
  backdrop-filter: blur(1px);
}
.stamp {
  font-family: var(--display); font-weight: 800; letter-spacing: .04em;
  color: var(--accent-deep);
  border: 3px solid var(--accent-deep); border-radius: 8px;
  padding: 4px 12px; font-size: 22px; text-transform: uppercase;
  transform: rotate(-11deg); opacity: .82;
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--accent-deep) 25%, transparent);
}
.stamp.loss { color: var(--brick); border-color: var(--brick); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--brick) 25%, transparent); }

/* sections.css */
/* ============================================================
   Bet Journal — app phone mock + content sections
   ============================================================ */

/* ---------------- APP PHONE ---------------- */
.app-phone {
  --pw: 318px;
  width: var(--pw);
  background: #100d0a;
  border-radius: 44px;
  padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2c2620;
  position: relative;
  z-index: 3;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.app-phone .screen {
  background: #fbfaf6;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  height: 638px;
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.app-phone .notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 26px; background: #100d0a; border-radius: 16px; z-index: 5;
}
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 4px; font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 700; }
.statusbar .dots { display: flex; gap: 4px; align-items: center; }
.statusbar .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); display: inline-block; opacity: .85; }

.app-head { padding: 8px 20px 4px; display: flex; align-items: center; justify-content: space-between; }
.app-head .mo { font-size: 13px; color: var(--ink-soft); font-family: var(--mono); }
.app-head h4 { font-size: 21px; }
.roi-pill { background: var(--accent-wash); color: var(--accent-dark); font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 20px; display: inline-flex; gap: 5px; align-items: center; }

.balance { padding: 14px 20px 6px; }
.balance .lab { font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; font-family: var(--mono); }
.balance .big { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: -.03em; color: var(--accent-dark); line-height: 1.05; margin-top: 2px; }
.balance .units { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.balance .units b { color: var(--accent-deep); }

/* mini chart */
.chart { padding: 6px 18px 10px; }
.chart .bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.chart .bars .bar { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .85; }
.chart .bars .bar.dn { background: var(--brick); opacity: .7; }
.chart .axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--ink-faint); margin-top: 5px; }

.feed { flex: 1; overflow: hidden; padding: 4px 14px 0; }
.feed .day { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em; padding: 8px 6px 5px; }
.bet-row { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 12px; }
.bet-row + .bet-row { border-top: 1px solid #efeadd; }
.bet-row .sport { width: 34px; height: 34px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; font-size: 16px; flex: none; }
.bet-row .meta { flex: 1; min-width: 0; }
.bet-row .meta b { font-size: 14.5px; display: block; letter-spacing: -.01em; }
.bet-row .meta span { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.bet-row .res { font-family: var(--mono); font-weight: 700; font-size: 13px; text-align: right; flex: none; }
.bet-row .res.won { color: var(--accent-deep); }
.bet-row .res.lost { color: var(--brick); }
.bet-row .res small { display: block; font-size: 9.5px; color: var(--ink-faint); font-weight: 400; letter-spacing: .05em; text-transform: uppercase; }

.tabbar { display: flex; justify-content: space-around; padding: 12px 10px 20px; border-top: 1px solid #efeadd; background: #fff; }
.tabbar .tab { width: 24px; height: 24px; border-radius: 7px; }
.tabbar .tab.on { background: var(--accent); }
.tabbar .tab.off { background: #d9d3c4; }

/* ---------------- STAT STRIP ---------------- */
.statstrip {
  position: relative; z-index: 2;
  margin-top: clamp(32px, 4vw, 56px);
  margin-inline: clamp(10px, 1.6vw, 24px);
}
.statstrip-visual {
  width: 100%;
  height: auto;
  margin: 0;
  line-height: 0;
  aspect-ratio: 2000 / 667;
  border-radius: 16px;
  overflow: hidden;
}
.statstrip-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2000 / 667;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}
@media (max-width: 560px){
  .statstrip { margin-inline: 8px; }
}

/* ---------------- SECTION HEADER ---------------- */
.sec-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 16px; }
.sec-head p { color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 19px); margin-top: 16px; max-width: 52ch; }
.sec-head.center p { margin-inline: auto; }

/* ---------------- FEATURES ---------------- */
.features {
  background: var(--paper-2);
  border-radius: clamp(20px, 3vw, 40px);
  margin-inline: clamp(10px, 1.6vw, 24px);
  margin-block: clamp(8px, 1.2vw, 16px);
}
@media (min-width: 1001px) {
  .features-saas + .statstrip { margin-top: 72px; }
}
.statstrip + .showcase.section { padding-top: clamp(32px, 4.5vw, 52px); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px){ .feat-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 620px){ .feat-grid { grid-template-columns: 1fr; gap: 14px; } }
.feat {
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feat .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--accent-wash); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 20px; }
.feat .ic svg { width: 26px; height: 26px; }
.feat h3 { font-size: 22px; margin-bottom: 9px; }
.feat p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.feat .num { position: absolute; top: 18px; right: 22px; font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.feat.wide { grid-column: span 2; }
@media (max-width: 900px){
  .feat { padding: clamp(20px, 3vw, 28px); }
  .feat .ic { width: 44px; height: 44px; margin-bottom: 16px; }
  .feat .ic svg { width: 23px; height: 23px; }
  .feat h3 { font-size: clamp(19px, 2.4vw, 22px); }
  .feat p { font-size: clamp(14px, 1.8vw, 15.5px); }
}
@media (max-width: 620px){
  .feat.wide { grid-column: span 1; }
  .features { margin-inline: 8px; border-radius: 16px; }
  .feat { padding: clamp(18px, 4.5vw, 24px); border-radius: 14px; }
  .feat .ic { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 12px; }
  .feat .ic svg { width: 20px; height: 20px; }
  .feat h3 { font-size: clamp(17px, 4.5vw, 20px); margin-bottom: 6px; }
  .feat p { font-size: clamp(13.5px, 3.5vw, 15px); line-height: 1.5; }
  .feat .num { top: 14px; right: 14px; font-size: 11px; }
}

/* ---------------- SHOWCASE (sticky) ---------------- */
.showcase { position: relative; }
.showcase > .wrap > .sec-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px){ .show-grid { grid-template-columns: 1fr; } }
.show-sticky { position: sticky; top: 100px; display: grid; place-items: start; align-self: start; }
@media (max-width: 900px){
  .show-sticky {
    position: static;
    margin-bottom: 20px;
    place-items: center;
    justify-items: center;
    width: 100%;
  }
  .show-sticky .show-visual {
    width: min(460px, 100%);
    margin-inline: auto;
  }
  .anim-on .show-sticky .reveal.r-rot { transform: translateY(34px); }
  .anim-on .show-sticky .reveal.r-rot.in { transform: none; }
  .show-steps { align-items: center; text-align: center; }
  .show-step p { margin-inline: auto; }
}
.show-steps { display: flex; flex-direction: column; gap: clamp(28px, 5vh, 52px); padding-block: 0; }
.show-step { opacity: .4; transition: opacity .4s ease; }
.show-step.active { opacity: 1; }
.show-step .k {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent-deep);
}
.show-step h3 { font-size: clamp(26px, 3vw, 38px); margin: 10px 0 12px; }
.show-step p { color: var(--ink-soft); font-size: 17px; max-width: 42ch; }

/* product visual used in showcase */
.show-visual {
  width: min(540px, 100%);
  height: auto;
  margin: 0;
  line-height: 0;
  background: transparent;
  aspect-ratio: 1313 / 1198;
  justify-self: start;
  align-self: start;
  border-radius: 16px;
  overflow: hidden;
}
.show-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1313 / 1198;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}

/* ---------------- PRICING ---------------- */
.pricing {
  background: var(--paper-2);
  border-radius: clamp(20px, 3vw, 40px);
  margin-inline: clamp(10px, 1.6vw, 24px);
  margin-block: clamp(16px, 2.5vw, 36px);
}
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px){ .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan {
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 20px;
  padding: 30px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { background: var(--dark); color: #efe9dd; border-color: var(--dark-edge); box-shadow: var(--shadow-lg); }
.plan.featured h3, .plan.featured .price b { color: #fff; }
.plan.featured .price .per, .plan.featured .desc { color: #b3a994; }
.plan.featured li { color: #d9d0bf; }
.plan .ribbon {
  position: absolute; top: -14px; right: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 8px; box-shadow: var(--shadow-sm);
  transform: rotate(2deg);
}
.plan h3 { font-size: 21px; }
.plan .desc { font-size: 14px; color: var(--ink-soft); margin-top: 6px; min-height: 40px; }
.plan .price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-family: var(--mono); font-size: 44px; font-weight: 700; letter-spacing: -.03em; }
.plan .price .per { font-size: 14px; color: var(--ink-soft); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.plan li { font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.plan.featured li svg { color: var(--accent); }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.price-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
@media (max-width: 760px){ .price-grid.two { grid-template-columns: 1fr; max-width: 460px; } }
.glance-list { max-width: 860px; margin: 0 auto; background: var(--card); border: 1px solid var(--card-edge); border-radius: 20px; padding: 6px 28px; box-shadow: var(--shadow-sm); }
.glance-row { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--card-edge); }
.glance-row:last-child { border-bottom: 0; }
.glance-row dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.glance-row dd { margin: 0; font-size: 16px; line-height: 1.5; }
@media (max-width: 600px){ .glance-row { grid-template-columns: 1fr; gap: 4px; } .glance-list { padding: 4px 18px; } }
.glance-pricing-h { text-align: center; font-size: clamp(24px, 3vw, 32px); margin: clamp(40px, 6vw, 64px) 0 28px; }
.glance-note { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 22px; }
.plan.featured .btn-ghost { color: #fff; border-color: #4b4034; }
.plan.featured .btn-ghost:hover { border-color: #fff; }

/* ---------------- TESTIMONIALS ---------------- */
.quotes { position: relative; }
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 900px){ .quote-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .quote-grid { grid-template-columns: 1fr; } }
.note {
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 6px;
  padding: 26px 24px 22px; box-shadow: var(--shadow); position: relative;
}
.note:nth-child(3n+1){ transform: rotate(-1.4deg); }
.note:nth-child(3n+2){ transform: rotate(.8deg); }
.note:nth-child(3n+3){ transform: rotate(-.6deg); }
.note::before { /* pin */
  content:""; position:absolute; top:-9px; left:50%; transform:translateX(-50%);
  width:16px; height:16px; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab,var(--accent) 60%,#fff), var(--accent-deep));
  box-shadow: 0 2px 4px rgba(34,29,23,.35);
}
.note .stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.note p { font-size: 16px; line-height: 1.5; }
.note .who { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.note .who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--ink-soft); flex: none; }
.note .who b { font-size: 14.5px; }
.note .who span { font-size: 12.5px; color: var(--ink-soft); display: block; font-family: var(--mono); }

/* ---------------- FAQ ---------------- */
.faq-grid { max-width: 780px; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 24px 4px; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font-family: var(--display); font-weight: 600; font-size: clamp(18px,2vw,22px); color: var(--ink);
}
.qa .pm { width: 26px; height: 26px; flex: none; position: relative; }
.qa .pm::before, .qa .pm::after { content:""; position:absolute; background: var(--accent-deep); border-radius:2px; transition: transform .25s ease; }
.qa .pm::before { left: 4px; right: 4px; top: 11.5px; height: 3px; }
.qa .pm::after { top: 4px; bottom: 4px; left: 11.5px; width: 3px; }
.qa[aria-expanded="true"] .pm::after { transform: rotate(90deg); opacity: 0; }
.qa .ans { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.qa .ans p { color: var(--ink-soft); font-size: 16px; padding: 0 4px 24px; max-width: 64ch; }

/* ---------------- BLOG ---------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px){ .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .blog-grid { grid-template-columns: 1fr; } }
.post { background: var(--card); border: 1px solid var(--card-edge); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post .thumb {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 13px, color-mix(in oklab,var(--ink) 5%, transparent) 13px 14px);
}
.post .thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.post .thumb:not(:has(img)) {
  display: grid;
  place-items: center;
}
.post .thumb .ph {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  border: 1px dashed var(--line);
  padding: 5px 10px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--card) 70%, transparent);
}
.post .body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post .cat { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.post h3 { font-size: 19px; margin: 9px 0 8px; line-height: 1.15; }
.post p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.post .meta { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); display: flex; gap: 12px; }
.blog-more { margin-top: clamp(24px, 3vw, 36px); text-align: center; }
.blog-all-btn {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  gap: 10px;
}
.blog-all-btn svg { width: 18px; height: 18px; flex: none; }

/* ---------------- FINAL CTA ---------------- */
.cta-band {
  background: var(--dark); color: #efe9dd; position: relative; overflow: hidden; z-index: 2;
  border-radius: clamp(20px, 3vw, 40px);
  margin-inline: clamp(10px, 1.6vw, 24px);
  margin-bottom: clamp(8px, 1.2vw, 16px);
}
.cta-band .inner { text-align: center; position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(30px, 8vw, 76px); color: #fff; max-width: 16ch; margin-inline: auto; }
.cta-band h2 .hand { color: var(--accent); }
.cta-band p { color: #c4baa6; font-size: clamp(15px, 3.8vw, 19px); margin: 20px auto 0; max-width: 44ch; }
.cta-band .logo-c { height: 40px; margin: 0 auto 30px; display: block; width: auto; }
.cta-band .stores { justify-content: center; margin-top: 34px; }
.cta-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab,var(--accent) 40%, transparent), transparent 65%); filter: blur(20px); opacity: .35; top: -250px; left: 50%; transform: translateX(-50%); z-index: 1; }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--dark-2); color: #b3a994; position: relative; z-index: 2; padding-block: 60px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; } }
.footer .logo-c { height: 30px; width: auto; margin-bottom: 16px; }
.footer .blurb { font-size: 14px; max-width: 30ch; line-height: 1.6; }
.footer h5 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6f6557; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer a { font-size: 14.5px; color: #b3a994; transition: color .15s ease; }
.footer a:hover { color: #fff; }
.foot-bot { border-top: 1px solid #34291f; margin-top: 44px; padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; font-family: var(--mono); color: #6f6557; }

/* ---------------- reveal animation ----------------
   Base state is VISIBLE. The hidden-then-reveal animation only applies
   while <html class="anim-on"> is present, which JS adds when it confirms
   CSS transitions actually run (and removes in frozen/reduced contexts).
   This guarantees content is never stuck invisible. */
.reveal { opacity: 1; transform: none; }
.anim-on .reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.anim-on .reveal.r-rot { transform: translateY(34px) rotate(-2deg); }
.anim-on .reveal.in { opacity: 1; transform: none; }
.anim-on .reveal[data-d="1"]{ transition-delay: .08s; }
.anim-on .reveal[data-d="2"]{ transition-delay: .16s; }
.anim-on .reveal[data-d="3"]{ transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .anim-on .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------------- whole-section fade (opacity only; safe with sticky children) ---------------- */
.anim-on .fade-sec { opacity: 0; transition: opacity .9s ease; }
.anim-on .fade-sec.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .anim-on .fade-sec { opacity: 1 !important; transition: none; } }

/* ---------------- PARTNERS ---------------- */
.partners .sec-head { margin-bottom: 24px; }
.partner-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.partner { display: flex; align-items: center; gap: 14px; }
.partner img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.partner b { font-family: var(--display); font-size: 20px; }
.partner-socials { display: flex; gap: 4px; margin-left: 4px; }
.partner-socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-soft); transition: color .2s, background .2s; }
.partner-socials a:hover { color: var(--accent-deep); background: var(--accent-wash); }
.partner-socials svg { width: 18px; height: 18px; }

/* hero.css */
/* ============================================================
   Bet Journal — scroll-story hero (bevel-style pinned scrub)
   Desktop only: add .is-animated via JS. Mobile stacks normally.
   ============================================================ */

.hero-scrolly { position: relative; height: auto; z-index: 2; }
.hero-scrolly.is-animated { height: 320vh; }

.hs-stage {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vw, 32px);
  padding: clamp(12px, 3vw, 24px) 0 clamp(36px, 7vw, 56px);
  background: var(--paper);
  isolation: isolate;
}

.hero-scrolly.is-animated .hs-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
  gap: 0;
}

/* ---- phase 1: big title ---- */
.hs-title {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-inline: var(--gut);
  padding-top: clamp(12px, 2.5vh, 22px);
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
}

.hero-scrolly.is-animated .hs-title {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hs-title .eyebrow { justify-content: center; }
.hs-title .eyebrow::before { width: 12px; }
.hs-title p.rline,
.hs-title h1 {
  font-size: clamp(38px, 5.4vw, 74px); letter-spacing: -.035em; line-height: 1.12;
  max-width: none; text-align: center;
}
.hs-title p.rline { margin: 14px 0 0; }
.hs-title h1.h1-line2 { margin-top: .38em; }
.hs-title .rline .ink-accent { color: var(--accent-deep); font-family: var(--hand); font-style: var(--hand-style, normal); font-weight: 500; letter-spacing: 0; }
.rotate-word { display: inline-block; transition: opacity .32s ease, transform .32s ease; will-change: opacity, transform; }
.rotate-word.out { opacity: 0; transform: translateY(-0.35em); }
.rotate-word.pre { transition: none; opacity: 0; transform: translateY(0.35em); }
@media (prefers-reduced-motion: reduce) { .rotate-word { transition: none; } }

/* both headline lines are nearly the same size for a balanced lockup */
.rline { white-space: nowrap; font-size: .92em; }
.h1-line2 { letter-spacing: -.03em; color: var(--ink); }
/* fixed-width slot: one representative ghost word defines a constant width,
   so "Track" never shifts; longer words overflow to the right harmlessly */
.rslot { display: inline-block; position: relative; }
.rghost {
  visibility: hidden; pointer-events: none;
  font-family: var(--hand); font-style: var(--hand-style, normal); font-weight: 500; letter-spacing: 0;
}
.rotate-word { position: absolute; left: 0; top: 0; white-space: nowrap; }
.hs-title .sub {
  font-size: clamp(17px, 1.7vw, 22px); color: var(--ink-soft);
  margin-top: clamp(20px, 2.5vh, 28px);
  margin-bottom: clamp(36px, 8vh, 64px);
  max-width: 44ch; line-height: 1.55;
}

/* white veil softens title/phone overlap — desktop animated only */
.hs-veil { display: none; }
.hero-scrolly.is-animated .hs-veil {
  display: block;
  position: absolute; left: 0; right: 0; top: 0; height: 64%;
  z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, var(--paper) 0%, var(--paper) 34%, color-mix(in oklab, var(--paper) 65%, transparent) 68%, transparent 100%);
  will-change: opacity;
}
.hs-title { z-index: 5; }

.hs-hint { display: none; }
.hero-scrolly.is-animated .hs-hint {
  display: flex;
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); flex-direction: column; align-items: center; gap: 8px;
  z-index: 5; pointer-events: none;
}
.hs-hint svg { width: 16px; height: 16px; color: var(--accent-deep); }

/* Desktop: same stacked lockup as mobile — copy high, phone peeks from bottom */
@media (min-width: 901px) {
  .hs-title .sub {
    margin-bottom: clamp(56px, 14vh, 120px);
  }
}

/* ---- phones ---- */
.hs-phones { position: relative; z-index: 3; display: grid; place-items: center; transform: translateZ(0); }
.hs-main {
  position: relative; z-index: 3;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
/* Hero phone: drop inset rim + soften shadow to stop white fringe flicker on scroll */
.hs-main .app-phone {
  box-shadow:
    0 0 0 1px #100d0a,
    0 28px 64px -28px rgba(16, 13, 10, 0.42);
  overflow: hidden;
}
.hs-main .app-phone .screen {
  background: #0a0a0a;
  border-radius: 33px;
}
.hs-main .app-phone .screen .shot {
  transform: scale(1.045) translateZ(0);
  transform-origin: center center;
}

.hs-side {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 212px; background: #100d0a; border-radius: 36px; padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2c2620;
}
.hs-side .scr { background: #fbfaf6; border-radius: 28px; height: 426px; overflow: hidden; display: flex; flex-direction: column; padding: 18px 16px 16px; }
.hs-side .scr.shot-wrap { padding: 0; }
.hs-side .scr.shot-wrap .shot, .app-phone .screen .shot {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hs-side .scr .t { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.hs-side .scr .s { font-family: var(--mono); font-size: 9.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; }

/* scanner mini-screen */
.scan-frame {
  margin-top: 14px; flex: 1; border: 2px dashed color-mix(in oklab, var(--accent) 55%, transparent);
  border-radius: 14px; position: relative; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in oklab, var(--accent-wash) 40%, #fff);
}
.scan-frame .slipmock {
  background: #fff; border: 1px solid var(--card-edge); border-radius: 6px;
  font-family: var(--mono); font-size: 9.5px; color: var(--ink-soft);
  padding: 10px 12px; line-height: 1.7; transform: rotate(-3deg);
  box-shadow: var(--shadow-sm);
}
.scan-frame .slipmock b { color: var(--ink); display: block; font-size: 10.5px; }
.scan-frame .beam {
  position: absolute; left: 8%; right: 8%; height: 3px; border-radius: 2px;
  background: var(--accent); opacity: .85; top: 30%;
  box-shadow: 0 0 14px 3px color-mix(in oklab, var(--accent) 45%, transparent);
}
.hs-side .scanbtn {
  margin-top: 14px; background: var(--accent); color: #fff; border-radius: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; text-align: center; padding: 11px;
}

/* analytics mini-screen */
.donut-wrap { margin-top: 16px; display: grid; place-items: center; }
.donut {
  width: 116px; height: 116px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 62%, var(--brick) 62% 78%, var(--paper-2) 78% 100%);
  display: grid; place-items: center;
}
.donut::after { content: "62%"; width: 78px; height: 78px; border-radius: 50%; background: #fbfaf6; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--ink); }
.mini-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.mini-rows .mr { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9.5px; color: var(--ink-soft); }
.mini-rows .mr .bar { flex: 1; height: 7px; border-radius: 4px; background: var(--paper-2); overflow: hidden; position: relative; }
.mini-rows .mr .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--accent); }
.mini-rows .mr .bar i.neg { background: var(--brick); }
.mini-rows .mr .v { width: 38px; text-align: right; font-weight: 700; color: var(--ink); }

/* bet slip tags around the hero phone */
.hs-slip { z-index: 2; }
.hs-slip--tl { top: 5%; left: -12%; transform: rotate(-7deg); }
.hs-slip--bl { bottom: 7%; left: -16%; transform: rotate(5deg); }
.hs-slip--tr { top: 9%; right: -12%; transform: rotate(6deg); }
.hs-slip--br { bottom: 5%; right: -16%; transform: rotate(-4deg); }

@media (max-width: 1100px) {
  .hs-slip--tl { left: -6%; }
  .hs-slip--bl { left: -8%; }
  .hs-slip--tr { right: -6%; }
  .hs-slip--br { right: -8%; }
}

/* ---- phase 3: CTA ---- */
.hs-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding-inline: var(--gut);
  box-sizing: border-box;
  isolation: isolate;
  pointer-events: auto;
  opacity: 1;
  z-index: 10;
}

.hero-scrolly.is-animated .hs-cta {
  position: absolute;
  bottom: clamp(14px, 2.5vh, 30px);
  left: 0;
  right: 0;
  padding-inline: 0;
  pointer-events: none;
}
.hs-cta .stores,
.hs-cta .meta { pointer-events: auto; }
.hs-cta .stores { gap: 16px; flex-wrap: wrap; justify-content: center; }
.hs-cta .stores .store-btn {
  padding: 14px 22px 14px 18px;
  border-radius: 14px;
}
.hs-cta .stores .store-btn svg { width: 26px; height: 26px; }
.hs-cta .stores .store-btn .lab small { font-size: 12px; }
.hs-cta .stores .store-btn .lab b { font-size: 19px; }
.hs-cta .meta {
  font-family: var(--sans);
  font-size: clamp(11px, 2.85vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  padding-inline: clamp(8px, 2.5vw, 16px);
}
.hs-cta .meta b { color: var(--ink-soft); font-weight: 600; }

@media (max-width: 860px) {
  .hs-side { display: none; }
}

/* Mobile: scale phone + CTA (stacked layout — no scroll-story height) */
@media (max-width: 900px) {
  .hs-phones { width: 100%; max-width: 100%; }
  .hs-main .app-phone {
    --pw: clamp(196px, 56vw, 248px);
    border-radius: calc(var(--pw) * 0.138);
    padding: calc(var(--pw) * 0.035);
  }
  .hs-main .app-phone .screen {
    height: calc(var(--pw) * 2.006);
    border-radius: calc(var(--pw) * 0.107);
  }
  .hs-main .app-phone .notch {
    width: calc(var(--pw) * 0.34);
    height: calc(var(--pw) * 0.082);
    top: calc(var(--pw) * 0.028);
    border-radius: calc(var(--pw) * 0.05);
  }
  .hs-slip {
    display: none;
  }
  .hs-cta {
    gap: 12px;
    padding-inline: var(--gut);
    box-sizing: border-box;
  }
  /* Hug content — avoid a fixed 340px rail that stretches badges full-bleed */
  .hs-cta .stores {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
  }
  .hs-title {
    justify-content: flex-start;
    padding-top: clamp(12px, 2.5vh, 22px);
    gap: 0;
  }
  .hs-title p.rline,
  .hs-title h1 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.14;
  }
  .hs-title p.rline { margin-top: 14px; }
  .hs-title h1.h1-line2 { margin-top: .42em; }
  .hs-title .sub {
    margin-top: 18px;
    margin-bottom: clamp(20px, 4vw, 32px);
    font-size: clamp(14px, 3.8vw, 17px);
    line-height: 1.5;
    max-width: 36ch;
  }
  .hs-title .eyebrow { font-size: 12px; }
  .rline { white-space: normal; }
  .hs-cta .stores .store-btn {
    padding: 10px 14px 10px 12px;
    border-radius: 12px;
  }
  .hs-cta .stores .store-btn svg { width: 20px; height: 20px; }
  .hs-cta .stores .store-btn .lab small { font-size: 9.5px; }
  .hs-cta .stores .store-btn .lab b { font-size: 15px; }
  .hs-cta .meta {
    font-size: clamp(10px, 2.6vw, 14px);
    line-height: 1.45;
    white-space: normal;
    max-width: 34ch;
  }
  .hs-hint { bottom: 18px; font-size: 10px; }
}

@media (max-width: 520px) {
  /* Stack badges at equal content width (widest label), not viewport width */
  .hs-cta .stores.stores-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
  }
  .hs-cta .stores.stores-inline .store-btn {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }
}

@media (max-width: 400px) {
  .hs-main .app-phone { --pw: clamp(172px, 50vw, 208px); }
  .hs-title p.rline,
  .hs-title h1 { font-size: clamp(28px, 7.6vw, 34px); }
}

@media (max-width: 900px) and (max-height: 700px) {
  .hs-main .app-phone { --pw: clamp(168px, 48vw, 210px); }
}

@media (max-height: 700px) and (min-width: 901px) {
  .hs-main .app-phone { --pw: 270px; }
  .hs-main .app-phone .screen { height: 540px; }
}

/* ---- static fallback (motion off / reduced motion) ---- */
.hs-static { height: auto !important; }
.hs-static.is-animated { height: auto !important; }
.hs-static .hs-stage { position: relative !important; height: auto !important; overflow: visible !important; display: flex !important; flex-direction: column !important; align-items: center; gap: 40px; padding: clamp(40px,6vw,80px) 0 60px; }
.hs-static .hs-title { position: relative !important; pointer-events: auto; opacity: 1 !important; transform: none !important; }
.hs-static .hs-veil { display: none !important; }
.hs-static .hs-hint { display: none !important; }
.hs-static .hs-phones [data-hs] { opacity: 1 !important; }
.hs-static .hs-main { transform: none !important; }
.hs-static .hs-side { position: absolute; opacity: 1 !important; }
.hs-static .hs-side.left  { transform: translate(-315px, -52%) rotate(-7deg) !important; }
.hs-static .hs-side.right { transform: translate(105px, -48%) rotate(7deg) !important; }
.hs-static .hs-cta { position: relative !important; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
.hs-static .hs-slip { opacity: 1 !important; }
@media (max-width: 860px) {
  .hs-static .hs-side { display: none; }
}

/* ============================================================
   SaaS hero (homepage)
   ============================================================ */
.hero-saas {
  --bj-bg: #F6F5EF;
  --bj-teal: #12908B;
  --bj-ink: #0E2033;
  --bj-muted: #3C4C5C;
  --bj-faint: #6B7A88;
  --bj-line: #E2E0D6;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--bj-bg);
  color: var(--bj-ink);
  font-family: 'Plus Jakarta Sans', var(--sans);
}
.hero-saas .bj-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 74% 48%, rgba(205,241,236,.95) 0%, rgba(232,247,244,.55) 38%, rgba(246,245,239,0) 70%),
    linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 55%, rgba(255,255,255,.72) 100%);
}
.hero-saas .bj-hero-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-saas .bj-line,
.hero-saas .bj-line-soft {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: bjDraw 2.6s cubic-bezier(.22,1,.36,1) 1.7s both;
}
.hero-saas .bj-line-soft {
  opacity: .22;
  animation: bjDraw 2.6s cubic-bezier(.22,1,.36,1) 1.7s both, bjDrawLoop 11s linear 4.4s infinite;
}
.hero-saas .bj-pulse-dot,
.hero-saas .bj-pulse-ring {
  opacity: 0;
}
.hero-saas .bj-pulse-dot { animation: bjFade .45s 4.4s both; }
.hero-saas .bj-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: bjPulse 2.8s ease-out 4.85s infinite;
}
.hero-saas .bj-dots { opacity: .5; animation: bjFade 1.2s .6s both; }

.bj-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas:
    "copy visual"
    "actions visual"
    "stats visual";
  gap: 24px;
  align-items: end;
  padding-top: clamp(36px, 5vw, 56px);
}
.bj-hero-copy { grid-area: copy; padding-bottom: 0; }
.bj-hero-visual { grid-area: visual; }
.bj-hero-actions { grid-area: actions; }
.bj-stats { grid-area: stats; }
.bj-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bj-teal);
  animation: bjUp .7s cubic-bezier(.22,1,.36,1) .1s both;
}
.bj-track {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: .95;
  letter-spacing: -.035em;
  margin: 18px 0 0;
  animation: bjUp .85s cubic-bezier(.22,1,.36,1) .18s both;
}
.bj-track-label { text-transform: none; }
.hero-saas .bj-track .bj-accent {
  color: var(--bj-teal);
  font-family: var(--hand);
  font-style: var(--hand-style, normal);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.hero-saas .bj-track .rslot { display: inline-block; position: relative; }
.hero-saas .bj-track .rghost {
  visibility: hidden;
  pointer-events: none;
  font-family: var(--hand);
  font-style: var(--hand-style, normal);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.hero-saas h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-transform: none;
  margin: 14px 0 0;
  animation: bjUp .85s cubic-bezier(.22,1,.36,1) .34s both;
}
.bj-sub {
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--bj-muted);
  margin: 26px 0 0;
  text-wrap: pretty;
  animation: bjUp .85s cubic-bezier(.22,1,.36,1) .48s both;
}
.bj-hero-actions { animation: bjUp .85s cubic-bezier(.22,1,.36,1) .6s both; }
.bj-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.hero-saas .btn-accent {
  background: var(--bj-teal);
  box-shadow: 0 14px 30px rgba(18,144,139,.3);
  border-radius: 14px;
  padding: 18px 28px;
}
.hero-saas .btn-accent:hover { box-shadow: 0 22px 44px rgba(18,144,139,.4); }
.hero-saas .btn-ghost {
  background: rgba(255,255,255,.9);
  border-color: #DFDDD2;
  border-radius: 14px;
  padding: 18px 28px;
}
.bj-sheen { position: relative; overflow: hidden; }
.bj-sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  animation: bjSheen 5.2s ease-in-out 2s infinite;
  pointer-events: none;
}
.bj-micro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  font-size: 14.5px;
  color: var(--bj-faint);
  animation: bjUp .85s cubic-bezier(.22,1,.36,1) .7s both;
}
.bj-micro svg { flex: none; }
.bj-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 26px 0 0;
  animation: bjUp .85s cubic-bezier(.22,1,.36,1) .82s both;
}
.bj-stats dt {
  font-size: 13.5px;
  color: var(--bj-faint);
  margin-top: 4px;
  order: 2;
}
.bj-stats dd {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.bj-stats > div {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--bj-line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(14, 32, 51, .04);
}
.bj-stat-text dd {
  font-size: 22px;
  letter-spacing: -.01em;
}

.bj-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
  padding: 0 48px 0;
}
.bj-profit-pill {
  position: absolute;
  top: 42%;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(18,144,139,.16);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 18px 44px rgba(14,32,51,.12);
  animation: bjIn .9s cubic-bezier(.22,1,.36,1) 1.1s both, bjFloatS 5.5s ease-in-out 1.8s infinite;
}
.bj-profit-pill strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--bj-teal);
  font-variant-numeric: tabular-nums;
}
.bj-profit-pill span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8A97A3;
  margin-top: 2px;
}
.bj-profit-pill em {
  font-style: normal;
  color: var(--bj-teal);
  font-size: 13px;
}
.bj-device {
  position: relative;
  z-index: 2;
  width: min(100%, 320px);
  margin-bottom: -28px;
  animation: bjPhoneIn 1s ease .4s both;
}
.bj-device-bezel {
  background: linear-gradient(150deg, #3A424B 0%, #14181D 26%, #0A0D11 62%, #2C333B 100%);
  border-radius: 42px 42px 18px 18px;
  padding: 11px 11px 14px;
  box-shadow: 0 50px 90px rgba(14,32,51,.3), 0 8px 24px rgba(14,32,51,.14);
  animation: bjFloat 8s ease-in-out 1.6s infinite;
}
.bj-device-screen {
  overflow: hidden;
  background: #0A0D11;
  border-radius: 32px;
}
.bj-device-shot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

@keyframes bjUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bjIn { from { opacity: 0; transform: translateY(56px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bjPhoneIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bjFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes bjFloatS { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bjDraw { from { stroke-dashoffset: 2400; } to { stroke-dashoffset: 0; } }
@keyframes bjDrawLoop { 0% { stroke-dashoffset: 2400; } 30%,88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 2400; } }
@keyframes bjPulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(2.1); opacity: 0; } }
@keyframes bjFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bjSheen { 0% { transform: translateX(-140%) skewX(-18deg); } 55%,100% { transform: translateX(260%) skewX(-18deg); } }

@media (max-width: 900px) {
  .bj-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "stats"
      "actions";
    padding-top: 12px;
  }
  .bj-hero-actions { padding-bottom: clamp(28px, 6vw, 48px); }
  .bj-hero-copy { padding-bottom: 0; }
  .bj-hero-visual { min-height: 0; padding: 8px 16px 0; }
  .bj-device { width: min(100%, 280px); margin-bottom: 0; animation-delay: .1s; }
  .bj-profit-pill { top: 12%; right: 8px; }
  .bj-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 8px 0 8px;
    padding: 18px 0 8px;
    animation-delay: 1.45s;
  }
  .bj-stats > div { padding: 12px 12px 10px; }
  .bj-stats dt {
    font-size: 12px;
    line-height: 1.25;
    margin-top: 2px;
  }
  .bj-stats dd { font-size: clamp(22px, 6.4vw, 26px); }
  .bj-stat-text dd { font-size: clamp(16px, 4.4vw, 18px); }
  .hero-saas .bj-hero-chart { opacity: .55; }
}
@media (max-width: 620px) {
  .bj-hero-cta .btn { width: 100%; justify-content: center; }
  .bj-track { font-size: clamp(36px, 11vw, 52px); }
  .hero-saas h1 { font-size: clamp(24px, 7vw, 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-saas *,
  .hero-saas *::after {
    animation: none !important;
    transition: none !important;
  }
  .bj-device { transform: none; }
}

/* features.css */
/* ============================================================
   Features showcase (homepage) — left menu + right image
   ============================================================ */
.features-saas {
  --feat-d1: #04202b;
  --feat-d2: #072b36;
  --feat-edge: #12414d;
  --feat-cream: #f6f1e6;
  --feat-teal: #12908B;
  --feat-teal-hi: #2fd4c9;
  --feat-ink: #052330;
  position: relative;
  z-index: 2;
  background: var(--feat-d1);
  color: #e9f2f2;
  padding-block: clamp(48px, 7vw, 92px);
  overflow: hidden;
}
.features-saas::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .05;
  pointer-events: none;
  background-image: radial-gradient(#7fe6de 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.bj-feat-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eye visual"
    "intro visual"
    "list visual"
    "extra visual";
  column-gap: clamp(28px, 3.4vw, 50px);
  row-gap: 10px;
  align-items: start;
}
.bj-feat-eye { grid-area: eye; }
.bj-feat-intro { grid-area: intro; }
.bj-feat-stage { display: contents; }
.bj-feat-list { grid-area: list; }
.bj-feat-extra { grid-area: extra; }
.bj-feat-panels { grid-area: visual; }
@media (min-width: 1001px) {
  .bj-feat-in {
    grid-template-areas:
      "eye ."
      "intro visual"
      "list visual"
      "extra visual";
  }
  .bj-feat-intro { align-self: start; }
  .bj-feat-list { margin-top: 6px; }
  .bj-feat-panels {
    width: min(38vw, 440px);
    justify-self: end;
    align-self: start;
  }
}
.bj-feat-caption { display: none; }
.bj-feat-eye {
  font-family: var(--mono), 'Space Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--feat-teal-hi);
}
.features-saas h2 {
  font-family: 'Bricolage Grotesque', var(--display), sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #f5f1e6;
  margin: 0;
}
.bj-feat-lede {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: #9db4b7;
  max-width: 38ch;
}
.bj-feat-list {
  margin-top: 0;
  display: flex;
  flex-direction: column;
}
.bj-feat-tab {
  display: grid;
  grid-template-columns: 34px 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 15px 14px;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid transparent;
  text-align: left;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  transition: background .25s, border-color .25s;
}
.bj-feat-tab:first-child { border-top: 0; }
.bj-feat-tab .num {
  font-family: 'Bricolage Grotesque', var(--display), sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.03em;
  color: #41686f;
  transition: color .25s;
}
.bj-feat-tab .ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #0e323c;
  border: 1px solid var(--feat-edge);
  display: grid;
  place-items: center;
  color: #c3e2df;
  transition: background .25s, color .25s, border-color .25s;
}
.bj-feat-tab .ic svg { width: 19px; height: 19px; }
.bj-feat-tab h3 {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #f5f1e6;
}
.bj-feat-extra {
  margin-top: 8px;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: #9db4b7;
}
.bj-feat-extra h3 {
  margin: 14px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #f5f1e6;
}
.bj-feat-extra p { margin: 0 0 8px; }
.bj-feat-extra a {
  color: var(--feat-teal-hi);
  font-weight: 600;
}
.bj-feat-tab small {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: #8fa8ab;
  margin-top: 3px;
  text-wrap: pretty;
}
.bj-feat-tab .go {
  width: 19px;
  height: 19px;
  color: #41686f;
  transition: color .25s, transform .25s;
}
.bj-feat-tab:hover { background: rgba(47, 212, 201, .05); }
.bj-feat-tab:hover .go { color: var(--feat-teal-hi); transform: translateX(3px); }
.bj-feat-tab[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(47, 212, 201, .12), rgba(47, 212, 201, .02));
  border-left-color: var(--feat-teal-hi);
  border-top-color: transparent;
}
.bj-feat-tab[aria-selected="true"] .num,
.bj-feat-tab[aria-selected="true"] .go { color: var(--feat-teal-hi); }
.bj-feat-tab[aria-selected="true"] .ic {
  background: var(--feat-teal-hi);
  border-color: var(--feat-teal-hi);
  color: #053430;
}

.bj-feat-panels {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  overflow: hidden;
  background: var(--feat-cream);
  aspect-ratio: 819 / 1024;
}
.bj-feat-pnl {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.012);
  transition: opacity .45s ease, transform .6s ease, visibility .45s;
}
.bj-feat-pnl[data-on="1"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.bj-feat-pnl img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.bj-feat-pnl img.bj-feat-fill {
  object-fit: cover;
}

.bj-feat-cta {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: linear-gradient(120deg, var(--feat-d2), var(--feat-d1));
  padding: clamp(18px, 2.2vw, 28px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  flex-wrap: wrap;
}
.bj-feat-cta .bolt {
  width: 36px;
  height: 36px;
  color: var(--feat-teal-hi);
  flex: none;
}
.bj-feat-cta b {
  display: block;
  font-family: 'Bricolage Grotesque', var(--display), sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 23px);
  letter-spacing: -.025em;
  color: #f5f1e6;
}
.bj-feat-cta small {
  display: block;
  font-size: 14.5px;
  color: #9db4b7;
  margin-top: 3px;
}
.bj-feat-cta .btn { margin-left: auto; }
.features-saas .btn-accent {
  background: var(--feat-teal);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(18, 160, 154, .9);
}

@media (max-width: 1000px) {
  .bj-feat-in {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eye"
      "intro"
      "stage"
      "extra";
    row-gap: 10px;
  }
  .bj-feat-stage { margin-top: 12px; }
  .bj-feat-extra { margin-top: 6px; max-width: none; }
  .bj-feat-stage {
    --feat-visual-w: 260px;
    display: grid;
    grid-area: stage;
    grid-template-columns: 48px var(--feat-visual-w);
    grid-template-areas:
      "caption caption"
      "list visual";
    justify-content: center;
    align-items: stretch;
    column-gap: 14px;
    row-gap: 14px;
    padding: 18px 16px 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(14, 50, 60, .55), rgba(4, 32, 43, .2));
  }
  .bj-feat-caption {
    display: block;
    grid-area: caption;
    min-height: 4.2em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .28s ease, transform .28s ease;
  }
  .bj-feat-caption.is-in {
    opacity: 1;
    transform: none;
  }
  .bj-feat-caption b {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #f5f1e6;
  }
  .bj-feat-caption small {
    display: block;
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.4;
    color: #9db4b7;
  }
  .bj-feat-list {
    margin-top: 0;
    height: 100%;
    justify-content: space-between;
    gap: 0;
  }
  .bj-feat-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
  }
  .bj-feat-tab .num,
  .bj-feat-tab .go,
  .bj-feat-tab > span:not(.ic) { display: none; }
  .bj-feat-tab:hover { background: transparent; }
  .bj-feat-tab[aria-selected="true"] {
    background: transparent;
    border-left-color: transparent;
  }
  .bj-feat-tab .ic {
    width: 38px;
    height: 38px;
  }
  .bj-feat-cta .btn { margin-left: 0; width: 100%; justify-content: center; }
  .bj-feat-panels {
    width: var(--feat-visual-w);
    min-width: 0;
    max-width: none;
    margin: 0;
  }
}
@media (max-width: 520px) {
  .bj-feat-stage {
    --feat-visual-w: min(260px, calc(100vw - var(--gut) * 2 - 94px));
    grid-template-columns: 48px var(--feat-visual-w);
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bj-feat-pnl,
  .bj-feat-caption { transition: none; transform: none; }
}
