/* AeroLumio website.
   Colours come from the two logos: the night sky they sit on, the horizon
   blue and the sunrise gold. Jost (headings) echoes the geometric lettering
   of the wordmarks; Atkinson Hyperlegible (body) is the face AviaAstra uses
   for reading at a glance. Both are bundled in fonts/ (SIL Open Font License). */

@font-face { font-family: "Jost"; src: url("fonts/jost-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-display: swap; }

:root {
  --night: #01040f;     /* the edge of the AeroLumio image: the hero blends in */
  --deep: #071733;
  --horizon: #4aa3ff;
  --gold: #f1b54a;
  --mist: #e7eef8;
  --haze: #a3b6cf;
  --line: rgba(163, 182, 207, 0.18);
  --display: "Jost", "Futura", "Century Gothic", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--mist);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--horizon); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; color: #fff; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: 0.01em; }
h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.25; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night);
  padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons: gold is the one action colour on the page. */
.button {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 999px;
  background: var(--gold); color: #08142b; font: 500 1rem/1 var(--display);
  letter-spacing: 0.04em; text-decoration: none; border: 1px solid var(--gold);
}
.button:hover { background: #ffc965; border-color: #ffc965; }
.button-quiet { background: transparent; color: var(--mist); border-color: rgba(231, 238, 248, 0.45); }
.button-quiet:hover { background: rgba(231, 238, 248, 0.08); border-color: var(--mist); }
.button-small { padding: 0.55rem 1.05rem; font-size: 0.92rem; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.75rem var(--gutter);
  background: rgba(1, 4, 15, 0.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none;
  font: 400 1.15rem/1 var(--display); letter-spacing: 0.14em; }
.brand img { border-radius: 50%; }
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav nav a { color: var(--haze); text-decoration: none; font-size: 0.98rem; }
.nav nav a:hover { color: #fff; }

/* Hero: the logo is the sunrise; the page grows out of its horizon. */
.hero { padding: 0 var(--gutter) 5rem; text-align: center; }
.hero-art {
  width: min(1180px, 100%); margin: 0 auto;
  /* Fade every edge into the night: sides and bottom, so no rectangle shows. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(180deg, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(180deg, #000 90%, transparent);
  mask-composite: intersect;
  animation: sunrise 2.2s ease-out both;
}
@keyframes sunrise {
  from { opacity: 0.15; filter: brightness(0.55) saturate(0.7); transform: translateY(14px); }
  to { opacity: 1; filter: none; transform: none; }
}
.hero-text { max-width: 44rem; margin: 0.5rem auto 0; position: relative; }
.hero-text h1 { max-width: 18ch; margin: 0 auto; }
.hero-text p { color: var(--haze); font-size: 1.15rem; max-width: 40rem; margin: 1.2rem auto 0; }
.actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* Shared section rhythm: left-aligned text on a fixed measure. */
.loop, .product, .instructor, .about {
  max-width: 1120px; margin: 0 auto; padding: 5rem var(--gutter);
  border-top: 1px solid var(--line);
}
.lede { color: var(--haze); font-size: 1.15rem; max-width: var(--measure); margin-top: 0.9rem; }

/* The loop: three stages on one gold flight path (a real sequence). */
.path {
  list-style: none; margin: 3.2rem 0 0; padding: 0; counter-reset: stage;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; position: relative;
}
.path::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0.95rem; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  box-shadow: 0 0 14px rgba(241, 181, 74, 0.55);
}
.path li { position: relative; padding-top: 3.2rem; counter-increment: stage; }
.path li::before {
  content: counter(stage); position: absolute; top: 0; left: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--night); border: 2px solid var(--gold); color: var(--gold);
  font: 500 0.95rem/1 var(--display);
}
.path p { color: var(--haze); margin-top: 0.7rem; max-width: 34ch; }

/* AviaAstra */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.product-art {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent),
    linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent),
    linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  mask-composite: intersect;
}
.product-text > * + * { margin-top: 1rem; }
.motto { font: 300 1.35rem/1.35 var(--display); color: var(--gold); letter-spacing: 0.02em; }
.product-text p { max-width: var(--measure); }
.checks { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px solid var(--line);
  color: var(--mist); }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 1.12rem; width: 0.55rem; height: 2px;
  background: var(--horizon); }
.principle { color: var(--haze); font-size: 0.98rem; border-left: 2px solid var(--gold);
  padding-left: 1rem; }
.product-text .button { margin-top: 1.6rem; }

/* Instructor and About: quiet, reading-width sections. */
.instructor > *, .about > * { max-width: var(--measure); }
.instructor p, .about p { color: var(--haze); margin-top: 1rem; }
.status { display: inline-block; margin-top: 0.9rem !important; padding: 0.25rem 0.8rem;
  border: 1px solid rgba(241, 181, 74, 0.6); border-radius: 999px; color: var(--gold) !important;
  font: 400 0.9rem/1.4 var(--display); letter-spacing: 0.04em; }

.footer { border-top: 1px solid var(--line); padding: 2.5rem var(--gutter) 3rem; text-align: center;
  color: var(--haze); font-size: 0.95rem; }
.footer img { margin: 0 auto 0.9rem; border-radius: 50%; }
.footer .fine { max-width: 60ch; margin: 0.6rem auto 0; font-size: 0.85rem; opacity: 0.8; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 1.5rem; }
  .path { grid-template-columns: 1fr; gap: 2rem; padding-left: 3rem; }
  .path::before { left: 0.95rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--gold), var(--gold) 85%, transparent); }
  .path li { padding-top: 0; }
  .path li::before { left: -3rem; }
}
@media (max-width: 720px) {
  .nav { gap: 1rem; }
  .nav nav { display: none; }
  .nav .button-small { margin-left: auto; }
  .hero-text { margin-top: 0.75rem; }
  .loop, .product, .instructor, .about { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
}

/* Privacy and terms pages: plain reading layout. */
.legal { max-width: var(--measure); margin: 0 auto; padding: 48px var(--gutter) 64px; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 .25rem; color: #fff; }
.legal .updated { color: var(--haze); margin: 0 0 2rem; }
.legal h2 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--gold); margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--mist); line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .3rem 0; }
.legal a { color: var(--horizon); }
.legal table { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .55rem .5rem; border-bottom: 1px solid var(--line); color: var(--mist); }
.legal th { color: var(--haze); font-weight: 400; font-size: .92rem; }
.footer .links a { color: var(--haze); margin: 0 .5rem; }
