/* lawcuments.com — brand tokens & chrome primitives (Direction B, "Legal Pad").
   Decided 2026-07-10; spec: docs/superpowers/specs/2026-07-10-marketing-front-door-design.md

   TWO DELIVERY PATHS — keep this file self-contained and portable:
     1. Inlined FIRST into the site's content-hashed CSS bundle (base.njk).
     2. Served byte-identical at the STABLE URL /assets/css/brand.css for the
        basilica app's runtime consumption (Story 2.1.2; docs/seam-contract.md).
   Rules: tokens + brand-wide primitives ONLY — page/section layout lives in
   style.css. Font URLs are root-relative on purpose: a cross-origin consumer
   resolves them against THIS stylesheet's origin (lawcuments.com). */

/* ── Self-hosted faces (SIL OFL — see src/assets/fonts/OFL-*.txt) ─────────── */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  /* palette (spec: Visual direction, Direction B) */
  --lc-canary: #FFE977;      /* pad panels, highlight marks */
  --lc-ink: #1E2A3A;         /* type, CTAs */
  --lc-rule-blue: #9CB6D8;   /* pad rule lines, link underlines */
  --lc-margin-red: #D9503F;  /* margin line, focus rings, arrows */
  --lc-paper: #FEFEF9;       /* page ground */
  /* derived */
  --lc-ink-soft: #3C4859;    /* body copy on paper */
  --lc-ink-hover: #2E415C;   /* CTA hover */
  --lc-hairline: #E0DCCC;    /* card borders, separators */
  /* type roles */
  --lc-display: "Jost", Futura, "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  --lc-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lc-hand: "Caveat", "Noteworthy", cursive;
  /* rhythm: pad rule spacing — type in pad panels sits ON these lines */
  --lc-line: 30px;
  --lc-measure: 64rem;
}

/* ── Accessibility floor: focus & reduced motion ──────────────────────────── */
:focus-visible {
  outline: 3px solid var(--lc-margin-red);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--lc-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  background: var(--lc-ink);
  color: #fff;
  text-decoration: none;
  padding: 0.8125rem 1.5rem;
  border-radius: 6px;
}
.btn:hover {
  background: var(--lc-ink-hover);
}
.btn--quiet {
  background: transparent;
  color: var(--lc-ink);
  border: 2px solid var(--lc-ink);
}
.btn--quiet:hover {
  background: var(--lc-canary);
  color: var(--lc-ink);
}
.btn--small {
  font-size: 0.9rem;
  padding: 0.55rem 1.05rem;
}

/* ── Pad panel — the signature surface ────────────────────────────────────── */
.pad-lines {
  position: relative;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--lc-line) - 1px),
      var(--lc-rule-blue) calc(var(--lc-line) - 1px),
      var(--lc-rule-blue) var(--lc-line)
    ),
    var(--lc-canary);
}
.pad-lines--margin::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 62px;
  width: 4px;
  border-left: 1px solid var(--lc-margin-red);
  border-right: 1px solid var(--lc-margin-red);
}
/* lawcuments.com — site styles (Direction B, "Legal Pad").
   Consumes the tokens in brand.css, which is bundled FIRST in base.njk —
   declaration order matters. Page/section layout lives here; tokens and
   brand-wide primitives (.btn, .pad-lines, focus/motion) live in brand.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--lc-body);
  color: var(--lc-ink);
  background: var(--lc-paper);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--lc-ink);
}

main {
  flex: 1 0 auto;
  width: 100%;
}

/* Accessibility: visible only when focused (skip link). */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--lc-ink);
  color: #fff;
}
.skip-link:focus {
  left: 0;
  z-index: 10;
}

/* Shared section shell */
.section {
  max-width: var(--lc-measure);
  margin-inline: auto;
  padding: 3rem 1.75rem;
}
.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e7480;
  margin: 0 0 0.5rem;
}
.section__title {
  font-family: var(--lc-display);
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0 0 1.5rem;
}

/* Header / nav */
.site-header__inner {
  max-width: var(--lc-measure);
  margin-inline: auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-header__brand {
  font-family: var(--lc-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}
.site-header__brand u {
  text-decoration-color: var(--lc-margin-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.site-nav {
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.site-nav__list a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav__list a:not(.btn):hover {
  text-decoration: underline;
  text-decoration-color: var(--lc-rule-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.site-nav__list .btn {
  color: #fff;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  border-top: 2px solid var(--lc-ink);
  font-size: 0.85rem;
  color: #6e7480;
}
.site-footer__inner {
  max-width: var(--lc-measure);
  margin-inline: auto;
  padding: 1.1rem 1.75rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: baseline;
}
.site-footer__inner a {
  color: var(--lc-ink);
}
.site-footer__legal {
  margin: 0;
}
.site-footer__disclaimer {
  margin: 0;
  flex-basis: 100%;
}

/* ── Hero: pad → typed split ─────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(300px, 44%) 1fr;
}
.hero__pad {
  padding: calc(var(--lc-line) * 1.5) 2rem calc(var(--lc-line) * 1.5) 86px;
  min-height: 340px;
  background-position: 0 8px;
  border-right: 1px solid #e8d98a;
}
.hero__scribble-date {
  font-family: var(--lc-hand);
  font-weight: 600;
  font-size: 1rem;
  color: #7a6a2f;
  line-height: var(--lc-line);
  margin: 0 0 var(--lc-line);
}
.hero__scribble {
  font-family: var(--lc-hand);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: var(--lc-line);
  color: #33415c;
  transform: rotate(-0.6deg);
  margin: 0;
}
.hero__scribble em {
  font-style: normal;
  background: #fff68f;
}
.hero__becomes {
  position: absolute;
  right: -21px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lc-margin-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 2px 8px #0002;
}
.hero__typed {
  padding: calc(var(--lc-line) * 1.5) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__title {
  font-family: var(--lc-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.hero__underline {
  box-shadow: inset 0 -0.28em 0 var(--lc-canary);
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--lc-ink-soft);
  max-width: 46ch;
  margin: 0;
}
.hero__doc {
  margin-top: 1.4rem;
  border: 1px solid #d8d5c8;
  background: #fff;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #33415c;
  max-width: 52ch;
}
.hero__doc b {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e7480;
  margin-bottom: 0.4rem;
}
.hero__typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  animation: lc-type-in 1.4s steps(47) 0.4s both;
}
@keyframes lc-type-in {
  from { width: 0; }
  to { width: 100%; }
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

/* ── Why / Features / Pricing / CTA band / Questions ─────────────────────── */
.why__grid,
.features__grid {
  display: grid;
  /* 215px minimum lets all four feature cards share one row inside the 64rem
     measure (230px forced a 3+1 orphan); the 3-item why-grid is unaffected. */
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.15rem;
}
.why__item h3,
.card h3 {
  font-family: var(--lc-display);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.why__item p,
.card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--lc-ink-soft);
  margin: 0;
}
.card {
  background: #fff;
  border: 1px solid var(--lc-hairline);
  border-radius: 4px;
  padding: 0 1.1rem 1.1rem;
  box-shadow: 0 1px 3px #0000000a;
}
.card__rules {
  height: 26px;
  border-bottom: 1px solid var(--lc-rule-blue);
  box-shadow: 0 8px 0 -7px var(--lc-rule-blue);
  margin: 0 -1.1rem 0.9rem;
  background: #fbfaf3;
  border-radius: 4px 4px 0 0;
}
.pricing__list {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 1.05rem;
}
.pricing__list li {
  line-height: 1.9;
}
.pricing__more {
  color: var(--lc-ink-soft);
  margin: 0 0 1.25rem;
}
.cta-band {
  padding: calc(var(--lc-line) * 1.3) 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.cta-band__lede {
  font-family: var(--lc-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: var(--lc-line);
  margin: 0;
}
.questions p {
  margin: 0 0 0.5rem;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__pad {
    border-right: none;
    border-bottom: 1px solid #e8d98a;
  }
  .hero__becomes {
    right: 24px;
    top: auto;
    bottom: -21px;
    transform: none;
  }
  /* Narrow screens can't fit the one-line typewriter reveal — show the
     generated line statically, wrapped, instead of clipping it. */
  .hero__typing {
    white-space: normal;
    animation: none;
  }
}

/* ── Prose pages (about) ─────────────────────────────────────────────────── */
.prose {
  max-width: 42rem;
}
.prose p {
  color: var(--lc-ink-soft);
  margin: 0 0 1.1rem;
}