:root {
  --ink: #2e2823;
  --muted: #6a625b;
  --surface: #ffffff;
  --soft: #f7f5f2;
  --line: #ded9d2;
  --gold: #b47c22;
  --brown: #5a3a1d;
  --focus: #1769aa;
}

* { box-sizing: border-box; }
html { color: var(--ink); background: var(--surface); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; }
body { margin: 0; line-height: 1.7; }
a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 32px, 1120px); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
main { min-height: 62vh; }
.hero { padding: 72px 0 64px; background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 36px; }
.hero-mark { width: min(180px, 30vw); }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 0.95rem; font-weight: 700; }
h1, h2 { color: var(--brown); line-height: 1.25; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { margin: 0 0 16px; font-size: clamp(1.45rem, 3vw, 2rem); }
.title-brand, .title-product, .title-policy { white-space: nowrap; }
.lead { max-width: 46rem; margin: 18px 0 0; font-size: 1.15rem; }
.section { padding: 58px 0; }
.section + .section { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.feature-grid h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature-grid p { margin: 0; color: var(--muted); }
.price-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 270px); align-items: center; gap: 34px; }
.price-copy { max-width: 48rem; }
.price-copy p { margin: 0.6rem 0; }
.product-shot { width: min(100%, 210px); margin: 0 auto; border: 1px solid var(--line); }
a[href="https://github.com/minoru365/moneyplanner/issues"] { overflow-wrap: anywhere; word-break: break-word; }
.support-band { padding: 48px 0; background: var(--soft); border-top: 1px solid var(--line); }
.support-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.support-inner h2 { margin-bottom: 6px; }
.support-inner p { margin: 0; color: var(--muted); }
.support-cta { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--brown); color: var(--surface); background: var(--brown); font-weight: 700; text-decoration: none; }
.support-cta:hover { color: var(--surface); background: var(--gold); border-color: var(--gold); }
.page-heading { padding: 48px 0 26px; background: var(--soft); border-bottom: 1px solid var(--line); }
.prose { max-width: 760px; padding: 44px 0 64px; }
.prose h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.prose p, .prose ul { margin: 0 0 1.1rem; }
.prose ul { padding-left: 1.4rem; }
.notice { border-left: 4px solid var(--gold); padding-left: 16px; }
.site-footer { border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { min-height: 96px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.copyright { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) {
  .header-inner { padding: 10px 0; align-items: flex-start; flex-direction: column; }
  .hero { padding: 52px 0; }
  h1 .title-brand, h1 .title-product, h1 .title-policy { display: block; }
  h1 .title-separator { display: none; }
  .hero-grid, .price-layout { grid-template-columns: 1fr; }
  .support-inner { align-items: flex-start; flex-direction: column; }
  .hero-mark { width: 116px; }
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-shot { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
