/* ═══════════════════════════════════════
   SHROUDBYTE — "The Exposure"
   Editorial privacy manifesto
   ═══════════════════════════════════════ */

:root {
  --bg: #faf8f4;
  --bg-alt: #f3efe8;
  --bg-dark: #0d0d0d;
  --bg-code: #0f1318;
  --text: #1a1a1a;
  --text-light: #faf8f4;
  --muted: #6b7280;
  --accent: #c0392b;
  --accent-hover: #a93226;
  --border: #ddd8ce;
  --border-strong: #c4bfb4;
  --green: #059669;
  --amber: #b45309;
  --max: 1200px;
}

/* ── Reset ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

code {
  font-family: 'Source Code Pro', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.86em;
  color: var(--accent);
  background: rgba(192, 57, 43, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

/* ── Accessibility ── */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus { top: 0; }

.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;
}

/* ── Grain texture ── */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.07'/%3E%3C/svg%3E");
}

/* ── Layout ── */

.container {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
}

/* ── Labels ── */

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}

/* ── Sections ── */

section {
  padding: 6rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.section__desc {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.section__desc strong,
section p strong {
  color: var(--text);
  font-weight: 600;
}

h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  font-weight: 400;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ── Navigation ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--text);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  transition: color 0.2s;
  padding: 0.25rem 0;
}

.main-nav a:hover { color: var(--text); }

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}

.btn--fill {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--fill:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--text);
}

.btn--lg {
  padding: 0.8rem 1.65rem;
  font-size: 0.92rem;
}

.btn-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Hero ── */

.hero {
  padding: 6rem 0 5rem;
  border-top: none;
}

.hero + section { border-top: none; }

.hero .label {
  animation: fadeIn 0.7s ease both;
  animation-delay: 0.15s;
}

.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

/* Hero headline reveal animation */

.reveal {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
}

.reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: right;
  animation: sweep 0.55s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.reveal:nth-child(1)::after { animation-delay: 0.3s; }
.reveal:nth-child(2)::after { animation-delay: 0.5s; }
.reveal:nth-child(3)::after { animation-delay: 0.7s; }
.reveal:nth-child(4)::after { animation-delay: 0.9s; }

@keyframes sweep {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

.hero__desc {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
  margin-bottom: 2.75rem;
  animation: fadeIn 0.7s ease both;
  animation-delay: 0.4s;
}

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

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.75rem;
  animation: fadeIn 0.7s ease both;
  animation-delay: 0.55s;
}

.stat__number {
  display: block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  gap: 0.65rem;
  animation: fadeIn 0.7s ease both;
  animation-delay: 0.7s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Exposure section ── */

.exposure {
  background: var(--bg-dark);
  padding: 5rem 0;
  border-top: 3px solid var(--accent) !important;
  border-bottom: none;
  position: relative;
}

.exposure + section { border-top: none; }

.exposure__text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.55;
  color: var(--text-light);
  max-width: 46ch;
}

.redacted {
  display: inline;
  background: var(--text-light);
  color: var(--text-light);
  padding: 0.05em 0.2em;
  transition: all 0.45s ease;
  cursor: default;
}

.redacted:hover {
  background: transparent;
  color: var(--accent);
}

/* Touch: auto-reveal */
@media (hover: none) {
  .redacted {
    animation: revealRedacted 0.5s ease forwards;
  }
  .exposure__text .redacted:nth-of-type(1) { animation-delay: 0.8s; }
  .exposure__text .redacted:nth-of-type(2) { animation-delay: 1.3s; }
  .exposure__text .redacted:nth-of-type(3) { animation-delay: 1.8s; }
  .exposure__text .redacted:nth-of-type(4) { animation-delay: 2.3s; }
}

@keyframes revealRedacted {
  to { background: transparent; color: var(--accent); }
}

.exposure__cta {
  margin-top: 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Feature grid ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.2s ease;
}

.feature:hover {
  background: var(--bg-alt);
}

.feature__num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.85rem;
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
  opacity: 0.7;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Tracker tags ── */

.tracker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.tracker-tag {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--border);
}

.tracker-tag em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.3rem;
}

/* ── Protection / How It Works ── */

.protection-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.diagram {
  position: relative;
}

.diagram-stack {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stack-layer {
  padding: 1.15rem 1.25rem 1.15rem 1.5rem;
  border-left: 2px solid var(--border);
  transition: all 0.2s ease;
}

.stack-layer + .stack-layer {
  margin-top: 0;
}

.stack-layer:hover {
  border-left-color: var(--accent);
  background: var(--bg-alt);
}

.stack-layer strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
  color: var(--text);
}

.stack-layer span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Protection cards */

.protection-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.layer-card {
  padding: 1.25rem;
  border-right: 1px solid var(--border);
}

.layer-card:last-child { border-right: none; }

.layer-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.layer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ── Fingerprint grid ── */

.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.25rem 0 0;
  border: 1px solid var(--border);
}

.fp-item { margin: 0; }

.fp-item dd { margin: 0; }

.fp-item {
  padding: 0.65rem 0.85rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fp-item:nth-child(3n) { border-right: none; }
.fp-item:nth-child(n+4) { border-bottom: none; }

.fp-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fp-value {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

/* ── Filter list grid ── */

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.filter-card {
  padding: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.filter-card:nth-child(3n) { border-right: none; }
.filter-card:nth-child(n+4) { border-bottom: none; }

.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.filter-dot.on { background: var(--green); box-shadow: 0 0 6px rgba(5, 150, 105, 0.3); }
.filter-dot.off { background: var(--border-strong); }

.filter-card h4 { margin: 0 0 0.15rem; font-size: 0.92rem; }
.filter-card p { margin: 0; color: var(--muted); font-size: 0.84rem; }

/* ── Comparison table ── */

.comparison-wrap {
  border: 1px solid var(--border);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  border-bottom: 2px solid var(--text);
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
}

th:nth-child(2) {
  color: var(--accent);
}

tbody tr {
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background: var(--bg-alt); }

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

.yes { color: var(--green); font-weight: 600; }
.partial { color: var(--amber); font-weight: 500; }
.no { color: var(--muted); font-weight: 400; opacity: 0.6; }

/* ── Architecture grid ── */

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.arch-tile {
  padding: 1.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.arch-tile:nth-child(3n) { border-right: none; }
.arch-tile:nth-child(n+7) { border-bottom: none; }

.arch-tile:hover { background: var(--bg-alt); }

.arch-filename {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.84rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.arch-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.tech-ribbon {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.tech-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.tech-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tech-pill {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Keyboard shortcuts ── */

.kb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.kb-group {
  padding: 1.25rem;
  border-right: 1px solid var(--border);
}

.kb-group:last-child { border-right: none; }

.kb-group h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

kbd {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border-strong);
  font-family: 'Source Code Pro', monospace;
  font-size: 0.7rem;
  color: var(--text);
  margin-right: 0.15rem;
  box-shadow: 0 1px 0 var(--border);
}

/* ── Install (dark section) ── */

.install-section {
  background: var(--bg-dark);
  color: var(--text-light);
  border-top: 3px solid var(--accent) !important;
}

.install-section + section { border-top: none; }

.install-section h2 {
  color: var(--text-light);
}

.install-section h3 {
  color: var(--text-light);
}

.install-section .label {
  color: var(--accent);
}

.install-section .label::before {
  background: var(--accent);
}

.install-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.install-section .section__desc,
.install-section p,
.install-section li,
.download-meta {
  color: rgba(250, 248, 244, 0.55);
}

.install-section strong {
  color: var(--text-light);
}

.codebox {
  margin-top: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: 2px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.84rem;
  line-height: 1.8;
  overflow-x: auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(250, 248, 244, 0.75);
}

.codebox .prompt { color: rgba(250, 248, 244, 0.35); }
.codebox .success { color: var(--green); }

.install-section .btn--fill {
  background: var(--text-light);
  color: var(--bg-dark);
  border-color: var(--text-light);
}

.install-section .btn--fill:hover {
  background: rgba(250, 248, 244, 0.85);
}

.install-section .btn--outline {
  border-color: rgba(250, 248, 244, 0.2);
  color: var(--text-light);
}

.install-section .btn--outline:hover {
  border-color: rgba(250, 248, 244, 0.5);
}

.install-section ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.85;
}

/* ── Data / Trust ── */

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.file-tree {
  background: var(--bg-code);
  border-radius: 2px;
  padding: 1.5rem;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.86rem;
  line-height: 1.85;
  color: rgba(250, 248, 244, 0.55);
  overflow-x: auto;
}

.ft-line {
  padding: 0.15rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ft-dir { color: var(--text-light); font-weight: 600; }
.ft-encrypted { color: var(--accent); }
.ft-note { margin-left: auto; font-size: 0.74rem; opacity: 0.5; font-family: 'Outfit', sans-serif; }

.trust-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.trust-card p,
.trust-copy {
  color: var(--muted);
  line-height: 1.7;
}

.trust-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.85;
  color: var(--muted);
}

.trust-card li strong {
  color: var(--text);
}

/* ── Footer ── */

footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-inner strong {
  color: var(--text);
}

.footer-inner em {
  font-style: normal;
  display: block;
  margin-top: 0.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */

/* --- Tablet landscape / small desktop --- */
@media (max-width: 1080px) {
  .protection-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .install-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .kb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kb-group {
    border-bottom: 1px solid var(--border);
  }

  .kb-group:nth-child(2n) { border-right: none; }
  .kb-group:nth-last-child(-n+2) { border-bottom: none; }
}

/* --- Tablet portrait / large phone --- */
@media (max-width: 760px) {
  section { padding: 4rem 0; }

  .container {
    width: min(calc(100% - 2rem), var(--max));
  }

  /* Nav */
  .site-header > .container {
    flex-wrap: wrap;
    min-height: 56px;
    gap: 0.5rem;
  }

  .main-nav { display: none; }

  .header-actions {
    display: flex;
    gap: 0.5rem;
  }

  .header-actions .btn {
    min-height: 44px;
    font-size: 0.84rem;
    padding: 0.5rem 1rem;
  }

  /* Buttons: 44px minimum touch target */
  .btn { min-height: 44px; }

  /* Hero */
  .hero { padding: 3.5rem 0 2.5rem; }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .hero__desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn { width: 100%; }

  /* Exposure */
  .exposure { padding: 3.5rem 0; }

  /* Features: single column */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    border-right: 1px solid var(--border);
  }

  /* Protection cards: single column */
  .protection-cards {
    grid-template-columns: 1fr;
  }

  .layer-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .layer-card:last-child { border-bottom: none; }

  /* Fingerprint grid: 2-up */
  .fp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fp-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .fp-item:nth-child(2n) { border-right: none; }
  .fp-item:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .fp-item:nth-child(n+5) { border-bottom: none; }

  /* Filters: single column */
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .filter-card:last-child { border-bottom: none; }

  /* Comparison table: smaller text */
  table { font-size: 0.82rem; }
  th, td { padding: 0.7rem 0.65rem; }

  /* Architecture: single column */
  .arch-grid {
    grid-template-columns: 1fr;
  }

  .arch-tile {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .arch-tile:last-child { border-bottom: none; }

  /* Shortcuts: single column */
  .kb-grid {
    grid-template-columns: 1fr;
  }

  .kb-group {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .kb-group:last-child { border-bottom: none; }

  /* Install & Trust */
  .install-grid { gap: 2rem; }
  .trust-grid { gap: 2rem; }
  .btn-row .btn { flex: 1; min-width: 0; text-align: center; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-links { gap: 1rem; }

  h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
}

/* --- Small phone --- */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  /* Hide secondary header button on tiny screens */
  .header-actions .btn--outline { display: none; }
  .header-actions .btn--fill { flex: 1; }

  section { padding: 3rem 0; }

  .hero { padding: 2.5rem 0 2rem; }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    line-height: 1.08;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat__number {
    font-size: 2.2rem;
  }

  .stat__label {
    font-size: 0.65rem;
  }

  .exposure { padding: 2.5rem 0; }

  .exposure__text {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .exposure__cta {
    font-size: 0.85rem;
    margin-top: 1.75rem;
  }

  .feature {
    grid-template-columns: 44px 1fr;
    padding: 1.25rem 1rem;
    gap: 0.5rem;
  }

  .feature__num { font-size: 1.5rem; }
  .feature p { font-size: 0.85rem; }

  .stack-layer {
    padding: 1rem 1rem 1rem 1.15rem;
  }

  .stack-layer strong { font-size: 0.86rem; }
  .stack-layer span { font-size: 0.84rem; }

  .fp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  th, td { padding: 0.6rem 0.5rem; font-size: 0.78rem; }

  .codebox {
    padding: 1rem;
    font-size: 0.76rem;
  }

  .file-tree {
    padding: 1rem;
    font-size: 0.78rem;
  }

  .ft-note { display: none; }

  .footer-links { font-size: 0.82rem; }
}
