/* ── quillsly.com — Quires (Library Dusk) ───────────────────── */
/* Sibling to Merkava's Graphite Dawn. Warm, deep, literary.    */
/* Spec: emmett/docs/meridian-platform/design-systems/quires.md */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { min-height: 100vh; }

:root {
  /* ── Parchment (light, alternate) ────────────────────────── */
  --bg-base: #EEE6D9;
  --bg-gradient: radial-gradient(ellipse at 30% 20%, #F4EEE2 0%, #E8DFCF 70%);
  --bg-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --surface: rgba(255, 251, 242, 0.70);
  --surface-elevated: rgba(255, 251, 242, 0.92);
  --surface-border: rgba(58, 44, 28, 0.12);
  --surface-border-strong: rgba(58, 44, 28, 0.20);
  --text-primary: #2A231B;
  --text-secondary: #5B4A38;
  --text-muted: #857461;
  --accent-solid: #B8893B;
  --accent-warm: #D99A3D;
  --accent-deep: #8A5E26;
  --accent-gradient: linear-gradient(135deg, #D99A3D 0%, #B8893B 100%);
  --accent-solid-rgb: 184, 137, 59;
  --success: #5D7A3B;
  --warning: #B8721F;
  --error: #8A3A2A;
  --shadow-outer: rgba(58, 44, 28, 0.14);
  --highlight-inner: rgba(255, 248, 234, 0.85);
}

[data-theme="dusk"] {
  /* ── Dusk (dark, PRIMARY) ────────────────────────────────── */
  --bg-base: #1B2620;
  --bg-gradient: radial-gradient(ellipse at 25% 15%, #243128 0%, #121A15 70%);
  --bg-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.88 0 0 0 0 0.75 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --surface: rgba(238, 230, 217, 0.04);
  --surface-elevated: rgba(238, 230, 217, 0.08);
  --surface-border: rgba(238, 230, 217, 0.10);
  --surface-border-strong: rgba(238, 230, 217, 0.16);
  --text-primary: #EEE6D9;
  --text-secondary: #CBBFA7;
  --text-muted: #988B73;
  --accent-solid: #D99A3D;
  --accent-warm: #E5B05E;
  --accent-deep: #B8893B;
  --accent-gradient: linear-gradient(135deg, #E5B05E 0%, #D99A3D 100%);
  --accent-solid-rgb: 217, 154, 61;
  --success: #7FA157;
  --warning: #E5B05E;
  --error: #C76856;
  --shadow-outer: rgba(0, 0, 0, 0.55);
  --highlight-inner: rgba(238, 230, 217, 0.06);
}

/* ── Geometry + type ─── */
:root {
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 48px;
  --space-9: 72px; --space-10: 96px;
  --page-max: 1100px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Manrope', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

/* ── Base body + warm grain ─── */
body {
  font-family: var(--font-ui);
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  transition: color 200ms ease, background-color 200ms ease, background-image 200ms ease;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: var(--bg-grain);
  background-repeat: repeat;
  opacity: 0.35;
  transition: background-image 200ms ease;
}

/* ── Typography scale ─── */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}
h1 {
  font-size: clamp(44px, 7.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-feature-settings: "opsz" 144, "ss01" 1;
}
h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-feature-settings: "opsz" 96;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
}
p { margin: 0; }

.mono,
.hero-stat,
.label-mono,
.thesis-n,
.layer-n,
.price-tag,
.price-agency {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-solid);
}
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

a { color: var(--accent-warm); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-solid); }

strong { font-weight: 600; color: var(--text-primary); }

/* ── Paper primitives (replaces .glass) ─── */
.paper,
.glass {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow:
    0 1px 0 var(--highlight-inner) inset,
    0 8px 24px -12px var(--shadow-outer);
}
.paper-elevated,
.glass-elevated {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 var(--highlight-inner) inset,
    0 14px 36px -14px var(--shadow-outer);
}

/* ── Layout ─── */
.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
section { padding: var(--space-10) 0; }
main > section + section {
  border-top: 1px solid var(--surface-border);
}

/* ── Nav ─── */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-3) var(--space-5);
  max-width: var(--page-max);
  margin: var(--space-4) auto var(--space-6);
  position: sticky;
  top: var(--space-4);
  z-index: 50;
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.nav-brand span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text-primary); }
.theme-toggle {
  background: transparent;
  border: 1px solid var(--surface-border-strong);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.10em;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 150ms ease, border-color 150ms ease;
}
.theme-toggle:hover {
  color: var(--accent-solid);
  border-color: var(--accent-solid);
}

/* ── Hero ─── */
.hero { text-align: left; padding-top: var(--space-8); }
.hero-eyebrow { display: block; margin-bottom: var(--space-5); }
.hero h1 {
  margin-bottom: var(--space-6);
  max-width: 22ch;
}
.hero p.lead {
  font-family: var(--font-ui);
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--text-secondary);
  max-width: 62ch;
  line-height: 1.55;
  margin-bottom: var(--space-7);
  font-weight: 400;
}
.hero-cta {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}

/* ── Buttons ─── */
.btn-primary {
  display: inline-block;
  background: var(--accent-solid);
  color: #FFFBEA;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--accent-deep);
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 var(--highlight-inner) inset,
    0 4px 14px -6px rgba(var(--accent-solid-rgb), 0.5);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
[data-theme="dusk"] .btn-primary {
  color: #1B2620;
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-warm);
  box-shadow:
    0 1px 0 var(--highlight-inner) inset,
    0 10px 22px -8px rgba(var(--accent-solid-rgb), 0.55);
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--accent-warm);
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid rgba(var(--accent-solid-rgb), 0.4);
  transition: color 150ms ease, border-color 150ms ease;
}
.btn-ghost:hover {
  color: var(--accent-solid);
  border-color: var(--accent-solid);
}

/* ── Hero stats row ─── */
.hero-stats {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.hero-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-stat::before {
  content: '§ ';
  color: var(--accent-solid);
  margin-right: 2px;
}

/* ── Hero inline demo preview ─── */
.hero-demo-preview {
  margin-top: var(--space-7);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 620px;
}
.hero-demo-preview .demo-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}
.hero-demo-preview input {
  flex: 1 1 280px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border-strong);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
  transition: border-color 150ms ease;
}
.hero-demo-preview input:focus {
  outline: none;
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 3px rgba(var(--accent-solid-rgb), 0.15);
}
.hero-demo-preview .demo-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Thesis three-beat ─── */
.thesis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.thesis-beat {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  border-top: 2px solid var(--accent-solid);
  box-shadow:
    0 1px 0 var(--highlight-inner) inset,
    0 8px 24px -12px var(--shadow-outer);
}
.thesis-n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-solid);
  margin-bottom: var(--space-3);
}
.thesis-beat h3 { margin-bottom: var(--space-3); }
.thesis-beat p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ── Workflow 5-block grid ─── */
.layer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-7);
}
.layer {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 2px solid var(--accent-solid);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px -12px var(--shadow-outer);
  position: relative;
}
.layer-n {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-solid);
  margin-bottom: var(--space-2);
}
.layer h3 {
  margin-bottom: var(--space-3);
  font-size: 19px;
}
.layer p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ── GEO edge comparison table ─── */
.compare {
  margin-top: var(--space-7);
  padding: var(--space-5);
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow:
    0 1px 0 var(--highlight-inner) inset,
    0 8px 24px -12px var(--shadow-outer);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 14.5px;
}
.compare thead th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-solid);
  border-bottom: 1px solid var(--surface-border-strong);
}
.compare tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-secondary);
  vertical-align: top;
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr.quill td {
  color: var(--text-primary);
  background: rgba(var(--accent-solid-rgb), 0.08);
  font-weight: 500;
}
.compare .yes {
  color: var(--success);
  font-weight: 600;
}
.compare .no {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Live demo form ─── */
.demo-panel {
  margin-top: var(--space-7);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.demo-panel .demo-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}
.demo-panel label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-2);
}
.demo-panel input {
  flex: 1 1 300px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border-strong);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
}
.demo-panel input:focus {
  outline: none;
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 3px rgba(var(--accent-solid-rgb), 0.15);
}
.demo-output {
  margin-top: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--surface-border-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  min-height: 120px;
  display: none;
  background: var(--surface);
}
.demo-output.visible { display: block; }
.demo-output.ok {
  border-color: rgba(var(--accent-solid-rgb), 0.5);
  color: var(--text-primary);
}
.demo-output.warn { color: var(--warning); }
.demo-output.err { color: var(--error); }

/* ── Dual-mode side-by-side ─── */
.dualmode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  margin-top: var(--space-7);
}
.dualmode-copy h3 {
  margin-bottom: var(--space-4);
  font-size: 26px;
}
.dualmode-copy p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  font-size: 16px;
  line-height: 1.6;
}
.dualmode-copy ul {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dualmode-copy ul li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--text-secondary);
  font-size: 15.5px;
}
.dualmode-copy ul li::before {
  content: '§';
  position: absolute;
  left: 0;
  color: var(--accent-solid);
  font-family: var(--font-display);
  font-weight: 600;
}
.dualmode-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border-strong);
  box-shadow: 0 18px 40px -16px var(--shadow-outer);
  background: var(--surface);
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

/* ── Pricing ─── */
.price-row {
  display: flex;
  justify-content: center;
  margin-top: var(--space-7);
}
.price-card {
  padding: var(--space-8);
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}
.price-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-solid);
}
.price-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.price-main {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-main small {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 6px;
}
.price-alt {
  font-size: 14.5px;
  color: var(--text-secondary);
}
.price-features {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--text-secondary);
}
.price-features li {
  padding-left: var(--space-5);
  position: relative;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-solid);
  font-weight: 700;
}
.price-agency {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ── FAQ ─── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  max-width: 840px;
}
details.faq {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease;
}
details.faq:hover { border-color: var(--surface-border-strong); }
details.faq[open] {
  border-color: rgba(var(--accent-solid-rgb), 0.35);
  background: var(--surface-elevated);
}
details.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-family: var(--font-ui);
  font-size: 22px;
  color: var(--accent-solid);
  font-weight: 300;
  margin-left: var(--space-4);
}
details.faq[open] summary::after { content: '−'; }
details.faq p {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Final CTA ─── */
.cta-panel {
  padding: var(--space-10) var(--space-7);
  margin-top: var(--space-7);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
}
.cta-panel h2 { max-width: 22ch; }
.cta-panel p {
  color: var(--text-secondary);
  max-width: 60ch;
  font-size: 17.5px;
  line-height: 1.6;
}

/* ── Legacy minimal footer (overridden when .site-footer present) ─── */
footer:not(.site-footer) {
  padding: var(--space-8) var(--space-6) var(--space-7);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-top: 1px solid var(--surface-border-strong);
  margin-top: var(--space-10);
}
footer:not(.site-footer) a { color: var(--accent-warm); text-decoration: none; }
footer:not(.site-footer) a:hover { color: var(--accent-solid); }
.footer-row {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 11px;
  font-weight: 600;
}

/* ── Mega-footer — context-rich SEO + GEO linking ─── */
.site-footer {
  margin-top: var(--space-10);
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-top: 1px solid var(--surface-border-strong);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.site-footer .footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: var(--space-6);
}
.site-footer .footer-col { min-width: 0; }
.site-footer .footer-brand { padding-right: var(--space-3); }
.site-footer .footer-logo {
  font-family: var(--font-serif, serif);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.site-footer .footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}
.site-footer .footer-cta {
  font-size: 12px;
  padding: 8px 14px;
  display: inline-block;
}
.site-footer .footer-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono, ui-monospace, monospace);
}
.site-footer .footer-heading-tight { margin-top: var(--space-5); }
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2);
}
.site-footer li {
  margin: 0 0 6px;
  font-size: 13px;
}
.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 120ms ease;
}
.site-footer a:hover { color: var(--accent-solid); }
.site-footer .footer-bottom {
  max-width: 1280px;
  margin: var(--space-8) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer .footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-footer .footer-bottom-links span { color: var(--surface-border-strong); }
.site-footer .footer-bottom a { color: var(--text-muted); }

@media (max-width: 1100px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .site-footer .footer-brand { grid-column: span 3; padding-right: 0; }
}
@media (max-width: 700px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .footer-brand { grid-column: span 2; }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Responsive ─── */
@media (max-width: 980px) {
  .layer-grid { grid-template-columns: repeat(2, 1fr); }
  .thesis { grid-template-columns: 1fr; }
  .dualmode { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .layer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; }
  .price-card { padding: var(--space-6); }
  section { padding: var(--space-9) 0; }
  .nav { margin: var(--space-3) auto var(--space-5); }
}

/* ── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
