/* Inter — self-hosted variable font (latin + latin-ext), from Google Fonts v20. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../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+0304, U+0308, U+0329, U+2000-206F, 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(../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+0304, U+0308, U+0329, 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;
}

/* =========================================================
   StationWeather — Landing page styles
   ========================================================= */

:root {
  /* Brand palette — derived from the app icon gradient */
  --brand-300: #5ec5fb;
  --brand-400: #29b6f6;
  --brand-500: #0a9df7;
  --brand-600: #0b84e0;
  --brand-700: #0a6dc0;

  /* Deep navy — from the supplied Background.png */
  --navy-900: #08182c;
  --navy-850: #0a1f38;
  --navy-800: #0e2740;
  --navy-700: #143655;

  --ink-900: #0c1722;
  --ink-700: #2b3a4a;
  --ink-500: #5a6a7a;
  --ink-300: #8a99a8;

  --surface: #ffffff;
  --surface-muted: #f3f7fb;
  --surface-line: #e3ebf3;

  --vfr: #3ec46d;
  --mvfr: #f2c12e;
  --ifr: #ef5b5b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(8, 24, 44, 0.06);
  --shadow-md: 0 10px 30px rgba(8, 24, 44, 0.12);
  --shadow-lg: 0 30px 60px rgba(8, 24, 44, 0.22);

  --container: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-600);
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

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

p {
  margin: 0 0 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.muted {
  color: var(--ink-500);
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.6rem;
}

.section {
  padding: clamp(56px, 8vw, 110px) 0;
}

.section--muted {
  background: var(--surface-muted);
}

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section__head p {
  font-size: 1.12rem;
  color: var(--ink-500);
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--ink-900);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 132, 224, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 14px 30px rgba(11, 132, 224, 0.45);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--surface-line);
}
.btn--ghost:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
}

/* Apple App Store badge (official lockup image) */
.appstore-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.appstore-badge:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}
.appstore-badge img {
  height: 48px;
  width: auto;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-color: var(--surface-line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400; /* "weather" — regular */
  font-size: 1.15rem;
  color: #000;
  letter-spacing: -0.02em;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand b {
  font-weight: 700; /* "station" — bold */
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.96rem;
}
.nav__links a:hover {
  color: var(--brand-600);
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
}
.lang-switch a {
  display: inline-block;
  padding: 0.3rem 0.45rem;
  border-radius: 7px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}
.lang-switch a:hover {
  color: var(--brand-600);
  background: var(--surface-muted);
}
.lang-switch a[aria-current="true"] {
  color: var(--ink-900);
  background: var(--surface-muted);
}
/* In-menu language row (mobile only) — hidden on desktop */
.nav__lang {
  display: none;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--surface-line);
  border-radius: 12px;
  cursor: pointer;
}
.nav__toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Language suggestion bar ---------- */
.lang-suggest {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.lang-suggest.is-visible {
  max-height: 160px;
}
.lang-suggest__inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.lang-suggest__text {
  font-size: 0.95rem;
  font-weight: 500;
}
.lang-suggest__cta {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.lang-suggest__cta:hover {
  opacity: 0.85;
}
.lang-suggest__close {
  margin-left: auto;
  flex: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  opacity: 0.85;
}
.lang-suggest__close:hover {
  opacity: 1;
}
@media (max-width: 560px) {
  .lang-suggest__inner {
    flex-wrap: wrap;
  }
  .lang-suggest__close {
    margin-left: 0;
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #eaf3fb;
  background: radial-gradient(
      1200px 600px at 78% -10%,
      rgba(41, 182, 246, 0.35),
      transparent 60%
    ),
    linear-gradient(160deg, var(--navy-850) 0%, var(--navy-900) 60%, #061222 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(56px, 9vw, 110px) 0;
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-300), #9fe0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 1.2rem;
  color: #b8cee2;
  max-width: 30ch;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(41, 182, 246, 0.14);
  border: 1px solid rgba(94, 197, 251, 0.3);
  color: #bfe6ff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}
.hero__rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
  color: #cfe0f0;
  font-size: 0.92rem;
}
.stars {
  color: #ffc83d;
  letter-spacing: 2px;
  font-size: 1rem;
}
.hero__phone {
  position: relative;
  justify-self: center;
}
.hero__phone img {
  width: min(330px, 78vw);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
  border-radius: 38px;
}
.hero__glow {
  position: absolute;
  inset: 6% 12% 10% 12%;
  background: radial-gradient(
    closest-side,
    rgba(41, 182, 246, 0.55),
    transparent
  );
  filter: blur(40px);
  z-index: -1;
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--navy-900);
  color: #9db4ca;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 34px 0;
  text-align: center;
}
/* Titles align to the top of each cell; the title grows to fill so the
   labels still align along the bottom, even when a title wraps to two lines */
.trust__grid > div {
  display: flex;
  flex-direction: column;
}
.trust__num {
  flex: 1 0 auto;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.trust__label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(41, 182, 246, 0.4);
}
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff;
  margin-bottom: 1.1rem;
}
.card__icon svg {
  width: 26px;
  height: 26px;
}
.card h3 {
  margin-bottom: 0.4rem;
}
.card p {
  margin-bottom: 0;
  color: var(--ink-500);
  font-size: 0.98rem;
}

/* ---------- Alternating feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.feature-row + .feature-row {
  margin-top: clamp(56px, 9vw, 120px);
}
.feature-row--reverse .feature-row__media {
  order: 2;
}
.feature-row__media {
  display: flex;
  justify-content: center;
}
.feature-row__media img {
  width: min(300px, 70vw);
  border-radius: 30px;
  filter: drop-shadow(0 26px 44px rgba(8, 24, 44, 0.28));
}
.feature-row__body .eyebrow {
  margin-bottom: 0.7rem;
}
.feature-row__body p {
  color: var(--ink-500);
  font-size: 1.05rem;
}
.feature-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink-700);
}
.feature-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--vfr);
}

.flags {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 1.3rem;
}
.flag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  color: #08321c;
}
.flag--vfr {
  background: var(--vfr);
}
.flag--mvfr {
  background: var(--mvfr);
}
.flag--ifr {
  background: var(--ifr);
  color: #380a0a;
}
/* NOTAM filter categories */
.flag--runway {
  background: var(--ifr);
  color: #380a0a;
}
.flag--taxiway {
  background: var(--mvfr);
}
.flag--vor {
  background: var(--vfr);
}

/* ---------- Showcase gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
}
.gallery figure {
  margin: 0;
  text-align: center;
}
.gallery img {
  width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 20px 36px rgba(8, 24, 44, 0.3));
  transition: transform 0.2s ease;
}
.gallery figure:hover img {
  transform: translateY(-5px);
}
.gallery figcaption {
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-700);
}

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  color: #fff;
  text-align: center;
  background: radial-gradient(
      900px 400px at 50% -20%,
      rgba(41, 182, 246, 0.4),
      transparent 60%
    ),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  overflow: hidden;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: #b8cee2;
  font-size: 1.15rem;
  max-width: 48ch;
  margin-inline: auto;
}
.cta__icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  margin: 0 auto 1.4rem;
  box-shadow: var(--shadow-lg);
}
.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin-inline: auto;
}
.faq details {
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  padding: 0 1.2rem;
  margin-bottom: 0.8rem;
  background: #fff;
  transition: box-shadow 0.15s ease;
}
.faq details[open] {
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand-600);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  margin: 0 0 1.1rem;
  color: var(--ink-500);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #9db4ca;
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer__brand .brand {
  color: #fff;
}
.footer__brand p {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: 0.95rem;
}
.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer a {
  color: #9db4ca;
  font-size: 0.95rem;
}
.footer a:hover {
  color: #fff;
}
.footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
}

/* ---------- Legal / content pages ---------- */
.legal {
  padding: clamp(48px, 7vw, 90px) 0;
}
.legal__inner {
  max-width: 760px;
  margin-inline: auto;
}
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.4rem;
}
.legal .updated {
  color: var(--ink-500);
  font-size: 0.92rem;
  margin-bottom: 2.4rem;
}
.legal h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.6rem;
}
.legal p,
.legal li {
  color: var(--ink-700);
}
.legal ul {
  padding-left: 1.2rem;
}
.legal .placeholder {
  background: var(--surface-muted);
  border: 1px dashed var(--brand-400);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: var(--ink-500);
  font-size: 0.95rem;
}
.legal .back {
  display: inline-block;
  margin-top: 2.6rem;
  font-weight: 600;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__lead {
    margin-inline: auto;
  }
  .hero__actions,
  .hero__rating {
    justify-content: center;
  }
  .hero__phone {
    order: -1;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-row,
  .feature-row--reverse .feature-row__media {
    grid-template-columns: 1fr;
    order: 0;
  }
  .feature-row__body {
    text-align: center;
  }
  .feature-list {
    display: inline-grid;
    text-align: left;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav__links,
  .nav__cta .btn {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--surface-line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 22px 1rem;
  }
  .nav.is-open .nav__links li {
    width: 100%;
  }
  .nav.is-open .nav__links a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--surface-line);
  }
  /* Hide the top-bar language switcher on the homepage; show it inside the open menu */
  #nav .nav__cta .lang-switch {
    display: none;
  }
  .nav.is-open .nav__lang {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.9rem 0 0.2rem;
  }
  .nav.is-open .nav__lang a {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--surface-line);
    border-radius: 8px;
  }
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem 1rem;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Dark mode ----------
   Dark mode is currently FORCED ON for all visitors (regardless of OS setting).
   To revert to automatic (follow the OS / browser preference), change the
   `@media all` line below back to: @media (prefers-color-scheme: dark) */
@media all {
  :root {
    color-scheme: dark;
    /* "White" surfaces become very dark gray — not pitch black */
    --surface: #17191d;
    --surface-muted: #1e2125;
    --surface-line: #2e333a;

    /* Text inverts to light */
    --ink-900: #e9edf1;
    --ink-700: #c3ccd5;
    --ink-500: #97a3ae;
    --ink-300: #6f7c88;

    /* Deeper shadows so cards still read on a dark background */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.6);
  }

  /* Translucent sticky top bar → dark gray instead of white */
  .site-header {
    background: rgba(23, 25, 29, 0.82);
  }

  /* Header wordmark was pure black for light mode — make it light here */
  .brand {
    color: var(--ink-900);
  }

  /* Raised surfaces get a subtle lift above the page */
  .card,
  .faq details {
    background: var(--surface-muted);
  }

  /* Light-on-light spots that were hardcoded white */
  .skip-link,
  .nav.is-open .nav__links {
    background: var(--surface);
  }
}
