/* PayLessLegal — "the legal bill, made smaller".
   Palette: oxblood, brass gold, warm paper. Type: Bricolage Grotesque (display),
   Public Sans (text), IBM Plex Mono (receipt figures only). */
:root {
  --brand: #7a1f3d;
  --brand-dark: #5e1730;
  --deep: #2b0f1b;
  --marker: #f2c14e;
  --strike: #c8463b;
  --ink: #221a20;
  --muted: #665a62;
  --line: #e8dfe2;
  --bg: #faf6f4;
  --card: #fff;
  --warn: #9a3412;
  --warn-bg: #fff4ec;
  --c: var(--brand);
  --t: #f6e8ec;
  --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: #f2c14e; }
.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: #f6e8ec; 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: #4a3d45; }
.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: #f6d27a; 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: #e6d3da; font-size: 1.18rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { color: #c4a5b0; 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; } }

/* The receipt */
.receipt-wrap { display: flex; justify-content: center; }
.receipt {
  width: 100%; max-width: 390px; background: #fff; color: var(--ink);
  padding: 26px 26px 34px; transform: rotate(-2deg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  -webkit-mask: radial-gradient(10px at 50% 100%, transparent 98%, #000) 50% 100% / 20px 100% repeat-x;
          mask: radial-gradient(10px at 50% 100%, transparent 98%, #000) 50% 100% / 20px 100% repeat-x;
  border-radius: 6px 6px 0 0;
}
.r-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px dashed #dccfd4; padding-bottom: 12px; margin-bottom: 6px; }
.r-head strong { font: 700 1.25rem/1 var(--display); }
.r-head span { font-size: .8rem; color: var(--muted); }
.r-line { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px dashed #ece3e6; text-decoration: none; color: var(--ink); }
.r-line:hover .r-name { color: var(--brand); }
.r-name { font-weight: 600; display: flex; flex-direction: column; }
.r-name small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.r-amt { font: 500 .98rem/1.4 var(--mono); white-space: nowrap; text-align: right; }
.r-amt.neg { color: var(--strike); }
.r-amt s { color: var(--strike); text-decoration-thickness: 2px; margin-right: 6px; font-size: .85rem; }
.r-total { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; font-weight: 700; }
.r-save { font: 600 1.55rem/1 var(--mono); }
.r-save mark { background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%); padding: 2px 6px; color: var(--ink); }
.r-foot { font-size: .82rem; color: var(--muted); margin: 14px 0 0; line-height: 1.45; }

/* 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: #4a3d45; 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(10,58,44,.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 #d9ccd1; 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: #f7f1f3; font-size: .88rem; white-space: nowrap; }
select { width: 100%; border: 1.5px solid #d9ccd1; 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%, #1c0b13); 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: #9fd3f0; } .s1 { background: var(--marker); } .s2 { background: #7fe0c2; } .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: #352a31; }
.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: #fdf3dc; border-left: 4px solid var(--marker); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }
.prose code { background: #f1e9ec; 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: #f7f1f3; font-weight: 700; }
tbody tr:nth-child(even) td { background: #fdfafb; }
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: #f6e8ec; 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: #8f838a; margin-bottom: 4px; letter-spacing: .02em; }
/* Direct (sold) sponsor ads */
.ad-direct { min-height: 0; text-align: left; }
.sponsor { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--marker); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.sponsor:hover { border-color: var(--c); color: var(--ink); }
.sponsor img { flex: none; width: 64px; height: 64px; object-fit: contain; border-radius: 10px; }
.sponsor-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sponsor-body strong { font: 700 1.05rem/1.3 var(--display); }
.sponsor-body span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.sponsor-body small { color: var(--muted); font-size: .8rem; }
.sponsor-cta { flex: none; background: var(--brand); color: #fff; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: .9rem; }
.side .ad { margin: 0; }
.side .sponsor { flex-direction: column; align-items: flex-start; }
@media (max-width: 560px) { .sponsor { flex-direction: column; align-items: flex-start; } }

/* Footer */
.site-footer { background: var(--deep); color: #d8c3cb; padding: 52px 0 26px; font-size: .92rem; }
.site-footer a { color: #f7ecef; 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: #b8979f; 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 hero (HERO_MOTION / ?hero=motion) */
.hero-motion { position: relative; isolation: isolate; animation: hm-grid 40s linear infinite; }
@keyframes hm-grid { to { background-position: 32px 32px, 32px 32px; } }
.hm-bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.hm-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hm-orb.o1 { width: 460px; height: 460px; background: #a3264f; left: -120px; top: -140px; animation: hm-float1 18s ease-in-out infinite alternate; }
.hm-orb.o2 { width: 380px; height: 380px; background: #c9902a; right: 4%; bottom: -180px; opacity: .35; animation: hm-float2 22s ease-in-out infinite alternate; }
.hm-orb.o3 { width: 300px; height: 300px; background: #5b2a86; left: 42%; top: 30%; opacity: .35; animation: hm-float1 26s ease-in-out infinite alternate-reverse; }
@keyframes hm-float1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes hm-float2 { to { transform: translate(-160px, -70px) scale(.9); } }
/* Large, faint scales of justice that slowly tip */
.hm-scale { position: absolute; right: -40px; top: 50%; width: 520px; height: 520px; margin-top: -260px; opacity: .06;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23fff' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 5v21M11 27h10M6 9.5h20'/%3E%3Cpath d='M6 9.5 3 16.5a3 3 0 0 0 6 0zM26 9.5 23 16.5a3 3 0 0 0 6 0z'/%3E%3C/svg%3E");
  animation: hm-tip 9s ease-in-out infinite alternate; transform-origin: 50% 20%; }
@keyframes hm-tip { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* Headline: words rise in, one keyword rotates */
.hm-title .hm-w, .hm-title .hm-rot { display: inline-block; opacity: 0; transform: translateY(.45em); animation: hm-rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hm-title > :nth-child(1) { animation-delay: .05s; } .hm-title > :nth-child(2) { animation-delay: .15s; }
.hm-title > :nth-child(3) { animation-delay: .25s; } .hm-title > :nth-child(4) { animation-delay: .4s; }
.hm-title > :nth-child(5) { animation-delay: .5s; } .hm-title > :nth-child(6) { animation-delay: .6s; }
@keyframes hm-rise { to { opacity: 1; transform: none; } }
.hero-motion h1 { max-width: none; }
.hm-title .hm-rot { display: block; color: var(--marker); white-space: nowrap; min-height: 1.02em; }
.hm-rot-text { position: relative; }
.hm-rot-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: var(--marker); border-radius: 2px; transform-origin: left; animation: hm-under 3.2s ease-in-out infinite; }
@keyframes hm-under { 0% { transform: scaleX(0); } 20%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }
.hm-rot-text { display: inline-block; transition: opacity .35s, transform .35s; }
.hm-rot-text.out { opacity: 0; transform: translateY(-.35em); }
.hero-motion .lede, .hero-motion .hero-links, .hero-motion .hero-note { opacity: 0; animation: hm-rise .8s ease forwards; transform: translateY(14px); }
.hero-motion .lede { animation-delay: .8s; } .hero-motion .hero-links { animation-delay: 1s; } .hero-motion .hero-note { animation-delay: 1.15s; }
.hero-motion .btn:not(.btn-ghost) { position: relative; overflow: hidden; }
.hero-motion .btn:not(.btn-ghost)::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: hm-shine 4.5s 2.4s ease-in-out infinite; }
@keyframes hm-shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }

/* Receipt: drops in, lines print one by one, gently floats */
.hero-motion .receipt-wrap { animation: hm-bob 6s 2.8s ease-in-out infinite; }
@keyframes hm-bob { 50% { transform: translateY(-10px); } }
.hero-motion .receipt { opacity: 0; transform: rotate(-2deg) translateY(-40px); animation: hm-drop .9s .35s cubic-bezier(.2,.8,.25,1.1) forwards; }
@keyframes hm-drop { to { opacity: 1; transform: rotate(-2deg); } }
.hero-motion .r-line, .hero-motion .r-total, .hero-motion .r-foot { opacity: 0; transform: translateX(-12px); animation: hm-print .45s ease forwards; }
.hero-motion .r-line:nth-of-type(1) { animation-delay: 1s; } .hero-motion .r-line:nth-of-type(2) { animation-delay: 1.35s; }
.hero-motion .r-line:nth-of-type(3) { animation-delay: 1.7s; } .hero-motion .r-line:nth-of-type(4) { animation-delay: 2.05s; }
.hero-motion .r-total { animation-delay: 2.4s; } .hero-motion .r-foot { animation-delay: 2.9s; }
@keyframes hm-print { to { opacity: 1; transform: none; } }
.hero-motion .r-save mark { background-size: 0% 100%; background-repeat: no-repeat; background-image: linear-gradient(var(--marker), var(--marker)); background-color: transparent; animation: hm-mark .6s 3.4s ease forwards; }
@keyframes hm-mark { to { background-size: 100% 100%; } }
.hm-meter { height: 8px; border-radius: 4px; background: #f3e3e8; margin-top: 12px; overflow: hidden; }
.hm-meter .k { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #c9902a); border-radius: 4px; animation: hm-fill 1.2s 2.6s ease forwards; }
@keyframes hm-fill { to { width: var(--w); } }

@media (max-width: 900px) { .hm-scale { width: 320px; height: 320px; margin-top: -160px; right: -80px; top: 30%; } }
@media (prefers-reduced-motion: reduce) {
  .hero-motion, .hero-motion * { animation: none !important; }
  .hero-motion .hm-w, .hero-motion .hm-rot, .hero-motion .lede, .hero-motion .hero-links, .hero-motion .hero-note,
  .hero-motion .receipt, .hero-motion .r-line, .hero-motion .r-total, .hero-motion .r-foot { opacity: 1 !important; transform: none !important; }
  .hero-motion .receipt { transform: rotate(-2deg) !important; }
  .hero-motion .r-save mark { background-size: 100% 100% !important; }
  .hm-meter .k { width: var(--w); }
}

/* ---------------------------------------------------------- Site-wide motion (body.motion) */
.m-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; background: linear-gradient(90deg, var(--marker), #e8873a, var(--brand)); transform: scaleX(0); transform-origin: left; }
.motion .site-header { transition: box-shadow .3s, background-color .3s; }
.motion .site-header.m-scrolled { box-shadow: 0 8px 24px -16px rgba(43,15,27,.45); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); }
.motion .site-nav a { position: relative; }
.motion .site-nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.motion .site-nav a:hover::after { transform: scaleX(1); }

/* Reveal states (only when JS is running: html.m-js) */
.m-js [data-m] { opacity: 0; transition: opacity .7s ease var(--md, 0ms), transform .8s cubic-bezier(.2,.75,.2,1) var(--md, 0ms); }
.m-js [data-m="up"] { transform: translateY(28px); }
.m-js [data-m="zoom"] { transform: scale(.96) translateY(16px); }
.m-js [data-m="right"] { transform: translateX(28px); }
.m-js [data-m].m-in { opacity: 1; transform: none; }

/* Section titles get a sweeping underline */
.motion .section-title { position: relative; display: inline-block; }
.motion .section-title::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 64px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--marker), var(--brand)); transform: scaleX(0); transform-origin: left; transition: transform .8s .25s cubic-bezier(.2,.75,.2,1); }
.motion .section-title.m-in::after, .motion .section-title:not([data-m])::after { transform: scaleX(1); }

/* Cards lift and tilt */
.motion .bill, .motion .calc-card, .motion .guide-card { transition: opacity .7s ease var(--md, 0ms), transform .45s cubic-bezier(.2,.75,.2,1), box-shadow .35s, border-color .25s; }
.motion .bill.m-in, .motion .calc-card.m-in, .motion .guide-card.m-in { transform: var(--tilt, none); }
.motion .bill:hover, .motion .calc-card:hover, .motion .guide-card:hover { box-shadow: 0 22px 40px -24px rgba(43,15,27,.45); }
.motion .bill-icon, .motion .band-icon, .motion .card-icon { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.motion .bill:hover .bill-icon, .motion .calc-card:hover .card-icon { transform: rotate(-8deg) scale(1.1); }
.motion .band-icon { animation: m-pop .7s .2s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes m-pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.motion .bill li a { transition: border-color .2s, color .2s, transform .2s; }
.motion .bill li a:hover { transform: translateY(-2px); }

/* Steps: numbers pop in */
.m-js .steps li::before { display: inline-block; transform: scale(.3); opacity: 0; transition: transform .6s cubic-bezier(.3,1.6,.5,1) calc(var(--md, 0ms) + 150ms), opacity .4s calc(var(--md, 0ms) + 150ms); }
.m-js .steps li.m-in::before { transform: none; opacity: 1; }

/* Coloured page bands: the ring slowly turns */
.motion .band::after { animation: m-ring 14s ease-in-out infinite alternate; }
@keyframes m-ring { to { transform: translate(-40px, 30px) scale(1.15); } }

/* Calculator: result flash + gentle glow */
.motion .result.big strong.m-flash { animation: m-flash .5s ease; }
@keyframes m-flash { 0% { transform: scale(1); } 35% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(242,193,78,.35); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242,193,78,0); } }
.motion .calc-results { position: relative; overflow: hidden; }
.motion .calc-results::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(242,193,78,.22), transparent 70%); animation: hm-float2 16s ease-in-out infinite alternate; pointer-events: none; }
.motion .bar .seg { transition: width .5s cubic-bezier(.2,.75,.2,1); }
.motion .faqs details[open] p { animation: m-open .35s ease; }
@keyframes m-open { from { opacity: 0; transform: translateY(-6px); } }
.motion .btn { transition: transform .2s, background-color .2s, box-shadow .2s; }
.motion .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0,0,0,.5); }

/* Receipt mouse parallax (combined with the float) */
.hero-motion .receipt-wrap { perspective: 1000px; }
.hero-motion .receipt { transition: translate .25s ease-out, rotate .25s ease-out; translate: var(--tx, 0) var(--ty, 0); }
.hero-motion .receipt-wrap .receipt { transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  .m-js [data-m] { opacity: 1 !important; transform: none !important; }
  .m-progress, .motion .band::after, .motion .calc-results::before { animation: none !important; }
}
