/* AirFlow Master — public pages (landing + privacy policy).
   Palette mirrors the app: night-sky navy from the launcher icon/splash
   (#0A1124) with the aurora green accent from the brand mark. */

:root {
  --sky-top: #05060c;
  --sky-mid: #0a1124;
  --sky-bottom: #0b1a2e;
  --ink: #e8ecf5;
  --ink-dim: #a3adc2;
  --accent: #4ade9b;
  --accent-soft: rgba(74, 222, 155, 0.14);
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --measure: 44rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* Aurora wash behind the content — the same teal/violet bloom as the app icon.
   Fixed and pointer-transparent so it never interferes with layout or taps. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(74, 222, 155, 0.13), transparent 70%),
    radial-gradient(45% 35% at 85% 15%, rgba(129, 92, 200, 0.14), transparent 70%),
    radial-gradient(50% 40% at 10% 30%, rgba(38, 122, 148, 0.12), transparent 70%);
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ---------- brand ---------- */

/* Full-bleed sticky bar: it sits outside .wrap, and only its inner row is
   constrained to the text measure so it lines up with the content below. */
.brandbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.7rem 1.25rem;
  background: rgba(5, 6, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.brandbar-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brandlink {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 0;
}

.brandbar .mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
}

.brandbar .wordmark {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 0;
  white-space: nowrap;
}

.brandbar .spacer {
  flex: 1 1 auto;
}

/* Narrow phones: the flag pills need the room more than the wordmark does, and
   404.html carries two of them. Clipped rather than `display: none` so the
   brand link keeps its accessible name — the logo mark alone has empty alt. */
@media (max-width: 26rem) {
  .brandbar .wordmark {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* Language switch — a pill, not a stray line of text. */
.langpill {
  flex: none;
  /* inline-flex so the flag and its label share a baseline; the download pill
     carries no flag and is unaffected. */
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-dim);
}

/* Flags ride inline as SVG, never as emoji: Windows has no flag glyphs, so
   🇵🇱 renders as the letters "PL" there. The hairline outline keeps the white
   half of the Polish flag from bleeding into the dark pill. */
.langpill .flag {
  flex: none;
  width: 1.05em;
  height: auto;
  border-radius: 2px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.55);
}

.langpill:hover,
.langpill:focus-visible {
  color: var(--ink);
  border-color: var(--accent);
}

/* The landing's second pill — the one that actually asks for the download. */
.langpill.accent {
  color: var(--accent);
  border-color: rgba(74, 222, 155, 0.4);
  background: var(--accent-soft);
}

.langpill.accent:hover,
.langpill.accent:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hero mark on the landing page: the app icon with an aurora bloom behind it. */
.hero {
  text-align: center;
  padding: 1.5rem 0 0;
}

.hero .mark {
  width: 108px;
  height: 108px;
  border-radius: 28%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 50px -12px rgba(74, 222, 155, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.5);
}

header.site {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero h1 {
  margin-top: 1.25rem;
}

h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  line-height: 1.25;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.tagline {
  color: var(--ink-dim);
  margin: 0 auto;
  max-width: 30rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.6rem;
  color: var(--accent);
  scroll-margin-top: 4.5rem;
}

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
}

p,
li {
  color: var(--ink);
}

ul {
  padding-left: 1.35rem;
}

li {
  margin: 0.3rem 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 222, 155, 0.35);
}

a:hover,
a:focus {
  border-bottom-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.meta {
  color: var(--ink-dim);
  font-size: 0.9rem;
}

/* "Last updated" as a quiet badge rather than a floating line. */
.badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--ink-dim);
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card);
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* Section spacing is meant for the document flow, not for inside a card. */
.card h2:first-child,
.card > h2 {
  margin-top: 0;
}

/* The plain-language summary at the top of the policy. */
.card.summary {
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), var(--card) 55%);
}

.card.summary p {
  margin: 0;
}

/* ---------- landing ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.75rem 0 0;
}

.stores a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.stores a:hover,
.stores a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* Platform marks sized off the label so they scale with the button. */
.stores svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* The primary store button gets the accent fill. */
.stores a.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #04210f;
  font-weight: 600;
}

.stores a.primary:hover,
.stores a.primary:focus-visible {
  background: #6ce9b0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.9rem;
  margin: 2.75rem 0 0;
}

.features .card {
  margin: 0;
}

.features h3 {
  margin: 0.6rem 0 0.3rem;
  color: var(--ink);
}

.features p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.93rem;
}

/* Inline chevron glyph echoing the icon's "Λ" mark. */
.glyph {
  display: block;
  width: 26px;
  height: 26px;
  color: var(--accent);
}

/* ---------- landing: hero ---------- */

/* The landing runs wider than the text measure used by the policy pages. */
.wide {
  max-width: 62rem;
}

.hero-xl {
  text-align: center;
  padding: 2.5rem 0 0;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(74, 222, 155, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 1.25rem;
}

.hero-xl h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  max-width: 20ch;
  margin: 0 auto 0.85rem;
}

.hero-xl h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  color: var(--ink-dim);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 46ch;
  margin: 0 auto;
}

/* Trust row under the store buttons — short, factual claims. */
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  padding: 0;
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

.trust li {
  margin: 0;
  color: var(--ink-dim);
}

.trust li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 0.4rem;
}

/* ---------- landing: phone shots ---------- */

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.6rem, 3vw, 1.75rem);
  margin: 3rem 0 0;
}

.phone {
  flex: 0 1 15rem;
  margin: 0;
  text-align: center;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone.featured {
  flex-basis: 17rem;
}

.phone figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

@media (max-width: 34rem) {
  .phones {
    flex-wrap: wrap;
  }
  .phone {
    flex-basis: 45%;
  }
  .phone.featured {
    flex-basis: 70%;
    order: -1;
  }
}

/* A single wide screenshot slab, image left / copy right. */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3rem);
  margin: 3rem 0;
}

.showcase img {
  display: block;
  width: 100%;
  max-width: 17rem;
  margin: 0 auto;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}

.showcase h2 {
  margin-top: 0;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.3;
}

@media (max-width: 50rem) {
  .showcase {
    grid-template-columns: 1fr;
  }
}

/* ---------- landing: numbered steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
  padding: 0;
  margin: 1.25rem 0 0;
}

.steps li {
  counter-increment: step;
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(74, 222, 155, 0.35);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.steps span {
  color: var(--ink-dim);
  font-size: 0.93rem;
}

/* ---------- landing: situation tiles ---------- */

.cats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.6rem;
  padding: 0;
  margin: 1.25rem 0 0;
}

.cats li {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 0.95rem;
}

.cats small {
  display: block;
  color: var(--ink-dim);
  font-size: 0.83rem;
}

/* ---------- landing: FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--card-border);
  padding: 0.85rem 0;
}

.faq details:last-of-type {
  border-bottom: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  flex: none;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0.6rem 0 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---------- landing: closing call to action ---------- */

.cta {
  text-align: center;
  padding: 2.25rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--accent-soft), var(--card) 60%);
  border: 1px solid rgba(74, 222, 155, 0.28);
  margin: 3rem 0 0;
}

.cta h2 {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
}

.cta .stores {
  margin-top: 1.25rem;
}

/* ---------- landing: section headers outside cards ---------- */

.section-head {
  text-align: center;
  margin: 3.5rem 0 0;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  color: var(--ink);
}

.section-head p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--ink-dim);
}

/* ---------- policy table of contents ---------- */

.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.1rem 1.25rem;
  margin: 0;
  padding: 0;
}

.toc li {
  counter-increment: toc;
  margin: 0;
}

.toc a {
  display: block;
  padding: 0.3rem 0;
  border-bottom: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.toc a::before {
  content: counter(toc) ".";
  display: inline-block;
  /* Wide enough for the two-digit sections (10–12) not to touch the title. */
  min-width: 1.7em;
  padding-right: 0.4rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--accent);
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
}

th {
  color: var(--ink-dim);
  font-weight: 600;
  white-space: nowrap;
}

footer.site {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
  color: var(--ink-dim);
  font-size: 0.9rem;
  text-align: center;
}

footer.site a {
  color: var(--ink-dim);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stores a {
    transition: none;
  }
}
