/* Ledgeforge public website. Brand colours come from tokens.css (brand pack, unedited); this file only lays out. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--lf-font);
  font-weight: var(--lf-weight-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--lf-ink);
  background: var(--lf-mist);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lf-forest); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lf-ember); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: var(--lf-weight-heading); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--lf-moss); }
.tagline { color: var(--lf-moss); font-weight: 500; font-size: 1.15rem; margin: 0.25em 0 1em; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--lf-surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--lf-surface); border-bottom: 1px solid var(--lf-rule); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; margin-left: auto; }
.nav a { text-decoration: none; color: var(--lf-ink); font-weight: 500; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--lf-forest); text-decoration: underline; text-decoration-thickness: 2px; }
.nav .links { display: contents; }
.nav details { display: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--lf-on-primary); text-decoration: none; padding: 8px 14px; }
@media (max-width: 760px) {
  .nav { margin-left: auto; }
  .nav .links { display: none; }
  .nav details { display: block; position: relative; }
  .nav summary { list-style: none; cursor: pointer; font-weight: 600; padding: 8px 12px; border: 1px solid var(--lf-rule); border-radius: 8px; }
  .nav summary::-webkit-details-marker { display: none; }
  .nav details[open] .menu { display: flex; }
  .nav .menu {
    display: none; flex-direction: column; position: absolute; right: 0; top: calc(100% + 8px); z-index: 5;
    background: var(--lf-surface); border: 1px solid var(--lf-rule); border-radius: 12px; padding: 8px 16px; min-width: 200px;
  }
  .nav .menu a { padding: 10px 0; border-bottom: 1px solid var(--lf-rule); }
  .nav .menu a:last-child { border-bottom: 0; }
  .brand img { height: 28px; }
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; border-radius: 8px; padding: 11px 20px;
  border: 1px solid var(--lf-forest); line-height: 1.2;
}
.btn-primary { background: var(--lf-forest); color: var(--lf-on-primary); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--lf-forest); }
.btn-small { padding: 8px 14px; font-size: 0.95rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.25em; }

/* Sections */
.hero { padding: 64px 0 48px; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; }
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--lf-rule); }
.product-head img { height: 40px; width: auto; margin-bottom: 12px; }
.note {
  background: var(--lf-surface); border: 1px solid var(--lf-rule); border-left: 4px solid var(--lf-ember);
  border-radius: 8px; padding: 14px 18px; margin: 1.5em 0; max-width: 720px;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--lf-surface); border: 1px solid var(--lf-rule); border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column;
}
.card .mark { width: 44px; height: 44px; margin-bottom: 14px; }
.card h3 { margin-bottom: 0.15em; }
.card .tagline { font-size: 1rem; margin: 0 0 0.75em; }
.card .more { margin-top: auto; font-weight: 600; }
.card.plan .price { font-size: 2rem; font-weight: 800; margin: 0.2em 0 0; }
.card.plan .per { color: var(--lf-moss); font-size: 0.95rem; margin-bottom: 1em; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 26px; position: relative; margin: 0 0 0.5em; }
ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 2px;
  background: var(--lf-ember);
}
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 40px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
table { border-collapse: collapse; width: 100%; background: var(--lf-surface); border: 1px solid var(--lf-rule); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--lf-rule); vertical-align: top; }
th { font-weight: 700; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

@media (max-width: 560px) {
  th, td { padding: 10px 8px; font-size: 0.9rem; }
  .hero { padding: 40px 0 32px; }
}

/* Footer */
.site-footer { background: var(--lf-surface); border-top: 1px solid var(--lf-rule); margin-top: 56px; padding: 32px 0 40px; font-size: 0.92rem; color: var(--lf-moss); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-footer h2 { font-size: 0.95rem; color: var(--lf-ink); margin-bottom: 0.6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.35em; }
.site-footer a { color: var(--lf-moss); }
.site-footer a:hover { color: var(--lf-forest); }
.site-footer .cols picture img { height: 28px; width: auto; }
.site-footer .legal-line { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--lf-rule); }
