/* Self-hosted (not Google Fonts CDN) — same reasoning as the site's own
   self-hosted, cookieless Umami analytics: no third-party request just to
   render text. Both files are variable fonts covering Inter's full
   weight axis (100-900) in one file each, not one file per weight —
   `font-weight: 100 900` below is the standard way to declare that range
   for a single @font-face rather than needing a separate block per
   weight actually used (400/600/700/800 elsewhere in this file).
   latin-ext adds the diacritics the Slovak copy on this page needs
   (á, č, ľ, š, ž, ...) that the plain latin subset alone doesn't cover. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The page follows the app (3.0): a plain page, flat single-colour cards with a
   header band, near-black ink, and a light and a dark set of the same colours
   chosen by the visitor's system setting. No gradients, glows or scroll effects. */
:root {
  --page: #ffffff;
  --card: #f2f3f6;
  --band: rgba(0, 0, 0, 0.055);
  --inset: #ffffff;
  --ink: #17181a;
  --ink-2: #5c606a;
  --ink-3: #8a8e98;
  --line: rgba(0, 0, 0, 0.1);
  --link: #0a64d6;
  --station: #32ade6;
  --airport: #34c759;
  --radius: 20px;
  --max-width: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0b0c;
    --card: #1d1d1f;
    --band: rgba(255, 255, 255, 0.09);
    --inset: #2a2a2d;
    --ink: #f4f4f5;
    --ink-2: #a9adb6;
    --ink-3: #7d818b;
    --line: rgba(255, 255, 255, 0.13);
    --link: #6cb1ff;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--page);
  color: var(--ink);
  /* The app's own face where the device has it (SF Pro Rounded), Inter elsewhere. */
  font-family: ui-rounded, "SF Pro Rounded", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p a,
.legal-body a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Horizontal gutter and centring only; sections set their own vertical rhythm. */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding-top: 44px;
  padding-bottom: 44px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head p {
  margin-top: 10px;
  color: var(--ink-2);
}

.kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-3);
}

.note {
  margin-top: 14px;
  max-width: 820px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* Left over in the legal pages' markup from the previous design. */
.bg-glow,
.bg-noise {
  display: none;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* The app's primary button: ink on paper, inverted. */
.btn-primary {
  background: var(--ink);
  color: var(--page);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--band);
  box-shadow: inset 0 0 0 100px var(--card);
  outline: 1px solid var(--line);
}

.appstore-badge img {
  height: 50px;
  width: auto;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
}

.hero-platforms {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-3);
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 13em;
}

.lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 26px;
  list-style: none;
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* A screenshot, shown as it is: rounded like the device, with a hairline edge. */
.shot {
  width: 330px;
  border-radius: 46px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.35);
}

/* A piece cut from a screenshot (one card). */
.crop {
  width: 100%;
  max-width: 452px;
  border-radius: 24px;
}

.credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding-top: 8px;
  padding-bottom: 28px;
}

.credits img {
  height: 44px;
  width: auto;
}

/* ---------- Cards (the app's card: a header band, then the content) ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-head {
  padding: 8px 16px;
  background: var(--band);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}

.card-body {
  padding: 14px 16px 16px;
}

.card-body p {
  font-size: 0.97rem;
  color: var(--ink-2);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 56px;
}

/* ---------- Sources ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 56px;
  align-items: center;
}

.split-text p {
  margin-top: 12px;
  color: var(--ink-2);
}

.dot {
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-station {
  background: var(--station);
}

.dot-airport {
  background: var(--airport);
}

.dot-model {
  border: 1.5px solid var(--ink-3);
}

.dot-legend {
  margin-top: 20px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.dot-legend li {
  display: flex;
  gap: 12px;
  color: var(--ink-2);
}

.dot-legend .dot {
  margin-top: 0.55em;
}

.dot-legend strong {
  color: var(--ink);
  font-weight: 600;
}

.demo-card .reading {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.demo-card .reading .dot {
  margin-top: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stats dt {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.stats dd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.stats .dot,
.source-lines .dot {
  width: 7px;
  height: 7px;
}

.source-lines {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-3);
  text-align: center;
}

figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-3);
  text-align: center;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.source-list dt {
  font-weight: 600;
}

.source-list dd {
  margin-top: 4px;
  font-size: 0.93rem;
  color: var(--ink-2);
}

/* ---------- Coverage table ---------- */

.table-scroll {
  overflow-x: auto;
  background: var(--card);
  border-radius: var(--radius);
}

.coverage {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.93rem;
  text-align: left;
}

.coverage thead th {
  padding: 10px 16px;
  background: var(--band);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.coverage tbody th,
.coverage td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.coverage tbody tr:first-child th,
.coverage tbody tr:first-child td {
  border-top: 0;
}

.coverage tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.coverage td {
  color: var(--ink-2);
}

.coverage em,
.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--band);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
  vertical-align: middle;
}

.cov-none,
.cov-none span {
  color: var(--ink-3);
}

/* ---------- Features ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.feature:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature .shot {
  width: 290px;
  justify-self: center;
  border-radius: 40px;
}

.feature .crop {
  grid-column: 2;
  justify-self: center;
}

.feature-text p,
.gallery-text p,
.beyond-item p {
  margin-top: 10px;
  color: var(--ink-2);
}

.feature-list {
  margin-top: 16px;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
  color: var(--ink-2);
}

.feature-list li::marker {
  color: var(--ink-3);
}

.gallery {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.gallery-text {
  max-width: 640px;
}

.gallery-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.gallery-shots .shot {
  width: 100%;
  border-radius: 13% / 6%;
}

/* ---------- Watch and widgets ---------- */

.beyond {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.beyond-item {
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius);
}

.beyond-item h3 {
  margin-top: 24px;
}

.watch-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  min-height: 330px;
  align-content: center;
}

.watch-shots img {
  width: 137px;
  border-radius: 26px;
  border: 5px solid #000;
  background: #000;
}

.shot-small {
  width: 152px;
  border-radius: 22px;
  box-shadow: none;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  padding-bottom: 18px;
  color: var(--ink-2);
}

/* ---------- Download ---------- */

.download {
  padding: 44px 28px;
  background: var(--card);
  border-radius: var(--radius);
  text-align: center;
}

.download-icon {
  margin: 0 auto 16px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.download p {
  margin-top: 8px;
  color: var(--ink-2);
}

.download .hero-actions {
  justify-content: center;
}

.download .note {
  margin: 22px auto 0;
  max-width: 560px;
}

/* ---------- Footer ---------- */

footer {
  padding-top: 28px;
  padding-bottom: 40px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-top .brand {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* ---------- Legal pages (privacy, terms) ---------- */

.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.legal-body h3 {
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal-body h3:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 12px;
  color: var(--ink-2);
}

.legal-body ul.feature-list {
  margin: 0 0 14px;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .hero,
  .split,
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual,
  .feature > img {
    justify-self: center;
  }

  .feature .crop {
    grid-column: 1;
  }

  .source-list,
  .card-grid,
  .beyond {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 24px 16px;
    background: var(--page);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .source-list,
  .card-grid,
  .beyond {
    grid-template-columns: 1fr;
  }

  .gallery-shots {
    gap: 10px;
  }

  .shot {
    width: min(330px, 78vw);
  }

  .watch-shots {
    min-height: 0;
  }

  .watch-shots img {
    width: 30%;
  }
}
