/* Speed Meter website. Same look as the app: orange accent, pure black in dark mode,
   Outfit for headings and Manrope for text (fonts bundled from assets/fonts). */

@font-face { font-family: Manrope; src: url(fonts/Manrope-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/Manrope-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/Manrope-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/Manrope-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/Outfit-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/Outfit-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --accent: #ff6d00;
  --accent-text: #c25200;
  --on-accent: #1a0b00;
  --bg: #fbf8f6;
  --surface: #ffffff;
  --surface-2: #f4eee9;
  --text: #1c1714;
  --muted: #5f5751;
  --line: #e8dfd8;
  --glow: rgba(255, 109, 0, 0.16);
  --radius: 20px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-text: #ff9a4d;
    --bg: #000000;
    --surface: #0f0d0c;
    --surface-2: #181513;
    --text: #f5efea;
    --muted: #b1a79f;
    --line: #2a2522;
    --glow: rgba(255, 109, 0, 0.22);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: Outfit, Manrope, system-ui, sans-serif; line-height: 1.15; letter-spacing: -0.01em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 14px; z-index: 10; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 19px Outfit, sans-serif; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-header nav { margin-left: auto; display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 10% auto; height: 520px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.hero img.logo { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 24px; box-shadow: 0 12px 40px var(--glow); }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin: 0 0 14px; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.tag a { color: var(--text); text-decoration: none; }
.tag a:hover { color: var(--accent-text); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn svg { width: 22px; height: 22px; }
.soon { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- Sections */
section { padding: 56px 0; }
.section-title { text-align: center; margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.section-lead { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 620px; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; }
.shots img {
  flex: 0 0 auto; width: 220px; border-radius: 22px; border: 1px solid var(--line);
  scroll-snap-align: center; background: var(--surface);
}
@media (min-width: 1100px) { .shots { justify-content: center; } }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glow); color: var(--accent-text);
}
.icon svg { width: 24px; height: 24px; }

.split { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; align-items: center; }
.split img { border-radius: 16px; border: 1px solid var(--line); }
.split h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; }
.split p { color: var(--muted); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.privacy-band { background: var(--surface); border-block: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------------------------------------------------------------- Legal pages */
.doc { max-width: 760px; padding: 48px 22px 64px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc .summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.doc .summary p { margin: 0; }
.table-scroll { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 800; background: var(--surface-2); }
.doc li { margin: 4px 0; }

/* ---------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--text); }
.devby { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.devby a { color: var(--text); text-decoration: none; }
.devby a:hover { color: var(--accent-text); }
.devby i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

@media (max-width: 560px) {
  .site-header nav { gap: 14px; }
  .site-header nav a.hide-sm { display: none; }
  .hero { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
