/* falcon.com home page. Paper theme surfaces and Instrument Sans, with the Wing F logo's red
   (#A23D42) as the accent; dark mode uses a lighter tint of it. Every text pairing meets WCAG AA. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --surface-low: #fcfcfd;
  --surface-band: #fafafa;
  --surface-high: #f4f4f5;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --text: #18181b;
  --text-muted: #52525b;
  --primary: #a23d42;
  --primary-strong: #8a3338;
  --on-primary: #ffffff;
  --primary-container: #fbf1f1;
  --on-primary-container: #8a3338;
  --primary-line: #efcfd0;
  --next-bg: #fef9c3;
  --next-text: #854d0e;
  --next-line: #fde047;
  --shadow: 0 1px 2px rgb(24 24 27 / 0.04), 0 8px 24px rgb(24 24 27 / 0.06);
  --shadow-lift: 0 2px 4px rgb(162 61 66 / 0.06), 0 16px 40px rgb(162 61 66 / 0.12);
  --radius: 14px;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f0f12;
    --surface-low: #121215;
    --surface-band: #141417;
    --surface-high: #1c1c21;
    --line: #2a2a30;
    --line-strong: #3a3a40;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --primary: #e58a8e;
    --primary-strong: #efaeb1;
    --on-primary: #2a0d0f;
    --primary-container: #2a1315;
    --on-primary-container: #f3c3c5;
    --primary-line: #5c2a2d;
    --next-bg: #2a2408;
    --next-text: #fde047;
    --next-line: #5c4f0c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.3), 0 16px 40px rgb(0 0 0 / 0.45);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--primary-strong);
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 2rem;
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
  color: var(--on-primary);
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.logo:hover {
  color: var(--text);
}
.logo img {
  width: 27px;
  height: 32px;
}
.logo-small img {
  width: 20px;
  height: 24px;
}
.top-nav {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9375rem;
}
.top-nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.top-nav a:hover {
  color: var(--text);
}
.top-row .btn-small {
  margin-left: auto;
}
@media (min-width: 880px) {
  .top-nav {
    display: flex;
  }
  .top-row .btn-small {
    margin-left: 0.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.375rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn:hover {
  background: var(--primary-strong);
  color: var(--on-primary);
}
.btn-small {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
}
.link-arrow {
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after {
  content: " →";
}
.link-arrow:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero {
    padding: 5.5rem 0 6rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 4rem;
  }
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--on-primary-container);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.375rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}
.note {
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-high);
  box-shadow: var(--shadow);
}
.hero-shot {
  box-shadow: var(--shadow-lift);
}

/* Sections */
section {
  padding: 4.5rem 0;
}
@media (min-width: 960px) {
  section {
    padding: 6rem 0;
  }
}
.band {
  background: var(--surface-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  line-height: 1.12;
}
.section-lede {
  margin: 0 0 2.75rem;
  max-width: 44rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}
h2 + .cards {
  margin-top: 2.25rem;
}
h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Bridge: three columns with Falcon in the middle */
.span3 {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}
.span-col {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.span-col .eyebrow {
  color: var(--text-muted);
}
.span-col h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.span-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.span-col li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9875rem;
  line-height: 1.45;
}
.span-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}
.span-col.mid {
  border: 2px solid var(--primary);
  background: var(--primary-container);
  box-shadow: var(--shadow-lift);
}
.span-col.mid .eyebrow {
  color: var(--on-primary-container);
}
.span-col.mid h3 {
  color: var(--on-primary-container);
  font-size: 1.5rem;
}
.span-col.mid li {
  border-top-color: var(--primary-line);
  color: var(--text);
}
.span-col.mid li::before {
  background: var(--primary);
}
/* Connectors: vertical when stacked, horizontal side by side. */
.span-col.mid::before,
.span-col.mid::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 1rem;
  background: var(--primary);
}
.span-col.mid::before {
  top: calc(-1rem - 2px);
}
.span-col.mid::after {
  bottom: calc(-1rem - 2px);
}
@media (min-width: 880px) {
  .span3 {
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: center;
    gap: 2rem;
  }
  .span-col.mid {
    padding: 2rem 1.75rem;
  }
  .span-col.mid::before,
  .span-col.mid::after {
    top: 50%;
    left: auto;
    width: 2rem;
    height: 2px;
    bottom: auto;
  }
  .span-col.mid::before {
    left: calc(-2rem - 2px);
  }
  .span-col.mid::after {
    right: calc(-2rem - 2px);
  }
}

.bridges {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bridge;
}
@media (min-width: 720px) {
  .bridges {
    grid-template-columns: 1fr 1fr;
  }
}
.bridges li {
  counter-increment: bridge;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.bridges li::before {
  content: counter(bridge);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 0.875rem;
  font-weight: 600;
}
.bridges p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9875rem;
}
.bridges .result {
  border-color: var(--primary);
}
.bridges .result::before {
  background: var(--primary);
  color: var(--on-primary);
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1040px) {
  .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  margin-bottom: 1rem;
  border-radius: 2px;
  background: var(--primary);
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9875rem;
}
.cards-3 .card h3::before {
  display: none;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: auto 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
}
.tag {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-high);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.tag-next {
  border-color: var(--next-line);
  background: var(--next-bg);
  color: var(--next-text);
}

/* Screenshots */
.shots {
  display: grid;
  gap: 2.5rem 2rem;
}
@media (min-width: 800px) {
  .shots {
    grid-template-columns: 1fr 1fr;
  }
}
.shots figure {
  margin: 0;
}
.shots .frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}
.shots figcaption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9875rem;
}
.shots figcaption strong {
  color: var(--text);
  font-weight: 600;
}

/* Closing call to action */
.closing {
  border-top: 1px solid var(--line);
  background: var(--primary-container);
}
.closing-inner {
  text-align: center;
}
.closing h2 {
  color: var(--text);
}
.closing p {
  margin: 0 auto 2rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.foot-nav a {
  color: var(--text-muted);
}
.foot-nav a:hover {
  color: var(--primary);
}
.copy {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.875rem;
}
.placeholder {
  padding: 0 0.25rem;
  border-radius: 4px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}
