/* BlitzortungLive – support website. No external fonts, scripts, cookies or trackers. */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #14161c;
  --muted: #5a6172;
  --border: #dfe3ee;
  --accent: #e88a00;          /* lightning orange, as in the app */
  --accent-strong: #b86a00;
  --forecast: #9b3bd1;        /* forecast purple, as in the app */
  --link: #0a5bd6;
  --hero-from: #1d2a4d;
  --hero-to: #3b2a63;
  --shadow: 0 10px 30px rgba(20, 30, 60, 0.10);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f15;
    --surface: #171a23;
    --surface-2: #1f2330;
    --text: #eef0f6;
    --muted: #a3aabb;
    --border: #2b3040;
    --accent: #ffad33;
    --accent-strong: #ffc266;
    --forecast: #c98af0;
    --link: #79aaff;
    --hero-from: #0f1630;
    --hero-to: #2a1d4a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  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(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.topbar nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }
.lang { font-weight: 600; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(255, 173, 51, 0.28), transparent 60%),
              linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 12px 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, 0.86); margin: 0 0 26px; max-width: 34em; }
.hero .icon { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.hero .phone { justify-self: center; width: min(300px, 80vw); border-radius: 36px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 14px;
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
}

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; min-height: 48px; border-radius: 14px;
  background: #fff; color: #111; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.button:hover { transform: translateY(-1px); }
.button svg { width: 20px; height: 20px; }

/* Sections */
section { padding: 64px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; letter-spacing: -0.01em; }
section .intro { color: var(--muted); margin: 0 0 30px; max-width: 46em; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 6px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .glyph { font-size: 26px; line-height: 1; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.tag.forecast { color: var(--forecast); border: 1.5px dashed var(--forecast); }
.tag.model { color: var(--muted); border: 1px solid var(--border); }

/* Screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 62vw); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface-2); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }

/* FAQ / help */
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 0 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 650; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { margin: 0 0 15px; color: var(--muted); }

.alt { background: var(--surface-2); }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.notice {
  border-left: 4px solid var(--accent); background: var(--surface); border-radius: 10px;
  padding: 14px 18px; color: var(--muted); font-size: 15px;
}

/* Footer */
footer { border-top: 1px solid var(--border); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Legal text pages */
.legal { max-width: 780px; padding: 40px 20px 60px; margin: 0 auto; }
.legal h1 { font-size: 32px; margin: 0 0 20px; }
.legal { overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phone { width: min(260px, 70vw); }
  .topbar nav a.optional { display: none; }
  section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
