:root {
  --paper: #f5f0e5;
  --paper-deep: #e9e0ce;
  --card: #fffdf8;
  --ink: #20211d;
  --muted: #6d6d63;
  --line: #d8cfbd;
  --forest: #2f6f50;
  --forest-deep: #1e4d38;
  --teal: #237c70;
  --red: #a9483f;
  --amber: #b77a19;
  --shadow: 0 24px 60px rgba(54, 45, 29, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--forest-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--forest); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus { top: 1rem; }

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  width: min(1180px, calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img { border-radius: 13px; box-shadow: 0 6px 18px rgba(32, 33, 29, 0.12); }

nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
nav a { color: var(--muted); font-size: 0.95rem; font-weight: 700; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--forest-deep); }

.hero {
  min-height: 680px;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow, .card-label {
  margin: 0 0 0.8rem;
  color: var(--forest);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow.light { color: #9fd0b6; }

h1, h2, h3 { margin-top: 0; font-family: var(--serif); line-height: 1.08; }

h1 { margin-bottom: 1.5rem; font-size: clamp(3.3rem, 7vw, 6.7rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2.15rem, 4vw, 4rem); letter-spacing: -0.04em; }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; }

.lede { max-width: 680px; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.35rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button { min-height: 48px; padding: 0.78rem 1.15rem; border: 1px solid var(--ink); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; }
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.button.secondary { color: var(--ink); }
.button.secondary:hover { background: var(--card); }
.release-note { margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; }

.ledger-preview {
  position: relative;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 30px 30px 12px 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.ledger-preview::before {
  content: "";
  position: absolute;
  top: -13px;
  right: 32px;
  width: 86px;
  height: 26px;
  background: rgba(183, 122, 25, 0.16);
  transform: rotate(-4deg);
}

.preview-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 0.38rem; }
.status i { width: 8px; height: 8px; border-radius: 999px; background: var(--forest); }
.ledger-preview h2 { margin: 2rem 0 1rem; font-size: 2.25rem; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.preview-stats div { padding: 0.95rem; border: 1px solid var(--line); border-radius: 16px; background: #faf7ef; }
.preview-stats span { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.preview-stats strong { display: block; margin-top: 0.15rem; color: var(--teal); font-family: var(--serif); font-size: 1.7rem; }
.preview-stats div:last-child strong { color: var(--red); }
.preview-list { margin-top: 1.15rem; border-top: 1px solid var(--line); }
.entry { position: relative; padding: 0.95rem 0 0.95rem 1rem; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); font-weight: 700; }
.entry::before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 4px; border-radius: 10px; background: var(--forest); }
.entry.income::before { background: var(--teal); }
.entry.bill::before { background: var(--red); }
.entry.savings::before { background: var(--amber); }
.entry.income strong { color: var(--forest); }
.demo-note { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.78rem; }

.trust-band { padding: 2rem 0; border-block: 1px solid var(--line); background: var(--paper-deep); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trust-grid p { margin: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-family: var(--serif); font-size: 1.22rem; }
.trust-grid span { margin-top: 0.25rem; color: var(--muted); }

.section { padding-block: clamp(5rem, 9vw, 8rem); }
.section-heading { max-width: 790px; margin-bottom: 3rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.feature-grid article { min-height: 275px; padding: clamp(1.6rem, 4vw, 2.7rem); background: var(--card); }
.feature-number { color: var(--forest); font-family: var(--serif); font-size: 0.95rem; font-weight: 800; }
.feature-grid h3 { margin: 2.8rem 0 1rem; }
.feature-grid p { margin-bottom: 0; color: var(--muted); }

.security-section { padding-block: clamp(5rem, 9vw, 8rem); background: var(--forest-deep); color: #f6f2e8; }
.security-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); }
.security-copy { font-size: 1.08rem; }
.security-copy p { margin-top: 0; color: #dbe8df; }
.security-copy a { color: #fff; font-weight: 800; }

.support-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.25rem; }
.contact-card, .steps-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); background: var(--card); }
.contact-card { border-radius: 32px 8px 8px 8px; }
.steps-card { border-radius: 8px 8px 32px 8px; }
.contact-card h3 { overflow-wrap: anywhere; }
.contact-card p, .steps-card li { color: var(--muted); }
.response-note { margin-top: 2rem; font-size: 0.9rem; font-weight: 700; }
.steps-card ol { margin: 0; padding-left: 1.4rem; }
.steps-card li { padding: 0.55rem 0 0.8rem 0.5rem; }
.steps-card li + li { border-top: 1px solid var(--line); }
.steps-card strong { color: var(--ink); }

footer { padding: 3rem 0 1.5rem; border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; }
.footer-grid strong { font-family: var(--serif); font-size: 1.35rem; }
.footer-grid p { max-width: 430px; margin: 0.45rem 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 1rem 1.5rem; }
.footer-links a { font-weight: 800; }
.copyright { width: min(1120px, calc(100% - 40px)); margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.83rem; }

.policy-main { padding-bottom: 6rem; }
.policy-hero { padding-block: clamp(4rem, 8vw, 7rem); }
.policy-hero h1 { margin-bottom: 1rem; }
.effective { display: inline-block; margin-top: 1rem; padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.87rem; font-weight: 700; }
.policy-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); justify-content: space-between; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.policy-layout aside { position: sticky; top: 1.5rem; padding: 1.4rem; border: 1px solid var(--line); background: var(--card); }
.policy-layout aside a { display: block; padding: 0.42rem 0; color: var(--muted); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.policy-layout aside a:hover { color: var(--forest-deep); }
.policy-copy section { scroll-margin-top: 1.5rem; padding-bottom: 2.8rem; }
.policy-copy section + section { padding-top: 2.8rem; border-top: 1px solid var(--line); }
.policy-copy h2 { margin-bottom: 1.4rem; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.policy-copy h3 { margin-top: 2rem; margin-bottom: 0.55rem; font-family: var(--sans); font-size: 1.05rem; }
.policy-copy p, .policy-copy li { color: #505149; }
.policy-copy ul { padding-left: 1.4rem; }
.policy-copy li { margin-bottom: 0.65rem; }
.policy-copy address { margin: 1.25rem 0; padding: 1.25rem; border-left: 4px solid var(--forest); background: var(--card); font-style: normal; }

@media (max-width: 820px) {
  .site-header { padding: 1rem 0; align-items: flex-start; }
  nav { gap: 0.75rem 1rem; justify-content: flex-end; }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { max-width: 670px; }
  .ledger-preview { max-width: 560px; transform: none; }
  .trust-grid, .security-grid, .support-grid { grid-template-columns: 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-layout aside { position: static; columns: 2; }
  .policy-layout aside .card-label { column-span: all; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .site-header { width: calc(100% - 28px); min-height: 76px; }
  .brand span { max-width: 100px; line-height: 1.05; }
  .brand img { width: 42px; height: 42px; }
  nav { gap: 0.35rem 0.8rem; }
  nav a { font-size: 0.87rem; }
  .hero { padding-block: 4rem; gap: 3.5rem; }
  h1 { font-size: clamp(3.15rem, 15vw, 4.6rem); }
  .preview-stats, .feature-grid { grid-template-columns: 1fr; }
  .trust-grid { gap: 1.5rem; }
  .feature-grid article { min-height: auto; }
  .feature-grid h3 { margin-top: 1.8rem; }
  .contact-card, .steps-card { border-radius: 20px; }
  .footer-grid { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .policy-layout aside { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
