/* PayLessCalc — "the bill, made smaller".
   Palette: ledger green, marker yellow, cool mint paper. Type: Bricolage Grotesque (display),
   Public Sans (text), IBM Plex Mono (receipt figures only). */
:root {
  --brand: #0b6b52;
  --brand-dark: #08523f;
  --deep: #0a3a2c;
  --marker: #ffd84d;
  --strike: #c8463b;
  --ink: #17261f;
  --muted: #56675f;
  --line: #dbe5e0;
  --bg: #f3f7f5;
  --card: #fff;
  --warn: #9a3412;
  --warn-bg: #fff4ec;
  --c: var(--brand);
  --t: #e3f2ea;
  --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: #9be7c4; }
.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: #e7f1ec; 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: #3d4d46; }
.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: #c8e3d7; font-size: 1.18rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { color: #9cc7b5; 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 #c9d4cf; 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 #dde5e1; 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 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: #3d4d46; 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 #cbd8d1; 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: #f1f5f3; font-size: .88rem; white-space: nowrap; }
select { width: 100%; border: 1.5px solid #cbd8d1; 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%, #08201a); 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: #23322b; }
.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: #eaf0ed; 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: #f1f5f3; font-weight: 700; }
tbody tr:nth-child(even) td { background: #fafcfb; }
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: #e3f2ea; 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: #8a9893; margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--deep); color: #b8d1c6; padding: 52px 0 26px; font-size: .92rem; }
.site-footer a { color: #e4f0ea; 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: #8fb3a4; 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; }
