/* Slab Scout — website stylesheet
   Identity: preset editorial · dark · amber (marketing/app-brief.md § Visual Identity Source)
   Tokens: #0E1013 base · #171A1F elevated · #232830 tonal · #3A414B outline
           #F2F3F5 primary text · #9BA3AD secondary · #F5A623 accent (single accent discipline) */

:root {
  --bg: #0E1013;
  --surface: #171A1F;
  --surface-2: #232830;
  --outline: #3A414B;
  --text: #F2F3F5;
  --muted: #9BA3AD;
  --amber: #F5A623;
  --amber-hover: #FFB740;
  --on-amber: #0E1013;
  --radius-card: 16px;
  --radius-chip: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-chip) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--surface-2);
}

.site-nav .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand img { width: 30px; height: 30px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 160ms ease;
}

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

.nav-links a.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color 160ms ease, color 160ms ease;
}

.nav-links a.nav-x:hover { border-color: var(--amber); color: var(--amber); }

.nav-links a.nav-x svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: var(--amber-hover); }

.btn-ghost {
  border: 1px solid var(--outline);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: 84px 96px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

.hero h1 {
  margin: 26px 0 20px;
  font-size: clamp(2.7rem, 5.4vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.028em;
  font-weight: 800;
}

.hero h1 .accent { color: var(--amber); }

.lede {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 34px;
}

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

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-meta {
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta strong { color: var(--text); }

.provenance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-chip);
  padding: 8px 14px;
  background: var(--surface);
}

.provenance .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); flex: none;
}

/* Phone frame */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.slab-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.slab-watermark svg { width: 130%; max-width: 620px; opacity: 0.5; }

.phone {
  position: relative;
  width: min(330px, 76vw);
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 30px;
}

/* ---------- Sections ---------- */

.section { padding-block: 88px; }

.section-tight { padding-block: 64px; }

.section-head { max-width: 720px; margin-bottom: 56px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* Intro band */

.intro-band {
  border-block: 1px solid var(--surface-2);
  background: var(--surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.intro-quote {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.intro-quote .accent { color: var(--amber); }

.intro-copy p { color: var(--muted); margin: 0 0 16px; }

.intro-copy p:last-child { margin-bottom: 0; }

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

/* Feature rows */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.flip .feature-copy { order: 2; }
.feature-row.flip .feature-visual { order: 1; }

.feature-visual { display: flex; justify-content: center; }

.tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.14);
  color: var(--amber);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-copy h3 {
  margin: 18px 0 14px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 800;
}

.feature-copy p { color: var(--muted); margin: 0; font-size: 1.02rem; }

.feature-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 2px solid var(--surface-2);
  padding-left: 14px;
}

/* Duo (detail + buy sheet) */

.duo {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.duo .phone { width: min(290px, 64vw); }

.duo-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 26px;
}

.duo-caption strong { color: var(--text); }

/* Execution wording band */

.execution-band {
  margin-top: 80px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.execution-band .line {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 22em;
}

.execution-band .line .accent { color: var(--amber); }

.execution-band .side {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 26em;
}

/* Banner band */

.banner-panel {
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}

.banner-panel img { display: block; width: 100%; height: auto; }

/* Trust cards */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-card);
  padding: 28px 26px;
}

.trust-card h3 {
  margin: 14px 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.trust-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.trust-card .glyph {
  width: 42px; height: 42px;
  border-radius: var(--radius-chip);
  background: var(--surface-2);
  border: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-card .glyph svg { width: 20px; height: 20px; fill: var(--amber); }

/* Download panel */

.download-panel {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 28px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.download-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.12;
}

.download-panel .sub { color: var(--muted); margin: 0 0 28px; }

.download-facts { display: grid; gap: 0; }

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--surface-2);
  font-size: 0.92rem;
}

.fact-row:first-child { border-top: 1px solid var(--surface-2); }

.fact-row dt { color: var(--muted); margin: 0; }

.fact-row dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }

.sha256 {
  font-family: var(--mono);
  font-size: 0.78rem;
  word-break: break-all;
  font-weight: 500;
}

.dl-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* FAQ */

.faq { max-width: 780px; }

.faq details {
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-chip);
  background: var(--surface);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
}

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

.faq summary .plus {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  position: relative;
}

.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  background: var(--amber);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.faq summary .plus::before { width: 10px; height: 1.5px; }
.faq summary .plus::after { width: 1.5px; height: 10px; transition: transform 160ms ease; }

.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.faq details a { color: var(--amber); }

/* ---------- Legal pages ---------- */

.legal-wrap {
  width: min(780px, 100% - 48px);
  margin-inline: auto;
  padding-block: 72px 96px;
}

.legal-wrap h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 10px 0 8px;
}

.legal-updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 34px; }

.legal-id {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  margin-bottom: 38px;
}

.legal-id dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }

.legal-id dt { color: var(--muted); font-size: 0.9rem; }

.legal-id dd { margin: 0; font-size: 0.9rem; font-weight: 600; }

.legal-wrap h2 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 44px 0 12px;
}

.legal-wrap h2 .idx { color: var(--amber); margin-right: 8px; }

.legal-wrap p { color: var(--muted); margin: 0 0 14px; }

.legal-wrap p strong { color: var(--text); font-weight: 600; }

.legal-wrap ul { color: var(--muted); margin: 0 0 14px; padding-left: 22px; }

.legal-wrap li { margin-bottom: 8px; }

.legal-wrap li strong { color: var(--text); font-weight: 600; }

.legal-wrap a { color: var(--amber); }

.legal-back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-back:hover { color: var(--amber); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--surface-2);
  background: var(--surface);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px 40px;
}

.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; max-width: 30em; }

.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin: 0 0 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 160ms ease;
}

.footer-col a:hover { color: var(--amber); }

.footer-col .ext { font-size: 0.78rem; color: var(--outline); }

.footer-attrib {
  border-top: 1px solid var(--surface-2);
  padding-block: 26px 34px;
}

.attrib-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
}

.attrib-lines p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.attrib-lines a { color: var(--text); font-weight: 700; text-decoration: none; }

.attrib-lines a:hover { color: var(--amber); }

.attrib-lines .bsa a { color: var(--amber); }

.footer-legal-line {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-legal-line a { color: var(--muted); }

.footer-legal-line a:hover { color: var(--amber); }

/* ---------- 404 ---------- */

.nf-wrap { min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; }

.nf-wrap .slab { width: 84px; margin: 0 auto 26px; display: block; }

.nf-wrap h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }

.nf-wrap p { color: var(--muted); margin: 0 0 30px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; padding-block: 56px 72px; }
  .hero-visual { order: -1; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; margin-bottom: 72px; }
  .feature-row.flip .feature-copy { order: 1; }
  .feature-row.flip .feature-visual { order: 2; }
  .trust-grid { grid-template-columns: 1fr; }
  .download-panel { grid-template-columns: 1fr; gap: 36px; padding: 44px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .container { width: min(1120px, 100% - 36px); }
  .nav-links { gap: 14px; margin-left: 0; }
  .section { padding-block: 64px; }
  .execution-band { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal-id dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-id dd { margin-bottom: 10px; }
  .attrib-lines { flex-direction: column; align-items: flex-start; gap: 10px; }
}

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