/* =========================================================
   OvertimeWise — Paystub Ledger Theme
   Strictly 11 hex colors in :root, zero raw hex elsewhere.
   ========================================================= */
:root {
  --bg: #F5F2EB;
  --surface: #FFFDF9;
  --surface-alt: #EBE5D8;
  --ink: #14221D;
  --muted: #4E5E57;
  --border: #D5CEC0;
  --primary: #0F6A4A;
  --primary-dark: #0A4D35;
  --accent: #B54B0E;
  --accent-soft: #FCECD8;
  --mint-soft: #DCF2E7;

  --font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --radius: 12px;
  --pill: 999px;
  --shadow-hard: 0 3px 0 var(--ink);
  --shadow-soft: 0 8px 24px rgba(20, 34, 29, 0.08);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}

h1 {
  font-size: 48px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

a:hover {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 16px;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.prose-column {
  max-width: 780px;
  margin: 0 auto;
}

.prose-column p,
.prose-column li {
  max-width: 70ch;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------------- Header & Navigation ---------------- */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--pill);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.main-nav a:hover {
  background: var(--surface-alt);
}

.main-nav a[aria-current="page"] {
  background: var(--mint-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--surface-alt);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-bars {
  width: 16px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

/* ---------------- Hero & Tool Stage ---------------- */
.hero-stage {
  padding: 32px 0 48px;
  border-bottom: 2px solid var(--ink);
}

.hero-subtool {
  padding-top: 24px;
}

.page-hero {
  padding: 32px 0 24px;
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.hero-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-intro {
  max-width: 740px;
}

.stamp-tag,
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--mint-soft);
  border: 1.5px solid var(--primary);
  border-radius: var(--pill);
  padding: 4px 12px;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 68ch;
}

.hero-engage {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-utility {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-utility:hover {
  transform: translateY(-2px);
}

.btn-utility[data-gf-liked] {
  background: var(--mint-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.share-status {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* ---------------- Calculator Deck + Paystub Receipt ---------------- */
.tool-stage {
  margin-top: 8px;
}

.ow-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ow-panel {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-hard);
}

.ow-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.ow-panel-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.ow-pill-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ow-pill {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.14s ease;
}

.ow-pill:hover {
  background: var(--surface-alt);
}

.ow-pill.is-active,
.ow-pill[aria-pressed="true"] {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--ink);
  box-shadow: var(--shadow-hard);
  transform: translateY(-2px);
}

.ow-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ow-presets-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.ow-preset-chip {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--pill);
  border: 1.5px solid var(--ink);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.ow-preset-chip:hover {
  background: var(--mint-soft);
  transform: translateY(-2px);
}

.ow-mode-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ow-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ow-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ow-field-full {
  grid-column: 1 / -1;
}

.ow-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.ow-hint {
  font-size: 12px;
  color: var(--muted);
}

.ow-input,
.ow-select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
}

.ow-select {
  font-family: var(--font-body);
}

.ow-input:focus,
.ow-select:focus {
  border-color: var(--primary);
}

.ow-advanced {
  margin-top: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--bg);
}

.ow-advanced summary {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.ow-advanced[open] summary {
  margin-bottom: 12px;
}

.ow-error-banner {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.ow-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.14s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--surface);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

/* ---------------- Live Perforated Paystub Receipt (Memory Point) ---------------- */
.ow-receipt-wrap {
  position: relative;
}

.ow-receipt {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.ow-receipt-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--border);
}

.ow-receipt-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.ow-hero-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.ow-hero-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
}

.ow-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--mint-soft);
  color: var(--ink);
  transform: rotate(-3deg);
  white-space: nowrap;
}

.ow-receipt[data-status="reduced"] .ow-stamp,
.ow-receipt[data-status="ineligible"] .ow-stamp,
.ow-receipt[data-status="unverified"] .ow-stamp,
.ow-receipt[data-status="warning"] .ow-stamp {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ow-receipt[data-status="reduced"] .ow-hero-num,
.ow-receipt[data-status="ineligible"] .ow-hero-num {
  color: var(--accent);
}

/* MAGI Phaseout Meter driven by CSS custom property --meter-pct */
.ow-meter-block {
  padding: 16px 0;
  border-bottom: 2px dashed var(--border);
}

.ow-meter-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.ow-meter-track {
  height: 12px;
  border-radius: var(--pill);
  border: 1.5px solid var(--ink);
  background: var(--surface-alt);
  overflow: hidden;
}

.ow-meter-fill {
  height: 100%;
  width: var(--meter-pct, 0%);
  background: var(--primary);
  transition: width 0.25s ease;
}

.ow-receipt[data-status="reduced"] .ow-meter-fill,
.ow-receipt[data-status="zero"] .ow-meter-fill,
.ow-receipt[data-status="ineligible"] .ow-meter-fill {
  background: var(--accent);
}

.ow-ledger-rows {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.ow-ledger-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.ow-ledger-rows li:last-child {
  border-bottom: none;
}

.ow-ledger-k {
  color: var(--muted);
  font-weight: 500;
}

.ow-ledger-v {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ow-ledger-v.is-highlight {
  color: var(--primary);
}

.ow-receipt-notes {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1.5px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.ow-receipt-notes ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.ow-receipt-notes li {
  margin-bottom: 4px;
}

.ow-receipt-tooth {
  height: 12px;
  margin: 0 12px;
  background-image: linear-gradient(135deg, var(--surface) 50%, transparent 50%),
    linear-gradient(225deg, var(--surface) 50%, transparent 50%);
  background-position: top left;
  background-size: 16px 12px;
  background-repeat: repeat-x;
}

/* Timesheet Table inside tool */
.ow-ts-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.ow-ts-table th,
.ow-ts-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.ow-ts-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--ink);
  color: var(--surface);
}

.ow-ts-input {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
}

.ow-checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.ow-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  min-height: 44px;
  font-size: 14px;
}

.ow-checklist input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

/* ---------------- Rules Strip (3-col dark-header cards) ---------------- */
.rules-strip {
  padding: 48px 0;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.spec-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}

.spec-head {
  background: var(--ink);
  color: var(--surface);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.spec-metric {
  color: var(--mint-soft);
}

.spec-card h2 {
  font-size: 22px;
  padding: 16px 16px 0;
}

.spec-card p {
  padding: 0 16px 16px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------------- Sibling Tools Showcase ---------------- */
.sibling-tools {
  padding: 48px 0;
  border-bottom: 2px solid var(--ink);
}

.section-head {
  margin-bottom: 24px;
}

.tools-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tools-showcase-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.showcase-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-card:hover {
  transform: translateY(-4px);
}

.card-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--ink);
  border: 1.5px solid var(--accent);
}

.showcase-card h3 {
  margin: 0;
  font-size: 22px;
}

.showcase-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card-stretch {
  color: var(--ink);
  text-decoration: none;
}

.card-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card-cue {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* ---------------- Editorial Prose Band ---------------- */
.editorial-band {
  padding: 48px 0;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}

.editorial-band h2 {
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.editorial-band h2:first-child {
  margin-top: 0;
}

.editorial-band h3 {
  margin-top: 24px;
}

.editorial-band ul,
.editorial-band ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.editorial-band li {
  margin-bottom: 8px;
}

.editorial-band figure {
  margin: 24px 0;
  padding: 16px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.editorial-band figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.editorial-band figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.table-scroll th,
.table-scroll td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.table-scroll thead th {
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.table-scroll tbody tr:nth-child(even) {
  background: var(--bg);
}

.callout-box {
  padding: 16px 24px;
  margin: 24px 0;
  border: 2px solid var(--primary);
  border-left-width: 6px;
  border-radius: var(--radius);
  background: var(--mint-soft);
  color: var(--ink);
}

/* ---------------- 4/8 Split FAQ Band ---------------- */
.faq-band {
  padding: 48px 0;
  border-bottom: 2px solid var(--ink);
}

.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px;
  align-items: start;
}

.faq-aside p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  min-height: 48px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--mint-soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent-soft);
}

.faq-answer {
  padding: 0 24px 16px;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

/* ---------------- Comments Band ---------------- */
.comments-band {
  padding: 48px 0;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}

.ledger-comment-form {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-hard);
  margin-bottom: 24px;
}

.comment-fields {
  display: grid;
  gap: 12px;
}

.comment-fields input,
.comment-fields textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
}

.comment-fields input {
  min-height: 44px;
}

.comment-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.comment-msg {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--mint-soft);
  border: 1.5px solid var(--primary);
  font-size: 14px;
}

.btn-link {
  background: none;
  border: none;
  padding: 4px 8px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

.comment-list {
  display: grid;
  gap: 16px;
}

.comment-empty-note {
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  display: none;
}

[data-gf-comments][data-gf-empty] .comment-empty-note {
  display: block;
}

.comment-card {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.comment-card[data-gf-owner] {
  background: var(--mint-soft);
  border-color: var(--primary);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 14px;
}

.comment-meta time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.owner-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--pill);
  background: var(--primary);
  color: var(--surface);
}

.comment-body {
  margin: 0 0 8px;
}

.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 12px;
}

.reply-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.notfound-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: var(--surface);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--muted);
}

.brand-footer .brand-title {
  color: var(--surface);
}

.footer-desc {
  color: var(--border);
  margin: 12px 0 8px;
  max-width: 48ch;
  font-size: 14px;
}

.footer-privacy-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint-soft);
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mint-soft);
  margin-bottom: 8px;
}

.footer-nav a {
  color: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--mint-soft);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  font-size: 14px;
  color: var(--border);
}

.footer-bottom p {
  margin: 0;
}

/* ---------------- Responsive & Reduced Motion ---------------- */
@media (max-width: 960px) {
  .ow-deck,
  .spec-grid,
  .tools-showcase,
  .tools-showcase-4,
  .faq-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }

  .container {
    padding: 0 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 2px solid var(--ink);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.is-open {
    display: flex;
  }

  .ow-form-grid {
    grid-template-columns: 1fr;
  }

  .ow-panel,
  .ow-receipt {
    padding: 16px;
  }

  .ow-hero-num {
    font-size: 28px;
  }

  .ow-actions-row .btn-primary,
  .ow-actions-row .btn-secondary,
  .notfound-actions .btn-primary,
  .notfound-actions .btn-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
