/* HeyPlane website. One stylesheet, no web fonts, no third-party requests.
   Colours are the app's Night flight tokens (docs/DESIGN_LANGUAGE.md). */
:root {
  color-scheme: dark;
  --sky-top: #162750;
  --sky-middle: #0b1430;
  --deep: #070b14;
  --navy: #0c1426;
  --surface: rgba(12, 20, 38, 0.7);
  --line: #1f2a44;
  --text: #eaf0ff;
  --text-secondary: #c9d3ee;
  --muted: #8d9ab8;
  --yellow: #ffce1f;
  --blue: #0a84ff;
  --measure: 40rem;
}

* { box-sizing: border-box; }

html {
  background: var(--deep);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-middle) 20rem, var(--deep) 34rem) no-repeat, var(--deep);
  color: var(--text);
  font: 300 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--yellow); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--measure) + 2.5rem); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { display: flex; gap: 1.1rem; font-size: 0.9375rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

main { flex: 1; }

/* Home */
.hero { text-align: center; padding: 2.5rem 0 1rem; }
.hero .app-icon { width: 104px; height: 104px; border-radius: 23px; box-shadow: 0 12px 40px rgba(255, 206, 31, 0.16); }
.hero h1 { margin: 1.25rem 0 0.25rem; font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.hero .tagline { margin: 0 auto; max-width: 30rem; color: var(--text-secondary); font-size: 1.25rem; }
.badge { display: inline-block; margin-top: 1.5rem; padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.875rem; font-weight: 400; }

.watch { display: block; width: min(15rem, 70vw); height: auto; margin: 2.5rem auto 0; }
.watch .pulse { transform-origin: 120px 150px; animation: pulse 2.4s ease-out infinite; }
.watch .pulse-2 { animation-delay: -1.2s; }
@keyframes pulse { from { transform: scale(0.15); opacity: 1; } to { transform: scale(1); opacity: 0; } }
/* Aircraft move along straight tracks in SVG user units (see index.html). */
.flight-1 { transform: translate(40px, 86px); animation: fly-1 26s linear -4s infinite; }
@keyframes fly-1 { from { transform: translate(0px, 60px); } to { transform: translate(260px, 230px); } }
.flight-2 { transform: translate(198px, 84px); animation: fly-2 30s linear -6s infinite; }
@keyframes fly-2 { from { transform: translate(250px, 70px); } to { transform: translate(-10px, 140px); } }
.flight-3 { transform: translate(64px, 249px); animation: fly-3 34s linear -5s infinite; }
@keyframes fly-3 { from { transform: translate(40px, 290px); } to { transform: translate(200px, 10px); } }
.flight-4 { transform: translate(167px, 213px); animation: fly-4 44s linear -30s infinite; }
@keyframes fly-4 { from { transform: translate(-10px, 240px); } to { transform: translate(250px, 200px); } }
.flight-5 { transform: translate(105px, 102px); animation: fly-5 40s linear -27s infinite; }
@keyframes fly-5 { from { transform: translate(240px, 250px); } to { transform: translate(40px, 30px); } }
@media (prefers-reduced-motion: reduce) {
  .watch .pulse { animation: none; transform: scale(0.45); opacity: 0.55; }
  .watch .pulse-2 { display: none; }
  .watch .flight { animation: none; }
}

.steps { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { text-align: center; }
.steps .label { display: block; color: var(--muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; }
.steps .value { display: block; font-size: 1.0625rem; }

/* Long-form pages */
.page { padding: 1.5rem 0 3rem; }
.page h1 { margin: 0 0 0.25rem; font-size: 2.25rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.page .updated { margin: 0 0 2rem; color: var(--muted); font-size: 0.9375rem; }
.page h2 { margin: 2.5rem 0 0.5rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.page h3 { margin: 1.5rem 0 0.25rem; font-size: 1.0625rem; font-weight: 600; }
.page p, .page ul { margin: 0 0 1rem; }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: 0.35rem; }
.page strong { font-weight: 600; }
.page code { font-size: 0.9em; }

.summary { margin: 0 0 2rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

.contact { display: inline-block; margin: 0.25rem 0 1.5rem; font-size: 1.25rem; font-weight: 500; }

details { border-top: 1px solid var(--line); padding: 0.9rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; list-style-position: outside; }
details p { margin: 0.6rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.site-footer nav { display: flex; gap: 1.1rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
