/* Sprout Sheets storefront — one stylesheet, no framework. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format("woff2");
}

:root {
  --brand: #1F5C45;
  --brand-2: #2E7D5B;
  --brand-3: #15402F;
  --mint: #E6F2EC;
  --mint-2: #CFE7DA;
  --cream: #FFF7DC;
  --coral: #E0604D;
  --coral-ink: #B23F2E;
  --gold: #E9A83B;
  --ink: #1E2A32;
  --gray: #56636C;
  --line: #DCE4E7;
  --bg: #FBFCFA;
  --card: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 42, 50, .06), 0 8px 24px rgba(30, 42, 50, .06);
  --shadow-lg: 0 2px 4px rgba(30, 42, 50, .06), 0 20px 48px rgba(31, 92, 69, .14);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--brand-3); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--gray); max-width: 640px; }
.eyebrow { display: inline-block; font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.muted { color: var(--gray); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.mint { background: var(--mint); }
.section.cream { background: var(--cream); }
.section-head { margin-bottom: 40px; }
.ico-svg { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .row-3 { grid-template-columns: 1fr; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 252, 250, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-3); font: 700 1.25rem/1 var(--serif); }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mint); color: var(--brand); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--mint); color: var(--brand); border: 0; border-radius: 999px; padding: 9px 16px; font: 600 .95rem var(--sans); cursor: pointer; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 22px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---- buttons ---- */
.btn, a.btn.gumroad-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--sans) !important; text-decoration: none !important;
  padding: 15px 26px !important; border-radius: 999px !important; border: 2px solid transparent !important;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  background-image: none !important; text-shadow: none !important; height: auto !important;
}
.btn-primary, a.btn-primary.gumroad-button { background: var(--brand) !important; color: #fff !important; box-shadow: 0 6px 18px rgba(31, 92, 69, .28) !important; }
.btn-primary:hover, a.btn-primary.gumroad-button:hover { background: var(--brand-3) !important; color: #fff !important; transform: translateY(-1px); }
.btn-gold, a.btn-gold.gumroad-button { background: var(--gold) !important; color: var(--ink) !important; box-shadow: 0 6px 18px rgba(233, 168, 59, .35) !important; }
.btn-gold:hover, a.btn-gold.gumroad-button:hover { background: #DD9A2A !important; color: var(--ink) !important; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand) !important; border-color: var(--mint-2) !important; }
.btn-ghost:hover { background: var(--mint); }
.btn-sm, a.btn-sm.gumroad-button { padding: 10px 18px !important; font-size: .92rem !important; }
.btn-block { width: 100%; }
/* gumroad.js appends <span class="logo-full"> (a Gumroad wordmark) to buy links — keep our own button look */
a.gumroad-button .logo-full, .gumroad-button-logo, .gumroad-button-logo-wrapper { display: none !important; }
a.btn.gumroad-button:active { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- hero ---- */
.hero { padding: 72px 0 84px; background: radial-gradient(1100px 520px at 85% -10%, var(--mint) 0%, rgba(230, 242, 236, 0) 70%), radial-gradient(700px 400px at -10% 110%, var(--cream) 0%, rgba(255, 247, 220, 0) 70%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand-2); background: linear-gradient(transparent 62%, var(--cream) 62%); }
.hero .lead { margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; color: var(--gray); font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--brand-2); flex: none; }
.hero-visual { position: relative; }
.hero-visual .shot-frame { transform: rotate(-1.2deg); }
.hero-visual .badge-float { position: absolute; left: -18px; bottom: -20px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-weight: 700; color: var(--brand-3); display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.badge-float .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--brand); }
@media (max-width: 900px) {
  .hero { padding: 44px 0 60px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual .badge-float { left: 8px; }
}

/* ---- screenshot frame & placeholder ---- */
.shot-frame { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.shot-frame .chrome { display: flex; gap: 6px; padding: 10px 12px; background: #F1F4F3; border-bottom: 1px solid var(--line); }
.shot-frame .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #D5DCDF; display: block; }
.shot-frame .chrome i:first-child { background: #F0A39A; }
.shot-frame .chrome i:nth-child(2) { background: #F3D08A; }
.shot-frame .chrome i:nth-child(3) { background: #A9D8BE; }
.shot-frame img { width: 100%; }

.mock { padding: 18px; background: #fff; aspect-ratio: 16 / 10; display: flex; flex-direction: column; gap: 10px; }
.mock-title { font: 700 1.05rem var(--serif); color: var(--brand); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis div { background: var(--mint); border-radius: 6px; height: 34px; position: relative; }
.mock-kpis div::after { content: ""; position: absolute; left: 10px; top: 10px; width: 46%; height: 12px; border-radius: 3px; background: var(--brand-2); opacity: .55; }
.mock-table { flex: 1; display: grid; grid-template-rows: 18px repeat(7, 1fr); gap: 4px; }
.mock-row { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 4px; }
.mock-row span { background: #F3F6F5; border-radius: 3px; }
.mock-row.head span { background: var(--brand); }
.mock-row span.in { background: var(--cream); }
.mock-row span.bar { background: linear-gradient(90deg, var(--brand-2) var(--w, 60%), #F3F6F5 var(--w, 60%)); opacity: .8; }
.mock-row span.bar.over { background: linear-gradient(90deg, var(--coral) 100%, #F3F6F5 100%); }
.mock-caption { font-size: .78rem; color: var(--gray); text-align: right; }

/* ---- cards / grids ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 26px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card .thumb { display: block; background: var(--mint); padding: 18px 18px 0; aspect-ratio: 16 / 11; overflow: hidden; }
.product-card .thumb img, .product-card .thumb .mock { border-radius: 10px 10px 0 0; box-shadow: 0 6px 20px rgba(31, 92, 69, .16); width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.product-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin-bottom: 8px; font-size: 1.22rem; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { color: var(--brand-2); }
.product-card p { color: var(--gray); font-size: .97rem; flex: 1; }
.product-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.price { font: 700 1.5rem/1 var(--serif); color: var(--brand-3); }
.price small { font: 500 .85rem var(--sans); color: var(--gray); margin-left: 6px; }
.price s { font: 500 1rem var(--sans); color: var(--gray); margin-left: 8px; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--mint); color: var(--brand); display: grid; place-items: center; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 4px; font-family: var(--sans); font-weight: 700; color: var(--ink); letter-spacing: 0; }
.feature p { color: var(--gray); font-size: .97rem; margin: 0; }

.tool-card { display: block; text-decoration: none; color: inherit; padding: 26px; }
.tool-card:hover { border-color: var(--mint-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tool-card { transition: transform .2s ease, box-shadow .2s ease; }
.tool-card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--cream); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.tool-card .ico svg { width: 26px; height: 26px; }
.tool-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.tool-card p { color: var(--gray); font-size: .95rem; margin: 0; }
.tool-card .go { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--brand-2); font-size: .95rem; }

/* ---- bundle band ---- */
.bundle-band { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%); color: #fff; border-radius: 24px; padding: 52px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; position: relative; overflow: hidden; }
.bundle-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.bundle-band h2 { color: #fff; }
.bundle-band p { color: rgba(255, 255, 255, .85); }
.bundle-band .eyebrow { color: var(--gold); }
.bundle-band .price { color: #fff; font-size: 2.2rem; }
.bundle-band .price s { color: rgba(255, 255, 255, .65); }
.bundle-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.bundle-list li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.bundle-list li span:last-child { color: rgba(255, 255, 255, .7); font-weight: 500; }
@media (max-width: 860px) { .bundle-band { grid-template-columns: 1fr; padding: 34px 24px; } }

/* ---- free CTA ---- */
.free-cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: var(--cream); border: 1px solid #F1E3B5; border-radius: 22px; padding: 40px 44px; }
.free-cta h2 { margin-bottom: 8px; }
.free-cta p { margin: 0; color: var(--gray); }
@media (max-width: 760px) { .free-cta { grid-template-columns: 1fr; padding: 30px 24px; } }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 400 1.6rem/1 var(--sans); color: var(--brand-2); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--gray); }
.faq details > div p:last-child { margin: 0; }

/* ---- product page ---- */
.crumbs { font-size: .9rem; color: var(--gray); padding-top: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--gray); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 52px; align-items: start; padding-top: 28px; padding-bottom: 70px; }
.pdp-buy { position: sticky; top: 92px; }
.pdp-buy h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.pdp-buy .price { font-size: 2.2rem; margin: 6px 0 20px; display: block; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5C45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.buy-note { font-size: .88rem; color: var(--gray); margin-top: 14px; }
.compat { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.compat li { background: var(--mint); color: var(--brand); font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.gallery { display: grid; gap: 18px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--gray); margin-top: 8px; text-align: center; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-thumbs.bundle-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bundle-tiles .shot-frame img, .bundle-tiles .shot-frame .mock { aspect-ratio: 16 / 11; object-fit: cover; object-position: top left; }
@media (max-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: 32px; } .pdp-buy { position: static; } }

.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.included li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.included strong { display: block; color: var(--brand-3); }
.included span { color: var(--gray); font-size: .93rem; }

/* ---- prose (guides / legal) ---- */
.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { font-size: 1.75rem; margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p, .prose li { font-size: 1.07rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .97rem; }
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.6em; }
.table-scroll table { margin: 0; min-width: 520px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--mint); color: var(--brand-3); font-weight: 700; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--gray); }
.article-head { max-width: 740px; margin: 0 auto; padding: 30px 0 10px; }
.article-head .meta { color: var(--gray); font-size: .93rem; }
.keybox { background: var(--mint); border-radius: 16px; padding: 22px 26px; margin: 26px 0 30px; }
.keybox h2 { font-size: 1.15rem; margin: 0 0 10px; font-family: var(--sans); color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.keybox ul { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; margin: 0 0 28px; background: #fff; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { font-size: .98rem; margin: 3px 0; }
.cta-box { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; background: var(--cream); border: 1px solid #F1E3B5; border-radius: 18px; padding: 26px 28px; margin: 2.2em 0; }
.cta-box h3 { margin: 0 0 4px; font-size: 1.25rem; }
.cta-box p { margin: 0; color: var(--gray); font-size: 1rem !important; }
@media (max-width: 640px) { .cta-box { grid-template-columns: 1fr; } }
.disclaimer { font-size: .9rem; color: var(--gray); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }

/* ---- calculators ---- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-panel { padding: 26px; }
.calc-panel h2 { font-size: 1.3rem; margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 700; font-size: .93rem; }
.field .hint { font-size: .85rem; color: var(--gray); }
.input-wrap { position: relative; }
.input-wrap .pre, .input-wrap .post { position: absolute; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: .95rem; pointer-events: none; }
.input-wrap .pre { left: 13px; }
.input-wrap .post { right: 13px; }
.input-wrap input.has-pre { padding-left: 28px; }
.input-wrap input.has-post { padding-right: 32px; }
input[type="number"], input[type="text"], input[type="month"], select {
  width: 100%; font: 500 1rem var(--sans); color: var(--ink); background: var(--cream);
  border: 1.5px solid #E9DDB4; border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
input:focus, select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(46, 125, 91, .2); }
select { background: #fff; border-color: var(--line); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }

.debt-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.debt-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); text-align: left; padding: 0 4px; font-weight: 700; }
.debt-table td { padding: 0 4px; vertical-align: middle; }
.debt-table th:nth-child(1) { width: 28%; }
.debt-table th:nth-child(2) { width: 25%; }
.debt-table th:nth-child(3) { width: 21%; }
.debt-table th:nth-child(4) { width: 21%; }
.debt-table input { padding-left: 8px; padding-right: 8px; }
.debt-table .input-wrap .pre { left: 9px; }
.debt-table .input-wrap .post { right: 9px; }
.debt-table input.has-pre { padding-left: 22px; }
.debt-table input.has-post { padding-right: 24px; }
.debt-table input { min-height: 42px; padding: 9px 10px; font-size: .95rem; }
.debt-table .rm { background: none; border: 0; color: var(--gray); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.debt-table .rm:hover { color: var(--coral-ink); background: #FBE9E6; }
@media (max-width: 560px) {
  .debt-table thead { display: none; }
  .debt-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
  .debt-table td { padding: 0; }
  .debt-table td[data-l]::before { content: attr(data-l); display: block; font-size: .75rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
  .debt-table td.name-cell { grid-column: 1 / -1; }
  .debt-table td.rm-cell { align-self: end; text-align: right; }
}
.add-row { background: none; border: 1.5px dashed var(--mint-2); color: var(--brand); font: 700 .95rem var(--sans); border-radius: 10px; padding: 11px; width: 100%; cursor: pointer; margin: 4px 0 18px; }
.add-row:hover { background: var(--mint); }

.seg { display: inline-flex; background: var(--mint); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: 700 .92rem var(--sans); color: var(--brand); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: var(--brand-3); }

.results { display: grid; gap: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .stat-grid, .stat-grid.three { grid-template-columns: 1fr; } }
.stat { background: var(--mint); border-radius: 14px; padding: 16px 18px; }
.stat .k { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }
.stat .v { font: 700 1.6rem/1.2 var(--serif); color: var(--brand-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: .88rem; color: var(--gray); margin-top: 2px; }
.stat.hl { background: var(--brand); }
.stat.hl .k, .stat.hl .s { color: rgba(255, 255, 255, .78); }
.stat.hl .v { color: #fff; }
.stat.cream { background: var(--cream); }
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.compare .opt { border: 2px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.compare .opt.best { border-color: var(--brand-2); background: #F6FBF8; }
.compare .opt h3 { font: 700 1rem var(--sans); color: var(--ink); margin: 0 0 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: center; }
.compare .tag { white-space: nowrap; font-size: .66rem; background: var(--brand-2); color: #fff; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.compare dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: .92rem; }
.compare dt { color: var(--gray); }
.compare dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .88rem; color: var(--gray); margin: 4px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 12px var(--sans); fill: var(--gray); }
.warn { background: #FDF0EE; border: 1px solid #F3C7BF; color: var(--coral-ink); border-radius: 12px; padding: 12px 16px; font-size: .94rem; }
.warn:empty { display: none; }
.sched { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.sched table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.sched th { position: sticky; top: 0; background: var(--mint); color: var(--brand-3); text-align: right; padding: 8px 10px; white-space: nowrap; }
.sched td { text-align: right; padding: 6px 10px; border-bottom: 1px solid #EEF2F3; white-space: nowrap; }
.sched th:first-child, .sched td:first-child { text-align: left; }
details.more > summary { cursor: pointer; font-weight: 700; color: var(--brand-2); padding: 6px 0; }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.order-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }
.order-list .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .82rem; }
.order-list .when { color: var(--gray); font-size: .88rem; text-align: right; }

.split-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: var(--line); }
.split-bar span { display: block; height: 100%; transition: width .3s ease; }
.cmp-row { display: grid; grid-template-columns: 110px 1fr 90px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: .94rem; }
.cmp-row .track { background: #EEF2F3; border-radius: 999px; height: 12px; position: relative; overflow: hidden; }
.cmp-row .fillbar { height: 100%; border-radius: 999px; }
.cmp-row .target { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.cmp-row .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; background: var(--cream); border-radius: 14px; padding: 18px 20px; flex-wrap: wrap; }
.calc-cta p { margin: 0; font-size: .97rem; }
.calc-cta strong { color: var(--brand-3); }

/* ---- footer ---- */
.site-footer { background: var(--brand-3); color: rgba(255, 255, 255, .78); padding: 60px 0 34px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 40px; padding-top: 22px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- 404 ---- */
.notfound { text-align: center; padding: 110px 0; }
.notfound .big { font: 800 6rem/1 var(--serif); color: var(--mint-2); }
