/* The Lindengate Collective — Light-First Editorial & Product Studio Design System */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface2: #F6F1E7;
  --surface3: #ECE5D8;
  --border: #E8E2D8;
  --border-strong: #D6CEC0;
  --text: #171614;
  --muted: #57534E;
  --faint: #78716C;
  --accent: #9E4B2D;
  --accent-soft: rgba(158, 75, 45, 0.10);
  --on-accent: #FFFFFF;
  --a1: #1E4D6B;
  --a1-soft: rgba(30, 77, 107, 0.10);
  --a2: #9E4B2D;
  --a2-soft: rgba(158, 75, 45, 0.10);
  --b1: #214E3D;
  --b1-soft: rgba(33, 78, 61, 0.10);
  --b2: #6B2D48;
  --b2-soft: rgba(107, 45, 72, 0.10);
  --slate: #334155;
  --slate-soft: rgba(51, 65, 85, 0.10);
  --success: #1F6E4A;
  --success-soft: rgba(31, 110, 74, 0.11);
  --danger: #B33A2B;
  --danger-soft: rgba(179, 58, 43, 0.10);
  --shadow-lg: 0 22px 50px rgba(23, 22, 20, 0.10);
  --shadow-md: 0 10px 26px rgba(23, 22, 20, 0.07);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w: 1220px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0D11;
  --surface: #13161E;
  --surface2: #1A1E29;
  --surface3: #232938;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #F3F4F6;
  --muted: #9CA3AF;
  --faint: #6B7280;
  --accent: #E5B870;
  --accent-soft: rgba(229, 184, 112, 0.14);
  --on-accent: #0B0D11;
  --a1: #38BDF8;
  --a1-soft: rgba(56, 189, 248, 0.14);
  --a2: #F59E0B;
  --a2-soft: rgba(245, 158, 11, 0.14);
  --b1: #34D399;
  --b1-soft: rgba(52, 211, 153, 0.14);
  --b2: #F472B6;
  --b2-soft: rgba(244, 114, 182, 0.14);
  --slate: #94A3B8;
  --slate-soft: rgba(148, 163, 184, 0.14);
  --success: #34D399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --danger: #F87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.65);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .site-header {
  background: rgba(11, 13, 17, 0.86);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.brand-sub { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}
.nav-links a[aria-current="page"] {
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: var(--surface2); }
.mobile-menu-btn { display: none; }
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 28px 20px;
}
.mobile-drawer.open { display: grid; gap: 6px; }
.mobile-drawer a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
}
.mobile-drawer a[aria-current="page"], .mobile-drawer a:hover { background: var(--surface2); color: var(--text); }

/* Typography */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 4.1vw, 3.45rem); line-height: 1.07; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.14; }
h3 { font-size: 1.38rem; line-height: 1.24; }
.lead { font-size: clamp(1.03rem, 1.3vw, 1.15rem); color: var(--muted); line-height: 1.65; max-width: 58ch; }

/* Sections */
.section { padding: 78px 0; border-top: 1px solid var(--border); }
.section-tight { padding: 54px 0; border-top: 1px solid var(--border); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }

/* Buttons & Badges */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface2); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 10px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  min-width: 172px;
  box-shadow: var(--shadow-md);
}
.store-badge svg { flex-shrink: 0; color: var(--muted); }
.store-badge-meta { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.store-badge-name { font-size: 14px; font-weight: 700; margin-top: 2px; }

.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.lvl-a1 { background: var(--a1-soft); color: var(--a1); border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent); }
.lvl-a2 { background: var(--a2-soft); color: var(--a2); border: 1px solid color-mix(in srgb, var(--a2) 30%, transparent); }
.lvl-b1 { background: var(--b1-soft); color: var(--b1); border: 1px solid color-mix(in srgb, var(--b1) 30%, transparent); }
.lvl-b2 { background: var(--b2-soft); color: var(--b2); border: 1px solid color-mix(in srgb, var(--b2) 30%, transparent); }
.lvl-slate { background: var(--slate-soft); color: var(--slate); border: 1px solid color-mix(in srgb, var(--slate) 28%, transparent); }

/* Clean Studio Hero (Zero AI Photos) */
.hero-clean {
  padding: 68px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-clean h1 { margin: 14px 0 18px; }
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.hero-chip svg { color: var(--accent); }

/* Studio Media / Video Stage */
.media-stage {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.media-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 12px;
}
.media-stage-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.device-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--surface2);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.device-pill {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.device-pill.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.media-viewport {
  background: #F6F1E7;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
}
[data-theme="dark"] .media-viewport {
  background: #0A0C10;
}
.media-viewport video,
.media-viewport img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
}
.media-viewport.is-phone video {
  max-width: 265px;
  max-height: 470px;
  margin: 10px auto;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.media-viewport img.zoomable { cursor: zoom-in; }

/* App Cards & Asymmetric Flagship Showcases */
.apps-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, border-color 0.2s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.app-card-head { display: flex; align-items: center; gap: 14px; }
.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.app-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.app-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.studio-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.studio-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
}
.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.feature-bullets svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* Edge-to-Edge Clickable Screenshot Gallery + Lightbox */
.gallery-grid-large {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.gallery-grid-large.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.shot-card.shot-wide { grid-column: span 2; }
.shot-card.shot-full { grid-column: 1 / -1; }
.shot-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.shot-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}
.shot-trigger img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  transition: transform 0.35s ease;
}
.shot-card:hover .shot-trigger img { transform: scale(1.015); }
.zoom-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.82);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.shot-card figcaption { padding: 0 4px 4px; font-size: 14px; color: var(--muted); }
.shot-card strong { display: block; font-size: 15.5px; color: var(--text); margin-bottom: 3px; }

/* Full-Screen Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 17, 23, 0.90);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  background: #000000;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  color: #F3F4F6;
  font-size: 14px;
}
.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }

/* Book Cards & Editorial Spreads (Zero AI Backdrops) */
.books-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.book-cover-box {
  background: var(--surface2);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  justify-content: center;
}
.book-cover-3d {
  width: 168px;
  aspect-ratio: 2 / 3;
  border-radius: 3px 10px 10px 3px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(23, 22, 20, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.book-card:hover .book-cover-3d,
.book-spread:hover .book-cover-3d { transform: translateY(-4px); }
.book-cover-3d img { width: 100%; height: 100%; object-fit: cover; }

.book-spreads { display: grid; gap: 28px; }
.book-spread {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.book-spread-cover {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: center;
}
.book-spread-cover .book-cover-3d { width: 204px; }
.book-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text);
  margin: 12px 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.book-prose { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.story-spotlight {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.story-spotlight-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.story-spotlight p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.toc-details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.toc-details summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc-list {
  margin: 12px 0 4px;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
  font-size: 13.5px;
  color: var(--muted);
}
.toc-list li { margin-bottom: 4px; break-inside: avoid; }

/* Banners */
.banner-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.banner-frame img { width: 100%; }

/* Interactive Demo Sandbox */
.demo-shell {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 18px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.demo-tab {
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.demo-tab.active { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.demo-body { padding: 26px; }
.demo-panel { display: none; }
.demo-panel.active { display: block; }

.reader-demo-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: start; }
.story-paper {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.8;
}
.story-word-btn {
  background: none;
  border: none;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 0 2px;
  cursor: pointer;
}
.story-word-btn:hover, .story-word-btn.active { background: var(--accent-soft); color: var(--accent); }
.word-note-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 20px;
}
.morph-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.morph-pill {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 12.5px;
}
.morph-pill strong { display: block; font-family: var(--mono); color: var(--accent); font-size: 13px; }
.morph-pill span { color: var(--muted); font-size: 11.5px; }

.puzzle-box { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.puzzle-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  margin: 14px 0;
  align-items: center;
}
.tile-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tile-btn {
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tile-btn:hover:not(:disabled) { border-color: var(--accent); }
.tile-btn:disabled { opacity: 0.35; cursor: default; }
.tile-placed {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}
.feedback-banner { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; display: none; }
.feedback-banner.ok { display: block; background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.feedback-banner.err { display: block; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }

.choice-stack { display: grid; gap: 10px; margin-top: 14px; }
.choice-btn {
  text-align: left;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.choice-btn:hover { border-color: var(--accent); }
.choice-btn.correct { background: var(--success-soft); border-color: var(--success); }
.choice-btn.wrong { background: var(--danger-soft); border-color: var(--danger); }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface2); }
tr:last-child td { border-bottom: none; }

/* Legal Pages */
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 56px 28px 80px; }
.legal-wrap h1 { font-size: clamp(1.95rem, 3.2vw, 2.6rem); margin: 10px 0 18px; }
.legal-wrap h2 { font-size: 1.38rem; margin: 30px 0 10px; }
.legal-meta { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.legal-meta strong { color: var(--text); }
.legal-wrap a { color: var(--accent); }
.legal-wrap ul { padding-left: 20px; }
.legal-wrap li { margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 52px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer-col h4 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 1020px) {
  .hero-grid,
  .reader-demo-layout,
  .studio-split-grid,
  .book-spread { grid-template-columns: 1fr; }
  .apps-trio-grid { grid-template-columns: 1fr; }
  .gallery-grid-large,
  .gallery-grid-large.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-card.shot-wide,
  .shot-card.shot-full { grid-column: 1 / -1; }
  .books-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: grid; }
  .gallery-grid-large,
  .gallery-grid-large.cols-4,
  .books-row,
  .footer-grid { grid-template-columns: 1fr; }
  .shot-card.shot-wide,
  .shot-card.shot-full { grid-column: auto; }
  .toc-list { columns: 1; }
}
