/* Homepage presentation only; existing forms, actions and calculation engine
   remain the source of truth. */
.duebylaw-home main { width: min(1180px, calc(100% - 48px)); }
.duebylaw-home :is(h1, h2, h3) { font-family: var(--brand-font); font-weight: 700; text-wrap: pretty; }
.duebylaw-home :is(p, h1, h2, h3) { overflow-wrap: break-word; }
.duebylaw-home .eyebrow { letter-spacing: 0.12em; font-size: 0.7rem; }
.duebylaw-home .hero {
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 56px 0 48px;
}
.duebylaw-home .hero-copy h1 {
  margin: 16px 0 20px;
  font-size: clamp(2.35rem, 4.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
  color: var(--brand-navy);
}
.duebylaw-home .hero-copy h1 span { color: var(--brand-teal-dark); }
.duebylaw-home .hero-copy p { font-size: 0.98rem; line-height: 1.65; margin: 12px 0 0; }
.duebylaw-home .hero-copy .brand-positioning { max-width: 570px; font-size: 1.08rem; }
.duebylaw-home .hero-value { max-width: 610px; margin: 26px 0 8px; font-size: 1.24rem; line-height: 1.4; letter-spacing: -0.025em; }
.duebylaw-home .hero-actions { margin-top: 22px; gap: 12px; }
.duebylaw-home .hero-actions .btn { min-height: 48px; }
.duebylaw-home .hero-card { border-radius: 18px; padding: 24px; gap: 16px; background: var(--white); box-shadow: var(--shadow); }
.duebylaw-home .hero-card-label { margin: 0 0 2px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.duebylaw-home .hero-card div { padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; gap: 6px 14px; }
.duebylaw-home .hero-card span { border-radius: 50%; background: var(--brand-teal-soft); color: var(--brand-teal-dark); }
.duebylaw-home .hero-card strong { color: var(--brand-navy); font-size: 1.1rem; }
.duebylaw-home .hero-card .hero-note { margin: 0; color: var(--muted); font-size: 0.8rem !important; line-height: 1.7; }

.duebylaw-home #calculator { scroll-margin-top: 20px; }
.duebylaw-home .calculator-shell { border-radius: 20px; background: var(--white); padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow); border-top: 4px solid var(--brand-teal); }
.duebylaw-home :is(.section-heading, .save-panel) h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.04em; }
.duebylaw-home .section-heading p { max-width: 780px; font-size: 0.95rem; }
.duebylaw-home .calculator-form-heading { margin: 0 0 20px; font-size: 1.05rem; }
.duebylaw-home .calculator-card { border: 0; border-radius: 12px; background: var(--paper); }
.duebylaw-home input,
.duebylaw-home textarea { border-color: var(--brand-input-line); border-radius: 8px; background: var(--white); }
.duebylaw-home label { color: var(--ink); }
.duebylaw-home .rate-note { background: var(--brand-teal-soft); border-radius: 8px; }
.duebylaw-home .summary-card { border-radius: 12px; padding: 20px 18px; background: var(--paper); min-height: 126px; }
.duebylaw-home .summary-card.primary { background: var(--brand-navy); border-color: var(--brand-navy); }
.duebylaw-home .summary-card.primary::after { display: none; }
.duebylaw-home .summary-card strong { font-family: var(--brand-font); font-size: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.duebylaw-home .summary-card.primary strong { font-size: 2.15rem; }
.duebylaw-home .summary-card.primary :is(.summary-label, small) { color: var(--brand-footer-muted); }
.duebylaw-home .public-panel { border-radius: 12px; background: var(--white); box-shadow: none; }
.duebylaw-home .public-panel-header { background: var(--paper); }
.duebylaw-home .public-panel-header h2 { font-size: 1.12rem; line-height: 1.35; }
.duebylaw-home :is(.public-entry-form, .ledger-list-toolbar) { background: var(--white); }
.duebylaw-home .public-calculation-panel { top: 110px; }
.duebylaw-home .entry-toggle { background: var(--brand-teal-soft); border-radius: 9px; }
.duebylaw-home .entry-type-button { border-radius: 7px; }
.duebylaw-home .entry-type-button[aria-pressed="true"] { background: var(--brand-navy); color: var(--white); }
.duebylaw-home .ledger-row { border-color: var(--line); }
.duebylaw-home .entry-amount { font-family: var(--brand-font); font-weight: 700; }
.duebylaw-home .date-view-toggle.is-newest { background: var(--brand-teal-soft); }
.duebylaw-home .method-note,
.duebylaw-home .panel-footer-actions { background: var(--brand-teal-soft); }
.duebylaw-home .calculation-body strong,
.duebylaw-home .calc-row.total dd { font-family: var(--brand-font); }

.duebylaw-home .about-section { margin: 80px 0; }
.duebylaw-home .about-section h2,
.duebylaw-home .founder-teaser h2 { font-size: clamp(1.65rem, 2.8vw, 2.2rem); line-height: 1.22; letter-spacing: -0.04em; }
.duebylaw-home .about-prose p { color: var(--muted); font-size: 1rem; }
.duebylaw-home .homepage-story { padding-top: 12px; scroll-margin-top: 110px; }
.duebylaw-home .homepage-story-layout { column-gap: 64px; row-gap: 48px; }
.duebylaw-home .homepage-running-copy h2 { margin-top: 12px; }
.duebylaw-home .about-lifecycle { border: 0; border-radius: 16px; padding: 18px; background: var(--brand-teal-soft); box-shadow: none; }
.duebylaw-home .about-lifecycle li { padding: 16px 6px; border-radius: 0; background: transparent; }
.duebylaw-home .about-lifecycle span { background: var(--white); color: var(--brand-teal-dark); border-radius: 50%; }
.duebylaw-home .ledger-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.duebylaw-home .feature-strip article { padding: 24px; border-radius: 14px; border-top: 3px solid var(--brand-teal); }
.duebylaw-home .feature-strip h3 { font-size: 1.05rem; line-height: 1.4; margin-top: 16px; }
.duebylaw-home .feature-strip p { font-size: 0.9rem; line-height: 1.7; }
.duebylaw-home .feature-strip span { font-size: 0.64rem; }
.duebylaw-home .about-ccp { border-radius: 18px; background: var(--brand-teal-soft); border: 0; box-shadow: none; padding: clamp(24px, 4vw, 48px); }
.duebylaw-home .about-ccp-copy p { color: var(--muted); }
.duebylaw-home .about-demo-window { border-radius: 12px; box-shadow: var(--shadow); }
.duebylaw-home .about-demo-bar { background: var(--paper); }
.duebylaw-home .about-demo-dot { background: var(--brand-input-line); }
.duebylaw-home .about-demo-input { background: var(--white); border-color: var(--brand-teal); border-radius: 7px; box-shadow: none; }
.duebylaw-home .about-demo-option.is-active { background: var(--brand-teal-soft); }
.duebylaw-home .homepage-audience { padding: 40px 0; }
.duebylaw-home .founder-teaser { margin: 0 0 80px; padding: 32px; border-radius: 16px; border-left: 4px solid var(--brand-teal); background: var(--white); box-shadow: none; }
.duebylaw-home .founder-teaser h2 { max-width: 800px; font-size: 1.6rem; }
.duebylaw-home .founder-teaser .btn { white-space: normal; }
.duebylaw-home :is(.homepage-story-layout, .founder-teaser) > * { min-width: 0; }
.duebylaw-home .about-lifecycle li { grid-template-columns: 42px minmax(0, 1fr); }

.duebylaw-home .pricing-panel { display: block; padding: 0; border: 0; background: transparent; box-shadow: none; margin-bottom: 80px; }
.duebylaw-home .pricing-intro { margin-bottom: 32px; }
.duebylaw-home .pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.duebylaw-home .pricing-grid .plan-card { border-radius: 12px; padding: 26px 22px; }
.duebylaw-home .pricing-grid .plan-card .plan-price { color: var(--brand-navy); font-size: 1.35rem; margin: 18px 0 12px; letter-spacing: -0.03em; }
.duebylaw-home .pricing-grid .plan-card-contact { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 18px 22px; background: var(--brand-teal-soft); }
.duebylaw-home .pricing-grid .plan-card-contact .plan-price { margin: 0; font-size: 1rem; color: var(--brand-teal-dark); }
.duebylaw-home .pricing-grid .plan-card-contact span:last-child { margin: 0 0 0 auto; }
.duebylaw-home .pricing-actions { padding: 24px 0 0; }

@media (max-width: 960px) {
  .duebylaw-home .hero { gap: 24px; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); }
  .duebylaw-home .hero-card { padding: 20px; }
  .duebylaw-home .public-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duebylaw-home .public-calculation-panel { position: static; }
  .duebylaw-home .homepage-story-layout { column-gap: 28px; }
  .duebylaw-home .ledger-benefits,
  .duebylaw-home .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .duebylaw-home main { width: calc(100% - 32px); }
  .duebylaw-home .hero { grid-template-columns: 1fr; padding: 32px 0; }
  .duebylaw-home .hero-copy h1 { font-size: clamp(2rem, 6vw, 2.65rem); }
  .duebylaw-home .hero-copy .brand-positioning { font-size: 1rem; }
  .duebylaw-home .hero-value { font-size: 1.1rem; margin-top: 20px; }
  .duebylaw-home .hero-card { gap: 8px; padding: 20px; }
  .duebylaw-home .hero-card div { padding: 8px 0 12px; }
  .duebylaw-home .hero-card .hero-note { margin-top: 8px; }
  .duebylaw-home .hero-actions .btn { padding: 0 14px; font-size: 0.88rem; }
  .duebylaw-home .calculator-shell { padding: 20px 14px; border-radius: 14px; }
  .duebylaw-home .calculator-card { padding: 18px 12px; }
  .duebylaw-home .summary-card { min-height: 120px; padding: 16px 12px; }
  .duebylaw-home .summary-card strong,
  .duebylaw-home .summary-card.primary strong { font-size: 1.65rem; overflow-wrap: anywhere; }
  .duebylaw-home .summary-card .summary-label { font-size: 0.61rem; letter-spacing: 0.06em; }
  .duebylaw-home .public-panel-header { padding: 20px 16px; }
  .duebylaw-home .about-section { margin: 52px 0; }
  .duebylaw-home .homepage-story { scroll-margin-top: 20px; }
  .duebylaw-home .homepage-story-layout { row-gap: 28px; }
  .duebylaw-home .ledger-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duebylaw-home .feature-strip article { padding: 20px 16px; }
  .duebylaw-home .homepage-audience { padding: 32px 0; border-radius: 0; }
  .duebylaw-home .founder-teaser { margin-bottom: 52px; padding: 24px; }
  .duebylaw-home .pricing-grid .plan-card { padding: 20px 16px; }
  .duebylaw-home .pricing-grid .plan-card-contact { grid-column: 1 / -1; }
  .duebylaw-home .pricing-grid .plan-card-contact span:last-child { margin-left: 0; width: 100%; }
  .duebylaw-home .pricing-panel { margin-bottom: 52px; }
}

@media (max-width: 380px) {
  .duebylaw-home .ledger-benefits,
  .duebylaw-home .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .duebylaw-home .entry-type-button { padding: 6px 2px; white-space: normal; overflow-wrap: anywhere; }
  .duebylaw-home .public-ledger-row .entry-main { max-width: 100%; }
  .duebylaw-home .public-ledger-row .entry-main strong { white-space: normal; overflow-wrap: anywhere; }
  .duebylaw-home .panel-footer-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duebylaw-home .panel-footer-actions .btn { white-space: normal; overflow-wrap: anywhere; }
}
