/* FlyCFI — flycfi.app
 *
 * Same navy and gold as the app, and the same two faces: Barlow Semi
 * Condensed for headings, Source Sans 3 for everything read as prose.
 * Written to match PROJECT_NOTES/07 Design System.md rather than
 * invented, so the site and the app do not drift apart.
 */

:root {
  --bg: #07111E;
  --bg2: #0D1B2B;
  --bg3: #132438;
  --line: rgba(255, 255, 255, 0.10);
  --t1: #F2F6FB;
  --t2: #B9C7D6;
  --t3: #8296AB;
  --gold: #E4C775;
  --gold-dim: rgba(228, 199, 117, 0.12);
  --gold-edge: rgba(228, 199, 117, 0.30);
  --radius: 12px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

/* The HTML `hidden` attribute is only a UA rule, `[hidden] { display: none }`,
   so ANY author rule that sets display beats it. `.btn` sets
   `display: inline-block`, which meant the "Open the App Store" link on /get/
   -- marked hidden, and reported as hidden by the DOM -- was drawn on screen
   anyway, offering a dead Apple page for an app that is not published yet.
   The attribute check passed while the actual page was wrong. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--t2);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Barlow Semi Condensed', 'Source Sans 3', sans-serif;
  color: var(--t1);
  line-height: 1.12;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-top: 2.2em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.6em; }

p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.measure { max-width: var(--measure); }

/* ---------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 17, 30, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; min-height: 82px; }
.brand { display: flex; align-items: center; }
.brand img { height: 60px; width: auto; display: block; }
.nav-links { margin-left: auto; display: flex; gap: 22px; }
.nav-links a { color: var(--t2); font-weight: 600; font-size: .96rem; }
.nav-links a:hover, .nav-links a.is-active { color: var(--gold); text-decoration: none; }

/* Below ~620px the wordmark and four links do not fit on one line. They were
   not wrapping -- they were overflowing: at 360px (an iPhone 13 mini) "Terms"
   sat 2px past the right edge of the document and the page scrolled sideways.
   Give the links a row of their own instead of squeezing them. */
@media (max-width: 620px) {
  .nav { flex-wrap: wrap; min-height: 0; padding-top: 14px; padding-bottom: 12px; gap: 10px 16px; }
  .brand img { height: 46px; }
  .nav-links { margin-left: 0; width: 100%; gap: 20px; }
  .nav-links a { font-size: .92rem; }
}

/* ------------------------------------------------------------ hero -- */
.hero { position: relative; padding: 84px 0 56px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% 20% auto -10%; height: 540px;
  background: radial-gradient(closest-side, rgba(228,199,117,.13), transparent 70%);
  pointer-events: none;
}
.hero .eyebrow {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 14px;
}
.lede { font-size: 1.22rem; color: var(--t2); max-width: 56ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: #07111E; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.07); }
.btn-ghost { border-color: var(--line); color: var(--t1); }
.btn-ghost:hover { text-decoration: none; border-color: var(--gold-edge); color: var(--gold); }
.btn[aria-disabled='true'] { opacity: .5; pointer-events: none; }

.note { font-size: .92rem; color: var(--t3); margin-top: 14px; }

/* ----------------------------------------------------------- cards -- */
section { padding: 10px 0 36px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--t2); font-size: 1rem; }
.card .tag {
  display: inline-block; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; color: var(--gold);
  background: var(--gold-dim); border: 1px solid var(--gold-edge);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}

.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 44px; } }
/* Both columns start at the same line. The heading used to live inside the
   left column, so the right column -- which starts with an h3 -- began about
   40px higher than the left one and the two halves read as misaligned. The
   section heading now sits above the grid, and nothing in either column
   carries a top margin on its first element. */
.split > div > :first-child { margin-top: 0; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li {
  padding: 9px 0 9px 26px; position: relative;
  border-bottom: 1px solid var(--line); color: var(--t2);
}
ul.plain li:last-child { border-bottom: 0; }
ul.plain li::before {
  content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}
ul.plain.no li::before { content: '✕'; color: #E0795E; }

/* ----------------------------------------------------------- prose -- */
.prose { padding: 48px 0 70px; }
.prose h1 { margin-bottom: .25em; }
.prose .updated { color: var(--t3); font-size: .95rem; }
.prose h2 { font-size: 1.45rem; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .4em; }

/* --------------------------------------------------- screenshots -- */
/* Mostly iPad. RC, 2026-12-02: the iPad is the tool CFIs and students will
   actually be holding, so the phone shots are the footnote, not the lead.
   Every image states width AND height so the page does not jump as they
   arrive, and everything below the first one is lazy. */

/* One iPad screen, full container width, straight under the hero. */
.hero-shot-band { padding-top: 0; }
.hero-shot-band img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

/* The iPad grid. These are 4:3 landscape, so two across is the most that
   leaves them readable -- three would be 330px wide and nothing in them
   could be made out. */
.shots-wide { display: grid; gap: 26px 20px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .shots-wide { grid-template-columns: repeat(2, 1fr); } }

/* The phone row, deliberately small and last. */
.shots-sub { margin-top: 2.4em; }
.shots-phone { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); max-width: 560px; }

.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block; margin: 0 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.shots-phone .shot img { border-radius: 18px; }
.shot figcaption { font-size: .92rem; color: var(--t3); }
.shot figcaption strong { color: var(--t1); font-weight: 700; display: block; }
@media (min-width: 560px) {
  .shot figcaption strong { display: inline; margin-right: .4em; }
}

/* ------------------------------------------------------- writeups -- */
/* Longer-form notes. A gold rule on the left, prose measure, nothing else. */
.notes { display: grid; gap: 22px; margin-top: 10px; }
.writeup {
  border-left: 3px solid var(--gold-edge);
  padding: 2px 0 2px 20px;
  max-width: var(--measure);
}
.writeup h3 { margin-top: 0; }
.writeup p:last-child { margin-bottom: 0; }

/* ------------------------------------------- also by Clairveyance -- */
.also {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 740px) { .also { grid-template-columns: 76px 1fr; gap: 24px; } }
.also-icon { width: 76px; height: 76px; border-radius: 17px; display: block; }
.also h3 { margin-top: 0; }
.also p:last-of-type { margin-bottom: 0; }
.also .cta-row { margin-top: 18px; }

/* ---------------------------------------------------------- footer -- */
/* Four columns that collapse one at a time, then a credit line, then the
   small print. The old footer was a single flex row with an auto-margin
   spacer: at phone width the links wrapped into a ragged stack and the
   copyright ended up stranded between the wordmark and the nav. A grid
   gives each group a column of its own and a defined order. */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 48px;
  padding: 40px 0 44px; color: var(--t3); font-size: .92rem;
}
.site-footer a { color: var(--t2); }
.site-footer a:hover { color: var(--gold); }

.foot-grid {
  display: grid;
  gap: 30px 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; } }

.foot-brand p { margin: 12px 0 0; max-width: 34ch; }
.foot-mark { height: 38px; width: auto; display: block; opacity: .95; }

.foot-col h4 {
  font-family: 'Barlow Semi Condensed', 'Source Sans 3', sans-serif;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--t1); margin: 0 0 12px; font-weight: 700;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }

/* Share QR in the footer.
   RC, 2026-11-22: "Same QR will need to be on footer on website pages."
   The white plate is not decoration: the code is black modules on white, and
   without a light quiet zone behind it most cameras stop seeing a code. */
.qr-plate {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  line-height: 0;
}
.qr-plate img {
  /* Width AND height stated here, not inherited. An earlier
     `.site-footer img { height: 34px }` was styling the wordmark and hitting
     this code too: it loaded and decoded perfectly and drew at 34px, which no
     camera can read. An image that renders is not an image that works.
     104px is comfortably scannable at arm's length. */
  width: 104px; height: 104px; display: block;
}
.foot-get p { margin: 12px 0 0; font-size: .86rem; max-width: 26ch; }

/* The credit line to the other app. Reads as a sentence, not a banner. */
.foot-also {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
}
.foot-also img { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.foot-also p { margin: 0; max-width: 72ch; }
.foot-also strong { color: var(--t2); font-weight: 700; }
/* Gold, not the footer's muted grey. This is the one link in the footer that
   is there to be followed rather than to be found, and in grey it read as
   plain text. */
.foot-also a { color: var(--gold); font-weight: 600; }

.foot-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-bottom p { margin: 0 0 6px; font-size: .86rem; }
.foot-bottom p:last-child { margin-bottom: 0; }
