:root {
  color-scheme: light;
  --ink: #24312d;
  --muted: #64706b;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --sage-50: #f1f5ef;
  --sage-100: #e3ebe0;
  --sage-300: #aebfab;
  --sage-500: #728b72;
  --sage-700: #4d674f;
  --sage-900: #314334;
  --sand: #eee6d8;
  --amber: #b8742b;
  --line: #dfe5de;
  --shadow: 0 18px 50px rgba(49, 67, 52, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(227, 235, 224, 0.85), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.brand-mark {
  position: relative;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--sage-900);
}

.brand-mark span {
  position: absolute;
  width: 9px;
  height: 17px;
  top: 8px;
  border-radius: 9px 1px 9px 1px;
  background: #dce8d8;
}

.brand-mark span:first-child {
  left: 9px;
  transform: rotate(-28deg);
}

.brand-mark span:last-child {
  right: 9px;
  top: 13px;
  transform: scaleX(-1) rotate(-28deg);
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sage-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.privacy-pill span {
  font-size: 0.65rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 42px;
  align-items: end;
  padding: 74px 72px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(242, 246, 240, 0.87)),
    var(--sage-50);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sage-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-intro {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.month-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.month-row label {
  font-size: 0.85rem;
  font-weight: 800;
}

.month-row input {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--sage-300);
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

.field-help {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.77rem;
}

.progress-card {
  padding: 26px;
  border: 1px solid rgba(174, 191, 171, 0.7);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.progress-heading h2 {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.progress-number {
  color: var(--sage-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
}

.progress-track {
  height: 10px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sage-100);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sage-700);
  transition: width 280ms ease;
}

.progress-message {
  min-height: 48px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sage-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.start-section,
.regular-section,
.record-section,
.refund-section,
.owner-section,
.deposit-section,
.hst-section,
.month-end-section,
.review-section,
.routine-section,
.not-sure-section {
  padding-block: 108px 10px;
}

.start-heading {
  margin-bottom: 26px;
}

.workbook-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.key-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(49, 67, 52, 0.05);
}

.key-card h3 {
  margin-top: 20px;
  font-size: 1.38rem;
}

.key-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.key-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.key-enter .key-label {
  border-color: #d8c8b8;
  background: #eee3d8;
  color: #5f4937;
}

.key-choose .key-label {
  border-color: var(--sage-300);
  background: white;
  color: var(--sage-700);
}

.key-calculated {
  background: var(--sage-50);
}

.key-calculated .key-label {
  border-color: var(--sage-300);
  background: var(--sage-100);
  color: var(--sage-900);
}

.regular-heading {
  margin-bottom: 26px;
}

.regular-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.regular-card {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.regular-card h3 {
  margin: 22px 0 10px;
  font-size: 1.45rem;
}

.regular-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.regular-number {
  color: var(--sage-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 420px);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading > p {
  margin-bottom: 8px;
  color: var(--muted);
}

.decision-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.decision-list {
  display: grid;
  gap: 10px;
}

.decision-button {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.decision-button:hover {
  border-color: var(--sage-300);
  transform: translateY(-1px);
}

.decision-button:focus {
  outline: 2px solid var(--sage-500);
  outline-offset: 2px;
}

.decision-button.is-active {
  border-color: var(--sage-700);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(49, 67, 52, 0.07);
}

.decision-button strong,
.decision-button small {
  display: block;
}

.decision-button strong {
  margin-bottom: 2px;
  font-size: 0.96rem;
}

.decision-button small {
  color: var(--muted);
  font-size: 0.77rem;
}

.decision-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 800;
}

.income-icon {
  background: #e4f0e5;
  color: #3f7249;
}

.expense-icon {
  background: #f5e9de;
  color: #9a5c26;
}

.transfer-icon {
  background: #e8edf2;
  color: #516f83;
}

.owner-icon {
  background: #f2e8df;
  color: #7a5a41;
}

.deposit-icon {
  background: #e5efec;
  color: #486f66;
}

.hst-icon {
  background: #ede8f4;
  color: #6b5683;
}

.refund-icon {
  background: #f2e8ec;
  color: #83566a;
}

.unsure-icon {
  background: #ecebe8;
  color: #696963;
}

.guide-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(49, 67, 52, 0.05);
}

.guide-card:focus {
  outline: 3px solid var(--sage-300);
  outline-offset: 4px;
}

.guide-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--sage-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card > p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
}

.guide-options {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guide-options[hidden] {
  display: none;
}

.guide-options > p {
  margin-bottom: 10px;
  color: var(--sage-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-options ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-options li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sage-50);
  color: var(--ink);
  font-size: 0.88rem;
}

.guide-cue {
  margin-top: 18px !important;
  padding-left: 12px;
  border-left: 3px solid var(--sage-300);
  font-size: 0.86rem;
}

.guide-cue[hidden] {
  display: none;
}

.refund-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.refund-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(49, 67, 52, 0.05);
}

.refund-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--sage-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.refund-card h3 {
  margin-top: 18px;
}

.refund-card ul {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
}

.refund-card li + li {
  margin-top: 7px;
}

.refund-example {
  margin-bottom: 18px;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: var(--sage-50);
  color: var(--muted);
  font-size: 0.88rem;
}

.refund-example strong {
  color: var(--ink);
}

.refund-reminder {
  margin-bottom: 0;
  padding-left: 12px;
  border-left: 3px solid var(--sage-300);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.refund-why {
  display: grid;
  grid-template-columns: minmax(200px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(241, 245, 239, 0.72);
}

.refund-why p {
  margin: 0;
  color: var(--muted);
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.owner-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(49, 67, 52, 0.05);
}

.owner-route {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--sage-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.owner-route span {
  color: var(--sage-500);
  font-size: 1rem;
}

.owner-card > p,
.owner-card ol {
  color: var(--muted);
}

.owner-card ol {
  margin: 0;
  padding-left: 21px;
}

.owner-card li + li {
  margin-top: 12px;
}

.owner-card strong {
  color: var(--ink);
}

.owner-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--sage-50);
  color: var(--ink) !important;
  font-size: 0.88rem;
  font-weight: 700;
}

.deposit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.deposit-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(49, 67, 52, 0.05);
}

.deposit-route {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--sage-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deposit-route span {
  color: var(--sage-500);
  font-size: 1rem;
}

.deposit-step {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.deposit-step + .deposit-step {
  margin-top: 20px;
}

.deposit-step > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--sage-700);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deposit-step p {
  margin-bottom: 9px;
  color: var(--muted);
}

.deposit-step p:last-child {
  margin-bottom: 0;
}

.deposit-step p strong {
  color: var(--ink);
}

.deposit-note {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(241, 245, 239, 0.72);
}

.deposit-note p {
  margin: 0;
  color: var(--muted);
}

.hst-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hst-entry-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(49, 67, 52, 0.05);
}

.hst-entry-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.hst-entry-card strong {
  color: var(--ink);
}

.hst-route {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--sage-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hst-route span {
  color: var(--sage-500);
  font-size: 1rem;
}

.hst-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 30px;
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(241, 245, 239, 0.72);
}

.hst-summary-intro h3 {
  margin-bottom: 8px;
}

.hst-summary-intro > p:last-child {
  margin: 0;
  color: var(--muted);
}

.hst-definitions {
  display: grid;
  gap: 0;
  margin: 0;
}

.hst-definitions div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.hst-definitions div:first-child {
  padding-top: 0;
  border-top: 0;
}

.hst-definitions div:last-child {
  padding-bottom: 0;
}

.hst-definitions dt {
  color: var(--ink);
  font-weight: 800;
}

.hst-definitions dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.hst-cra {
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.hst-cra-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.hst-cra-heading .eyebrow,
.hst-cra-heading h3 {
  margin-bottom: 0;
}

.hst-cra-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hst-cra-items article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hst-cra-items > article > strong {
  color: var(--sage-700);
}

.hst-cra-items p {
  margin: 7px 0 0;
  color: var(--muted);
}

.hst-cra-items p strong {
  color: var(--ink);
}

.hst-cra-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--sage-50);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.month-end-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.month-end-steps li {
  display: flex;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(49, 67, 52, 0.04);
}

.month-end-steps li > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sage-700);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
}

.month-end-steps strong {
  color: var(--ink);
}

.month-end-steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.month-end-steps p strong {
  color: var(--ink);
}

.statement-totals-guide {
  margin-top: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.statement-totals-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.statement-totals-heading .eyebrow,
.statement-totals-heading h3 {
  margin-bottom: 0;
}

.statement-totals-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.statement-totals-items article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.statement-totals-items > article > strong {
  color: var(--sage-700);
}

.statement-totals-items p {
  margin: 6px 0 0;
  color: var(--muted);
}

.statement-totals-items b {
  color: var(--ink);
}

.statement-totals-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.month-end-calc {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 30px;
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(241, 245, 239, 0.72);
}

.month-end-calc-intro h3 {
  margin-bottom: 8px;
}

.month-end-calc-intro > p:last-child {
  margin: 0;
  color: var(--muted);
}

.month-end-definitions {
  display: grid;
  gap: 0;
  margin: 0;
}

.month-end-definitions div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.month-end-definitions div:first-child {
  padding-top: 0;
  border-top: 0;
}

.month-end-definitions div:last-child {
  padding-bottom: 0;
}

.month-end-definitions dt {
  color: var(--ink);
  font-weight: 800;
}

.month-end-definitions dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.month-end-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.result-card {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.result-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--sage-50);
  color: var(--sage-700);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.difference-card .result-label {
  background: var(--sand);
  color: var(--ink);
}

.result-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.statement-periods {
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.statement-periods-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.statement-periods-heading .eyebrow,
.statement-periods-heading h3 {
  margin-bottom: 0;
}

.statement-period-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.statement-period-items article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.statement-period-items > article > strong {
  color: var(--sage-700);
}

.statement-period-items p {
  margin: 7px 0 0;
  color: var(--muted);
}

.statement-period-items p strong {
  color: var(--ink);
}

.month-end-flow-note {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(241, 245, 239, 0.72);
}

.month-end-flow-note p {
  margin: 0;
  color: var(--muted);
}

.review-heading {
  margin-bottom: 28px;
}

.review-views {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-view {
  padding: 25px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.review-view span {
  color: var(--sage-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-view h3 {
  margin: 14px 0 8px;
  font-size: 1.28rem;
}

.review-view p {
  margin: 0;
  color: var(--muted);
}

.review-numbers {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 30px;
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(241, 245, 239, 0.56);
}

.review-numbers-intro h3 {
  margin-bottom: 8px;
}

.review-numbers-intro > p:last-child {
  margin: 0;
  color: var(--muted);
}

.review-definitions {
  margin: 0;
}

.review-definitions div {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.review-definitions div:first-child {
  padding-top: 0;
  border-top: 0;
}

.review-definitions div:last-child {
  padding-bottom: 0;
}

.review-definitions dt {
  color: var(--ink);
  font-weight: 800;
}

.review-definitions dd {
  margin: 0;
  color: var(--muted);
}

.review-definitions dd strong {
  color: var(--ink);
}

.review-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.review-notes article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.review-notes strong {
  color: var(--sage-700);
}

.review-notes p {
  margin: 6px 0 0;
  color: var(--muted);
}

.guide-fields {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.guide-fields p {
  margin-bottom: 10px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-fields ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 24px;
  margin: 0;
  padding-left: 20px;
  color: #d9e1da;
  font-size: 0.88rem;
}

.notice {
  display: flex;
  gap: 13px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  color: var(--ink);
}

.notice[hidden] {
  display: none;
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage-700);
  color: white;
  font-family: Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.notice p {
  margin: 0;
  font-size: 0.82rem;
}

.notice strong,
.notice span {
  display: block;
}

.notice strong {
  margin-bottom: 3px;
}

.routine-layout {
  max-width: 860px;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: monthly-step;
}

.checklist li {
  counter-increment: monthly-step;
  border-bottom: 1px solid var(--line);
}

.checklist li:first-child {
  border-top: 1px solid var(--line);
}

.checklist label {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 4px;
  cursor: pointer;
}

.checklist input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.custom-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--sage-300);
  border-radius: 50%;
  background: white;
}

.custom-check::before {
  content: counter(monthly-step);
  color: var(--sage-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.checklist input:focus-visible + .custom-check {
  outline: 3px solid rgba(114, 139, 114, 0.28);
  outline-offset: 3px;
}

.checklist input:checked + .custom-check {
  border-color: var(--sage-700);
  background: var(--sage-700);
}

.checklist input:checked + .custom-check::before {
  content: "✓";
  color: white;
  font-size: 0.9rem;
}

.checklist label > span:last-child strong,
.checklist label > span:last-child small {
  display: block;
}

.checklist label > span:last-child strong {
  margin-bottom: 4px;
  font-size: 1rem;
}

.checklist label > span:last-child small {
  color: var(--muted);
  font-size: 0.83rem;
}

.checklist input:checked ~ span:last-child {
  opacity: 0.58;
}

.keep-out-card {
  align-self: start;
  padding: 30px;
  border: 1px solid #e3d7c4;
  border-radius: var(--radius-lg);
  background: #f7f1e7;
}

.keep-out-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding-block: 15px;
  border-top: 1px solid rgba(184, 116, 43, 0.18);
}

.keep-out-item > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: white;
  color: var(--amber);
  font-weight: 900;
}

.keep-out-item p {
  margin: 0;
  color: #66594b;
  font-size: 0.8rem;
}

.keep-out-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.86rem;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--sage-700);
  background: var(--sage-700);
  color: white;
}

.secondary-button {
  border: 1px solid var(--sage-700);
  background: transparent;
  color: var(--sage-700);
}

.keep-out-card .secondary-button {
  width: 100%;
  margin-top: 12px;
}

.completion-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--sage-100);
}

.completion-card[hidden] {
  display: none;
}

.completion-card p,
.completion-card h3 {
  margin-bottom: 3px;
}

.completion-card > div > p:last-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.completion-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sage-700);
  color: white;
  font-size: 1.4rem;
}

.not-sure-path {
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-sure-path li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
  padding: 17px 4px;
  border-top: 1px solid var(--line);
}

.not-sure-path li:last-child {
  border-bottom: 1px solid var(--line);
}

.not-sure-path li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.not-sure-path p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.not-sure-path strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.95rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 110px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

dialog {
  width: min(480px, calc(100% - 32px));
  padding: 28px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(36, 49, 45, 0.28);
}

dialog::backdrop {
  background: rgba(36, 49, 45, 0.52);
  backdrop-filter: blur(2px);
}

dialog h2 {
  font-size: 1.8rem;
}

dialog p {
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .hero,
  .workbook-key,
  .regular-grid,
  .decision-layout,
  .refund-grid,
  .owner-grid,
  .deposit-grid,
  .hst-flow,
  .hst-summary,
  .month-end-calc,
  .month-end-results,
  .review-views,
  .review-numbers,
  .review-notes,
  .routine-layout,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
    padding: 54px 36px;
  }

  .section-heading {
    gap: 4px;
  }

  .section-heading > p {
    max-width: 650px;
  }

  .month-end-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: min(100% - 26px, 1160px);
  }

  .site-header {
    padding-block: 18px;
  }

  .brand small {
    display: none;
  }

  .privacy-pill {
    padding: 7px 9px;
    font-size: 0.7rem;
  }

  .hero {
    padding: 40px 22px;
    border-radius: 20px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .start-section,
  .regular-section,
  .record-section,
  .refund-section,
  .owner-section,
  .deposit-section,
  .hst-section,
  .month-end-section,
  .review-section,
  .routine-section,
  .not-sure-section {
    padding-top: 80px;
  }

  .key-card {
    min-height: 0;
    padding: 22px;
  }

  .regular-card {
    min-height: 0;
    padding: 22px;
  }

  .decision-list {
    grid-template-columns: 1fr;
  }

  .guide-card,
  .refund-card,
  .owner-card,
  .deposit-card,
  .hst-entry-card,
  .result-card,
  .keep-out-card {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .refund-why {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .deposit-note {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hst-summary {
    gap: 18px;
  }

  .hst-cra {
    padding: 24px 22px;
  }

  .hst-cra-heading,
  .hst-cra-items,
  .statement-totals-heading,
  .statement-totals-items,
  .statement-periods-heading,
  .statement-period-items,
  .month-end-flow-note {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hst-cra-items article + article {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .month-end-steps {
    grid-template-columns: 1fr;
  }

  .month-end-calc {
    gap: 18px;
  }

  .review-views,
  .review-notes {
    grid-template-columns: 1fr;
  }

  .review-notes article + article {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .review-numbers {
    gap: 18px;
  }

  .review-definitions div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .statement-totals-guide {
    padding: 22px;
  }

  .statement-totals-items article + article {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .statement-periods {
    padding: 24px 22px;
  }

  .statement-period-items article + article {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .guide-fields ul {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    margin-top: 80px;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
