/* databits.site — single page. Dark ink and off-white bands alternate; amber is used sparingly. */
:root {
  --ink: #0C1820;
  --ink-2: #13222B;
  --paper: #F4F6F3;
  --paper-2: #E9EDEA;
  --text-dark: #E8EEEE;
  --text-dark-2: #B9C7CB;
  --text-light: #13222B;
  --text-light-2: #46565E;
  --slate: #93A6AC;
  --amber: #F2B544;
  --line-dark: #22343D;
  --line-light: #CBD5D2;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 72rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text-dark); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.03; letter-spacing: -0.03em; }
h2 { font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.1; }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack-l { display: flex; flex-direction: column; gap: 48px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.light .eyebrow.dim, .doc .eyebrow.dim { color: #8A6316; }
.lead { font-size: 1.15rem; }
.label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: env(safe-area-inset-top, 0px); padding-bottom: 56px; display: flex; flex-direction: column; gap: clamp(48px, 9vw, 104px); }
.bitfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.nav, .hero-copy, .trust { position: relative; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-weight: 500; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.logo-dot { width: 9px; height: 9px; background: var(--amber); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; font-size: 0.95rem; }
.menu a { text-decoration: none; color: var(--text-dark-2); }
.menu a:hover { color: var(--text-dark); }
.menu .menu-cta { color: var(--ink); background: var(--amber); padding: 8px 14px; border-radius: 3px; }
.menu .menu-cta:hover { color: var(--ink); background: #F6C76A; }
.menu-btn { display: none; font: 500 0.9rem var(--mono); background: none; color: var(--text-dark); border: 1px solid #3A4D56; border-radius: 3px; padding: 7px 12px; cursor: pointer; }

.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 46rem; }
.hero-copy em { font-style: normal; color: var(--amber); }
.hero-sub { font-size: 1.2rem; color: #C3D0D3; max-width: 36rem; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.btn { display: inline-block; font: 500 1rem var(--body); text-decoration: none; padding: 13px 20px; border-radius: 3px; border: 1px solid var(--amber); background: var(--amber); color: #1A1405; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: #F6C76A; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text-dark); border-color: #5B7380; }
.btn.ghost:hover { border-color: var(--slate); }
.trust { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--mono); font-size: 0.78rem; color: var(--slate); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 5px; height: 5px; background: var(--slate); opacity: .6; }

/* ---------- Bands ---------- */
.band { padding-block: clamp(64px, 10vw, 120px); }
.band.light { background: var(--paper); color: var(--text-light); }
.band.light p, .band.light li { color: var(--text-light-2); }
.band.light .lead { color: var(--text-light); }
.band.dark { background: var(--ink); color: var(--text-dark); border-top: 1px solid var(--line-dark); }
.band.dark p, .band.dark li { color: var(--text-dark-2); }
.band.dark .lead { color: var(--text-dark); }
.intro { display: flex; flex-direction: column; gap: 18px; max-width: 46rem; }
.split-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: start; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.svc { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 12px; }
.svc + .svc { padding-left: 28px; border-left: 1px solid var(--line-light); }
.svc .label { color: #6A7A80; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--text-light); }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-size: 0.8rem; color: #8A6316; }

/* Our apps: one row per app, copy beside its screenshots, sides alternating */
.app { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: 48px; border-top: 1px solid var(--line-dark); }
.app:nth-of-type(even) .app-copy { order: 2; }
.app-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app .label { color: var(--slate); }
.app h3 { font-size: clamp(1.6rem, 3vw, 2rem); color: var(--text-dark); }
.app .who strong, .app .ticks strong { color: var(--text-dark); font-weight: 600; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.shots { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shot-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shot { width: 100%; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--ink-2); }
.shot-row .shot { aspect-ratio: 4 / 3; object-fit: contain; object-position: top center; }
.shot-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.shot-note { font-size: 0.85rem; color: var(--text-dark-2); }

.store-note { max-width: min(26rem, calc(100vw - 40px)); padding: 28px; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--ink-2); color: var(--text-dark); }
.store-note::backdrop { background: rgba(12, 24, 32, .75); }
.store-note h3 { margin-bottom: 10px; }
.store-note p { color: var(--text-dark-2); margin-bottom: 22px; }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--amber); }
.band.light .ticks strong { color: var(--text-light); font-weight: 600; }

.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.portrait { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; filter: grayscale(1) contrast(1.05); }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 500; font-size: 1.08rem; color: var(--text-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--mono); font-size: 1.3rem; color: var(--amber); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 38rem; }

.email { font-family: var(--mono); font-size: 0.95em; user-select: all; }
.form { display: flex; flex-direction: column; gap: 18px; background: #fff; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line-light); border-radius: 4px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--text-light); }
.opt { font-weight: 400; color: var(--text-light-2); }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--text-light); background: var(--paper); border: 1px solid var(--line-light); border-radius: 3px; padding: 11px 12px; width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: transparent; }
.field textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-light-2); }
.check input { margin-top: 5px; accent-color: #8A6316; }
.form .btn { align-self: flex-start; }
.form-status { font-size: 0.95rem; color: var(--text-light); min-height: 1.4em; }
.form-status.err { color: #A23B3B; }
.fine { font-size: 0.82rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; font-size: 0.88rem; color: var(--slate); }
.foot a { color: var(--text-dark-2); }

/* Reveal: visible by default; only animated when JS adds .js and motion is allowed */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .split-2, .about { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 320px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .svc, .svc + .svc { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app:nth-of-type(even) .app-copy { order: 0; }
  .menu-btn { display: inline-block; }
  .menu { display: none; position: absolute; top: 64px; right: max(20px, env(safe-area-inset-right, 0px)); flex-direction: column; align-items: stretch; gap: 4px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 4px; padding: 10px; min-width: 200px; z-index: 5; }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 8px 10px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; text-align: center; }
  .form .btn { align-self: stretch; }
}

/* Privacy page and 404 page. Kept here, not in the HTML: the CSP allows no
   inline styles. */
.doc { background: var(--paper); color: var(--text-light); padding-block: 56px 96px; }
.doc .inner { max-width: 44rem; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.35rem; margin-top: 18px; }
.doc p, .doc li { color: var(--text-light-2); }
.doc ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
.topbar { padding-block: 22px; }
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-block: 80px; }
.notfound .hint { color: var(--text-dark-2); }
