/* LedgerWeeks homepage. Colours, radii and type come from DESIGN.md (light theme).
   Section spacing (--gap-section) is the one addition: a marketing page needs more air than a ledger screen. */
:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --ink: #1d2433;
  --muted: #667085;
  --line: #e4e7ec;
  --field: #cfd4dc;
  --accent: #2f4b9a;
  --on-accent: #fff;
  --good: #1f7a4d;
  --good-bg: #dcf2e5;
  --info-bg: #e8eefc;
  --info-line: #c7d4f5;
  --r-card: 10px;
  --r-btn: 7px;
  --wrap: 1120px;
  --pad: 20px;
  --gap-section: 56px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 768px) { :root { --pad: 34px; --gap-section: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--font);
}
@media (min-width: 1024px) { body { font-size: 18px; } }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: var(--r-btn); }
.skip:focus { left: 8px; z-index: 10; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand.small { font-size: 17px; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent);
  background-image: linear-gradient(var(--on-accent), var(--on-accent)), linear-gradient(var(--on-accent), var(--on-accent));
  background-size: 12px 2px, 8px 2px; background-position: 5px 7px, 5px 13px; background-repeat: no-repeat; }
.top nav { display: flex; align-items: center; gap: 8px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; border-radius: var(--r-btn); }
.top nav a:hover { text-decoration: underline; }
.top nav a.signin { border: 1px solid var(--field); background: var(--card); font-weight: 600; }
.hide-sm { display: none !important; }
@media (min-width: 640px) { .hide-sm { display: inline-flex !important; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 18px;
  border-radius: var(--r-btn); text-decoration: none;
}
.btn:hover { opacity: .92; text-decoration: none; }
.link-strong { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 18px; }

/* Sections */
main > section { padding: var(--gap-section) 0; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 28px; letter-spacing: -.01em; }
@media (min-width: 768px) { h2 { font-size: 34px; } }
h3 { font-size: 19px; }
.sub { color: var(--muted); margin-top: 10px; max-width: 62ch; }

/* Hero */
.hero { padding-top: 48px; }
.hero h1 { font-size: 34px; letter-spacing: -.02em; max-width: 16ch; }
@media (min-width: 640px) { .hero h1 { font-size: 46px; } }
@media (min-width: 1024px) { .hero { padding-top: 96px; } .hero h1 { font-size: 58px; } }
.lede { margin-top: 18px; font-size: 19px; max-width: 54ch; }
@media (min-width: 1024px) { .lede { font-size: 21px; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }
.actions .btn { width: 100%; }
@media (min-width: 480px) { .actions .btn { width: auto; } }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.proof li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; white-space: nowrap; }

/* Cards */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 26px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) {
  .cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; }
.band .card { background: var(--bg); }
.card p { color: var(--muted); margin-top: 6px; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 26px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; } }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 999px; background: var(--info-bg); border: 1px solid var(--info-line); color: var(--accent); font-weight: 700;
}
.steps p { color: var(--muted); margin-top: 6px; }

/* Pricing */
.price {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 26px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 20px;
}
@media (min-width: 768px) { .price { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 34px; gap: 26px 34px; } }
.tier .amt { font-size: 44px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier:first-child .amt { color: var(--good); }
.tier .what { margin-top: 2px; }
.incl { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 20px; }
.incl li { padding-left: 26px; position: relative; }
.incl li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
@media (min-width: 768px) { .incl { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price .btn { justify-self: start; }
@media (max-width: 479px) { .price .btn { justify-self: stretch; } }
.note { margin-top: 14px; background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 8px; padding: 18px 20px; }
.note h3 { font-size: 17px; }
.note p { margin-top: 6px; }
.ex-h { margin-top: var(--gap-section); font-size: 22px; }

/* Year table */
.scroll { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-card); max-width: 640px; }
.year { width: 100%; border-collapse: collapse; background: var(--card); font-size: 16px; }
.year th, .year td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.year thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; white-space: normal; vertical-align: bottom; }
.year tbody th { font-weight: 600; }
@media (max-width: 479px) { .year th, .year td { padding: 9px 8px; } }
.year .n { text-align: right; font-variant-numeric: tabular-nums; }
.year .free { color: var(--good); font-weight: 600; }
.year tr.quiet td:not(.free) { color: var(--muted); }
.year tfoot th, .year tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.fine { color: var(--muted); font-size: 15px; margin-top: 12px; }

/* FAQ */
.faq { margin-top: 26px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; max-width: 62ch; }

/* Closing call to action */
.end { text-align: center; }
.end .sub { margin: 10px auto 26px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 max(34px, env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .foot-in { flex-direction: row; align-items: center; justify-content: space-between; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

/* Early access and coming-soon labels */
.early { margin-top: 14px; color: var(--muted); font-size: 16px; }
.soon {
  display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--info-bg); border: 1px solid var(--info-line); color: var(--accent);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
