/* Refinements for the homepage and tutorial. Loaded AFTER their inline styles, so equal-specificity
   rules here win. Class-scoped only. Shared header/footer/badges live in base.css. */

/* Display type for headlines and figures; body stays in the native UI face */
.hero h1, .section-wrap h2, .feature-text h3, .pricing-text h2, .more-title, .cta-band h2,
.tut-hero h1, .tut-section h2, .tut-section h3, .plan-name {
  font-family: var(--font-display);
}
.hero h1 { font-weight: 700; letter-spacing: -.03em; line-height: 1.04; }
.section-wrap h2, .pricing-text h2 { letter-spacing: -.035em; }
.feature-text h3 { letter-spacing: -.03em; }

/* Labels read as plain sentence-case tags, not tracked-out capitals */
.hero-eyebrow, .section-label-sm, .feature-tag, .price-badge, .elite-tag, .tut-badge, .sidebar-label, .section-tag,
.flow-step-label, .flow-connector-label, .scroll-cue span {
  text-transform: none; letter-spacing: .1px;
}
.hero-eyebrow { font-size: 13px; }
.feature-tag { font-size: 13px; }

/* Reveal: a short, quiet lift instead of big slides on every block */
.reveal, .reveal-left, .reveal-right { transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { transform: none; }

/* Hero: badges are the call to action */
.hero-store { margin-top: 4px; }
.hero-meta { margin-top: 18px; }
.hero-sub { max-width: 46ch; }

/* Closing download band */
.cta-band {
  position: relative; overflow: hidden;
  max-width: 1160px; margin: 104px auto 24px; padding: 60px 48px;
  border: 1px solid var(--line); border-radius: 28px;
  background: radial-gradient(70% 150% at 100% 0%, rgba(37,99,235,.30), transparent 62%), var(--bg2);
}
.cta-band h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.06; letter-spacing: -.04em; margin: 0 0 14px; max-width: 20ch; }
.cta-band p { color: var(--muted); font-size: 17px; max-width: 50ch; margin: 0 0 30px; line-height: 1.6; }
@media (max-width: 900px) { .cta-band { margin: 72px 16px 16px; padding: 40px 24px; border-radius: 22px; } }

/* Support / legacy prose sections: keep links on-brand */
.prose h2, .prose h3 { font-family: var(--font-display); }

.cta-band .cta-copy { position: relative; z-index: 1; max-width: 560px; }
.cta-phone { position: absolute; right: 7%; top: 44px; width: 250px; height: auto; transform: rotate(5deg); filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); pointer-events: none; }
@media (max-width: 900px) { .cta-phone { display: none; } }

/* Small screens: a bare `1fr` track can't shrink below its widest child (a phone mock-up in the
   Live Session row pushed its column to 534px on a 320px container, clipping the text). */
@media (max-width: 900px) {
  .feature-row, .feature-row.flip { grid-template-columns: minmax(0, 1fr); }
  .feature-row > * { min-width: 0; }
  .phone-frame, .phone-frame img { max-width: 100%; }
}

/* ═════════════════ AND MORE, BUILT IN — a ledger, not a card grid ═════════════════
   Full-width rows grouped by when you use them (Prepare / Review / Bankroll). */
.more { margin-top: 128px; }
.more-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: 40px; }
.more-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.035em; margin: 0; }
.more-lede { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 46ch; margin: 0; }
.ledger { border-bottom: 1px solid var(--line); }
.ledger-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.ledger-label { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: #c5cee8; margin: 0; padding-top: 3px; }
.ledger-rows { margin: 0; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 6px 32px; padding: 15px 0; border-top: 1px solid rgba(35, 42, 77, .65); }
.ledger-row:first-child { border-top: 0; padding-top: 0; }
.ledger-row:last-child { padding-bottom: 0; }
.ledger-row dt { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--text); }
.ledger-row dd { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 900px) {
  .more { margin-top: 88px; }
  .more-head { grid-template-columns: 1fr; }
  .ledger-group { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .ledger-row { grid-template-columns: 1fr; padding: 13px 0; }
  .ledger-row dt { font-size: 19px; }
}

/* ═════════════════ PLANS — one ladder: each plan adds to the one before ═════════════════
   Tier colour is information only: a thin top rule and small markers, never fills. */
.plans-inner { max-width: 1160px; margin: 0 auto; padding: 120px 36px 96px; }
.plans-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; margin-bottom: 56px; }
.plans-head h2 { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; margin: 0; }
.plans-intro p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 52ch; margin: 0 0 26px; }
.plans-facts { margin: 0; border-top: 1px solid var(--line); }
.plans-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plans-facts dt { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.plans-facts dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.plan-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.15fr 1fr 1fr; border: 1px solid var(--line); border-radius: 24px; background: var(--bg2); overflow: hidden; }
.plan { --accent: #4b5a96; --accent-text: #98a3c2; position: relative; padding: 0 32px 34px; border-top: 3px solid var(--accent); margin: 0; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-free { --accent: #4b5a96; --accent-text: #a9b4d2; }
.plan-pro { --accent: #4f83ff; --accent-text: #8db1ff; background: linear-gradient(180deg, rgba(37, 99, 235, .10), transparent 55%); }
.plan-elite { --accent: #9b6bff; --accent-text: #bba2ff; background: linear-gradient(180deg, rgba(124, 58, 237, .13), transparent 55%); }
/* the "+" at each join: this plan adds to the previous one */
.plan + .plan::before {
  content: "+"; position: absolute; left: -15px; top: 42px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--accent-text);
  font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1;
}
.plan-top { padding: 30px 0 22px; }
.plan-name { font-family: var(--font-display); font-size: 34px; line-height: 1.1; letter-spacing: -.035em; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.plan-tag { margin: 0; color: var(--muted); font-size: 15px; }
.plan-adds { font-size: 13.5px; font-weight: 600; color: var(--accent-text); margin: 0 0 10px; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { position: relative; padding: 11px 0 11px 27px; border-top: 1px solid rgba(35, 42, 77, .7); color: #dbe2f5; font-size: 15px; line-height: 1.5; }
.plan-list li:first-child { border-top: 0; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 14px; background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.2 3.2L12 3.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.2 3.2L12 3.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-list-adds li::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 2v10M2 7h10' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 2v10M2 7h10' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.plan-req { color: var(--muted); font-size: 13px; white-space: nowrap; }
.plans-note { margin: 22px 0 0; color: #8391b6; font-size: 13.5px; line-height: 1.6; max-width: 72ch; }

@media (max-width: 1080px) {
  .plan { padding: 0 22px 30px; }
  .plan-name { font-size: 30px; }
  .plan + .plan::before { left: -14px; }
}
@media (max-width: 900px) {
  .plans-inner { padding: 80px 20px 64px; }
  .plans-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .plan-ladder { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 0 24px 26px; }
  .plan + .plan { border-left: 0; border-top-width: 3px; }
  .plan + .plan::before { left: 24px; top: -16px; }
  .plan-top { padding: 26px 0 18px; }
}
