/* Public marketing site — "the register". Requires tokens.css and fonts.css
   loaded first. See tokens.css's "Marketing site only" block for the palette/
   type this draws from, and its comment for why: a Single Central Record is
   literally a statutory register, so these pages borrow the visual grammar of
   a well-kept ledger — rules instead of shadow-cards, entries instead of icon
   grids, one red seal as the single bold moment — rather than a generic SaaS
   deck. The logged-in product (app.css) is untouched by any of this. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-register);
  color: var(--mkt-ink);
  background: var(--mkt-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; color: var(--mkt-ink); letter-spacing: -0.006em; }

/* ---------------------------------------------------------------- nav --- */
.mkt-nav {
  position: sticky; top: 0; z-index: 10; background: rgba(250, 249, 245, 0.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--mkt-rule);
}
.mkt-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.mkt-nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 1.15rem; color: var(--mkt-ink); min-width: 0; flex: 1 1 auto; }
.mkt-nav .brand .mark {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--mkt-ink); color: var(--mkt-paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1rem;
}
.mkt-nav .brand .brand-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-nav .links { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; color: var(--mkt-ink-muted); flex-shrink: 0; }
.mkt-nav .links a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.mkt-nav .links a:hover { color: var(--mkt-ink); border-bottom-color: var(--mkt-rule-strong); }
.mkt-nav .cta { display: flex; gap: 10px; flex-shrink: 0; }

/* --------------------------------------------------------------- btns --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: 3px; border: 1px solid transparent;
  font-family: var(--font-register); font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-primary { background: var(--mkt-ink); color: var(--mkt-paper); }
.btn-primary:hover { background: #202f52; }
.btn-outline { background: transparent; border-color: var(--mkt-rule-strong); color: var(--mkt-ink); }
.btn-outline:hover { border-color: var(--mkt-ink); }
.btn-stamp { background: var(--mkt-stamp); color: #fdf6f0; }
.btn-stamp:hover { background: var(--mkt-stamp-dark); }

/* --------------------------------------------------------------- hero --- */
.hero { padding: 68px 0 84px; border-bottom: 1px solid var(--mkt-rule); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.hero-copy { min-width: 0; padding-top: 8px; }
.hero .kicker {
  font-family: var(--font-register); font-size: 0.86rem; font-weight: 600; color: var(--mkt-stamp);
  margin: 0 0 18px; display: block;
}
.hero h1 { font-size: 2.9rem; line-height: 1.14; margin: 0 0 22px; font-weight: 700; max-width: 15ch; }
.hero p.lede { font-family: var(--font-register); font-size: 1.08rem; color: var(--mkt-ink-muted); max-width: 46ch; margin: 0 0 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero .trust-row {
  display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid var(--mkt-rule); padding-top: 18px;
}
.hero .trust-row span {
  font-family: var(--font-register); font-size: 0.83rem; color: var(--mkt-ink-muted);
  padding: 0 18px 0 0; margin-right: 18px; border-right: 1px solid var(--mkt-rule);
}
.hero .trust-row span:last-child { border-right: none; }

/* The "register entry" mockup — real ruled HTML, not an abstract dashboard
   illustration. This is the page's one hero visual, standing in for what
   the product actually produces: a legible, ruled register of people and
   checks, not a chart. */
.register-card {
  background: var(--mkt-panel); border: 1px solid var(--mkt-rule-strong); position: relative;
}
.register-card .rc-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--mkt-ink);
}
.register-card .rc-head .rc-title { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; min-width: 0; }
.register-card .rc-head .rc-meta { font-size: 0.74rem; color: var(--mkt-ink-faint); font-family: var(--font-register); white-space: nowrap; flex-shrink: 0; }
.register-card table { width: 100%; border-collapse: collapse; }
.register-card th {
  text-align: left; font-family: var(--font-register); font-weight: 600; font-size: 0.72rem;
  color: var(--mkt-ink-faint); padding: 10px 20px 8px; border-bottom: 1px solid var(--mkt-rule);
}
.register-card td {
  padding: 11px 20px; border-bottom: 1px solid var(--mkt-rule); font-size: 0.86rem;
  font-family: var(--font-register);
}
.register-card tr:last-child td { border-bottom: none; }
.register-card td.rc-name { font-weight: 600; }
.register-card td.rc-status-ok { color: var(--mkt-verified); white-space: nowrap; }
.register-card td.rc-status-pending { color: var(--mkt-ink-faint); white-space: nowrap; }
.register-card .rc-foot {
  padding: 14px 20px; font-size: 0.78rem; color: var(--mkt-ink-muted); font-family: var(--font-register);
  border-top: 1px solid var(--mkt-rule);
}
.register-seal {
  position: absolute; top: -14px; right: -14px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--mkt-stamp); color: #fdf6f0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; font-family: var(--font-register); font-weight: 700;
  font-size: 0.62rem; line-height: 1.2; letter-spacing: 0.02em; transform: rotate(8deg);
  box-shadow: 0 6px 16px -4px rgba(156, 43, 43, 0.5);
}
.register-seal span { display: block; }
.register-seal .seal-big { font-size: 0.95rem; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; font-size: 2.3rem; }
  .hero p.lede { max-width: none; }
}

/* ------------------------------------------------------------ sections --- */
.section { padding: 72px 0; border-bottom: 1px solid var(--mkt-rule); }
.section:last-of-type { border-bottom: none; }
.section-alt { background: var(--mkt-panel); }
.section-head { max-width: 640px; margin: 0 0 42px; }
.section-head .kicker { font-family: var(--font-register); font-size: 0.86rem; font-weight: 600; color: var(--mkt-stamp); margin: 0 0 10px; display: block; }
.section-head h2 { font-size: 1.9rem; margin: 0 0 12px; font-weight: 700; }
.section-head p { color: var(--mkt-ink-muted); font-family: var(--font-register); font-size: 1rem; margin: 0; max-width: 60ch; }

/* Register-style entry list — replaces icon-card grids for enumerable
   content (checks, features, package/framework listings). Two columns on
   wide screens, one on narrow; each entry separated by a rule, not a card. */
.entry-list { border-top: 1px solid var(--mkt-rule); }
.entry-list.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.entry {
  padding: 22px 0; border-bottom: 1px solid var(--mkt-rule);
}
.entry h3 { font-family: var(--font-register); font-size: 1rem; font-weight: 700; margin: 0 0 6px; color: var(--mkt-ink); }
.entry p { margin: 0; color: var(--mkt-ink-muted); font-size: 0.92rem; font-family: var(--font-register); }
.entry .entry-tag {
  display: inline-block; font-family: var(--font-register); font-size: 0.72rem; font-weight: 700;
  padding: 2px 9px; margin-bottom: 8px; border: 1px solid currentColor;
}
.entry .entry-tag.free { color: var(--mkt-verified); }
.entry .entry-tag.available {
  color: var(--mkt-verified); background: var(--mkt-verified-bg);
  border-color: var(--mkt-verified-bg); border-radius: var(--radius-pill);
}
.entry .entry-tag.soon { color: var(--mkt-ink-faint); }

/* An entry that carries a product screenshot: spans both columns, copy left, picture right. */
.entry.entry-feature {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  column-gap: 40px; align-items: start;
}
.entry.entry-feature figure { margin: 0; }
.entry.entry-feature img {
  display: block; width: 100%; height: auto; border: 1px solid var(--mkt-rule);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.entry.entry-feature figcaption {
  margin-top: 8px; font-family: var(--font-register); font-size: 0.8rem; color: var(--mkt-ink-faint);
}

@media (max-width: 780px) {
  .entry-list.two-col { grid-template-columns: 1fr; column-gap: 0; }
  .entry.entry-feature { grid-template-columns: 1fr; row-gap: 16px; }
}

/* Free SCR headline block: copy + statutory-checks register on the left,
   the price seal on the right. The one other bold moment on the page,
   deliberately reusing the hero's seal motif rather than inventing a
   second decorative device. */
.free-block { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding: 40px 0; border-bottom: 1px solid var(--mkt-ink); border-top: 1px solid var(--mkt-ink); margin-bottom: 48px; }
.free-block h3 { font-size: 1.5rem; margin: 0 0 14px; }
.free-block > .fb-copy > p { color: var(--mkt-ink-muted); font-family: var(--font-register); margin: 0 0 20px; max-width: 60ch; }
.fb-checks { list-style: none; margin: 0 0 24px; padding: 0; columns: 2; column-gap: 28px; }
.fb-checks li {
  font-family: var(--font-register); font-size: 0.86rem; padding: 7px 0; border-bottom: 1px solid var(--mkt-rule);
  break-inside: avoid;
}
.fb-price { text-align: center; border-left: 1px solid var(--mkt-rule); padding-left: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fb-price .seal-large {
  width: 108px; height: 108px; border-radius: 50%; background: var(--mkt-stamp); color: #fdf6f0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 16px;
  font-family: var(--font-register); transform: rotate(-6deg);
  box-shadow: 0 10px 24px -8px rgba(156, 43, 43, 0.5);
}
.fb-price .seal-large .amount { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.fb-price .seal-large .per { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em; margin-top: 3px; }
.fb-price p { margin: 0; color: var(--mkt-ink-muted); font-family: var(--font-register); font-size: 0.86rem; }

@media (max-width: 820px) {
  .free-block { grid-template-columns: 1fr; }
  .fb-price { border-left: none; border-top: 1px solid var(--mkt-rule); padding: 24px 0 0; }
  .fb-checks { columns: 1; }
}

.packages-subhead { font-family: var(--font-serif); font-size: 1.3rem; margin: 0 0 4px; font-weight: 700; }

/* ------------------------------------------------------------- steps --- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { position: relative; padding-left: 48px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--mkt-ink); color: var(--mkt-paper); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1rem;
}
.step h3 { font-family: var(--font-register); margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.step p { margin: 0; color: var(--mkt-ink-muted); font-family: var(--font-register); font-size: 0.9rem; }

/* --------------------------------------------------------------- cta --- */
.cta-band { padding: 56px 0 8px; }
.cta-band h2 { font-size: 1.7rem; margin: 0 0 12px; }
.cta-band p { color: var(--mkt-ink-muted); font-family: var(--font-register); margin: 0 0 26px; max-width: 55ch; }

/* ------------------------------------------------------------ footer --- */
.mkt-footer { border-top: 1px solid var(--mkt-rule); padding: 36px 0; color: var(--mkt-ink-muted); font-size: 0.84rem; font-family: var(--font-register); }
.mkt-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.mkt-footer a:hover { color: var(--mkt-ink); }

/* ============================================================ auth ==== */
/* Overrides scoped to login.php/register.php only — app.css's own
   .auth-shell/.auth-card (shared with reset-password.php, MFA setup, etc.)
   is untouched; these rules load AFTER app.css on exactly these two pages
   and win on source order for the same selectors, without redefining them
   for any page that doesn't also load marketing.css. */
.auth-shell.mkt-auth {
  background: var(--mkt-paper); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.mkt-auth .auth-card {
  background: var(--mkt-panel); border: 1px solid var(--mkt-rule-strong); border-radius: 0;
  box-shadow: none; padding: 44px 40px;
}
.mkt-auth .auth-card .brand {
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--mkt-ink); margin-bottom: 28px;
}
.mkt-auth .auth-card .brand .mark {
  width: 30px; height: 30px; border-radius: 0; background: var(--mkt-ink); color: var(--mkt-paper);
  box-shadow: none; font-family: var(--font-serif);
}
.mkt-auth .auth-card h2 { font-family: var(--font-serif); font-weight: 700; }
.mkt-auth .auth-card .foot-link a { border-bottom: 1px solid var(--mkt-rule-strong); }
.mkt-auth .auth-card .btn-primary { background: var(--mkt-ink); border-radius: 3px; }
.mkt-auth .auth-card .btn-primary:hover { background: #202f52; }

@media (max-width: 720px) {
  .hero h1 { font-size: 1.9rem; }
  .mkt-nav .links { display: none; }
  .mkt-nav .brand { font-size: 1rem; }
  .mkt-nav .cta { gap: 8px; }
  .mkt-nav .cta .btn { padding: 12px 16px; font-size: 0.85rem; min-height: 44px; }
  .free-block { padding: 28px 0; }
  .mkt-auth .auth-card { padding: 32px 24px; }
  .register-card .rc-head { padding-right: 56px; }
  .register-card .rc-head .rc-meta { display: none; }
  .register-seal { width: 52px; height: 52px; font-size: 0.55rem; top: -10px; right: -10px; }
  .register-seal .seal-big { font-size: 0.8rem; }
}
