/* Mines Deep — the app's Slate palette: dark slate, light text, amber for what a number counts. */
:root {
  --bg: #0d1116; --bg2: #141a22; --panel: #171e27; --line: #26303b;
  --text: #e8edf3; --muted: #9aa7b5; --dim: #6f7c8a;
  --accent: #f2b33d; --flag: #ff5a47; --tile: #4a5a70; --tile-top: #5d6f88; --open: #1c232d;
  --n1: #4fa3e8; --n2: #3dbf8a; --n3: #f06a4f; --n4: #9d7cf0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
img, video { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
header.top .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 19px; }
header.top .brand img { width: 36px; height: 36px; border-radius: 8px; }
header.top nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
header.top nav a:hover, header.top nav a[aria-current] { color: var(--text); }
@media (max-width: 520px) { header.top nav a { margin-left: 12px; } header.top nav a.hide-sm { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 28px 0 40px; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 48px; } }
.hero-icon { display: block; width: clamp(84px, 14vw, 112px); height: auto; margin: 0 0 22px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.hero h1 { font-size: clamp(34px, 6.2vw, 58px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); margin: 0 0 26px; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: #0b0e12;
  padding: 12px 20px 12px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.badge svg { width: 22px; height: 22px; }
.cta .price { color: var(--muted); font-size: 15px; }
.phone { justify-self: center; width: min(320px, 78vw); aspect-ratio: 886 / 1920; border-radius: 44px;
  border: 1px solid #333f4c; background: #000; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 8px #0a0d11, 0 0 0 9px #2a3440; }
.phone video, .phone img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding: 36px 0; }
section h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 10px; }
section p.sub { color: var(--muted); margin: 0 0 24px; max-width: 40em; }
.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.split { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split figure { margin: 0; justify-self: center; }
.split figure img { width: min(300px, 70vw); border-radius: 26px; border: 1px solid var(--line); display: block; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 6px 0 6px 26px; position: relative; color: #cfd7e0; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 9px; height: 9px;
  border-radius: 2px; background: var(--accent); }

/* Screenshot strip */
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; }
.shots img { height: min(520px, 70vh); border-radius: 24px; border: 1px solid var(--line); scroll-snap-align: start;
  flex: none; }

/* Neighbourhood diagram */
.layers { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 8px 0 6px; }
.layers figure { margin: 0; text-align: center; }
.layers figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.layers svg { width: 150px; height: 150px; display: block; }

/* Articles */
article h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 12px 0 8px; }
article h2 { font-size: 22px; margin: 34px 0 8px; }
article h3 { font-size: 18px; margin: 22px 0 6px; }
article p, article li { color: #cfd7e0; }
article .meta { color: var(--dim); font-size: 15px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details p { margin: 0 0 14px; }
kbd { font: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 48px; color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); margin-right: 18px; text-decoration: none; }
footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { .phone video { display: none; } }
.phone img.still { display: none; }
@media (prefers-reduced-motion: reduce) { .phone img.still { display: block; } }
@media (max-width: 520px) { .layers { gap: 10px; } .layers svg { width: 104px; height: 104px; } .layers figcaption { font-size: 12px; } }
