/* ─────────────────────────────────────────────────────────────
   sha256sum.rygielski.net — global styles
   Dark, technical, tight. Echoes the app's palette.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:        #0a0d12;
  --bg-soft:   #0d1117;
  --surface:   #141a22;
  --surface-2: #1c2330;
  --border:    #232b3a;
  --border-mute: #1a2230;

  --text:      #e6edf3;
  --text-dim:  #b9c1cc;
  --mute:      #8a93a3;
  --faint:     #5b6577;

  --green:     #7ce3b1;
  --green-dim: rgba(124,227,177,0.12);
  --blue:      #289DF7;
  --blue-dim:  rgba(40,157,247,0.14);
  --amber:     #f0a868;
  --red:       #ff7b72;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: #a3edcb; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.accent { color: var(--green); }
em { color: var(--text); font-style: normal; font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(40px, 5vw, 68px); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.1; }
h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; line-height: 1.2; }
h4 { font-size: 18px; font-weight: 600; }

.section-h { max-width: 760px; }

p { margin: 0 0 14px; color: var(--text-dim); }
.body-l { font-size: 18px; line-height: 1.65; }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,13,18,0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-mute);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a {
  color: var(--mute); font-size: 14px; font-weight: 500;
}
.site-header nav a:hover { color: var(--text); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% 18%, rgba(40,157,247,0.10), transparent 65%),
    radial-gradient(800px 600px at 85% 95%, rgba(124,227,177,0.07), transparent 60%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 60px; align-items: center;
}
.hero-copy { max-width: 580px; }
.hero-icon {
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
.lead {
  font-size: 19px; line-height: 1.6; color: var(--text-dim);
  margin: 22px 0 28px; max-width: 540px;
}

.cta-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-bottom: 26px;
}

.badge-play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px; border-radius: 10px;
  background: #fff; color: #000;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.badge-play:hover {
  color: #000; transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}
.badge-play small {
  display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: #444; line-height: 1.1;
}
.badge-play strong {
  display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.15;
}
.badge-play.big { padding: 14px 26px 14px 20px; }
.badge-play.big strong { font-size: 22px; }

.cta-secondary {
  color: var(--mute); font-size: 14px; font-weight: 500;
}
.cta-secondary:hover { color: var(--text); }

.hero-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: var(--text-dim);
}
.hero-bullets li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 12px rgba(124,227,177,0.45); }
.dot-blue  { background: var(--blue);  box-shadow: 0 0 12px rgba(40,157,247,0.45); }
.dot-amber { background: var(--amber); box-shadow: 0 0 12px rgba(240,168,104,0.45); }

/* ─── Phone frames ───────────────────────────────────────────── */
.phone {
  position: relative;
  border-radius: 36px;
  padding: 6px;
  background: linear-gradient(180deg, #2a3140, #131820);
  box-shadow:
    0 50px 100px rgba(0,0,0,0.55),
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  width: 100%;
}
.phone img {
  border-radius: 30px;
  width: 100%; height: auto;
  display: block;
}
.phone-tilt-r { transform: rotate(2deg); }
.phone-tilt-l { transform: rotate(-2deg); }

.hero-phone-stack {
  position: relative;
  height: 640px;
}
.hero-phone-stack .phone {
  position: absolute;
  width: 290px;
}
.phone-back {
  right: 0; top: 18px;
  transform: rotate(8deg) translateY(0);
  opacity: 0.55;
  filter: saturate(0.7);
}
.phone-front {
  left: 0; top: 0;
  transform: rotate(-3deg);
  z-index: 2;
}

/* ─── Story section ──────────────────────────────────────────── */
.story {
  padding: 70px 0 50px;
  border-top: 1px solid var(--border-mute);
  background: var(--bg-soft);
}
.story h2 { max-width: 880px; margin-bottom: 24px; }
.story p { max-width: 760px; }

/* ─── Features section ───────────────────────────────────────── */
.features {
  padding: 80px 0 60px;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(124,227,177,0.04), transparent 60%),
    var(--bg-soft);
}
.features .kicker { margin-bottom: 14px; }
.features .section-h { margin-bottom: 60px; }

.feature {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px;
  align-items: center;
  padding: 50px 0;
  border-top: 1px solid var(--border-mute);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }

.feature-copy { max-width: 540px; }
.feature-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--green); letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.feature-copy h3 { margin-bottom: 16px; }
.feature-copy p { margin-bottom: 18px; }

.check-list {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.check-list li {
  position: relative; padding-left: 24px;
  color: var(--text-dim);
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.legend {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 14px; color: var(--text-dim);
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.leg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
}
.leg-blue  { background: var(--blue-dim);  color: var(--blue);  }
.leg-amber { background: rgba(240,168,104,0.16); color: var(--amber); }
.leg-red   { background: rgba(255,123,114,0.16); color: var(--red); }

.terminal {
  background: var(--bg);
  border: 1px solid var(--border-mute);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  color: var(--text-dim);
  overflow: auto;
  margin: 18px 0;
  white-space: pre;
}
.terminal .dim  { color: var(--faint); }
.terminal .hash { color: var(--green); }

.feature-shot {
  margin: 0;
  display: flex; align-items: center; justify-content: center;
}
.feature-shot .phone { width: 320px; }
.feature-shot.side-by-side {
  display: flex; gap: 18px; align-items: center; justify-content: center;
}
.feature-shot.side-by-side .phone { width: 240px; }
.feature-shot.side-by-side .phone.small { width: 220px; opacity: 0.92; }

/* ─── Use cases ──────────────────────────────────────────────── */
.use-cases {
  padding: 90px 0;
  border-top: 1px solid var(--border-mute);
}
.use-cases .section-h { margin-bottom: 40px; }
.use-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.use-card {
  background: var(--surface);
  border: 1px solid var(--border-mute);
  border-radius: 14px;
  padding: 22px 20px;
  transition: border-color .12s, transform .12s;
}
.use-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.use-card h4 { margin-bottom: 10px; color: var(--text); }
.use-card p { margin: 0; font-size: 15px; line-height: 1.55; }

/* ─── Privacy summary ────────────────────────────────────────── */
.privacy {
  padding: 90px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-mute);
}
.privacy-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px;
  align-items: start;
}
.privacy-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px;
}
.privacy-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--text-dim);
}
.px {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-dim); color: var(--green);
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
}

/* ─── CTA final ──────────────────────────────────────────────── */
.cta-final {
  padding: 110px 0; text-align: center;
  border-top: 1px solid var(--border-mute);
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 360px at 50% 0%, rgba(40,157,247,0.10), transparent 60%);
  pointer-events: none;
}
.cta-final h2 { margin: 0 auto 36px; max-width: 720px; position: relative; }
.cta-final .badge-play { position: relative; }
.cta-final .package {
  margin-top: 22px; font-size: 13px; color: var(--mute);
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-mute);
  background: var(--bg);
  padding: 32px 0;
}
.foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700;
}
.foot-brand img { border-radius: 6px; }
.foot-nav { display: flex; gap: 22px; }
.foot-nav a { color: var(--mute); font-size: 14px; }
.foot-nav a:hover { color: var(--text); }
.copy { margin: 0; font-size: 12px; color: var(--faint); }

/* ─── Privacy page ───────────────────────────────────────────── */
.legal {
  padding: 60px 0 100px;
}
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: 40px; margin-bottom: 10px; }
.legal .effective {
  font-family: var(--mono); font-size: 13px; color: var(--mute);
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 22px; margin-top: 40px; margin-bottom: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-mute);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 17px; margin-top: 22px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--text-dim); line-height: 1.7; font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--green); }
.legal .callout {
  background: var(--surface);
  border: 1px solid var(--border-mute);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal .back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 28px; font-size: 14px; color: var(--mute);
}
.legal .back:hover { color: var(--text); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero { padding: 60px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-phone-stack { height: 560px; max-width: 520px; margin: 0 auto; }
  .feature { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .feature.reverse { direction: ltr; }
  .feature-shot { order: -1; }
  .use-grid { grid-template-columns: 1fr 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
  .privacy-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-header nav { display: none; }
  .hero { padding: 40px 0 60px; }
  .hero-phone-stack { height: 460px; }
  .hero-phone-stack .phone { width: 230px; }
  .use-grid { grid-template-columns: 1fr; }
  .privacy-list { grid-template-columns: 1fr; }
  .feature-shot .phone { width: 280px; }
  .feature-shot.side-by-side { flex-direction: column; }
  .feature-shot.side-by-side .phone,
  .feature-shot.side-by-side .phone.small { width: 240px; }
  .cta-final { padding: 70px 0; }
  .foot { flex-direction: column; align-items: flex-start; }
}
