/* GasPass website — matches the app's dark theme (DesignTokens). */

@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1a1d29;
  --surface: #2a2d3e;
  --surface-2: #252837;
  --line: #3a3e52;
  --text: #ffffff;
  --muted: #b0b4c5;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --amber: #f59e0b;
  --green: #10b981;
  --radius: 14px;
  --gutter: 16px;
  --max: 960px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--blue); }
a:hover { color: #60a5fa; }

img { max-width: 100%; height: auto; display: block; }

.nowrap { white-space: nowrap; }

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

/* ---- Header ---------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(26, 29, 41, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.3px;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.beta {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.65);
  border-radius: 6px;
  padding: 1px 6px;
  line-height: 1.5;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 15px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

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

main { padding: 32px 0 48px; }

h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.5px; }
h2 { font-size: clamp(22px, 4vw, 28px); line-height: 1.25; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero > * { min-width: 0; }
.hero .shots { display: flex; gap: 12px; justify-content: center; }
.hero .shots img {
  flex: 0 1 48%;
  min-width: 0;
  width: 48%;
  max-width: 230px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hero .shots img:last-child { margin-top: 36px; }

.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }

/* ---- Cards ----------------------------------------------------------- */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 10px;
}
.card p { color: var(--muted); margin: 0; font-size: 15px; }

.notice {
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0;
}
.notice strong { color: var(--amber); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }

.danger {
  border: 1px solid rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0;
}
.danger strong { color: #f87171; }

/* ---- Steps ----------------------------------------------------------- */

ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 48px;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 15px;
}
ol.steps > li > strong { display: block; }

/* ---- Download box ---------------------------------------------------- */

.download {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.download img { width: 72px; height: 72px; border-radius: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.sha {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  word-break: break-all;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 12px;
}

/* ---- Prose pages (privacy, terms) ------------------------------------ */

.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose h3 { font-size: 18px; margin-top: 22px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 4px; }
.table-scroll { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer .legal { flex-basis: 100%; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero .shots { order: -1; }
  .hero .shots img { max-width: 170px; }
  .site-nav { margin-left: 0; width: 100%; margin-bottom: 6px; }
  .download { grid-template-columns: 1fr; }
}
