/* Quota – Flight Radar · support site. Night-cockpit palette, as in the app. */
:root {
  color-scheme: dark;
  --bg: #060b16;
  --bg-2: #0a1324;
  --surface: #0f1b2e;
  --surface-2: #142338;
  --line: rgba(157, 190, 222, 0.14);
  --text: #eaf1f8;
  --muted: #9cb0c6;
  --cyan: #26d9f2;
  --magenta: #ed5ced;
  --amber: #f5b83d;
  --green: #4ade80;
  --radius: 22px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
main, footer { overflow-x: clip; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Language: one document, two languages; the inactive one is hidden. */
html[data-lang="en"] [lang="it"],
html[data-lang="it"] [lang="en"] { display: none !important; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(6, 11, 22, 0.72);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: 600 12px/1 var(--mono); letter-spacing: 0.06em; padding: 7px 10px; border-radius: 999px; cursor: pointer;
}
html[data-lang="en"] .langs [data-set="en"],
html[data-lang="it"] .langs [data-set="it"] { background: var(--surface-2); color: var(--cyan); }
@media (max-width: 760px) { .top nav { display: none; } .langs { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.radar {
  position: absolute; inset: auto; width: 1100px; height: 1100px; right: -380px; top: -260px;
  border-radius: 50%; pointer-events: none; opacity: 0.55;
  background:
    radial-gradient(circle, transparent 0 59px, var(--line) 60px 61px, transparent 62px) center / 100% 100%,
    repeating-radial-gradient(circle, transparent 0 109px, rgba(38, 217, 242, 0.13) 110px 111px);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.radar::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(38, 217, 242, 0.32), rgba(38, 217, 242, 0) 55deg, transparent 360deg);
  animation: sweep 7s linear infinite;
}
.radar::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line);
  box-shadow: 0 0 0 0 transparent; transform: translateX(-50%);
}
.blip { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan); animation: blip 7s linear infinite; }
@keyframes sweep { to { transform: rotate(1turn); } }
@keyframes blip { 0%, 8% { opacity: 1; } 60%, 100% { opacity: 0.12; } }

.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, var(--cyan), #7fe9ff 60%, var(--magenta)); -webkit-background-clip: text; background-clip: text; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0 0 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px;
  font-weight: 650; font-size: 16px; border: 1px solid var(--line); color: var(--text); background: var(--surface);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: rgba(38, 217, 242, .4); }
.btn.primary { background: var(--cyan); color: #04121c; border-color: transparent; }
.btn.primary:hover { background: #5be5f7; }
.btn[aria-disabled="true"] { pointer-events: none; opacity: .85; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .75; line-height: 1.1; }
.btn .stack { display: flex; flex-direction: column; line-height: 1.15; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill { font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.pill b { color: var(--green); font-weight: 700; }

.phones { position: relative; height: 600px; }
.phone {
  position: absolute; width: 270px; aspect-ratio: 640 / 1390; border-radius: 44px; padding: 9px;
  background: linear-gradient(145deg, #2b3a50, #0c1524 45%, #202d40);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone.a { right: 170px; top: 10px; transform: rotate(-4deg); z-index: 2; }
.phone.b { right: 0; top: 70px; transform: rotate(5deg); }
@media (max-width: 920px) {
  .hero { padding-top: 56px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 470px; margin: 10px auto 0; width: min(420px, 100%); }
  .phone { width: 210px; }
  .phone.a { left: 0; right: auto; }
  .phone.b { right: 0; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Feature rows: text + screenshot */
.feature { display: grid; grid-template-columns: 1fr 270px; gap: 72px; align-items: center; padding: 34px 0; }
.feature.flip { grid-template-columns: 270px 1fr; }
.feature.flip .shot { order: -1; }
.feature h3 { font-size: 30px; letter-spacing: -0.02em; margin: 10px 0 12px; line-height: 1.15; }
.feature p { color: var(--muted); margin: 0 0 18px; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; }
.feature li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.feature .tag { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); }
.shot { position: relative; }
.shot .phone { position: relative; width: 100%; max-width: 260px; margin: 0 auto; transform: none; }
.shot::before { content: ""; position: absolute; inset: 12% 0; background: radial-gradient(closest-side, rgba(38, 217, 242, .18), transparent); filter: blur(10px); }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .shot { order: 0; }
  .shot .phone { max-width: 250px; }
}

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h4 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--cyan); }
.icon svg { width: 22px; height: 22px; }

/* Avionics strip */
.mfd { display: grid; grid-template-columns: repeat(6, 1fr); background: #050a12; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
.mfd div { padding: 16px 18px; border-right: 1px solid var(--line); }
.mfd div:last-child { border-right: 0; }
.mfd span { display: block; font: 700 12px/1 var(--mono); color: var(--cyan); letter-spacing: .08em; }
.mfd b { display: block; font: 700 22px/1.3 var(--mono); margin-top: 6px; }
.mfd b.mag { color: var(--magenta); }
@media (max-width: 760px) { .mfd { grid-template-columns: repeat(3, 1fr); } .mfd div:nth-child(3) { border-right: 0; } .mfd div:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
.note { font-size: 14px; color: var(--muted); margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; }
.note::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--mono); background: rgba(245, 184, 61, .15); color: var(--amber); margin-top: 2px; }

/* Data sources */
.sources { display: flex; flex-wrap: wrap; gap: 10px; }
.sources a, .sources span { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--text); font-size: 15px; background: var(--surface); }
.sources a:hover { border-color: rgba(38, 217, 242, .45); text-decoration: none; }
.sources small { color: var(--muted); margin-left: 6px; font-family: var(--mono); font-size: 12px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
details[open] { border-color: rgba(38, 217, 242, .3); }
summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px/1 var(--mono); color: var(--cyan); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); }

/* Support */
.support { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
@media (max-width: 860px) { .support { grid-template-columns: 1fr; } }
.support .card { padding: 30px; }
.support h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.02em; }
.mail { font: 600 18px/1.4 var(--mono); word-break: break-all; }
.support ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .grow { flex: 1; }
footer a { color: var(--muted); }

/* ---------- Privacy page ---------- */
.doc { padding: 64px 0 40px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.03em; line-height: 1.05; margin: 14px 0 10px; }
.doc .meta { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0 10px; }
@media (max-width: 700px) { .highlights { grid-template-columns: 1fr; } }
.highlights .card { padding: 20px; }
.highlights b { display: block; font-size: 17px; margin-bottom: 4px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 48px 0 14px; }
.doc p, .doc li { color: #c7d4e2; }
.doc ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.doc li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.doc li strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .radar::before, .blip { animation: none; }
  .btn { transition: none; }
}

/* App Store button: "coming soon" until the link is set in app.js */
[data-appstore] .now { display: none; }
[data-appstore].live .now { display: inline; }
[data-appstore].live .soon { display: none; }
