/* ui/site.css — the marketing site layout (docs/DESIGN.md, section 3).
   1180px max, 34px gutters, 12-column grid, 24px gap, left-aligned, sections
   separated by 1.5px ink rules. Components come from ledger.css. */
.wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--site-gap); align-items: start; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.bar { display: flex; align-items: center; gap: 28px; padding: 18px 0; border-bottom: var(--rule-structure) solid var(--ink); }
.bar__mark { font-weight: 700; font-size: var(--fs-h4); letter-spacing: var(--ls-display); color: var(--ink); text-decoration: none; }
.bar nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.bar nav a { color: var(--ink); text-decoration: none; }
.bar nav a:hover { color: var(--blue-2); text-decoration: underline; }

.section { padding: 56px 0; border-bottom: var(--rule-structure) solid var(--ink); }
.section > .wrap > h2 { margin-bottom: 22px; }
.site h1 { font-size: var(--fs-h1-site); line-height: var(--lh-h1-site); font-weight: 700; max-width: 14ch; margin-bottom: 22px; }
.hero { padding: 64px 0 60px; }
.hero .lead { margin-bottom: 26px; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero__note { font-size: var(--fs-caption); color: var(--ink-2); }
.hero__doc { padding-top: 22px; }

/* How it works: three columns divided by 1px rules; the rule above the active column
   extends (motion 3, ui/motion.css). */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.how__col { padding: 20px 24px 8px 0; border-left: var(--rule-inside) solid var(--rule); padding-left: 24px; position: relative; }
.how__col:first-child { border-left: 0; padding-left: 0; }
.how__col .how__rule { display: block; height: var(--rule-structure); background: var(--ink); width: 100%; margin-bottom: 16px; }
.how__col h4 { margin-bottom: 8px; }
.how__col p { color: var(--ink-2); margin: 0; }
.how__shot { display: block; margin-top: 16px; }
.how__shot img { display: block; width: 100%; height: auto; border: var(--rule-structure) solid var(--ink); box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow); margin-bottom: var(--shadow-offset); }
.how__step { font-family: var(--font-chrome); letter-spacing: var(--ls-chrome); font-size: var(--fs-caption); color: var(--ink-3); display: block; margin-bottom: 6px; }

/* The problem: four figures in one ledger row. */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule-structure) solid var(--ink); border-bottom: var(--rule-structure) solid var(--ink); }
.figures > div { padding: 18px 22px 18px 0; border-left: var(--rule-inside) solid var(--rule); padding-left: 22px; }
.figures > div:first-child { border-left: 0; padding-left: 0; }
.figures .fig { display: block; font-family: var(--font-chrome); font-weight: 700; font-size: var(--fs-h2); letter-spacing: 0; line-height: 1.1; color: var(--ink); }
.figures .what { display: block; color: var(--ink-2); margin-top: 6px; max-width: 24ch; }
.figures__source { margin-top: 10px; }

.pricing__doc .doc__label { font-size: var(--fs-lead); }
.after { margin-top: 14px; }

.foot { padding: 26px 0 40px; font-family: var(--font-chrome); letter-spacing: var(--ls-chrome); font-size: var(--fs-caption); color: var(--ink-2); }
.foot a { color: var(--ink-2); }

@media (max-width: 900px) {
  .col-6, .col-4, .col-8 { grid-column: span 12; }
  .site h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); max-width: none; }
  .how, .figures { grid-template-columns: 1fr; }
  .how__col, .figures > div { border-left: 0; padding-left: 0; }
  .how__col + .how__col, .figures > div + div { border-top: var(--rule-inside) solid var(--rule); }
  .hero { padding: 40px 0; }
  .section { padding: 40px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .bar nav { gap: 14px; }
}

/* The film: one Document holding the video. Native controls, no autoplay, nothing loads
   until play (preload none); the poster is a WebP of the held-to-light frame. */
.film { max-width: 100%; }
.film__body { padding: 0; background: var(--paper-2); }
.film__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--paper-2); }
