/* Simple Flight — palette taken from the app banners:
   deep navy, brand blue, cyan accent, white. */

:root {
  --paper:      #0a1c31;   /* page background */
  --paper-hi:   #102944;   /* raised panel */
  --paper-low:  #061423;   /* footer, deepest */
  --ink:        #f1f6fb;   /* primary text */
  --ink-soft:   #9db4cc;   /* secondary text */
  --accent:     #2fb8f2;   /* cyan — the banner highlight */
  --magenta:    #2fb8f2;   /* alias: inline SVGs use this name */
  --blue:       #58a6ff;   /* links */
  --btn-a:      #2c86e8;
  --btn-b:      #1a5fc0;
  --rule:       #21456d;
  --rule-soft:  #18334f;

  --measure: 66ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-variation-settings: "wdth" 100, "wght" 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #04121f; }

/* ---------- type ---------- */

h1, h2, h3 {
  font-variation-settings: "wdth" 86, "wght" 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.3rem + 3.8vw, 4.3rem);
  font-variation-settings: "wdth" 84, "wght" 800;
}
h2 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.4rem); }
h3 { font-size: clamp(1.12rem, 1.02rem + 0.4vw, 1.32rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.34rem);
  line-height: 1.5;
  color: #cfe0ef;
  max-width: 34em;
}

.tag {
  font-variation-settings: "wdth" 78, "wght" 600;
  font-size: 0.83rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2.2rem; margin-bottom: 0.5rem; color: var(--ink); }

/* ---------- shell ---------- */

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: var(--pad); }

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.band-hi { background: var(--paper-hi); }
.band + .band { border-top: 1px solid var(--rule-soft); }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #04121f;
  padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper-low) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 60px; flex-wrap: wrap;
}
.brand {
  font-variation-settings: "wdth" 80, "wght" 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: baseline; gap: 0.55rem;
}
.brand span {
  color: var(--accent);
  font-variation-settings: "wdth" 80, "wght" 500;
  text-transform: none;
  letter-spacing: 0;
}

.nav { margin-left: auto; display: flex; gap: 1.15rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.93rem;
  font-variation-settings: "wdth" 90, "wght" 500;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.here { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background-color: #0a1c31;
  background-image:
    radial-gradient(120% 90% at 78% 6%, rgba(41,120,196,.55) 0%, rgba(41,120,196,0) 62%);
}
.hero-chart { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero-copy { max-width: 46rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { margin-bottom: 2rem; }

.route-strip {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 1.75rem;
  font-variation-settings: "wdth" 78, "wght" 700;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.route-strip i { font-style: normal; color: var(--rule); }

/* ---------- buttons ---------- */

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  color: #fff;
  border: 1px solid #2f7fd6;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  text-decoration: none;
  font-variation-settings: "wdth" 92, "wght" 650;
  font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 18px rgba(4,18,31,.45);
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.12); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: none;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); filter: none; }

/* ---------- free stamp ---------- */

.stamp {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: rgba(47,184,242,.08);
  font-variation-settings: "wdth" 80, "wght" 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}
.stamp-quiet { border-color: var(--blue); color: var(--blue); background: rgba(88,166,255,.08); }

/* ---------- cornerstones ---------- */

.stones {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  margin-top: 2.25rem;
}
.stone {
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.stone-top { display: flex; align-items: flex-start; gap: 0.9rem; }
.stone h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.stone .glyph { color: var(--accent); flex: none; }
.stone ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.stone li { margin-bottom: 0.3rem; }
.stone .actions { margin-top: auto; padding-top: 0.5rem; }

/* ---------- app list ---------- */

.legend { border-top: 1px solid var(--rule); margin-top: 2.25rem; }
.legend-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 10rem 7.5rem;
  gap: 1.25rem; align-items: start;
  padding: 1.4rem 1rem 1.4rem 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
  text-decoration: none; color: inherit;
  transition: background .15s ease;
}
.legend-row:hover { background: rgba(47,184,242,.07); }
.legend-row:hover h3 { color: var(--accent); }
.legend-row .glyph { color: var(--accent); margin-top: 0.15rem; }
.legend-row p { margin: 0.25rem 0 0; color: var(--ink-soft); }
.legend-row .go {
  align-self: center; text-align: right; color: var(--ink-soft);
  font-size: 0.88rem;
  font-variation-settings: "wdth" 82, "wght" 600;
  white-space: nowrap;
}
.legend-row:hover .go { color: var(--accent); }

.row-shot {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 5px;
  align-self: center;
}
@media (max-width: 900px) {
  .legend-row { grid-template-columns: 3.25rem minmax(0, 1fr) 7.5rem; }
  .row-shot { display: none; }
}
@media (max-width: 560px) {
  .legend-row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .legend-row .go { grid-column: 2; text-align: left; padding-top: .35rem; }
}

/* ---------- app page header ---------- */

.apphead {
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper-hi);
  background-image: radial-gradient(110% 100% at 85% 0%, rgba(45,120,200,.45) 0%, rgba(45,120,200,0) 60%);
}
.apphead .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); }
.apphead .glyph { color: var(--accent); margin-bottom: 1.1rem; }
.apphead h1 { font-size: clamp(1.95rem, 1.3rem + 2.8vw, 3.3rem); margin-bottom: 0.75rem; }
.crumb {
  display: inline-block; margin-bottom: 1.25rem;
  font-size: 0.88rem; color: var(--ink-soft); text-decoration: none;
  font-variation-settings: "wdth" 88, "wght" 500;
}
.crumb:hover { color: var(--accent); }

.priceline {
  margin-top: 1.5rem;
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
  font-size: 0.95rem; color: var(--ink-soft);
}

/* ---------- feature list ---------- */

.feats { margin: 0; padding: 0; list-style: none; }
.feats li {
  padding: 0.95rem 0 0.95rem 1.4rem;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.feats li::before {
  content: ""; position: absolute; left: 0; top: 1.5rem;
  width: 0.5rem; height: 0.5rem;
  background: var(--accent);
  transform: rotate(45deg);
}
.feats b {
  display: block;
  font-variation-settings: "wdth" 90, "wght" 650;
  margin-bottom: 0.15rem;
}
.feats span { color: var(--ink-soft); }

.cols {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

.side h3 { margin-bottom: 0.75rem; }
.side ul { margin: 0; padding: 0; list-style: none; }
.side li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule-soft); }
.side li p { margin: 0.2rem 0 0; font-size: 0.93rem; color: var(--ink-soft); }
.side a { font-variation-settings: "wdth" 90, "wght" 600; text-decoration: none; }
.side a:hover { text-decoration: underline; }

.callout {
  border-left: 3px solid var(--accent);
  background: rgba(47,184,242,.07);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* ---------- phases (suite page) ---------- */

.phase {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.phase:first-of-type { border-top: 1px solid var(--rule); }
.phase-n {
  font-variation-settings: "wdth" 70, "wght" 800;
  font-size: 2.5rem; line-height: 1;
  color: var(--accent);
  padding-top: 0.1rem;
}
.phase-body { max-width: var(--measure); }
.phase h3 { margin-bottom: 0.5rem; }
.phase-apps { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.3rem 0.8rem 0.3rem 0.55rem;
  font-size: 0.86rem;
  text-decoration: none; color: var(--ink);
  font-variation-settings: "wdth" 88, "wght" 550;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip .glyph { color: var(--accent); }

@media (max-width: 620px) {
  .phase { grid-template-columns: 1fr; gap: 0.5rem; }
  .phase-n { font-size: 1.7rem; }
}

/* ---------- diagram ---------- */

.diagram {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow-x: auto;
}
.diagram figcaption {
  margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- product shots ---------- */

.shot {
  margin: 2.25rem 0 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  line-height: 0;
  box-shadow: 0 18px 40px rgba(3,12,22,.5);
}
.shot img { display: block; width: 100%; height: auto; }
.shot img, .stone-shot, .row-shot { max-width: 100%; }

.stone-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 0 0.35rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
}

/* ---------- numbered steps ---------- */

.steps { margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 2.9rem;
  border-bottom: 1px solid var(--rule-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.8rem;
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(47,184,242,.1);
  border-radius: 50%;
  font-size: 0.86rem;
  font-variation-settings: "wdth" 82, "wght" 700;
}
.steps b {
  display: block;
  font-variation-settings: "wdth" 90, "wght" 650;
  margin-bottom: 0.1rem;
}
.steps span { color: var(--ink-soft); }

/* ---------- donate ---------- */

.donate-cta {
  margin-top: 2.5rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--paper-hi);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  max-width: var(--measure);
}
.donate-cta h2 { margin-bottom: 0.6rem; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-low);
  padding-block: 2.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-bottom: 2rem;
}
.footer h4 {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-variation-settings: "wdth" 80, "wght" 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 0.35rem; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-note { max-width: 46ch; }

/* ---------- hero route animation (the one moment of motion) ---------- */

.route-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s cubic-bezier(.55,.1,.3,1) 0.25s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .route-line { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}

/* ---------- stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  margin-top: 2.25rem;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.stats div {
  background: var(--paper);
  padding: 1rem 1.15rem;
}
.stats b {
  display: block;
  font-variation-settings: "wdth" 82, "wght" 800;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.stats span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.feats { margin-top: 1rem; }

/* ---------- on-this-page list ---------- */

.toc { border-top: 1px solid var(--rule-soft); }
.toc li {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.55rem 0;
}
.toc a { flex: 1; }
.toc span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-variation-settings: "wdth" 80, "wght" 600;
}

/* ---------- logo ---------- */

.brand .mark {
  width: 34px; height: 34px;
  display: block;
  align-self: center;
  flex: none;
}
.brand b { font: inherit; }
@media (max-width: 720px) { .brand span { display: none; } }

.hero-mark {
  position: absolute;
  right: clamp(-3rem, -2vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(15rem, 26vw, 24rem);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 20px 45px rgba(3,12,22,.55));
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 1080px) {
  .hero-mark { opacity: .12; right: -4rem; width: 22rem; }
}
@media (max-width: 620px) {
  .hero-mark { width: 17rem; right: -5rem; }
}

.footer-sign { display: flex; align-items: flex-start; gap: 1rem; }
.footer-sign img { width: 46px; height: 46px; flex: none; }

/* ---------- rather than / I prefer ---------- */

.contrast {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 2.25rem 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.contrast > div { background: var(--paper); padding: 1.25rem 1.4rem; }
.contrast span {
  display: block;
  font-variation-settings: "wdth" 78, "wght" 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.contrast p { margin: 0; color: var(--ink-soft); }
.contrast .prefer { background: rgba(47,184,242,.08); }
.contrast .prefer span { color: var(--accent); }
.contrast .prefer p { color: var(--ink); }

/* a full-sentence headline should not shout */
.h1-question {
  text-transform: none;
  font-size: clamp(1.8rem, 1.25rem + 2.2vw, 2.95rem);
  font-variation-settings: "wdth" 88, "wght" 700;
  max-width: 20ch;
}

/* ---------- pull quote ---------- */

.quote {
  margin: 2.25rem 0 0;
  padding: 1.4rem 1.5rem;
  max-width: var(--measure);
  background: rgba(47,184,242,.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.quote p {
  margin: 0;
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem);
  line-height: 1.5;
  color: var(--ink);
}
.quote p::before { content: "\201C"; }
.quote p::after  { content: "\201D"; }
.quote cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-variation-settings: "wdth" 88, "wght" 600;
}
.quote cite::before { content: "\2014\00a0"; }

/* ---------- legal pages ---------- */

.legal h2 {
  font-size: clamp(1.2rem, 1.06rem + 0.6vw, 1.5rem);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-soft);
}
.legal h2:first-child { margin-top: 1.5rem; }
.legal p { color: var(--ink-soft); }
.legal > p:first-child { color: var(--ink); font-size: 1.08rem; }
