.home { background: white; }
.home main { max-width: none; padding: 0; }
.home-shell, .home-header, .home-footer {
  width: min(100%, 1160px);
  max-width: none;
  padding-inline: clamp(18px, 5vw, 52px);
  margin-inline: auto;
}
.home-header { padding-block: 12px; }
.home-header .header-action { border-color: var(--line); }
.home-hero {
  background: radial-gradient(ellipse at 50% 100%, #efe3ed 0, transparent 70%), var(--paper);
  border-top: 1px solid #eeedf0;
}
.hero-layout { padding-block: clamp(48px, 7vw, 100px) clamp(36px, 6vw, 76px); }
.hero-copy { text-align: center; }
.hero-context { margin: 0 0 14px; color: var(--wine); font-size: 15px; font-weight: 800; }
.home h1 {
  margin: 0 auto 18px;
  max-width: 20ch;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.home h1 em { font-style: normal; color: #774764; }
.hero-description {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 22px);
  text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin-top: 24px; }
.home-button, .hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}
.home-button { color: white; background: var(--wine); }
.home-button:hover { background: var(--wine-dark); }
.hero-link { color: var(--wine); border: 1px solid #cdbdc9; }
.hero-link:hover { background: #f1e7ee; }

.receipt {
  max-width: 832px;
  margin: clamp(32px, 5vw, 62px) auto 0;
  padding: clamp(13px, 3vw, 27px);
  border: 1px solid #e8dfe6;
  border-radius: clamp(19px, 4vw, 30px);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 65px #48223c16, 0 2px 6px #48223c0a;
}
.receipt figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-weight: 800; }
.sample-label { color: var(--muted); font-size: 12px; }
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.receipt-input, .receipt-output { min-width: 0; padding: clamp(15px, 2.8vw, 26px); border-radius: 16px; }
.receipt-input { background: var(--paper); }
.receipt-output { background: #f5eaf2; }
.receipt-input > p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 750; }
.receipt-amount { margin: 6px 0 12px; font-size: clamp(40px, 5vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.receipt-amount small { font-size: .55em; }
.receipt .demo-slider { color: var(--muted); margin: 0; }
.receipt .demo-slider input { height: 34px; accent-color: var(--wine); }
.receipt .demo-slider input:focus-visible { outline-color: var(--wine); }
.receipt dl { margin: 0 0 12px; }
.receipt dl > div { align-items: baseline; gap: 8px; padding-block: 5px; border: 0; }
.receipt dt { color: var(--muted); font-size: 14px; }
.receipt dd { margin: 0; white-space: nowrap; font-size: clamp(17px, 2.7vw, 26px); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.receipt-split { display: grid; grid-template-columns: 3fr 1fr; gap: 3px; height: 9px; }
.receipt-split i { background: var(--wine); border-radius: 999px; }
.receipt-split i:last-child { background: #cb8e67; }
.receipt .sample-note { color: var(--muted); margin: 11px 1px 0; font-size: 12px; }

.ledger-layout { padding-block: clamp(42px, 8vw, 90px); }
.ledger-layout h2 { font-size: clamp(32px, 5vw, 61px); letter-spacing: -.066em; line-height: 1.04; text-wrap: balance; }
.ledger-layout p { color: var(--muted); max-width: 55ch; }
.ledger-action { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; color: var(--wine); }
.feature-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.feature-list article { padding: clamp(16px, 2.5vw, 30px); border-radius: 20px; background: var(--paper); }
.feature-list h3 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.feature-list p { margin: 8px 0 0; font-size: 14px; }
.home-faq { background: var(--paper); }
.home-faq .ledger-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 24px; }
.home-faq a { color: var(--wine); }
.ledger-pages details { border-bottom: 1px solid var(--line); }
.ledger-pages summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; gap: 10px; cursor: pointer; font-weight: 800; }
.ledger-pages summary::-webkit-details-marker { display: none; }
.ledger-pages summary::after { content: '+'; color: var(--wine); }
.ledger-pages details[open] summary::after { content: '−'; }
.ledger-pages details p { margin: 0 0 14px; }
.home-footer { flex-wrap: wrap; padding-block: 24px; color: var(--muted); }
@media (max-width: 640px) {
  .home .identity { font-size: 19px; }
  .receipt-grid, .feature-list, .home-faq .ledger-layout { grid-template-columns: 1fr; }
  .receipt-input, .receipt-output { border-radius: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: home-enter .46s ease-out both; }
  .receipt { animation: home-enter .52s .08s ease-out both; }
  html:has(.home) { scroll-behavior: smooth; }
  @keyframes home-enter { from { opacity: 0; transform: translateY(9px); } }
}

.receipt-split[hidden], .receipt-fields[hidden] { display: none; }
.receipt-profile { margin-top: 16px; border-top: 1px solid var(--line); }
.receipt-profile summary { padding-block: 13px 0; min-height: 44px; cursor: pointer; color: var(--wine); font-weight: 800; }
.receipt-fields { display: grid; gap: 10px; padding: 3px 0 8px; }
.receipt-fields label { display: grid; gap: 5px; font-size: 14px; font-weight: 750; }
.receipt-fields input, .receipt-fields select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #bcb7c2;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.receipt-fields p, .receipt-fields a { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.receipt-fields p:empty { display: none; }
.receipt-fields a { color: var(--wine); }

.receipt-document label { margin-block: 4px 8px; }
.receipt-document textarea {
  width: 100%;
  min-width: 0;
  padding: 9px;
  resize: vertical;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #bcb7c2;
  border-radius: 9px;
}
.receipt-document button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #cdbdc9;
  border-radius: 999px;
  color: var(--wine);
  background: var(--surface);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.receipt-fields .receipt-estimate { color: var(--wine); background: #f5eaf2; border-radius: 12px; padding: 12px; font-size: 15px; font-weight: 800; }

.plans-page h1 { font-size:clamp(36px,5vw,64px); margin:48px 0 10px; line-height:1.05; }
.plans-page main > p,.plan-note { max-width:72ch; }
.plans-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:16px; margin:32px 0; }
.plans-grid article { display:flex; flex-direction:column; align-items:flex-start; background:white; border:1px solid var(--line); border-radius:20px; padding:24px; }
.plans-grid article > p { margin:8px 0; }
.plan-price { font-size:2rem; font-weight:800; color:var(--wine); }
.plan-price small { font-size:1rem; }
.plans-grid ul { padding-left:20px; margin:8px 0 24px; }
.plans-grid a { margin-top:auto; }
