/* PayLessDegree — PayLess family design (shared with PayLessCalc, PayLessReno and PayLessSenior).
   Palette: academic navy, marker yellow, cool blue paper. Type: Bricolage Grotesque (display),
   Public Sans (text), IBM Plex Mono (hero board figures only). */
:root {
  --brand: #1f3f99;
  --brand-dark: #17307a;
  --deep: #0e1a3a;
  --marker: #ffd84d;
  --strike: #c8463b;
  --ink: #151b2b;
  --muted: #56607a;
  --line: #dce3f0;
  --bg: #f4f6fb;
  --card: #fff;
  --warn: #9a3412;
  --warn-bg: #fff4ec;
  --c: var(--brand);
  --t: #e7ecfb;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 17px/1.65 var(--text); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0 0 .35em; }
h2 { font-size: 1.55rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.15rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 10; }
.icon { display: block; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.3rem/1 var(--display); letter-spacing: -.02em; }
.logo b { color: var(--brand); font-weight: 800; }
.logo-light { color: #fff; }
.logo-light b { color: #b9cbf5; }
.site-nav { display: flex; gap: 2px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: #e9eefa; color: var(--brand-dark); }
.nav-toggle, .nav-burger { display: none; }
@media (max-width: 820px) {
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

.crumbs { font-size: .86rem; color: var(--muted); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }

main { min-height: 60vh; padding-bottom: 64px; }
.page-head { padding: 22px 0 8px; }
.lede { font-size: 1.13rem; color: var(--muted); max-width: 680px; margin: 0; }
.meta { color: var(--muted); font-size: .92rem; }
.tag { display: inline-block; background: var(--t); color: var(--c); font-size: .8rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; text-decoration: none; margin-bottom: 10px; }

/* Coloured page header for sections, calculators and guides */
.band { background: var(--t); border-radius: 22px; padding: 30px 32px; margin-top: 14px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid var(--c); opacity: .07; }
.band h1 { color: var(--ink); }
.band .lede { color: #424b62; }
.band-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; background: var(--c); color: #fff; align-items: center; justify-content: center; margin-bottom: 16px; }
@media (max-width: 520px) { .band { padding: 22px 20px; border-radius: 18px; } }

/* Buttons */
.btn { display: inline-block; background: var(--marker); color: var(--ink); padding: 13px 22px; border-radius: 12px; text-decoration: none; font-weight: 700; border: 2px solid var(--marker); }
.btn:hover { background: #ffe57f; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Hero */
.hero {
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #fff; padding: 64px 0 72px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 12ch; }
.hero .lede { color: #cfd9f2; font-size: 1.18rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { color: #a3b2d6; font-size: .9rem; margin-top: 16px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } .hero { padding: 44px 0 56px; } }


/* Hero board: monthly cost of each type of care */
.board-wrap { display: flex; justify-content: center; }
.board {
  width: 100%; max-width: 430px; background: #fff; color: var(--ink); border-radius: 22px;
  padding: 24px 24px 20px; transform: rotate(-1.5deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}
.b-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px dashed #cfd6e6; padding-bottom: 12px; margin-bottom: 4px; }
.b-head strong { font: 700 1.22rem/1 var(--display); }
.b-head span { font-size: .8rem; color: var(--muted); }
.b-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0 9px; border-bottom: 1px dashed #e1e6f0; text-decoration: none; color: var(--ink); }
.b-row:last-of-type { border-bottom: 0; }
.b-row:hover .b-name { color: var(--brand); }
.b-name { font-weight: 600; display: flex; flex-direction: column; line-height: 1.3; }
.b-name small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.b-amt { font: 600 1rem/1.3 var(--mono); white-space: nowrap; text-align: right; align-self: center; font-variant-numeric: tabular-nums; }
.b-bar { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: #ebeff8; overflow: hidden; }
.b-bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #6f93e6, var(--brand)); }
.b-row:last-of-type .b-bar i { background: linear-gradient(90deg, #f4a196, #c8463b); }
.b-foot { font-size: .78rem; color: var(--muted); margin: 12px 0 0; line-height: 1.45; }
@media (max-width: 520px) { .board { padding: 20px 18px 16px; transform: none; } }

/* Home: bills */
.section-title { margin-top: 64px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.bill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .bill-grid { grid-template-columns: minmax(0, 1fr); } }
.bill { background: var(--card); border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
.bill-top { display: flex; gap: 16px; align-items: center; background: var(--t); padding: 22px 24px; text-decoration: none; color: var(--ink); }
.bill-top strong { display: block; font: 700 1.35rem/1.2 var(--display); letter-spacing: -.02em; }
.bill-top small { display: block; color: #424b62; font-size: .95rem; }
.bill-icon { flex: none; display: inline-flex; width: 50px; height: 50px; border-radius: 14px; background: var(--c); color: #fff; align-items: center; justify-content: center; }
.bill-top:hover strong { color: var(--c); }
.bill ul { list-style: none; margin: 0; padding: 18px 24px 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.bill li a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.bill li a:hover { border-color: var(--c); color: var(--c); }

/* Home: steps */
.steps-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; padding: 8px 0 56px; }
.steps-band .section-title { margin-top: 48px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); font: 800 3rem/1 var(--display); color: var(--brand); }
.steps strong { font: 700 1.2rem/1.3 var(--display); }
.steps span { color: var(--muted); }

/* Cards */
.calc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 26px; }
.calc-card, .guide-card, .side-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.calc-card, .guide-card { text-decoration: none; color: var(--ink); display: block; }
.calc-card:hover, .guide-card:hover { border-color: var(--c); color: var(--ink); }
.calc-card h2 { margin: 12px 0 6px; font-size: 1.3rem; }
.calc-card p, .guide-card p { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.calc-card .more { color: var(--c); font-weight: 700; }
.card-icon { display: inline-flex; width: 40px; height: 40px; border-radius: 11px; background: var(--t); color: var(--c); align-items: center; justify-content: center; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.guide-card h3 { margin: 4px 0 6px; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
@media (max-width: 760px) { .trust { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.trust h3 { margin: 0 0 4px; }
.trust p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); background: var(--card); border: 1px solid var(--line); border-radius: 22px; margin-top: 22px; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(14,26,58,.35); }
.calc-form { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-content: start; }
.field { min-width: 0; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field .help { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; line-height: 1.4; }
.input { display: flex; align-items: stretch; border: 1.5px solid #cdd5e5; border-radius: 12px; background: #fff; overflow: hidden; }
.input:focus-within, select:focus { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.input input { flex: 1; width: 100%; min-width: 0; border: 0; padding: 11px 12px; font: 600 1.02rem var(--text); outline: none; background: transparent; color: var(--ink); }
.prefix, .suffix { display: flex; align-items: center; padding: 0 11px; color: var(--muted); background: #eff2f9; font-size: .88rem; white-space: nowrap; }
select { width: 100%; border: 1.5px solid #cdd5e5; border-radius: 12px; padding: 11px 12px; font: 600 1.02rem var(--text); background: #fff; outline: none; color: var(--ink); }
.calc-results { background: var(--deep); background: color-mix(in srgb, var(--c) 55%, #08102a); color: #fff; padding: 28px; }
.result { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.13); font-size: .95rem; }
.result span { color: rgba(255,255,255,.75); }
.result strong { text-align: right; font-variant-numeric: tabular-nums; }
.result.big { flex-direction: column; gap: 6px; border-bottom: 0; padding: 0 0 16px; }
.result.big span { color: rgba(255,255,255,.88); font-weight: 600; }
.result.big strong { font: 800 2.5rem/1.05 var(--display); letter-spacing: -.03em; text-align: left; color: var(--ink); background: var(--marker); align-self: flex-start; padding: 4px 12px 6px; border-radius: 8px; }
.calc-results .warn { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 0 0 14px; }
.calc-results .note { color: rgba(255,255,255,.75); font-size: .85rem; margin: 14px 0 0; }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 18px 0 10px; background: rgba(255,255,255,.1); }
.bar .seg { display: block; height: 100%; }
.s0 { background: #9be7c4; } .s1 { background: var(--marker); } .s2 { background: #8ccaf5; } .s3 { background: #f4a196; } .s4 { background: #d7b8f3; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: rgba(255,255,255,.8); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .calc-form { grid-template-columns: minmax(0, 1fr); padding: 20px; } .calc-results { padding: 22px 20px; } .result.big strong { font-size: 2.1rem; } }
.calc-table { margin-top: 30px; }
.calc-table h2 { margin-top: 0; }

/* Content */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; margin-top: 14px; }
@media (max-width: 900px) { .content-grid { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 720px; }
.prose p, .prose li { color: #232a3b; }
.prose li { margin-bottom: 6px; }
.prose .formula { background: var(--t); border-left: 4px solid var(--c); padding: 12px 16px; border-radius: 0 10px 10px 0; font-family: var(--mono); font-size: .93rem; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; background: #fff8d6; border-left: 4px solid var(--marker); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }
.prose code { background: #ebeff6; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #eff2f9; font-weight: 700; }
tbody tr:nth-child(even) td { background: #fafbfe; }
tr:last-child td { border-bottom: 0; }
.faqs details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 20px; margin-bottom: 10px; }
.faqs details[open] { border-color: var(--c); }
.faqs summary { font-weight: 700; cursor: pointer; }
.faqs details p { margin: 10px 0 0; }
.updated { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 34px; }
.side { display: flex; flex-direction: column; gap: 18px; }
.side-box h2 { font-size: 1.05rem; margin: 0 0 10px; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li a { display: block; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); }
.side-box li a:hover { color: var(--c); }
.calc-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--t); border-radius: 14px; padding: 16px 20px; text-decoration: none; color: var(--ink); margin: 6px 0 22px; }
.calc-cta span { color: var(--c); font-weight: 700; }
.contact-box { font-size: 1.15rem; background: #e7ecfb; padding: 16px 20px; border-radius: 12px; }
.plain-list { columns: 2; }

/* Ads */
.ad { margin: 30px 0; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: .72rem; color: #8a93a8; margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--deep); color: #c0cbe2; padding: 52px 0 26px; font-size: .92rem; }
.site-footer a { color: #e8eefb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h3 { font-size: 1rem; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.disclaimer-note { font-size: .82rem; color: #93a3c6; max-width: 900px; }

/* Long pages: table of contents */
.toc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 8px 0 28px; }
.toc strong { font: 700 1rem var(--display); }
.toc ol { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: .95rem; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.legal h2 { scroll-margin-top: 84px; }
.legal h3 { margin-bottom: .3em; }

/* Share buttons */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.share-label { font-weight: 700; font-size: .9rem; margin-right: 4px; }
.sh { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font: 700 .9rem var(--text); cursor: pointer; }
.sh:hover { border-color: var(--c); color: var(--c); }
.sh-wa { background: #25d366; border-color: #25d366; color: #fff; padding: 0 16px; }
.sh-wa:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }
.sh-copied { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .75rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.sh-copied[hidden] { display: none; }

/* ======================================================================
   Motion. Active only when <html> has .motion (added in <head> unless the
   visitor prefers reduced motion). The reduced-motion rule at the top of
   this file also switches every animation and transition off.
   ====================================================================== */

/* Hover feedback (all visitors) */
.btn, .calc-card, .guide-card, .bill, .bill li a, .site-nav a, .b-row, .sh {
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.45); }
.calc-card:hover, .guide-card:hover, .bill:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(14,26,58,.45); }
.bill li a:hover { transform: translateY(-2px); border-color: var(--c); color: var(--c); }
.bill-icon, .card-icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.bill:hover .bill-icon, .calc-card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(14,26,58,.5); }

/* Reading progress (articles and info pages) */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; background: linear-gradient(90deg, var(--brand), #6f93e6); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Hero: soft moving glow behind the copy */
.hero { position: relative; isolation: isolate; }
.hero-grid { position: relative; z-index: 1; }
.motion .hero::before, .motion .hero::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(60px); pointer-events: none; will-change: transform;
}
.motion .hero::before { width: 520px; height: 520px; left: -160px; top: -200px; background: rgba(111,147,230,.25); animation: glowA 16s ease-in-out infinite alternate; }
.motion .hero::after { width: 420px; height: 420px; right: -120px; bottom: -220px; background: rgba(255,216,77,.12); animation: glowB 19s ease-in-out infinite alternate; }
@keyframes glowA { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes glowB { to { transform: translate(-120px, -70px) scale(1.2); } }

/* Hero: copy rises in, one line after another */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.motion .hero-copy > * { animation: riseIn .8s cubic-bezier(.2,.7,.2,1) both; }
.motion .hero-copy > :nth-child(2) { animation-delay: .12s; }
.motion .hero-copy > :nth-child(3) { animation-delay: .24s; }
.motion .hero-copy > :nth-child(4) { animation-delay: .36s; }

@keyframes lineIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* Hero: the board slides up, rows appear one by one, bars grow to their value.
   motion.js adds .play when the board is on screen (and again each time it comes back into view),
   then .live for the looping effects: the board floats, a light sweeps across the bars and one row at a time is highlighted. */
@keyframes boardIn { from { opacity: 0; transform: rotate(-6deg) translateY(70px); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes floaty { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(-.6deg) translateY(-12px); } }
@keyframes sweep { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(320%); } }
.motion .board:not(.play) { opacity: 0; }
.motion:not(.motion-ready) .board { animation: revealFallback .4s ease 2.5s forwards; }
.motion .board.play { animation: boardIn 1s cubic-bezier(.2,.8,.2,1) .15s both; }
.motion .board.play.live { animation: floaty 7s ease-in-out infinite; }
.motion .board.play .b-head, .motion .board.play .b-foot { animation: lineIn .55s cubic-bezier(.2,.7,.2,1) both; }
.motion .board.play .b-head { animation-delay: .5s; }
.motion .board.play .b-row { animation: lineIn .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.65s + var(--i) * .12s); }
.motion .board.play .b-bar i { transform-origin: 0 50%; animation: growBar 1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.8s + var(--i) * .12s); }
.motion .board.play .b-foot { animation-delay: 1.6s; }
.b-bar i { position: relative; overflow: hidden; }
.motion .board.live .b-bar i::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: sweep 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }
.b-row { border-radius: 10px; transition: background-color .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.motion .board.live .b-row, .motion .board.live .b-head, .motion .board.live .b-foot { animation: none; }
.b-row { margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.b-row.hot { background: #e9effc; box-shadow: inset 3px 0 0 var(--brand); }
.b-row.hot .b-amt { color: var(--brand); }
@media (max-width: 520px) { .motion .board.play { animation-name: lineIn; } .motion .board.play.live { animation: none; } }

/* Scroll reveal: cards, sections and article blocks fade up as they enter the screen */
.motion :is(.page-head, .band, .section-title, .bill, .steps li, .trust > div, .calc-card, .guide-card, .side-box, .calc, .share, .calc-table,
  .prose > h2, .prose > h3, .prose > p, .prose > ul, .prose > ol, .prose > .table-wrap, .prose > .formula, .faqs details, .toc, .updated, .calc-cta) {
  transition: opacity .65s ease var(--d, 0ms), transform .65s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), box-shadow .25s ease, border-color .2s ease;
}
.motion :is(.page-head, .band, .section-title, .bill, .steps li, .trust > div, .calc-card, .guide-card, .side-box, .calc, .share, .calc-table,
  .prose > h2, .prose > h3, .prose > p, .prose > ul, .prose > ol, .prose > .table-wrap, .prose > .formula, .faqs details, .toc, .updated, .calc-cta):not(.in) {
  opacity: 0; transform: translateY(20px);
}
/* Safety net: if motion.js never runs, show everything after a moment. */
@keyframes revealFallback { to { opacity: 1; transform: none; } }
.motion:not(.motion-ready) :is(.page-head, .band, .section-title, .bill, .steps li, .trust > div, .calc-card, .guide-card, .side-box, .calc, .share, .calc-table,
  .prose > h2, .prose > h3, .prose > p, .prose > ul, .prose > ol, .prose > .table-wrap, .prose > .formula, .faqs details, .toc, .updated, .calc-cta) {
  animation: revealFallback .4s ease 2.5s forwards;
}
/* Section icons pop in with their band */
.motion .band .band-icon { transition: transform .6s cubic-bezier(.34,1.56,.64,1) .2s; }
.motion .band:not(.in) .band-icon { transform: scale(.6) rotate(-12deg); }
/* Step numbers bounce in */
.motion .steps li::before { align-self: flex-start; transform-origin: 0 80%; transition: transform .5s cubic-bezier(.34,1.56,.64,1) calc(var(--d, 0ms) + .15s); }
.motion .steps li:not(.in)::before { transform: scale(.4); }

/* Calculator: results slide in on first load, breakdown bar grows, FAQ answers open smoothly */
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.motion .calc-results.intro .result { animation: lineIn .5s cubic-bezier(.2,.7,.2,1) both; }
.motion .calc-results.intro .result:nth-child(2) { animation-delay: .06s; }
.motion .calc-results.intro .result:nth-child(3) { animation-delay: .12s; }
.motion .calc-results.intro .result:nth-child(4) { animation-delay: .18s; }
.motion .calc-results.intro .result:nth-child(5) { animation-delay: .24s; }
.motion .calc-results.intro .result:nth-child(n+6) { animation-delay: .3s; }
.motion .calc-results.intro .bar { animation: barGrow .9s cubic-bezier(.2,.7,.2,1) .35s both; transform-origin: 0 50%; }
.seg { transition: width .45s cubic-bezier(.2,.7,.2,1); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.motion .faqs details[open] p { animation: faqOpen .35s ease both; }
.faqs summary { transition: color .2s ease; }
.faqs summary:hover { color: var(--brand); }
