/* AirSteady — airsteady.com
   Palette mirrors lib/core/constants/design_tokens.dart so the site and the
   app read as one product. Fonts are self-hosted on purpose: hotlinking
   Google Fonts would leak every visitor's IP to a third party on the same
   page that promises we don't do that. */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('fonts/karla-var.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #0E1324;
  --bg-2:      #141A33;
  --surface:   #1C2342;
  --text:      #F4F6FA;
  --text-2:    #BFC3D6;
  --text-3:    #8D93AA;
  --accent:    #5F9EA0;
  --accent-2:  #477B7D;
  --hair:      rgba(255, 255, 255, .09);
  --hair-soft: rgba(255, 255, 255, .05);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 66ch;
}

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

html {
  scroll-behavior: smooth;
  /* anchored sections clear the sticky bar */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.72;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── atmosphere ─────────────────────────────────────────────── */

/* fine grain so the flat navy has some tooth */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* a single soft horizon glow sitting behind the hero */
.glow {
  position: fixed;
  z-index: 0;
  left: 50%;
  top: 0;
  width: min(160vw, 1500px);
  height: 95vh;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% 62%, rgba(95, 158, 160, .20), transparent 68%),
    radial-gradient(42% 30% at 68% 30%, rgba(71, 123, 125, .13), transparent 70%);
  animation: drift 34s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to   { transform: translateX(-50%) translateY(-2.5%) scale(1.06); }
}

/* ── shell ──────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 0 0 .5rem 0;
}
.skip:focus { left: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--gutter);
  background: rgba(14, 19, 36, .78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--hair-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  text-decoration: none;
}
/* The app icon itself, not a redrawn logo — the site and the home screen have to
   show the same object. 22.37% is Apple's continuous corner radius, so the badge
   reads as the app icon rather than as a photo. */
.mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 22.37%;
  flex: none;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -.015em;
  font-variation-settings: 'SOFT' 12, 'WONK' 0, 'opsz' 20;
}

.topbar nav {
  display: flex;
  gap: clamp(.7rem, 2.4vw, 2rem);
  min-width: 0;
}
.topbar nav a {
  color: var(--text-3);
  text-decoration: none;
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: color .22s ease, border-color .22s ease;
}
.topbar nav a:hover,
.topbar nav a:focus-visible { color: var(--text); border-bottom-color: var(--accent); }

main { position: relative; z-index: 1; }

/* ── hero ───────────────────────────────────────────────────── */

.hero {
  padding: clamp(4.5rem, 13vh, 9rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  max-width: 72rem;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  font-size: .75rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.9rem, 1.6rem + 6.4vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--text);
  font-variation-settings: 'SOFT' 20, 'WONK' 0, 'opsz' 144;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
}

/* the steady horizon the whole page hangs off */
.horizon {
  height: 1px;
  margin: clamp(2rem, 5vh, 3.25rem) 0 clamp(1.75rem, 4vh, 2.5rem);
  background: linear-gradient(90deg, var(--accent), rgba(95, 158, 160, .28) 42%, transparent 88%);
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1rem + .38vw, 1.3125rem);
  line-height: 1.62;
  color: var(--text-2);
}

.disclaimer {
  margin: clamp(1.5rem, 4vh, 2.25rem) 0 0;
  max-width: 52ch;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-2);
  font-size: .9375rem;
  line-height: 1.62;
  color: var(--text-3);
}

.status {
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-3);
}

/* ── bands ──────────────────────────────────────────────────── */

.band {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) var(--gutter);
  border-top: 1px solid var(--hair);
}

.band-label {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-3);
  padding-top: .55rem;
}
.band-label .num {
  display: block;
  margin-bottom: .35rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  font-variation-settings: 'opsz' 24;
}

.band-body { min-width: 0; }

h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--text);
  font-variation-settings: 'SOFT' 20, 'WONK' 0, 'opsz' 60;
}

.lede-sm {
  margin: 0 0 2rem;
  max-width: var(--measure);
  color: var(--text-2);
}

/* features */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.features h3 {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  font-variation-settings: 'SOFT' 20, 'opsz' 20;
}
.features p {
  margin: 0;
  font-size: .96875rem;
  line-height: 1.66;
  color: var(--text-3);
}
.features li {
  padding-top: 1rem;
  border-top: 1px solid var(--hair-soft);
}

/* legal prose */
.prose { max-width: var(--measure); }
.prose h3 {
  margin: 2.5rem 0 .6rem;
  font-size: .78125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.prose p { margin: 0 0 1rem; }
.prose ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .55rem;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: .1rem;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
.prose a:hover, .prose a:focus-visible { color: var(--accent); }

.dateline {
  margin: -.5rem 0 1.75rem !important;
  font-size: .78125rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-3);
}
.note {
  margin-top: 2.25rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair-soft);
  font-size: .9375rem;
  color: var(--text-3);
}

/* contacts */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}
.contact {
  display: block;
  padding: 1.15rem 1.25rem;
  background: rgba(28, 35, 66, .5);
  border: 1px solid var(--hair);
  border-radius: .875rem;
  text-decoration: none;
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.contact:hover, .contact:focus-visible {
  border-color: var(--accent-2);
  background: rgba(28, 35, 66, .8);
  transform: translateY(-2px);
}
.contact-k {
  display: block;
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: .3rem;
}
.contact-v {
  display: block;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  font-variation-settings: 'opsz' 18;
}

/* ── footer ─────────────────────────────────────────────────── */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hair);
  margin-top: clamp(2rem, 6vh, 4rem);
}
.foot-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--text-3);
}
.foot-inner p { margin: 0; }
.foot-inner nav { display: flex; gap: 1.5rem; }
.foot-inner a {
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s ease;
}
.foot-inner a:hover, .foot-inner a:focus-visible { color: var(--text); }

/* ── focus ──────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── reveal ─────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .85s cubic-bezier(.22, .68, .3, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ── narrow ─────────────────────────────────────────────────── */

@media (max-width: 46rem) {
  .band {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .band-label { padding-top: 0; }
  .band-label .num { display: inline; margin: 0 .5rem 0 0; font-size: 1.15rem; }
  .topbar { gap: .6rem; }
  .topbar nav a { letter-spacing: .05em; font-size: .6875rem; }
  .mark { width: 1.4rem; height: 1.4rem; }
  .wordmark { font-size: 1rem; }
}

/* Below ~360px the wordmark and four nav links cannot coexist; the mark alone
   still identifies the site, and the nav links are the load-bearing part. */
@media (max-width: 23.5rem) {
  .wordmark {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ── motion / contrast preferences ──────────────────────────── */

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

@media (prefers-contrast: more) {
  :root { --text-2: #E6E9F2; --text-3: #B4B9CC; --hair: rgba(255,255,255,.2); }
}

/* Print the legal text cleanly — reviewers and users do save these. */
@media print {
  .grain, .glow, .topbar, .status, .hero .horizon { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  h1, h2, .wordmark, .features h3, .contact-v { color: #000; }
  .prose h3, .band-label .num, .eyebrow { color: #333; }
  .band { border-top: 1px solid #ccc; page-break-inside: avoid; }
  .prose a { color: #000; }
  .prose a::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}
