/* ============================================================
   Prearrive — global stylesheet.
   Ported from the Claude Design handoff (overview.html canvas):
   tokens + hero-graphic + the consolidated marketing/app/sign shell.
   No framework. Design tokens in :root. Fonts loaded via <link> in
   each HTML <head> (Inter, Instrument Serif, JetBrains Mono).
   ============================================================ */

:root {
  /* ---------- Base palette ---------- */
  --c-bg:       #ffffff;   /* page background */
  --c-ink:      #0e1a2b;   /* primary text — near-black with a navy lean */
  --c-muted:    #4a5a70;   /* secondary text, captions, table sub-rows */
  --c-line:     #e3e8ef;   /* hairlines, borders, dividers */
  --c-soft:     #f5f7fa;   /* low-emphasis surface, footer bg, draft badges */
  --c-accent:   #1a3d5f;   /* deep navy — the brand color, CTAs and links */
  --c-accent-2: #a4b69a;   /* dusty sage — calm host-side accent. Used liberally. */
  --c-accent2:  #a4b69a;   /* legacy alias — older code referenced --c-accent2 */

  /* Semantic state colors (status badges, form validation) */
  --c-good:    #1f7a4d;
  --c-warn:    #b54708;
  --c-danger:  #b42318;

  /* Tinted surfaces for status badges */
  --c-good-soft:   #e3f5ec;
  --c-warn-soft:   #fff1e0;
  --c-danger-soft: #fde2e1;
  --c-accent-soft: #e6f0fb;

  /* ---------- Semantic foreground aliases ---------- */
  --fg-1: var(--c-ink);
  --fg-2: var(--c-muted);
  --fg-on-accent: #ffffff;
  --fg-link: var(--c-accent);

  /* ---------- Surfaces ---------- */
  --bg-page:  var(--c-bg);
  --bg-soft:  var(--c-soft);
  --bg-card:  var(--c-bg);
  --bg-input: var(--c-bg);

  /* ---------- Type ---------- */
  --f-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-display:  clamp(2rem, 4vw + 1rem, 3.4rem);   /* hero h1 */
  --t-h1:       1.5rem;                            /* dashboard h1 */
  --t-h2:       1.6rem;                            /* section h2 */
  --t-h3:       1.1rem;                            /* card h3 */
  --t-body:     1rem;                              /* default paragraph */
  --t-sub:      1.25rem;                           /* hero subhead */
  --t-tiny:     0.85rem;                           /* fine print, captions */
  --t-micro:    0.78rem;                           /* badge text */

  --lh-tight:   1.2;
  --lh-body:    1.55;

  --tracking-tight: -0.01em;

  /* ---------- Spacing / shape ---------- */
  --radius:      10px;
  --radius-sm:   8px;
  --radius-pill: 999px;

  --pad:    1.25rem;
  --w-page: 1100px;
  --w-app:  960px;
  --w-sign: 600px;

  /* ---------- Elevation ---------- */
  --shadow: 0 1px 2px rgba(14, 26, 43, 0.05),
            0 4px 12px rgba(14, 26, 43, 0.06);
  --shadow-featured: 0 0 0 1px var(--c-accent-2),
                     0 1px 2px rgba(14, 26, 43, 0.05),
                     0 4px 12px rgba(14, 26, 43, 0.06);
}

/* ============================================================
   Base elements + semantic type
   ============================================================ */
* { box-sizing: border-box; }
html { font-family: var(--f-sans); color: var(--fg-1); background: var(--bg-page); }
body { margin: 0; line-height: var(--lh-body); min-height: 100vh; -webkit-font-smoothing: antialiased; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }
a { color: inherit; }
button { font: inherit; }

.t-display, .h1-hero {
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.t-h1, h1 {
  font-size: var(--t-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.t-h2, h2 {
  font-size: var(--t-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.t-h3, h3 {
  font-size: var(--t-h3);
  line-height: var(--lh-tight);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.t-sub { font-size: var(--t-sub); color: var(--fg-2); line-height: var(--lh-body); }
.t-body, p { font-size: var(--t-body); line-height: var(--lh-body); margin: 0 0 1rem; }
.t-tiny, .tiny { font-size: var(--t-tiny); }
.t-micro       { font-size: var(--t-micro); font-weight: 600; }
.t-mono, pre { font-family: var(--f-mono); font-size: 0.9em; }
.muted { color: var(--fg-2); }
.link, a.link-text { color: var(--fg-link); text-decoration: underline; text-underline-offset: 2px; }

/* Instrument Serif italic — the display flourish.
   Pattern: <h1>Factual setup. <em>Italic outcome.</em></h1> */
.t-display em, h1 em, h2 em, .serif-italic {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  font-size: 1.08em;
}

/* ---------- toggleable italic-serif accent ---------- */
:root.no-serif h1 em, :root.no-serif h2 em, :root.no-serif .t-display em {
  font-family: var(--f-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: var(--tracking-tight);
}

/* ---------- toggleable section-label icons ---------- */
:root.no-section-icons .section-label svg { display: none; }
:root.no-section-icons .section-label { padding-left: 0; }

/* ============================================================
   Sticky thin top nav with subtle scroll shadow
   ============================================================ */
.topnav-wrap {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.topnav-wrap.scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 1px 0 rgba(14, 26, 43, 0.02), 0 6px 16px rgba(14, 26, 43, 0.04);
}
.topnav {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--w-page); margin: 0 auto;
  padding: 0.7rem var(--pad);
  height: 56px;
}
.topnav .brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; text-decoration: none; color: var(--c-ink);
  font-size: 1.02rem; letter-spacing: -0.01em;
  cursor: pointer;
}
.topnav .brand .mark {
  width: 22px; height: 22px; border-radius: 5px; flex: 0 0 22px;
  background: var(--c-accent); position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.topnav .brand .mark::before {
  content: ''; width: 11px; height: 14px; background: #fff; border-radius: 1.5px;
}
.topnav .brand .mark::after {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'><path d='M2 6 Q 8 -1, 12 4 T 22 4' stroke='%23a4b69a' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>") no-repeat center / contain;
}
.topnav nav.main { display: flex; align-items: center; gap: 1.25rem; margin-left: 0.5rem; }
.topnav nav.main a {
  text-decoration: none; color: var(--c-muted); cursor: pointer;
  font-size: 0.92rem; padding: 0.35rem 0; position: relative;
}
.topnav nav.main a:hover { color: var(--c-ink); }
.topnav nav.main a.active { color: var(--c-ink); }
.topnav nav.main a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1.5px; background: var(--c-accent-2);
}
.topnav .spacer { flex: 1; }
.topnav .nav-right { display: flex; align-items: center; gap: 0.75rem; }
.topnav .nav-right .signin {
  text-decoration: none; color: var(--c-muted); font-size: 0.9rem; cursor: pointer;
}
.topnav .nav-right .signin:hover { color: var(--c-ink); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.1rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.95rem; line-height: 1; gap: 0.45rem;
  transition: filter 140ms ease;
  white-space: nowrap;
}
.btn.sm { padding: 0.45rem 0.85rem; font-size: 0.88rem; }
.btn.lg { padding: 0.85rem 1.4rem; font-size: 1rem; }
.btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.btn.primary { background: var(--c-accent); color: #fff; }
.btn.seal    { background: var(--c-accent-2); color: #1a3d5f; }
.btn.ghost   { background: transparent; color: var(--c-accent); border-color: var(--c-line); }
.btn.danger  { background: var(--c-danger); color: #fff; }
.btn.link    { background: transparent; color: var(--c-accent); padding: 0; border: 0; }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   Cards / containers
   ============================================================ */
.card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.section { padding: 3.5rem 0; }
.section.tight { padding: 2.5rem 0; }
section { padding: 3rem 0; }
.page { max-width: var(--w-page); margin: 0 auto; padding: 0 var(--pad) 4rem; }
.narrow { max-width: 720px; }
.narrow.center { margin: 0 auto; text-align: center; }
.app-shell { max-width: var(--w-app); margin: 0 auto; padding: 1.5rem var(--pad); }
.sign-shell { max-width: var(--w-sign); margin: 0 auto; padding: 1.5rem var(--pad) 3rem; }

.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.right { text-align: right; }
.micro { font-size: var(--t-micro); font-weight: 600; }

/* ============================================================
   Section labels (kicker rows)
   ============================================================ */
.section-label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-accent-2); margin: 0 0 0.85rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.section-label svg { width: 14px; height: 14px; stroke-width: 2; }

/* ============================================================
   Marketing hero shell
   ============================================================ */
.hero { padding: 4rem 0 2rem; }
.hero h1.t-display { line-height: 1.05; margin-bottom: 1rem; }
.hero h1 em { display: inline-block; color: var(--c-ink); }
.hero .lede { font-size: 1.15rem; color: var(--c-muted); max-width: 540px; line-height: 1.55; margin: 0 0 1.5rem; }
.hero .ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.hero ul.proof { list-style: none; padding: 0; color: var(--c-muted); margin-top: 2rem; }
.hero ul.proof li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; line-height: 1.5; }
.hero ul.proof li::before { content: '✓'; position: absolute; left: 0; color: var(--c-accent-2); font-weight: 700; }

/* hero pill */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.55rem;
  border: 1px solid var(--c-line); border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--c-muted);
  background: var(--c-bg);
  margin-bottom: 1.25rem;
}
.pill svg { width: 14px; height: 14px; color: var(--c-accent-2); }
.pill-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--c-accent-2);
  box-shadow: 0 0 0 4px rgba(164, 182, 154, 0.18);
}

/* ============================================================
   Hero graphic — the two-paper "before / after" artifact
   ============================================================ */
.hero--graphic { padding-bottom: 3rem; }
.hero-top {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem;
  align-items: center;
}
.hero-text { max-width: 580px; }
.hero h1 { line-height: 1.05; margin-bottom: 1rem; }

.hero-graphic-col {
  position: relative; min-height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.g-frame { position: relative; width: 100%; max-width: 480px; height: 420px; }

.paper {
  position: absolute; top: 50%; left: 50%;
  width: 220px; height: 285px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  box-shadow: 0 12px 32px rgba(14, 26, 43, 0.12),
              0 4px 10px rgba(14, 26, 43, 0.06);
  overflow: hidden;
}
.paper-inner { position: relative; height: 100%; padding: 14px 14px 30px; font-size: 9px; color: var(--c-ink); }
.paper-unsigned { margin-left: -135px; margin-top: -160px; transform: rotate(-5deg); }
.paper-signed   { margin-left: -85px;  margin-top: -130px; transform: rotate(4deg); z-index: 2; }

.lh-header { text-align: center; margin-bottom: 10px; }
.lh-rule { height: 1px; background: var(--c-ink); margin: 4px 0; }
.lh-wordmark { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-ink); line-height: 1.1; }
.lh-sub { font-size: 6.5px; letter-spacing: 0.18em; color: var(--c-muted); margin-top: 3px; text-transform: uppercase; }

.paper-check-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 5px; }
.paper-check-list li { display: flex; align-items: flex-start; gap: 5px; line-height: 1.35; font-size: 8.5px; }
.paper-check-list .box { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--c-line); flex: 0 0 8px; margin-top: 1.5px; }
.paper-check-list .label { color: var(--c-ink); }
.paper-check-list .price { color: var(--c-muted); margin-left: auto; font-family: var(--f-mono); font-size: 7.5px; }

.cert-fields { display: grid; gap: 3px; margin-top: 6px; }
.cert-fields .row { display: flex; justify-content: space-between; gap: 6px; font-size: 7.5px; padding: 2px 0; border-bottom: 1px solid var(--c-soft); }
.cert-fields .row .k { color: var(--c-muted); font-family: var(--f-mono); }
.cert-fields .row .v { color: var(--c-ink); font-family: var(--f-mono); }
.cert-sig-row { margin-top: 8px; }
.cert-sig-row svg { display: block; }
.cert-sig-row .sig-label { font-size: 6.5px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

.paper-stamp {
  position: absolute; top: 18px; right: -10px;
  font-family: var(--f-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--c-accent-2);
  border: 1.8px solid var(--c-accent-2);
  padding: 4px 9px; border-radius: 4px;
  transform: rotate(11deg);
  opacity: 0.92;
  background: rgba(255, 255, 255, 0.92);
}
.format-tag { position: absolute; bottom: 8px; left: 8px; font-size: 7.5px; font-weight: 600; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.04em; }
.format-tag-pdf  { background: var(--c-soft); color: var(--c-muted); }
.format-tag-cert { background: var(--c-accent-2); color: #1a3d5f; }
.paper-hash { position: absolute; bottom: 8px; right: 8px; font-family: var(--f-mono); font-size: 6.5px; color: var(--c-muted); letter-spacing: 0.05em; }

.g-arrow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--c-ink); color: white;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(14, 26, 43, 0.25);
}

/* ============================================================
   Hero variant: ledger
   ============================================================ */
.hero-ledger { padding: 4rem 0 2rem; }
.hero-ledger .ledger-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.hero-ledger .ledger-text { display: flex; flex-direction: column; justify-content: center; max-width: 580px; }
.ledger-card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ledger-card .ledger-hd {
  background: var(--c-soft); border-bottom: 1px solid var(--c-line);
  padding: 0.65rem 0.9rem; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--c-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.ledger-card .ledger-hd .pill-mini { font-family: var(--f-mono); font-size: 0.66rem; background: var(--c-good-soft); color: var(--c-good); padding: 2px 7px; border-radius: 999px; letter-spacing: 0.04em; }
.ledger-table { width: 100%; border-collapse: collapse; }
.ledger-table td { padding: 0.55rem 0.9rem; font-size: 0.85rem; border-bottom: 1px solid var(--c-line); font-family: var(--f-mono); }
.ledger-table tr:last-child td { border-bottom: 0; }
.ledger-table .k { color: var(--c-muted); width: 40%; }
.ledger-table .v { color: var(--c-ink); }
.ledger-table .v.signed { color: var(--c-good); }
.ledger-table .v.hash { font-size: 0.74rem; word-break: break-all; }
.ledger-foot { background: var(--c-soft); border-top: 1px solid var(--c-line); padding: 0.65rem 0.9rem; font-family: var(--f-mono); font-size: 0.7rem; color: var(--c-muted); display: flex; align-items: center; justify-content: space-between; }
.ledger-foot .seal { color: var(--c-accent-2); font-weight: 700; letter-spacing: 0.12em; }

/* ============================================================
   Hero variant: front-page (newspaper)
   ============================================================ */
.hero-front { padding: 3.5rem 0 2rem; }
.front-masthead {
  border-top: 3px solid var(--c-ink); border-bottom: 1px solid var(--c-ink);
  padding: 0.5rem 0; margin-bottom: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--c-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.front-masthead .front-title { font-family: var(--f-serif); font-style: italic; font-size: 1.6rem; color: var(--c-ink); letter-spacing: 0; text-transform: none; }
.hero-front .grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; }
.front-headline { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); line-height: 1.04; margin: 0 0 1rem; letter-spacing: var(--tracking-tight); }
.front-headline em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.08em; }
.front-dek { font-size: 1.1rem; color: var(--c-muted); line-height: 1.6; max-width: 580px; }
.front-byline { font-family: var(--f-mono); color: var(--c-muted); font-size: 0.75rem; letter-spacing: 0.06em; margin: 1rem 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-line); text-transform: uppercase; }
.front-side { border-left: 1px solid var(--c-line); padding-left: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.front-side h4 { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 0.5rem; }
.front-side .stat { font-family: var(--f-serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--c-ink); margin: 0; }
.front-side .stat-body { color: var(--c-muted); font-size: 0.9rem; line-height: 1.55; margin: 0.4rem 0 0; }

/* ============================================================
   How it works steps
   ============================================================ */
ol.steps { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
ol.steps li { margin: 0; padding: 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg); }
ol.steps .step-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(164, 182, 154, 0.18); color: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.75rem;
}
ol.steps .step-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
ol.steps .step-num { font-family: var(--f-mono); font-size: 0.72rem; color: var(--c-muted); display: block; margin-bottom: 0.25rem; letter-spacing: 0.04em; }
ol.steps strong { display: block; font-size: 1rem; margin: 0 0 0.25rem; }
ol.steps .step-body { color: var(--c-muted); font-size: 0.92rem; line-height: 1.5; }

/* ============================================================
   Contrast columns: what it is / isn't
   ============================================================ */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contrast .col { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--c-line); }
.contrast .col.is   { background: var(--c-bg); }
.contrast .col.isnt { background: var(--c-soft); }
.contrast h3 { font-size: 1.05rem; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.contrast h3 .h3-icon { display: inline-flex; align-items: center; }
.contrast .is .h3-icon { color: var(--c-accent-2); }
.contrast .isnt .h3-icon { color: var(--c-muted); }
.contrast .h3-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.contrast li { padding: 0.55rem 0 0.55rem 1.4rem; color: var(--c-ink); line-height: 1.5; border-bottom: 1px dashed var(--c-line); font-size: 0.95rem; position: relative; list-style: none; }
.contrast .is li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1.5px; background: var(--c-accent-2); }
.contrast .isnt li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1.5px; background: var(--c-muted); opacity: 0.5; }
.contrast li:last-child { border-bottom: 0; }
.contrast .isnt li { color: var(--c-muted); }
.contrast ul { padding: 0; margin: 0; }

/* ============================================================
   Audience
   ============================================================ */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.audience .who { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.audience .who-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(164, 182, 154, 0.18); color: var(--c-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.audience .who-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
.audience .tag { display: inline-block; align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent-2); padding: 2px 8px; border: 1px solid var(--c-accent-2); border-radius: 4px; margin-bottom: 0.75rem; }
.audience h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.audience p { color: var(--c-muted); margin: 0 0 0.5rem; line-height: 1.55; font-size: 0.94rem; }
.audience .recommend { color: var(--c-accent); font-weight: 600; font-size: 0.9rem; margin-top: 0.75rem; }

/* ============================================================
   Sample certificate block on homepage
   ============================================================ */
.cert-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.cert-wrap h2 { margin-top: 0; }
.cert-wrap p  { color: var(--c-muted); }
.cert { background: white; border: 1px solid var(--c-line); border-radius: 4px; box-shadow: 0 8px 24px rgba(14,26,43,.10), 0 2px 6px rgba(14,26,43,.06); padding: 1.5rem; transform: rotate(-1.2deg); position: relative; font-size: 0.82rem; }
.cert::after { content: 'SIGNED'; position: absolute; top: 14px; right: 14px; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--c-accent-2); border: 1.5px solid var(--c-accent-2); padding: 3px 8px; border-radius: 4px; transform: rotate(8deg); opacity: 0.85; }
.cert h4 { margin: 0 0 0.25rem; font-size: 1rem; letter-spacing: -0.01em; }
.cert .cert-meta { color: var(--c-muted); font-family: var(--f-mono); font-size: 0.7rem; line-height: 1.7; margin: 0 0 0.75rem; }
.cert .cert-row { border-top: 1px solid var(--c-line); padding: 0.35rem 0; display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; }
.cert .cert-row .l { color: var(--c-muted); }
.cert .sig { margin-top: 0.75rem; border-top: 1px solid var(--c-line); padding-top: 0.5rem; }
.cert .sig svg { display: block; }
.cert .hash { margin-top: 0.5rem; font-family: var(--f-mono); font-size: 0.65rem; color: var(--c-muted); word-break: break-all; }

/* ============================================================
   Image moment (warm-desaturated photographic placeholder)
   ============================================================ */
.image-moment {
  position: relative; aspect-ratio: 21 / 9; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14,26,43,0) 50%, rgba(14,26,43,.5) 100%),
    linear-gradient(160deg, #c39a5a 0%, #8a5d2e 38%, #2c1f10 100%);
  margin-top: 1rem;
}
.image-moment .caption { position: absolute; left: 1.5rem; bottom: 1.25rem; color: white; font-size: 1.05rem; text-shadow: 0 1px 4px rgba(0,0,0,.4); max-width: 480px; line-height: 1.5; }
.image-moment .credit { position: absolute; right: 1rem; bottom: 0.85rem; color: rgba(255,255,255,0.65); font-size: 0.7rem; font-family: var(--f-mono); }
.image-moment.tall { aspect-ratio: 4 / 3; }
.image-moment.dawn {
  background:
    linear-gradient(180deg, rgba(14,26,43,0) 50%, rgba(14,26,43,.45) 100%),
    linear-gradient(170deg, #d8b78a 0%, #b9856a 28%, #5d4338 70%, #1c1310 100%);
}
.image-moment.porch {
  background:
    linear-gradient(180deg, rgba(14,26,43,0) 55%, rgba(14,26,43,.5) 100%),
    linear-gradient(150deg, #97a690 0%, #6f7e6a 38%, #2c2f24 100%);
}
.detail-photo { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #c4a778 0%, #8e7148 40%, #3a2a18 100%); }
.detail-photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 55%); }
.detail-photo .credit { position: absolute; bottom: 0.5rem; right: 0.5rem; color: rgba(255,255,255,0.7); font-size: 0.65rem; font-family: var(--f-mono); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 0.5rem; }
.faq details { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 0.95rem 1.1rem; background: var(--c-bg); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--c-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform 200ms ease; color: var(--c-accent-2); display: inline-flex; }
.faq summary .chev svg { width: 18px; height: 18px; stroke-width: 2; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { margin: 0.6rem 0 0; color: var(--c-muted); line-height: 1.55; }
.faq details p:not(:first-of-type) { margin-top: 0.4rem; }

/* ============================================================
   Final CTA strip
   ============================================================ */
.final-cta { text-align: center; padding: 4rem 2rem; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-soft); border-radius: var(--radius); }
.final-cta h2 { margin-top: 0; }
.final-cta p { color: var(--c-muted); max-width: 560px; margin-left: auto; margin-right: auto; }
.final-cta .ctas { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ============================================================
   Pricing cards
   ============================================================ */
.pricing-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2rem; }
.tier { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tier.featured { border-color: var(--c-accent-2); box-shadow: var(--shadow-featured); position: relative; }
.tier.featured::before { content: 'Recommended'; position: absolute; top: -10px; left: 1.25rem; background: var(--c-accent-2); color: #1a3d5f; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; }
.tier h2 { margin: 0; font-size: 1.25rem; }
.tier .price { font-size: 2.2rem; font-weight: 700; margin: 0.5rem 0 0; line-height: 1.1; }
.tier .price span { font-size: 1rem; color: var(--c-muted); font-weight: 400; }
.tier .annual { color: var(--c-muted); font-size: 0.88rem; margin: 0.25rem 0 0; }
.tier .cap    { color: var(--c-accent); font-weight: 600; margin: 0.5rem 0 1rem; font-size: 0.9rem; }
.tier .headline { color: var(--c-muted); margin: 0 0 0.75rem; line-height: 1.5; font-size: 0.95rem; }
.tier ul { padding-left: 1.25rem; margin: 0.5rem 0 1.5rem; color: var(--c-muted); line-height: 1.6; font-size: 0.94rem; }
.tier ul li { margin-bottom: 0.25rem; }
.tier .btn { align-self: flex-start; margin-top: auto; }

.pricing-toggle { display: inline-flex; padding: 4px; background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 999px; margin: 0 auto 1rem; }
.pricing-toggle button { background: transparent; border: 0; padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.85rem; cursor: pointer; color: var(--c-muted); font-weight: 600; }
.pricing-toggle button.active { background: var(--c-bg); color: var(--c-ink); box-shadow: 0 1px 2px rgba(14,26,43,0.06); }

.feature-matrix { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-matrix table { width: 100%; border-collapse: collapse; }
.feature-matrix th, .feature-matrix td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); font-size: 0.92rem; vertical-align: top; }
.feature-matrix thead th { background: var(--c-soft); font-size: 0.92rem; font-weight: 700; position: sticky; top: 56px; z-index: 5; }
.feature-matrix thead th .tier-name { display: block; font-size: 1rem; }
.feature-matrix thead th .tier-price { display: block; font-size: 0.82rem; color: var(--c-muted); font-weight: 500; margin-top: 0.2rem; }
.feature-matrix .row-label { color: var(--c-ink); font-weight: 500; width: 32%; }
.feature-matrix .row-label .row-sub { display: block; color: var(--c-muted); font-weight: 400; font-size: 0.82rem; margin-top: 0.15rem; }
.feature-matrix td.check { text-align: center; color: var(--c-good); font-size: 1.1rem; }
.feature-matrix td.dash  { text-align: center; color: var(--c-muted); }
.feature-matrix td.value { font-family: var(--f-mono); font-size: 0.85rem; }
.feature-matrix .group-row td { background: var(--c-soft); color: var(--c-muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 0.55rem 1rem; }
.feature-matrix tbody tr:last-child td { border-bottom: 0; }

/* ============================================================
   Operations footer
   ============================================================ */
.footer-ops { border-top: 1px solid var(--c-line); background: var(--c-soft); margin-top: 3rem; padding: 2.5rem var(--pad) 2rem; }
.footer-ops-inner { max-width: var(--w-page); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.footer-ops .col h4 { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 0.85rem; font-weight: 600; }
.footer-ops .col a { display: block; margin-bottom: 0.45rem; color: var(--c-ink); text-decoration: none; font-size: 0.9rem; cursor: pointer; }
.footer-ops .col a:hover { color: var(--c-accent); }
.footer-ops .brand-col p { color: var(--c-muted); margin: 0.5rem 0 1rem; max-width: 320px; font-size: 0.92rem; }
.footer-ops .brand-col .brand-line { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--c-ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.footer-ops .brand-col .brand-line .mark { width: 22px; height: 22px; border-radius: 5px; background: var(--c-accent); flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.footer-ops .brand-col .brand-line .mark::before { content: ''; width: 11px; height: 14px; background: #fff; border-radius: 1.5px; }
.footer-ops .brand-col .brand-line .mark::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 4px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'><path d='M2 6 Q 8 -1, 12 4 T 22 4' stroke='%23a4b69a' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>") no-repeat center / contain; }

.ops-status { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.7rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-bg); font-family: var(--f-mono); font-size: 0.72rem; color: var(--c-muted); letter-spacing: 0.04em; }
.ops-status .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--c-good); box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.18); }
.ops-status.warn .dot { background: var(--c-warn); box-shadow: 0 0 0 3px rgba(181, 71, 8, 0.18); }
.ops-status .label { color: var(--c-ink); font-weight: 600; }

.footer-bar { max-width: var(--w-page); margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--c-line); display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-family: var(--f-mono); font-size: 0.72rem; color: var(--c-muted); letter-spacing: 0.04em; }
.footer-bar .sep { color: var(--c-line); }
.footer-bar .footer-bar-right { margin-left: auto; display: flex; gap: 1rem; align-items: center; }

.footer-min { border-top: 1px solid var(--c-line); background: var(--c-bg); margin-top: 3rem; padding: 2rem var(--pad); }
.footer-min-inner { max-width: var(--w-page); margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-min-inner .brand-line { font-weight: 700; }
.footer-min-inner .tagline { color: var(--c-muted); }
.footer-min-inner .legal { margin-left: auto; display: flex; gap: 1rem; color: var(--c-muted); font-size: 0.85rem; }

.footer-editorial { border-top: 1px solid var(--c-ink); background: var(--c-bg); margin-top: 3rem; padding: 3.5rem var(--pad) 2.5rem; }
.footer-editorial-inner { max-width: var(--w-page); margin: 0 auto; }
.footer-editorial-inner .wordmark-huge { font-size: clamp(4rem, 10vw, 9rem); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--c-ink); margin: 0 0 1rem; }
.footer-editorial-inner .wordmark-huge em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.footer-editorial-inner .tagline-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--c-line); }
.footer-editorial-inner .tagline-row .tag { color: var(--c-muted); max-width: 420px; }
.footer-editorial-inner .cols { display: flex; gap: 2.5rem; flex-wrap: wrap; font-size: 0.88rem; }
.footer-editorial-inner .cols a { display: block; color: var(--c-ink); text-decoration: none; cursor: pointer; margin-bottom: 0.3rem; }

/* ============================================================
   App: tables, badges, form rows, density
   ============================================================ */
.form-row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row input, .form-row textarea, .form-row select { font: inherit; padding: 0.65rem 0.8rem; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-bg); color: var(--c-ink); width: 100%; }
.form-row textarea { min-height: 80px; font-family: var(--f-sans); resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--c-accent-2); outline-offset: 1px; }
.form-row .hint { color: var(--c-muted); font-size: 0.82rem; margin-top: 0.1rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.75rem 0.75rem; border-bottom: 1px solid var(--c-line); font-size: 0.92rem; }
.table th { color: var(--c-muted); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--c-soft); }
.table tbody tr { transition: background 120ms ease; }
.table tbody tr:hover { background: var(--c-soft); }
.table a { color: var(--c-accent); text-decoration: none; cursor: pointer; font-weight: 500; }
.table a:hover { text-decoration: underline; }
.table-wrap { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

:root.density-compact .table th, :root.density-compact .table td { padding: 0.5rem 0.6rem; font-size: 0.88rem; }
:root.density-compact .card { padding: 1rem; }
:root.density-compact .app-shell h1 { margin-bottom: 0.6rem; }

.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.18rem 0.6rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600; font-family: var(--f-sans); }
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge.draft   { background: var(--c-soft);        color: var(--c-muted); }
.badge.sent    { background: var(--c-accent-soft); color: var(--c-accent); }
.badge.clicked { background: var(--c-warn-soft);   color: var(--c-warn); }
.badge.signed  { background: var(--c-good-soft);   color: var(--c-good); }
.badge.expired { background: var(--c-danger-soft); color: var(--c-danger); }

.crumb { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 0.5rem; color: var(--c-muted); text-decoration: none; cursor: pointer; font-size: 0.88rem; }
.crumb:hover { color: var(--c-ink); }

.fee-card { background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 8px; padding: 0.9rem; margin-bottom: 0.6rem; }
.fee-card .form-row { margin-bottom: 0.55rem; }

code { font-family: var(--f-mono); background: var(--c-soft); padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }

/* ============================================================
   App: side rail for the dashboard
   ============================================================ */
.app-wrap { max-width: var(--w-page); margin: 0 auto; padding: 1.5rem var(--pad); display: grid; grid-template-columns: 200px 1fr; gap: 2.25rem; }
.app-rail { position: sticky; top: 72px; align-self: start; padding: 0.5rem 0; }
.app-rail h5 { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); margin: 1.25rem 0 0.5rem; }
.app-rail h5:first-child { margin-top: 0; }
.app-rail a { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; border-radius: 8px; color: var(--c-muted); font-size: 0.9rem; text-decoration: none; cursor: pointer; }
.app-rail a:hover { background: var(--c-soft); color: var(--c-ink); }
.app-rail a.active { background: var(--c-accent-soft); color: var(--c-accent); font-weight: 600; }
.app-rail a svg { width: 16px; height: 16px; stroke-width: 1.8; flex: 0 0 16px; }

.app-main h1 { margin: 0; font-size: 1.5rem; }
.app-main .h1-row { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; flex-wrap: wrap; }
.app-main .h1-row .h1-sub { color: var(--c-muted); font-size: 0.9rem; }
.h1-row { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; flex-wrap: wrap; }
.h1-row .h1-sub { color: var(--c-muted); font-size: 0.9rem; }

/* ============================================================
   Stat tiles
   ============================================================ */
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat-tile { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 0.85rem 1rem; }
.stat-tile .stat-label { color: var(--c-muted); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.stat-tile .stat-val   { font-size: 1.5rem; font-weight: 700; color: var(--c-ink); margin-top: 0.25rem; line-height: 1; }
.stat-tile .stat-sub   { color: var(--c-muted); font-size: 0.82rem; margin-top: 0.3rem; }
.stat-tile .stat-val.good { color: var(--c-good); }
.stat-tile .stat-val.warn { color: var(--c-warn); }

/* ============================================================
   Reservation detail / certificate
   ============================================================ */
.audit-table { width: 100%; border-collapse: collapse; }
.audit-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--c-line); font-size: 0.92rem; }
.audit-table td:first-child { width: 38%; color: var(--c-muted); }
.audit-table td:last-child  { font-family: var(--f-mono); font-size: 0.85rem; }
.audit-table tr:last-child td { border-bottom: 0; }

.cert-preview { background: white; border: 1px solid var(--c-line); border-radius: 4px; box-shadow: 0 2px 8px rgba(14,26,43,0.06), 0 8px 24px rgba(14,26,43,0.06); padding: 2rem; position: relative; }
.cert-preview .cp-stamp { position: absolute; top: 24px; right: 24px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--c-accent-2); border: 2px solid var(--c-accent-2); padding: 6px 12px; border-radius: 4px; transform: rotate(6deg); opacity: 0.9; }
.cert-preview .cp-mast { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid var(--c-ink); margin-bottom: 1.5rem; }
.cert-preview .cp-mast .cp-rule { height: 2px; background: var(--c-ink); margin: 0.25rem auto; max-width: 120px; }
.cert-preview .cp-mast .cp-title { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--c-muted); text-transform: uppercase; }
.cert-preview .cp-mast .cp-prop  { font-size: 1.5rem; font-weight: 700; margin: 0.3rem 0; }
.cert-preview .cp-mast .cp-sub   { font-family: var(--f-mono); font-size: 0.72rem; color: var(--c-muted); letter-spacing: 0.08em; }
.cert-preview .cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.cert-preview .cp-grid h5 { margin: 0 0 0.5rem; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.cert-preview .cp-grid .cp-row { display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px solid var(--c-line); font-size: 0.85rem; }
.cert-preview .cp-grid .cp-row:last-child { border-bottom: 0; }
.cert-preview .cp-grid .cp-row .l { color: var(--c-muted); }
.cert-preview .cp-grid .cp-row .v { font-family: var(--f-mono); }
.cert-preview .cp-sig-block { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding-top: 1rem; border-top: 1px solid var(--c-line); margin-bottom: 1rem; }
.cert-preview .cp-sig-block .sig-area { border-bottom: 1px solid var(--c-ink); padding-bottom: 0.5rem; }
.cert-preview .cp-sig-block .sig-area svg { display: block; }
.cert-preview .cp-sig-block .sig-label { font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--c-muted); text-transform: uppercase; margin-top: 0.4rem; }
.cert-preview .cp-sig-block .cp-date { font-family: var(--f-mono); font-size: 0.85rem; }
.cert-preview .cp-hash { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--c-line); font-family: var(--f-mono); font-size: 0.72rem; color: var(--c-muted); word-break: break-all; }
.cert-preview .cp-hash .l { color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; display: block; margin-bottom: 0.25rem; }

/* ============================================================
   Sign flow (guest)
   ============================================================ */
.brand-hdr { text-align: center; margin-bottom: 1.5rem; }
.brand-hdr img { max-height: 60px; }
.brand-hdr h1 { margin: 0.75rem 0 0.25rem; font-size: 1.5rem; letter-spacing: -0.01em; }
.brand-hdr p  { color: var(--c-muted); margin: 0; line-height: 1.55; }
.brand-hdr .property-mark { width: 56px; height: 56px; border-radius: 12px; margin: 0 auto; background: var(--c-accent); display: inline-flex; align-items: center; justify-content: center; color: white; font-family: var(--f-serif); font-style: italic; font-size: 1.6rem; box-shadow: var(--shadow); }

.ack-item { display: flex; gap: 0.75rem; padding: 0.85rem; border: 1px solid var(--c-line); border-radius: 8px; margin-bottom: 0.5rem; align-items: flex-start; background: var(--c-bg); transition: background-color 140ms ease, border-color 140ms ease; cursor: pointer; }
.ack-item:hover { border-color: var(--c-muted); }
.ack-item.checked { background: var(--c-good-soft); border-color: var(--c-good); }
.ack-item button { background: transparent; border: 1px solid var(--c-line); border-radius: 999px; width: 28px; height: 28px; flex: 0 0 28px; font-size: 1rem; cursor: pointer; line-height: 1; padding: 0; color: var(--c-ink); transition: all 140ms ease; }
.ack-item.checked button { background: var(--c-good); color: white; border-color: var(--c-good); }
.ack-item .body { font-size: 0.95rem; line-height: 1.5; color: var(--c-ink); flex: 1; }
.ack-item .label { font-weight: 600; }
.ack-item .desc { color: var(--c-muted); font-size: 0.85rem; margin-top: 0.15rem; display: block; }
.ack-item .ack-line { font-size: 0.85rem; margin-top: 0.25rem; color: var(--c-ink); }

.signature-box { border: 2px dashed var(--c-accent-2); border-radius: 10px; background: var(--c-bg); width: 100%; height: 180px; touch-action: none; cursor: crosshair; }

.footer-note { margin-top: 2rem; text-align: center; display: flex; align-items: center; justify-content: center; gap: 0.4rem; color: var(--c-muted); font-size: 0.85rem; }
.footer-note::before, .footer-note::after { content: ''; flex: 0 0 32px; height: 1px; background: var(--c-accent-2); opacity: 0.5; }

.sign-progress { height: 4px; background: var(--c-line); border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.sign-progress .bar { height: 100%; background: var(--c-accent-2); transition: width 200ms ease; }

/* ============================================================
   Trust / security page specifics
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trust-card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.trust-card .trust-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(164, 182, 154, 0.18); color: var(--c-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.trust-card .trust-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
.trust-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.trust-card p { color: var(--c-muted); margin: 0; font-size: 0.92rem; line-height: 1.55; }

.hash-display { font-family: var(--f-mono); font-size: 0.78rem; padding: 0.65rem 0.85rem; background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 8px; color: var(--c-ink); word-break: break-all; line-height: 1.7; }
.hash-display .l { color: var(--c-muted); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.25rem; }

/* ============================================================
   Toast
   ============================================================ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--c-ink); color: white; padding: 0.75rem 1.25rem; border-radius: var(--radius); font-size: 0.9rem; box-shadow: var(--shadow); z-index: 60; animation: toast-in 200ms ease; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }

/* ============================================================
   Misc utilities
   ============================================================ */
.dot-divider { color: var(--c-line); margin: 0 0.5rem; }
.kbd { font-family: var(--f-mono); font-size: 0.78rem; padding: 1px 6px; border: 1px solid var(--c-line); border-bottom-width: 2px; border-radius: 4px; background: var(--c-bg); color: var(--c-muted); }
.callout { background: var(--c-soft); border-left: 3px solid var(--c-accent-2); padding: 1rem 1.25rem; border-radius: 6px; color: var(--c-ink); font-size: 0.95rem; line-height: 1.6; }
.callout p { margin: 0; }
.callout .l { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent); display: block; margin-bottom: 0.25rem; }

/* ============================================================
   Empty / loading / error states
   ============================================================ */
.empty-state, .error-state, .loading-state { text-align: center; padding: 4rem 1.5rem; background: var(--c-bg); border: 1px dashed var(--c-line); border-radius: var(--radius); }
.empty-state .empty-icon, .error-state .empty-icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 1rem; background: var(--c-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--c-muted); }
.empty-state .empty-icon svg, .error-state .empty-icon svg { width: 24px; height: 24px; }
.empty-state h3, .error-state h3 { margin: 0 0 0.5rem; }
.empty-state p, .error-state p { color: var(--c-muted); margin: 0 auto 1.25rem; max-width: 480px; }
.error-state .empty-icon { background: var(--c-danger-soft); color: var(--c-danger); }

.skeleton-row { height: 14px; background: linear-gradient(90deg, var(--c-soft) 0%, var(--c-line) 50%, var(--c-soft) 100%); background-size: 200% 100%; border-radius: 4px; animation: shimmer 1.4s linear infinite; margin-bottom: 0.6rem; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-graphic-col { min-height: 380px; }
  .g-frame { max-width: 380px; height: 360px; }
  .hero-ledger .ledger-top, .hero-front .grid { grid-template-columns: 1fr; }
  .front-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--c-line); padding-top: 1.5rem; }
  ol.steps { grid-template-columns: 1fr 1fr; }
  .footer-ops-inner { grid-template-columns: 1fr 1fr; }
  .app-wrap { grid-template-columns: 1fr; }
  .app-rail { position: static; display: flex; flex-wrap: wrap; gap: 0.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-line); margin-bottom: 1rem; }
  .app-rail h5 { display: none; }
  .app-rail a { padding: 0.4rem 0.7rem; }
}
@media (max-width: 720px) {
  .contrast { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .cert-wrap { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .cert-preview .cp-grid, .cert-preview .cp-sig-block { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  ol.steps { grid-template-columns: 1fr; }
  .footer-ops-inner { grid-template-columns: 1fr; }
}
