/* SteadyKeel site styles. Brand: deep teal + warm neutrals, calm and plain. */

:root {
  --teal: #2F5D62;
  --teal-deep: #244a4e;
  --ink: #24303A;
  --slate: #4A5A63;
  --mist: #F4F7F7;
  --pale: #BCD8D6;
  --warm: #FFF8E7;
  --paper: #ffffff;
  --line: #dde5e5;
  --shadow: 0 1px 2px rgba(36,48,58,.06), 0 8px 24px rgba(36,48,58,.06);

  --bg: var(--mist);
  --surface: var(--paper);
  --text: var(--ink);
  --muted: var(--slate);
  --border: var(--line);
  --accent: var(--teal);
  --accent-text: #ffffff;

  --maxw: 1080px;
  --radius: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #6fb3b0;
    --teal-deep: #58a29e;
    --ink: #e8eeee;
    --slate: #a9b7b8;
    --mist: #141c1e;
    --pale: #2b4446;
    --warm: #2a2620;
    --paper: #1c2628;
    --line: #33413f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --bg: #101718;
    --surface: #1c2628;
    --text: #e8eeee;
    --muted: #a9b7b8;
    --border: #33413f;
    --accent: #6fb3b0;
    --accent-text: #10201f;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 650; margin: 0 0 .6em; }
h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
main { display: block; }
section, article { max-width: var(--maxw); margin: 0 auto; padding: 2.75rem 1.25rem; }

/* ---- header / footer ---- */
.testbar {
  background: var(--warm); color: var(--ink);
  text-align: center; font-size: .82rem; padding: .45rem 1rem;
  border-bottom: 1px solid var(--border);
}
:root:not([data-theme="light"]) .testbar { color: var(--text); }
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.25rem;
}
.wordmark {
  position: relative; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none; padding-bottom: .35rem; display: inline-block;
}
.w-steady { color: var(--ink); }
.w-keel { color: var(--teal); }
:root:not([data-theme="light"]) .w-steady { color: var(--text); }
.keel { position: absolute; left: 0; bottom: -2px; width: 100%; height: 10px; color: var(--pale); }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .95rem; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-foot {
  background: var(--surface); border-top: 1px solid var(--border); margin-top: 2rem;
}
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
}
.foot-inner .w-keel { }
.foot-inner p { color: var(--muted); font-size: .92rem; max-width: 34ch; margin: .4rem 0 0; }
.foot-inner nav { display: flex; flex-direction: column; gap: .5rem; font-size: .92rem; }
.foot-inner nav a { color: var(--muted); }
.foot-legal {
  max-width: var(--maxw); margin: 0 auto; padding: 1.25rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem;
}
.foot-legal p { margin: .5rem 0; }

/* ---- buttons ---- */
.btn {
  display: inline-block; padding: .8rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer; text-align: center;
  border: 1.5px solid transparent; transition: transform .04s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: .5rem .9rem; font-size: .88rem; }
.btn.is-disabled { background: var(--border); color: var(--muted); cursor: not-allowed; pointer-events: none; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 600;
  color: var(--teal); margin: 0 0 1rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section-lede { color: var(--muted); max-width: 60ch; }
.keel-sm { display: inline-block; width: 64px; height: 8px; color: var(--pale); margin-left: .5rem; vertical-align: middle; }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding-top: 2.5rem;
}
.hero h1 { margin-bottom: .4em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 .75rem; }
.hero-note { font-size: .9rem; color: var(--muted); }
.hero-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.panel-row {
  display: flex; justify-content: space-between; padding: .6rem 0;
  border-bottom: 1px solid var(--border); font-size: .95rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.panel-row span:last-child { color: var(--text); font-weight: 600; }
.panel-total { border-bottom: none; font-size: 1.05rem; }
.panel-total span:first-child { color: var(--text); font-weight: 700; }
.panel-bar { height: 8px; background: var(--mist); border-radius: 999px; margin: .5rem 0 .5rem; overflow: hidden; border: 1px solid var(--border); }
.panel-bar i { display: block; height: 100%; background: var(--teal); }
.hero-panel > p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---- how ---- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.steps li {
  counter-increment: s; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; position: relative; color: var(--muted);
}
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 999px; background: var(--pale); color: var(--teal-deep); font-weight: 700;
  font-size: .9rem; margin-bottom: .6rem;
}
.steps strong { color: var(--text); }

/* ---- tools / cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem; color: var(--text); box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .06s ease;
}
.card:hover { text-decoration: none; border-color: var(--teal); transform: translateY(-2px); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.card-top h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.price { font-weight: 700; color: var(--teal); white-space: nowrap; }
.card-link { color: var(--accent); font-weight: 600; font-size: .9rem; }

.bundle-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; color: var(--text); margin-top: 1rem;
}
.bundle-strip:hover { text-decoration: none; border-color: var(--teal); }
.bundle-strip h3 { margin: 0 0 .2rem; }
.bundle-strip p { margin: 0; color: var(--muted); font-size: .95rem; }
.bundle-strip .price { font-size: 1.4rem; }

/* ---- bands ---- */
/* deliberate single-look brand band: fixed dark teal in both themes */
.pass-band { background: #2F5D62; color: #fff; max-width: none; }
.pass-band > div { max-width: var(--maxw); margin: 0 auto; }
.pass-band h2, .pass-band p { color: #fff; }
.pass-band .lede, .pass-band p { color: rgba(255,255,255,.9); max-width: 58ch; }
.pass-price { font-size: 1.5rem; font-weight: 700; margin: .5rem 0 1.25rem; color: #fff; }
.pass-price span { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,.8); }
.pass-band .btn-primary { background: #fff; color: #244a4e; }
.pass-band .btn-primary:hover { background: #FFF8E7; }

.calc-teaser > div, .blog-teaser { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.calc-teaser { }
.blog-teaser ul { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.blog-teaser li a { color: var(--text); }
.blog-teaser li span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .6rem; font-size: .9rem; }

/* ---- product page ---- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }
.product-head { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.buybox {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--shadow);
  position: sticky; top: 1rem;
}
.price-lg { font-size: 2.2rem; font-weight: 700; color: var(--teal); line-height: 1; }
.price-note { font-size: .85rem; color: var(--muted); }
.buybox .btn-primary { margin-top: .4rem; }
.buybox-alt { font-size: .88rem; color: var(--muted); }
.product-gallery {
  margin-top: 2.25rem; display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.product-gallery img {
  width: 100%; height: auto; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface);
}
.product-gallery img:first-child { grid-column: 1 / -1; max-width: 720px; }
.product-body { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; margin-top: 2.5rem; }
.blurb { font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.ticks li { padding-left: 1.7rem; position: relative; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem;
  border-radius: 999px; background: var(--pale);
}
.ticks li::after {
  content: ""; position: absolute; left: .34rem; top: .62em; width: .34rem; height: .17rem;
  border-left: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep);
  transform: rotate(-45deg);
}
.product-side h3 { margin-top: 1.25rem; }
.product-side h3:first-child { margin-top: 0; }
.product-side p { color: var(--muted); font-size: .95rem; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 2rem; margin-top: 3rem;
}
.product-foot h2 { margin-bottom: .2em; }
.product-foot p { margin: 0; color: var(--muted); }

/* ---- pass page ---- */
.pass-hero { text-align: center; }
.pass-hero .lede { margin: 0 auto; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2.5rem 0; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; box-shadow: var(--shadow); position: relative;
}
.plan-best { border-color: var(--teal); border-width: 2px; }
.plan .tag {
  position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px;
}
.plan-price { font-size: 2.4rem; font-weight: 700; color: var(--teal); margin: .3rem 0 1rem; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-note { font-size: .85rem; color: var(--muted); margin: .8rem 0 0; }
.pass-includes { padding-top: 1rem; }
.pass-tools .section-lede { margin-top: 1.5rem; }

/* ---- calculator ---- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; align-items: start; }
.calc-form { display: grid; gap: 1.1rem; }
.calc-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem 1.2rem; margin: 0; }
.calc-form legend { font-weight: 600; font-size: .95rem; padding: 0 .4rem; }
.calc-form label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 500; }
.calc-form input {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--warm); color: var(--text); width: 100%;
}
.calc-form input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
#months { display: grid; gap: .5rem; margin-bottom: .7rem; }
.month-row { display: flex; align-items: center; gap: .5rem; }
.month-row span { font-size: .85rem; color: var(--muted); min-width: 4.5rem; }
.month-row .rm { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 0 .3rem; }
.in-prefix, .in-suffix { display: flex; align-items: center; gap: .3rem; }
.in-prefix input, .in-suffix input { width: 8rem; }
.calc-out {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); display: block;
}
.out-big { text-align: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.out-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.out-value { display: block; font-size: 2.6rem; font-weight: 700; color: var(--teal); line-height: 1.1; font-variant-numeric: tabular-nums; }
.out-sub { display: block; font-size: .85rem; color: var(--muted); }
.calc-out dl { display: grid; gap: .5rem; margin: 0 0 1.25rem; }
.calc-out dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.calc-out dt { color: var(--muted); }
.calc-out dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.out-note { font-size: .86rem; color: var(--muted); min-height: 1.2em; }
/* Late-payment calculator: the rate-period explainer, and the copy-ready chaser wording. */
.field-note { font-size: .82rem; color: var(--muted); margin: -.2rem 0 .4rem; line-height: 1.5; }
.copy-block { margin: 1rem 0 1.1rem; }
.copy-block label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.copy-block textarea {
  width: 100%; font: inherit; font-size: .86rem; line-height: 1.5; padding: .6rem .7rem;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  color: var(--text); resize: vertical;
}
.calc-out .btn-primary { width: 100%; margin-bottom: .5rem; }
.calc-out .buybox-alt { display: block; text-align: center; }
.calc-explain { padding-top: 1rem; }
.calc-explain p { color: var(--muted); max-width: 65ch; }

/* guides (programmatic day-rate pages) */
.guide p, .guides-index p { max-width: 65ch; line-height: 1.65; }
.guide h2 { margin: 1.8rem 0 .5rem; font-size: 1.15rem; }
.guide-cta {
  margin: 2rem 0 1rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card, #fff);
}
.guide-cta p { margin: 0 0 .9rem; }
.guide-legal { margin-top: 1.5rem; font-size: .85rem; color: var(--muted); max-width: 60ch; }
.guide-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; }
.guide-list a {
  display: block; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: inherit;
}
.guide-list a:hover { border-color: var(--teal, #2F5D62); }
.guide-list b { display: block; }
.guide-list span { font-size: .85rem; color: var(--muted); }
.calc-saved {
  display: inline-block; margin-top: .5rem; font-size: .78rem; color: var(--muted);
  opacity: 0; transition: opacity .25s ease;
}
.calc-saved::before { content: "✓ "; color: var(--teal); }
.calc-saved.is-on { opacity: 1; }

/* ---- blog ---- */
.blog-list ul, .blog-teaser ul { list-style: none; padding: 0; }
.blog-list ul { display: grid; gap: 1rem; margin-top: 2rem; }
.blog-list li a {
  display: grid; gap: .3rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; color: var(--text);
}
.blog-list li a:hover { text-decoration: none; border-color: var(--teal); }
.post-date { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.post-title { font-weight: 650; font-size: 1.1rem; }
.post-summary { color: var(--muted); font-size: .93rem; }
.post-body { max-width: 68ch; }
.post-body h2 { margin-top: 1.8em; }
.post-body ul { padding-left: 1.2rem; }
.post-body li { margin: .3em 0; }
.post-cta {
  max-width: 68ch; margin-top: 2.5rem; padding: 1.5rem; background: var(--warm);
  border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: .6rem; justify-items: start;
}

/* ---- auth / members ---- */
.auth { max-width: 30rem; }
.auth-form { display: grid; gap: 1rem; margin: 1.5rem 0; }
.auth-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .92rem; }
.auth-form input {
  font: inherit; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--warm); color: var(--text);
}
.auth-form input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.auth-msg { min-height: 1.4em; color: var(--muted); font-size: .93rem; }
.auth-msg small { color: var(--muted); }
.auth-alt { color: var(--muted); font-size: .9rem; margin-top: 2rem; }

.pass-building {
  background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; margin: 1.5rem 0;
}
.pass-building h2 { margin-bottom: .3em; }
.pass-building p { margin: 0; color: var(--muted); }
.pass-signin { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.plan-legal { text-align: center; color: var(--muted); font-size: .8rem; margin-top: .5rem; }
.plan-legal a { color: inherit; }

.members-loading { text-align: center; color: var(--muted); }
.member-tabs {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border); padding-bottom: .1rem;
}
.member-tabs a {
  padding: .55rem .9rem; border-radius: 8px 8px 0 0; color: var(--muted);
  font-size: .92rem; font-weight: 500; border-bottom: 2px solid transparent;
}
.member-tabs a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.member-tabs a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }
.year-select { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); font-weight: 500; }
.sk-chart-bar { fill: var(--teal); }
.sk-chart-val { fill: var(--text); font-size: 11px; font-family: var(--font); font-weight: 600; }
.sk-chart-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart-box { margin: .5rem 0 1rem; }
.year-select select {
  font: inherit; padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text);
}
.members-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem;
}
.members-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.members-notice, .members-notice-sm {
  background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.members-notice-sm { padding: 1rem 1.25rem; color: var(--muted); font-size: .93rem; }
.members-notice h2 { margin-bottom: .3em; }
.members-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.tool-card {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem; color: var(--text); box-shadow: var(--shadow);
}
a.tool-card:hover { text-decoration: none; border-color: var(--teal); }
.tool-card p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.tool-card.is-soon { opacity: .6; }
.members-billing, .members-downloads, .members-account { padding-top: 1.5rem; border-top: 1px solid var(--border); margin-top: 1.5rem; }
.members-billing p { color: var(--muted); }
.members-billing .btn { margin-right: .5rem; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem .8rem; margin-top: .5rem; }
.settings-grid label { margin-top: 0 !important; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr 1fr; } .result-grid { grid-template-columns: 1fr; } }
.btn.is-danger { color: #b3452f; border-color: #d9a893; }
.btn.is-danger:hover { border-color: #b3452f; background: rgba(179,69,47,.06); }

/* ---- budget tool ---- */
.budget-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem; }
.save-state { font-size: .82rem; color: var(--muted); min-width: 5rem; text-align: right; }
.budget-loading { text-align: center; color: var(--muted); }
.budget-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem 1.3rem; margin: 0 0 1.25rem; background: var(--surface); }
.panel legend { font-weight: 600; padding: 0 .4rem; }
.panel label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 500; margin-top: .9rem; }
.panel label:first-of-type { margin-top: .3rem; }
.panel input[type="text"] {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--warm); color: var(--text); width: 8rem;
}
.entry-rows { display: grid; gap: .5rem; margin: .3rem 0 .8rem; }
.entry-empty { color: var(--muted); font-size: .9rem; margin: .3rem 0 .8rem; }
.entry-row { display: grid; grid-template-columns: 9.5rem 6.5rem 1fr auto; gap: .5rem; align-items: center; }
.entry-row input {
  font: inherit; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--warm); color: var(--text); width: 100%;
}
.entry-row .rm { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.panel-hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 .8rem; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .6rem; }
.paste-box { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.paste-box label { display: grid; gap: .4rem; font-size: .88rem; color: var(--muted); }
.paste-box code { background: var(--warm); padding: .1rem .35rem; border-radius: 4px; color: var(--text); }
.paste-box textarea {
  font: inherit; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .85rem;
  padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--warm); color: var(--text); resize: vertical;
}
.pot-row { grid-template-columns: 9.5rem 6.5rem 9rem auto; }
.pot-row select, .payment-row select {
  font: inherit; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--warm); color: var(--text);
}
.payment-row { grid-template-columns: 9rem 6rem 8rem 1fr auto; }
@media (max-width: 900px) {
  .pot-row { grid-template-columns: 1fr 1fr; grid-template-areas: "date amt" "type rm"; }
  .payment-row { grid-template-columns: 1fr 1fr; }
}
.budget-months h3 { margin-bottom: .6rem; }
.months-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.months-table th { text-align: left; color: var(--muted); font-weight: 600; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
.months-table td { padding: .4rem 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.months-table td:last-child { text-align: right; font-weight: 600; }
.months-empty { color: var(--muted); text-align: center !important; }

@media (max-width: 900px) {
  .budget-grid { grid-template-columns: 1fr; }
  .entry-row { grid-template-columns: 1fr 1fr; grid-template-areas: "date amt" "note rm"; }
}

/* ---- monthly check-in ---- */
.checkin-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; margin: .8rem 0 1.2rem; }
.checkin-numbers dt { color: var(--muted); font-size: .85rem; }
.checkin-numbers dd { margin: 0; font-weight: 700; font-size: 1.15rem; color: var(--teal); font-variant-numeric: tabular-nums; }
.checkin-checks { display: grid; gap: .6rem; margin: 1.2rem 0; }
.checkin-checks label { display: flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .95rem; }
.checkin-checks input { width: 1.1rem; height: 1.1rem; }
.checkin-reflect { display: grid; gap: .35rem; margin-top: 1rem; font-size: .92rem; font-weight: 500; }
.checkin-reflect textarea {
  font: inherit; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--warm); color: var(--text); resize: vertical;
}
#ci-save { margin-top: 1.2rem; }
.checkin-history { display: grid; gap: .5rem; }
.checkin-hist-row {
  display: flex; justify-content: space-between; font-size: .9rem; padding: .5rem 0;
  border-bottom: 1px solid var(--border); color: var(--muted);
}
.checkin-hist-row strong { color: var(--text); font-weight: 600; }

/* ---- invoices ---- */
.invoice-row { grid-template-columns: 5rem 8rem 8rem 6rem 4rem 5.5rem 6rem auto; align-items: center; }
.inv-status { font-size: .82rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; text-align: center; white-space: nowrap; }
.inv-status-paid { background: var(--pale); color: var(--teal-deep); }
.inv-status-due { background: var(--warm); color: #8a6a1f; }
.inv-status-overdue { background: rgba(179,69,47,.12); color: #b3452f; }
@media (max-width: 900px) { .invoice-row { grid-template-columns: 1fr; } }

/* ---- day-rate / projects ---- */
.project-row { grid-template-columns: 9rem 6.5rem 6.5rem 6.5rem 1fr 7.5rem auto; align-items: center; }
.proj-result { font-size: .85rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) { .project-row { grid-template-columns: 1fr; } }

/* ---- legal pages ---- */
.legal { max-width: 68ch; }
.legal h2 { margin-top: 1.8em; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .3em 0; }
.legal .lede { background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }

/* ---- thanks / 404 ---- */
.thanks, .notfound { text-align: center; }
.thanks .lede, .notfound .lede { margin-left: auto; margin-right: auto; }
.download-slot {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; margin: 1.75rem auto; max-width: 30rem; display: grid; gap: .6rem;
}
.thanks-next { max-width: 34rem; margin: 2rem auto 0; text-align: left; }
.notfound .btn { margin: .3rem; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero, .product-head, .product-body, .calc-grid { grid-template-columns: 1fr; }
  .steps, .card-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .buybox { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section, article { padding: 2.5rem 1.1rem; }
  .steps, .card-grid { grid-template-columns: 1fr; }
  .bundle-strip, .product-foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ---- skeleton loaders ---- */
.skel { background: linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%);
  background-size: 200% 100%; animation: skel-pulse 1.4s ease-in-out infinite; border-radius: 8px; }
.skel-title { height: 2.4rem; width: 40%; margin-bottom: 1.5rem; }
.skel-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
.skel-panel { height: 14rem; }
.skel-panel-sm { height: 8rem; }
@keyframes skel-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (max-width: 900px) { .skel-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .skel { animation: none; opacity: .6; }
}

/* ---- VAT threshold tracker ---- */
.vat-gauge-wrap { margin: .3rem 0 .4rem; }
.vat-gauge { height: 14px; background: var(--mist); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.vat-gauge-fill { display: block; height: 100%; background: var(--teal); transition: width .3s ease; }
.vat-gauge-fill.vat-fill-warn { background: #c9772e; }
.vat-gauge-fill.vat-fill-over { background: #b3452f; }
.vat-gauge-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.vat-total { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: .6rem 0 .2rem; font-variant-numeric: tabular-nums; }
.vat-status { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }
.vat-status-warn { color: #8a6a1f; font-weight: 600; }
.vat-status-over { color: #b3452f; font-weight: 700; }
.vat-entry-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: end; margin-top: .8rem; }
.vat-entry-form label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 500; }
.vat-entry-form input {
  font: inherit; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--warm); color: var(--text);
}
@media (max-width: 700px) { .vat-entry-form { grid-template-columns: 1fr; } }
.vat-log { display: grid; gap: .4rem; }
.vat-log-row {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem; font-size: .9rem;
  padding: .5rem 0; border-bottom: 1px solid var(--border); color: var(--muted);
}
.vat-log-row strong { color: var(--text); font-weight: 600; }
.vat-log-row span { font-variant-numeric: tabular-nums; }
.vat-log-del {
  border: none; background: transparent; color: var(--muted); font-size: 1.1rem; line-height: 1;
  cursor: pointer; padding: .2rem .4rem;
}
.vat-log-del:hover { color: #b3452f; }
