/* ---------------------------------------------------------------------------
   fasted.benbasha.com — web identity, extending the app's design tokens
   (tokens/colors.ts, tokens/typography.ts): deep slate surfaces, the signature
   teal→green accent gradient, Inter, generous radii, tabular numerals.
--------------------------------------------------------------------------- */

:root {
  --bg: #0f172a;
  --bg-deep: #070d1c;
  --surface: #1e293b;
  --surface-2: #27364e;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --track: #334155;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);

  --teal: #2dd4bf;
  --green: #22c55e;
  --on-accent: #06281c;
  --orange: #fb923c;
  --accent-gradient: linear-gradient(135deg, #2dd4bf, #22c55e);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);

  --content: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: inherit;
}

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

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

/* Numerals that don't jump — the app's tabular-nums timer convention. */
.tnum {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------- header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.header-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: var(--text);
}

/* ------------------------------- store CTA ------------------------------- */

.store-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badges.center {
  justify-content: center;
}

/* The app's primary CTA: teal→green gradient pill with dark ink on top. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(45, 212, 191, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(45, 212, 191, 0.38);
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
}

.store-badge .badge-lines {
  display: grid;
  line-height: 1.15;
  text-align: start;
}

.store-badge .badge-lines small {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Pre-launch: the CTA is visible but inert and clearly marked. */
.store-badge.soon {
  pointer-events: none;
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: none;
  border: 1px solid var(--line-strong);
}

.store-badge.soon::after {
  content: 'Soon';
  position: absolute;
  top: -10px;
  inset-inline-end: -10px;
  background: var(--accent-gradient);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 2px 10px;
}

/* -------------------------------- footer --------------------------------- */

.site-footer {
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 14px;
  padding: 44px 0 52px;
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: grid;
  gap: 12px;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration-color: rgba(203, 213, 225, 0.35);
}

.site-footer a:hover {
  color: var(--teal);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 500;
}

/* ------------------------------ legal pages ------------------------------ */

.legal-main {
  padding: 44px 0 88px;
}

.legal-main .wrap {
  max-width: 780px;
}

.legal-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 38px 42px 46px;
  box-shadow: var(--shadow-card);
}

.legal-doc h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

.legal-doc .effective {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 26px;
}

.legal-doc h2 {
  font-size: 21px;
  margin: 36px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-doc p,
.legal-doc li {
  color: #d5dce8;
}

.legal-doc ul {
  padding-inline-start: 22px;
}

.legal-doc li {
  margin: 6px 0;
}

.legal-doc a {
  color: var(--teal);
  text-decoration-color: rgba(45, 212, 191, 0.45);
}

.callout {
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}

.callout strong {
  color: var(--teal);
}

/* A red-tinted callout for the health disclaimer. */
.callout.warn {
  background: rgba(251, 146, 60, 0.09);
  border-color: rgba(251, 146, 60, 0.3);
}

.callout.warn strong {
  color: var(--orange);
}

/* The in-page section anchors are the first thing to go when the header gets
   tight — the legal links must always stay reachable. */
@media (max-width: 860px) {
  .header-nav {
    gap: 16px;
    font-size: 14.5px;
  }

  .header-nav .nav-section {
    display: none;
  }
}

@media (max-width: 640px) {
  .legal-doc {
    padding: 26px 22px 34px;
  }

  .header-nav {
    gap: 14px;
    font-size: 14px;
  }
}
