/* ============================================================
   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 (app-style KPI cards) ---------------- */
.statstrip {
  background: var(--dark); color: #efe9dd; position: relative; z-index: 2; overflow: hidden;
  border-radius: clamp(20px, 3vw, 40px);
  margin-inline: clamp(10px, 1.6vw, 24px);
}
.kpi-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding-block: clamp(28px, 4vw, 44px); }
.kcard {
  background: #272220; border: 1px solid #38312c; border-radius: 16px;
  padding: 16px 16px 18px; min-width: 0;
}
.kcard .kh { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #a89e8d; }
.kcard .kl { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard .kl svg { width: 15px; height: 15px; flex: none; }
.kcard .ki { width: 15px; height: 15px; flex: none; opacity: .45; }
.kcard b {
  display: block; margin-top: 12px;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.02em; line-height: 1;
  color: color-mix(in oklab, var(--accent) 62%, #b8fffd);
  white-space: nowrap;
}
@media (max-width: 1060px){ .kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){
  .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 8px; padding-block: 20px; }
  .kcard { padding: 12px 10px 14px; border-radius: 12px; }
  .kcard .kl { font-size: 9px; letter-spacing: .08em; white-space: normal; line-height: 1.25; }
  .kcard .kl svg, .kcard .ki { width: 13px; height: 13px; }
  .kcard b { margin-top: 8px; font-size: clamp(17px, 4.8vw, 22px); white-space: normal; line-height: 1.1; }
  .statstrip { margin-inline: 8px; border-radius: 16px; }
}

/* ---------------- 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);
}
.statstrip + .features.section { padding-top: clamp(36px, 5vw, 56px); }
.features + .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 .dash {
    width: min(440px, 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; }

/* dashboard mock used in showcase */
.dash {
  width: min(440px, 92%); background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px; position: relative;
}
.dash .dh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.dash .dh b { font-family: var(--display); font-size: 19px; }
.dash .dh span { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.dash .kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.dash .kpi { background: var(--paper); border-radius: 12px; padding: 12px; }
.dash .kpi span { font-size: 11px; color: var(--ink-soft); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.dash .kpi b { font-family: var(--mono); font-size: 22px; display: block; margin-top: 4px; letter-spacing: -.02em; }
.dash .kpi b.up { color: var(--accent-deep); }
.dash .kpi b.dn { color: var(--brick); }
.dash .graph { height: 132px; position: relative; border-radius: 12px; background: var(--paper); padding: 12px; overflow: hidden; }
.dash .graph svg { width: 100%; height: 100%; overflow: visible; }
.dash .leg { display: flex; gap: 16px; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.dash .leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

/* ---------------- 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; }
.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; } }
