/* SkyHaul's site, style « Aube »: a light page, the icon's dawn sky (indigo, rose, gold) as the opening picture,
   rounded cards, the game shown on a phone. One stylesheet for the home page, privacy and support. */

@font-face {
  font-family: Inter;
  src: url(fonts/Inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #fbf6f0;
  --card: #ffffff;
  --ink: #1d1b3a;
  --ink-soft: #5b5873;
  --indigo: #2a2f7e;
  --violet: #6c4fa6;
  --rose: #e27c9e;
  --peach: #ffb072;
  --gold: #ffe0a3;
  --line: #ece3d8;
  --edge: clamp(16px, 4vw, 48px);
  --width: 1180px;
  --dawn: linear-gradient(to bottom, var(--indigo), var(--violet) 32%, var(--rose) 58%, var(--peach) 80%, var(--gold));
}

/* Both languages are in each page: the one of <html lang> shows (site.js sets it), French without JavaScript. */
html:not([lang="en"]) [lang="en"],
html[lang="en"] [lang="fr"] { display: none; }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2 { font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(26px, 3vw, 38px); }

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px var(--edge);
  background: rgb(251 246 240 / 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 15px;
  font-weight: 500;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.bar nav { display: flex; gap: 22px; margin-right: auto; color: var(--ink-soft); }
.bar nav a:hover { color: var(--ink); }
.lang {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  padding: 6px 14px;
  cursor: pointer;
}
.download, .button {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 650;
}
.download { padding: 8px 18px; }
.button { display: inline-block; padding: 14px 26px; }

/* Apple's badge, as Apple draws it: never restyled, clear space around it. */
.badge { display: inline-block; margin-top: 30px; }
.badge img { display: block; height: 56px; width: auto; }

.hero { padding: 8px var(--edge) 0; }
.sky {
  min-height: min(78vh, 720px);
  border-radius: 36px;
  padding: clamp(32px, 6vw, 80px);
  background: url(img/a350.webp) right 3% top 44% / 54% auto no-repeat, var(--dawn);
  color: #fff;
}
.intro { max-width: 480px; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; margin-bottom: 18px; }
.lead { font-size: 20px; margin-top: 20px; max-width: 440px; text-shadow: 0 1px 14px rgb(42 47 126 / 0.35); }
.note { font-size: 14px; margin-top: 14px; opacity: 0.9; }

.phone {
  width: min(880px, 92%);
  margin: clamp(-150px, -11vw, -56px) auto 0;
  padding: 12px;
  background: #15142a;
  border-radius: clamp(26px, 4.6vw, 52px);
  box-shadow: 0 30px 80px rgb(42 47 126 / 0.28);
}
.phone img { display: block; width: 100%; height: auto; border-radius: clamp(16px, 3.6vw, 40px); }

.cards {
  max-width: calc(var(--width) + 2 * var(--edge));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) var(--edge) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.cards article { background: var(--card); border-radius: 28px; padding: 12px 12px 28px; border: 1px solid var(--line); }
.cards img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.cards h2 { font-size: 24px; margin: 22px 14px 0; }
.cards p { color: var(--ink-soft); margin: 10px 14px 0; }

.wide {
  max-width: calc(var(--width) + 2 * var(--edge));
  margin: 22px auto 0;
  padding: 0 var(--edge);
  position: relative;
}
.wide img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 28px; display: block; }
.wide .words {
  position: absolute;
  left: calc(var(--edge) + 28px);
  bottom: 28px;
  max-width: 400px;
  background: var(--card);
  border-radius: 22px;
  padding: 24px 26px;
}
.wide h2 { font-size: 24px; }
.wide p { color: var(--ink-soft); margin-top: 10px; }

.block {
  max-width: calc(var(--width) + 2 * var(--edge));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--edge) 0;
  scroll-margin-top: 40px;
}
.block > p { color: var(--ink-soft); margin-top: 12px; max-width: 560px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pills li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; }
.pills .icao { color: var(--violet); font-size: 12px; letter-spacing: 0.06em; margin-right: 4px; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.modes li { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.modes strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.modes li > span { color: var(--ink-soft); font-size: 15px; }

.closing {
  margin: clamp(64px, 9vw, 110px) var(--edge) 0;
  border-radius: 36px;
  padding: clamp(48px, 8vw, 96px) clamp(28px, 6vw, 80px);
  background: linear-gradient(160deg, var(--indigo), var(--violet) 38%, var(--rose) 72%, var(--peach));
  color: #fff;
}
.closing > img { border-radius: 22px; display: block; margin-bottom: 26px; box-shadow: 0 12px 40px rgb(29 27 58 / 0.35); }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 34px var(--edge);
  font-size: 14px;
  color: var(--ink-soft);
}
footer span { margin-right: auto; }
footer a:hover { color: var(--ink); }

/* Privacy and support: a short band of the dawn sky with the title, then a sheet of text over its lower edge. */
.page { padding: 8px var(--edge) 0; }
.band {
  border-radius: 36px;
  padding: clamp(36px, 6vw, 72px) clamp(28px, 6vw, 80px) clamp(84px, 10vw, 128px);
  background: linear-gradient(160deg, var(--indigo), var(--violet) 46%, var(--rose));
  color: #fff;
}
.band h1 { font-size: clamp(38px, 5vw, 64px); }
.band p { margin-top: 14px; font-size: 19px; max-width: 520px; opacity: 0.92; }
.sheet {
  max-width: 820px;
  margin: clamp(-84px, -7vw, -48px) auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 4.4vw, 56px);
  box-shadow: 0 30px 80px rgb(42 47 126 / 0.12);
}
.sheet h2 { font-size: 23px; letter-spacing: -0.02em; line-height: 1.2; margin-top: 38px; }
.sheet h2:first-child, .sheet .short + h2 { margin-top: 0; }
.sheet p, .sheet li { color: var(--ink-soft); margin-top: 10px; }
.sheet ul { list-style: disc; padding-left: 22px; }
.sheet a:not(.button) { color: var(--violet); font-weight: 600; }
.sheet a:not(.button):hover { text-decoration: underline; }
.short {
  background: var(--paper);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 38px;
}
.short p { color: var(--ink); margin-top: 6px; }
.short p:first-child { margin-top: 0; }
.short .button { margin-top: 16px; }
.sheet .updated { font-size: 14px; margin-top: 38px; }

@media (max-width: 760px) {
  .bar { gap: 12px; }
  .bar nav { display: none; }
  .brand { margin-right: auto; }
  .sky { border-radius: 26px; min-height: 750px; background-position: center bottom 104px, center; background-size: 92% auto, auto; }
  .cards, .modes { grid-template-columns: 1fr; }
  .wide img { aspect-ratio: 4 / 3; }
  .wide .words { position: static; max-width: none; margin-top: 14px; border: 1px solid var(--line); }
  .band, .closing { border-radius: 26px; }
}
