/* My Dues — site styles. Ink, paper, marigold. */
@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #14213d;
  --ink-2: #1d2d52;
  --paper: #f5f6f1;
  --sheet: #ffffff;
  --marigold: #f2a20c;
  --marigold-dark: #a86d00;
  --leaf: #2e7d5b;
  --chili: #c8442e;
  --muted: #5b6475;
  --rule: #dfe2d9;
  --display: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--marigold-dark); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 700 24px/1 var(--display); color: var(--ink); padding-top: 3px; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

.play {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 11px 18px 11px 15px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.play:hover { color: #fff; background: var(--ink-2); }
.play svg { width: 18px; height: 18px; flex: none; }
.play small { display: block; font-weight: 400; font-size: 11px; opacity: .75; line-height: 1.1; }
.play b { display: block; font-size: 16px; line-height: 1.15; }

/* Official Google Play badge: unaltered image, the PNG already includes its clear space. */
.play-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.play-badge img { height: 60px; width: auto; }
.site-head .play-badge img { height: 52px; }
.plans-cta { margin-top: 32px; }
.site-foot .tm { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; color: #7a8394; }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6.4vw, 70px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
.lede { font-size: clamp(18px, 2vw, 21px); color: #2c3650; max-width: 34em; }

/* Hero */
.hero { padding: 36px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 .hl { color: var(--marigold-dark); }
.hero .lede { margin: 22px 0 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; padding: 0; list-style: none; }
.hero-meta li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); margin-right: 8px; vertical-align: 2px; }

/* Ledger: the month checklist, drawn in HTML */
.ledger { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; max-width: 440px; justify-self: end; width: 100%; }
.ledger-top { background: var(--ink); color: #fff; padding: 20px 22px 18px; border-radius: 0 0 22px 22px; }
.ledger-top .label { font-size: 13px; color: rgba(255,255,255,.7); margin: 0; }
.ledger-top .big { font: 700 46px/1.05 var(--display); margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.strip { display: flex; gap: 3px; height: 13px; }
.strip i { display: block; border-radius: 3px; background: rgba(255,255,255,.16); }
.strip i.p { background: var(--marigold); }
/* Segment widths follow each due's amount: 18,000 · 2,100 · 9,450 · 11,200 · 1,600 · 6,800 · 1,450 */
.strip i:nth-child(1) { flex: 18000; } .strip i:nth-child(2) { flex: 2100; } .strip i:nth-child(3) { flex: 9450; }
.strip i:nth-child(4) { flex: 11200; } .strip i:nth-child(5) { flex: 1600; } .strip i:nth-child(6) { flex: 6800; }
.strip i:nth-child(7) { flex: 1450; }
.ledger-top .meta { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.7); margin-top: 10px; }
.ledger-top .meta b { color: var(--marigold); }
.ledger-body { padding: 8px 6px 12px; }
.grp { display: flex; align-items: center; gap: 8px; padding: 12px 14px 4px; font-size: 13px; font-weight: 600; }
.grp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.grp .sum { margin-left: auto; font-weight: 400; color: var(--muted); }
.grp.late { color: var(--chili); }
.grp.week { color: var(--marigold-dark); }
.row { display: grid; grid-template-columns: 38px 1fr auto 30px; align-items: center; gap: 8px; padding: 7px 14px; }
.row .d { font: 600 19px/1 var(--display); text-align: center; }
.row .d small { display: block; font: 400 10px/1.2 var(--body); color: var(--muted); }
.row .n { font-size: 15px; line-height: 1.25; }
.row .n small { display: block; font-size: 12px; color: var(--muted); }
.row .n small.late { color: var(--chili); }
.row .a { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #9aa1ad; }
.tick.all { border-color: var(--marigold); position: relative; }
.tick.all::after { content: ""; position: absolute; inset: 6px 5px 8px; border: solid var(--marigold); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.row.child .d { border-left: 2px solid var(--rule); height: 30px; width: 0; margin-left: 18px; }
.row.head .n b { font-weight: 600; }
.enter { font-size: 13px; font-weight: 600; border: 1.5px solid var(--marigold); color: var(--ink); border-radius: 999px; padding: 3px 10px; }

/* Sections */
.section { padding: 76px 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: #2c3650; margin: 14px 0 0; font-size: 18px; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 1.1fr .9fr; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.points li { padding-left: 22px; border-left: 3px solid var(--marigold); }
.points b { display: block; font-size: 18px; margin-bottom: 2px; }
.points span { color: #3a4458; }

/* Phone frame for screenshots */
.phone { width: min(300px, 80vw); margin-inline: auto; border-radius: 40px; background: #0c1426; padding: 10px; box-shadow: 0 30px 60px -30px rgba(20,33,61,.45); }
.phone img { border-radius: 31px; width: 100%; aspect-ratio: 1080 / 2340; object-fit: cover; background: var(--paper); }
.phone.missing { display: none; }
/* Without its screenshot, a split section becomes a single column with points side by side. */
.split:has(.phone.missing) { grid-template-columns: 1fr; }
.split:has(.phone.missing) .points { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 32px; }

/* Payoff table */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: var(--sheet); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 13px; font-weight: 600; color: var(--muted); background: #fafbf7; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.freed { color: var(--leaf); }
td.total { font-weight: 700; }
tr.next td { background: #fdf3df; }
.after { margin-top: 18px; color: var(--muted); font-size: 15px; }

.payoff-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 28px; border-top: 3px solid var(--ink); }
.payoff-facts div { padding: 16px 18px 0 0; }
.payoff-facts dt { font-size: 14px; color: var(--muted); }
.payoff-facts dd { margin: 0; font: 700 30px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.payoff-facts dd.leaf { color: var(--leaf); }

/* Privacy list */
.nos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.nos li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.nos b { font: 700 24px/1.2 var(--display); }
.nos span { color: #3a4458; }

/* Free, Pro, Cloud */
.plans3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.plan { border-top: 3px solid var(--ink); padding-top: 18px; }
.plan:nth-child(2) { border-top-color: var(--marigold); }
.plan:nth-child(3) { border-top-color: var(--leaf); }
.plan-price { margin: 4px 0 14px; color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--rule); position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 10px; height: 5px; border: solid var(--leaf); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan li:first-child { font-weight: 600; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Free vs Pro (table form, kept for docs) */
.plans th:not(:first-child), .plans td:not(:first-child) { text-align: center; width: 22%; }
.yes { color: var(--leaf); font-weight: 700; }
.no { color: #9aa1ad; }
.plans tfoot td { font-size: 14px; color: var(--muted); background: #fafbf7; }

/* CTA band */
.band { background: var(--ink); color: #fff; padding: 64px 0; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { color: #fff; max-width: 16em; }
.band .play { background: var(--marigold); color: var(--ink); }
.band .play:hover { background: #ffb52e; color: var(--ink); }

/* Footer */
.site-foot { padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.site-foot a { color: var(--muted); }

/* Long-form pages */
.doc { padding: 24px 0 80px; }
.doc .wrap { max-width: 740px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: #26304a; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc h3 { font-size: 20px; margin: 24px 0 6px; }
.doc .summary { background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--leaf); border-radius: 10px; padding: 16px 20px; margin: 0 0 28px; }
.doc .summary p { margin: 0; }
.doc table { font-size: 15px; margin: 12px 0; }
.faq details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 14px 28px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 26px/1 var(--display); color: var(--marigold-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; }
.contact { margin-top: 40px; padding: 22px 24px; background: var(--ink); color: #fff; border-radius: 16px; }
.contact a { color: #fff; }
.contact p { color: rgba(255,255,255,.85); margin: 6px 0 0; }

/* 404 */
.lost { padding: 40px 0 110px; }
.lost .big { font: 700 clamp(90px, 18vw, 170px)/1 var(--display); color: var(--marigold); margin: 0 0 12px; }
.lost .lede { margin-top: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .plans3 { grid-template-columns: 1fr 1fr; }
  .hero .wrap, .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .ledger { justify-self: start; }
  .split.flip .phone { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .play-badge img { height: 54px; }
  .site-head .play-badge img { height: 46px; }
  .hero { padding-top: 16px; }
  .section { padding: 56px 0; }
  .nos li { grid-template-columns: 1fr; gap: 4px; }
  .payoff-facts { grid-template-columns: 1fr; }
  /* Payoff table becomes one block per month on small screens. */
  .payoff-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .payoff-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
  .payoff-table tr:last-child { border-bottom: 0; }
  .payoff-table td { border: 0; padding: 0; text-align: left; }
  .payoff-table td:nth-child(1) { font-weight: 700; }
  .payoff-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: #3a4458; }
  .payoff-table td:nth-child(3) { grid-row: 3; }
  .payoff-table td:nth-child(3)::after { content: " a month freed"; color: var(--muted); }
  .payoff-table td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .payoff-table td:nth-child(4)::before { content: "New total "; font-weight: 400; color: var(--muted); }
  .payoff-table tr.next { background: #fdf3df; }
  .payoff-table tr.next td { background: none; }
  .plans3 { grid-template-columns: 1fr; gap: 28px; }
  .payoff-facts div { padding: 12px 0 0; }
  th, td { padding: 10px 12px; }
  .row { padding: 7px 8px; grid-template-columns: 34px 1fr auto 28px; }
  .ledger-top .big { font-size: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .strip i.p { animation: fill .9s ease-out both; transform-origin: left; }
  .strip i.p:nth-child(2) { animation-delay: .15s; }
  @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
