/* Stay Secure site. Colours, type and surfaces follow the app
   (lib/core/theme/app_theme.dart): near-black ground, glass cards,
   mint→cyan accent, Inter Tight headlines, Inter body. */

@font-face { font-family: "Inter Tight"; src: url(fonts/InterTight.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #05070A;
  --card-top: rgba(255, 255, 255, 0.06);
  --card-bottom: rgba(255, 255, 255, 0.022);
  --card-border: rgba(255, 255, 255, 0.08);
  --divider: rgba(255, 255, 255, 0.06);
  --text: #F5F7FA;
  --text-soft: #E4E8EE;
  --text-2: #A1A9B6;
  --text-3: #7D8696;
  --green: #3EF0B4;
  --green-tint: rgba(62, 240, 180, 0.14);
  --on-green: #03140E;
  --accent: linear-gradient(100deg, #6BFFD0, #2EE6B0 50%, #22D3EE);
  --radius: 24px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The accent glow behind the top of every app screen. */
body::before {
  content: "";
  position: absolute;
  top: -420px;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 176, 0.13), rgba(34, 211, 238, 0.04) 55%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

/* ── Header ── */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 19px/1 "Inter Tight", sans-serif; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { color: var(--text-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); text-decoration: none; }

/* ── Type ── */
h1, h2, h3 { font-family: "Inter Tight", sans-serif; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.04; }
h2 { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.accent { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: 18px; line-height: 1.55; }
.label { font: 600 12px/1 "Inter", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

/* ── Glass card ── */
.card {
  background: linear-gradient(var(--card-top), var(--card-bottom));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.rows > * + * { border-top: 1px solid var(--divider); }
.row { display: flex; gap: 14px; padding: 18px 20px; align-items: flex-start; }
.row h3 { margin-top: 7px; }
.row p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.tile {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(rgba(62, 240, 180, 0.22), rgba(62, 240, 180, 0.08));
  border: 1px solid rgba(62, 240, 180, 0.25);
  color: var(--green);
}
.tile svg { width: 18px; height: 18px; }

/* ── Store badges: the official artwork, the same files zenbyte.app's app pages use ── */
.store { display: inline-block; transition: transform 0.15s; }
.store:hover { transform: scale(1.02); }
.store img { display: block; height: 48px; width: auto; }

/* ── Landing ── */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero .lead { margin: 18px 0 30px; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero figure { margin: 0; justify-self: center; width: min(100%, 340px); }
.hero figure img { display: block; width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--card-border); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(46, 230, 176, 0.08); }
.section { padding: 56px 0; }
.section > h2 { margin-bottom: 8px; }
.section > .lead { margin: 0 0 28px; font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid .card { padding: 22px; }
.grid .card h3 { margin: 16px 0 6px; }
.grid .card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.steps { counter-reset: step; }
.steps .row::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-tint); color: var(--green);
  font: 700 13px/1 "Inter", sans-serif;
}
.steps h3 { font-size: 16px; }

/* ── Legal pages ── */
.doc { padding-top: 40px; padding-bottom: 72px; }
.doc header { margin-bottom: 28px; }
.doc header p { margin: 12px 0 0; color: var(--text-3); font-size: 14px; }
.summary { padding: 6px 0; margin-bottom: 40px; }
.doc h2 { font-size: 22px; margin: 44px 0 12px; scroll-margin-top: 20px; }
.doc h3 { font-size: 16px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-soft); font-size: 16px; line-height: 1.7; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--green); }
.doc strong { color: var(--text); font-weight: 600; }
.doc .muted { color: var(--text-2); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--card-border); }
.toc a:hover { color: var(--text); text-decoration: none; }
table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--divider); }
th { color: var(--text-3); font: 600 12px/1.3 "Inter", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
td { color: var(--text-soft); line-height: 1.55; }
td:first-child { color: var(--text); font-weight: 500; width: 34%; }
.table-card { padding: 4px 6px; overflow-x: auto; }
.table-card tr:last-child td { border-bottom: 0; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--divider); padding: 28px 0 40px; color: var(--text-3); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--text-2); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 24px 0 48px; gap: 36px; }
  .grid { grid-template-columns: 1fr; }
  .top nav { gap: 16px; }
  .top nav .hide-sm { display: none; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .store img { height: 40px; }
  td:first-child { width: 40%; }
  th, td { padding: 10px; }
}

/* Card rows and the section index inside legal pages keep their own spacing. */
.doc .row h3 { margin: 7px 0 0; }
.doc .row p { font-size: 15px; margin: 4px 0 0; color: var(--text-2); }
.doc .toc { padding: 0; margin-bottom: 8px; }
