/* Home page only. style.css supplies tokens, header, footer, .btn,
   .bubble, .rows/.erow, .steps and .qa. */

.home section { padding-block: var(--section); }
.home section + section { padding-top: 0; }
.sec-head { max-width: 40rem; margin-bottom: var(--s-6); }
.sec-head h2, .answer h2, .closing h2 { font-size: var(--fs-xl); letter-spacing: -0.03em; }
.sec-head p { margin-top: var(--s-4); font-size: var(--fs-md); line-height: 1.4; color: var(--muted); }

/* Hero: copy, then the live ledger. */
.home .hero { padding-top: clamp(2.5rem, 8vw, 5.5rem); }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.hero h1 { font-size: var(--fs-2xl); line-height: 1; letter-spacing: -0.045em; }
.hero-sub { margin-top: var(--s-5); max-width: 30rem; font-size: var(--fs-md); line-height: 1.4; color: var(--ink-2); }
.hero-actions { margin-top: var(--s-6); display: grid; gap: var(--s-3); justify-items: start; }
.hero-meta { color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); }
}

.stage { margin: 0; padding: var(--s-4); border-radius: var(--r-lg); background: var(--bg-alt); min-width: 0; }
.inbox { position: relative; height: 8.5rem; }
.sms { position: absolute; left: 0; bottom: var(--s-4); opacity: 0; }
.sms.is-rest { opacity: 1; }
.inbox.is-live .sms.is-rest { opacity: 0; }
.sms-skip { display: block; margin-top: 0.3rem; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }

.ledger { padding: var(--s-5) var(--s-4) var(--s-4); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-card); }
.ledger-month { color: var(--muted); font-size: var(--fs-sm); }
.ledger-total {
  display: flex; align-items: baseline; gap: var(--s-2);
  color: var(--ink); font-size: clamp(2.5rem, 11vw, 3.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.ledger-cur { color: var(--muted); font-size: 0.4em; font-weight: 600; letter-spacing: 0; }
.ledger-delta { margin-top: var(--s-1); color: var(--muted); font-size: var(--fs-sm); }
.ledger-delta b { color: var(--ink); font-weight: 600; }
.ledger .rows { margin: var(--s-4) calc(-1 * var(--s-4)) 0; height: 17.5rem; border-radius: 0; background: none; box-shadow: inset 0 1px 0 var(--line-soft); }
.erow.is-new { background: var(--accent-tint); }
.ledger-foot { display: flex; align-items: center; gap: 0.4rem; margin-top: var(--s-4); color: var(--muted); font-size: var(--fs-xs); }

/* The other ways */
.pains h2 { font-size: var(--fs-md); font-weight: 600; color: var(--muted); letter-spacing: -0.015em; }
.pain-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-5); }
.pain-line { display: block; color: var(--ink); font-size: clamp(1.75rem, 6vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.pain-note { display: block; margin-top: var(--s-1); color: var(--muted); font-size: var(--fs-md); line-height: 1.3; }
.answer { max-width: 40rem; }
.answer p { margin-top: var(--s-4); font-size: var(--fs-md); line-height: 1.4; }

/* How it works: steps beside one text taken apart. */
.how-grid { display: grid; gap: var(--s-7); align-items: start; }
.how-grid .steps { margin-top: 0; max-width: var(--measure); }
.steps h3 { font-size: var(--fs-md); }
.steps h3 + p { margin-top: var(--s-2); }
.how-more { margin-top: var(--s-6); display: grid; gap: var(--s-2); max-width: var(--measure); }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: var(--s-8); }
  .how-grid .anatomy { position: sticky; top: 5rem; }
}

/* Sample messages: each opens to say what Spenvo did with it. */
.judge-list { display: grid; gap: var(--s-3); max-width: 40rem; }
.jmsg > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-3); cursor: pointer; list-style: none; }
.jmsg > summary::-webkit-details-marker { display: none; }
.jmsg > summary:focus-visible { outline-offset: 4px; border-radius: var(--r-bubble); }
.verdict { display: inline-flex; align-items: center; gap: 0.4rem; padding-bottom: 0.5rem; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.verdict::after {
  content: ""; width: 0.45rem; height: 0.45rem; margin: 0 0.15rem 0.2rem 0.1rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s var(--ease);
}
.jmsg[open] .verdict::after { transform: rotate(-135deg); margin-bottom: -0.15rem; }
.verdict--yes { color: var(--accent); }
.jmsg-body { margin: var(--s-3) 0 var(--s-4); padding: var(--s-4); border-radius: var(--r-md); background: var(--bg-alt); }
.jfields { margin: 0 0 var(--s-3); display: grid; gap: var(--s-2); }
.jfields div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s-3); font-size: var(--fs-sm); }
.jfields dt { color: var(--muted); }
.jfields dd { margin: 0; color: var(--ink); font-weight: 600; }
.jwhy { font-size: var(--fs-sm); }

/* Features: tiles with a phone rising from the bottom edge. */
.tiles { display: grid; gap: var(--s-4); }
.tile { display: grid; grid-template-rows: auto 1fr; gap: var(--s-6); padding: var(--s-6) var(--s-5) 0; border-radius: var(--r-lg); background: var(--bg-alt); overflow: hidden; min-width: 0; }
.tile-copy { max-width: 30rem; }
.tile h3 { font-size: var(--fs-lg); letter-spacing: -0.025em; line-height: 1.1; }
.tile p { margin-top: var(--s-3); }
.device {
  align-self: end; justify-self: center;
  width: min(17rem, 82%); margin: 0;
  aspect-ratio: 402 / 570; overflow: hidden;
  border: 6px solid var(--bezel); border-bottom: 0;
  border-radius: var(--r-device) var(--r-device) 0 0;
  background: #050816;
  box-shadow: var(--shadow-device);
}
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: var(--s-7) var(--s-7) 0; }
  .tile--wide { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); }
  .tile--wide .tile-copy { padding-bottom: var(--s-7); align-self: center; }
  .tile--wide .device { width: 19rem; }
}

/* Banks */
.banklist { margin: 0; border-top: 1px solid var(--line); max-width: 48rem; }
.banklist > div { padding: var(--s-4) 0; border-bottom: 1px solid var(--line-soft); }
.banklist dt { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.banklist dd { margin: var(--s-1) 0 0; color: var(--ink); }
.banks-more { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
@media (min-width: 720px) {
  .banklist > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s-5); }
  .banklist dd { margin: 0; }
}

/* Privacy */
.privacy h2 { font-size: var(--fs-2xl); line-height: 1; letter-spacing: -0.045em; max-width: 12em; }
.privacy-lede { margin-top: var(--s-5); max-width: 40rem; color: var(--ink); font-size: var(--fs-lg); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.facts { list-style: none; margin: var(--s-6) 0 0; padding: 0; max-width: 40rem; border-top: 1px solid var(--line); }
.facts li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.privacy-link { margin-top: var(--s-5); }

/* Price: three rows, not three towers. */
.plans { margin: 0; max-width: 48rem; border-top: 1px solid var(--line); }
.plans > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line-soft); }
.plans dt { color: var(--ink); font-weight: 600; }
.plans dd { margin: 0; }
.fine { margin-top: var(--s-4); color: var(--muted); font-size: var(--fs-sm); }

.faq .qa { margin-top: 0; }

/* Closing */
.closing-inner { padding: var(--s-7) var(--s-5); border-radius: var(--r-lg); background: var(--bg-alt); }
.closing p { margin-top: var(--s-3); max-width: 30rem; font-size: var(--fs-md); line-height: 1.4; }
.closing-actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
@media (min-width: 900px) { .closing-inner { padding: var(--s-8); } }
