/* Household Bill Calendar & Sinking Funds Workbook — landing */
:root {
  --ink: #0A1528;
  --ink-soft: #12233F;
  --navy: #18335B;
  --gold: #C9B896;
  --gold-dim: rgba(201, 184, 150, 0.42);
  --cream: #F4EFE4;
  --cream-deep: #E7DFD0;
  --paper: #FBF8F2;
  --text: #1C2430;
  --muted: #5A6573;
  --line: rgba(10, 21, 40, 0.12);
  --max: 72rem;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--ink); }

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

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

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.amp {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker-ink { color: var(--navy); }
.kicker-cream { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); color: var(--cream); }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }

.section-title { margin-bottom: 2.5rem; max-width: 22ch; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 21, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-dim);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.mark {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
  max-width: 16rem;
}

.mark:hover { color: var(--gold); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1.1rem;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav a:hover { color: var(--gold); }

.nav-cta {
  background: var(--cream);
  color: var(--ink) !important;
  padding: 0.45rem 0.75rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.85rem !important;
}

.nav-cta:hover { background: var(--gold) !important; color: var(--ink) !important; }

/* Hero */
.hero {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(255,255,255,0.03) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(255,255,255,0.03) 48px),
    radial-gradient(1000px 520px at 85% 0%, #18335B 0%, #0A1528 58%);
  color: var(--cream);
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--gold-dim);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--cream);
  margin: 0 0 1rem;
  max-width: 38ch;
}

.hero-meta {
  color: var(--cream-deep);
  margin: 0 0 1.6rem;
  max-width: 42ch;
}

.hero-actions { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-cream {
  background: var(--cream);
  color: var(--ink);
}

.btn-cream:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--cream-deep);
}

.hero-figure img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--gold-dim);
}

/* Who */
.who {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.who p, .who-not li {
  color: var(--text);
}

.who-not ul, .plain-list, .feature-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.who-not li,
.plain-list li,
.feature-text li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.7rem;
}

.who-not li::before,
.plain-list li::before,
.feature-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.5rem;
  height: 1px;
  background: var(--navy);
}

/* Features */
.features {
  padding: 4.25rem 0 2rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 2.25rem;
  align-items: center;
  margin-bottom: 3.75rem;
}

.feature-reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
}

.feature-reverse .feature-text { order: 2; }
.feature-reverse .feature-figure { order: 1; }

.feature-index {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 0.35rem;
}

.feature-text p { margin-top: 0; }

.feature-figure img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(10, 21, 40, 0.1);
  background: #fff;
}

figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contents */
.contents {
  padding: 4rem 0;
  background:
    linear-gradient(180deg, rgba(10, 21, 40, 0.03), rgba(10, 21, 40, 0.03)),
    var(--cream);
  border-block: 1px solid var(--line);
}

.contents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: start;
}

.ext { font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

.sheet-list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  counter-reset: sheets;
  border-top: 1px solid var(--line);
}

.sheet-list li {
  counter-increment: sheets;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.sheet-list li::before {
  content: counter(sheets, decimal-leading-zero);
  font-family: var(--display);
  font-style: italic;
  color: var(--navy);
}

.contents-figure img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(10, 21, 40, 0.08);
  background: #fff;
}

/* Price */
.price {
  padding: 4.5rem 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(255,255,255,0.03) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(255,255,255,0.03) 48px),
    var(--ink);
  color: var(--cream);
}

.price-card {
  max-width: 38rem;
  text-align: left;
}

.price-amount {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 8vw, 5rem);
  line-height: 0.95;
  margin: 0 0 0.6rem;
  color: var(--cream);
}

.price-amount .currency {
  display: block;
  font-size: 0.85rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.price-terms {
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--cream);
}

.price-body {
  color: var(--cream-deep);
  margin: 0 0 1.5rem;
}

.store-link {
  margin: 1rem 0 0;
  color: var(--cream-deep);
  font-size: 0.95rem;
}

.store-link a { color: var(--cream); }

/* About */
.about {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* FAQ */
.faq {
  padding: 4rem 0 5rem;
}

.faq-inner { max-width: 46rem; }

details {
  border-bottom: 1px solid var(--line);
  padding: 0.2rem 0;
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 1rem 1.8rem 1rem 0;
  position: relative;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1;
}

details[open] summary::after { content: "–"; }

details p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream-deep);
  padding: 1.75rem 0;
  font-size: 0.9rem;
}

.footer-inner p { margin: 0.2rem 0; }

.footer-inner a { color: var(--cream); }

.footer-directories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-directories img {
  display: block;
  vertical-align: middle;
  margin: 0;
}

/* Mobile */
@media (max-width: 860px) {
  .hero-grid,
  .who-grid,
  .feature,
  .feature-reverse,
  .contents-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .feature-reverse .feature-text,
  .feature-reverse .feature-figure {
    order: unset;
  }

  .hero { padding: 2.25rem 0 2.75rem; }
  .header-inner { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .mark { max-width: none; }
}

@media (max-width: 560px) {
  .nav a:not(.nav-cta) { display: none; }
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  body { font-size: 1rem; }
}
