/*
 * Fonts, served from this site (task 7.5g). They used to load from Google Fonts, which
 * sent every visitor's IP address to Google from a page whose subject is privacy.
 * Fraunces, IBM Plex Sans and IBM Plex Mono are all SIL Open Font Licence; these are the
 * latin and latin-ext subsets of the same files Google serves.
 */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-mono-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-mono-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Bluejay marketing site.
 *
 * Colours are lifted from packages/tokens, not re-invented — the `jay` blues are
 * sampled from the mark itself, `stone` is the UI's grey family, and `resurrect`
 * green keeps the rule it has everywhere else in the product: it marks REVIVAL
 * and nothing else. On this site that means it appears only where the copy is
 * about bringing a dead link back.
 *
 * No build step and no framework on purpose. This page changes a few times a
 * year; a toolchain to maintain would cost more than it saves.
 */

:root {
  /* stone — the chrome */
  --stone-50: #f8f8f7;
  --stone-100: #efeeec;
  --stone-200: #dddbd7;
  --stone-300: #c2bfb8;
  --stone-500: #847f75;
  --stone-600: #6b665d;
  --stone-700: #57534c;
  --stone-900: #2a2825;
  --stone-950: #1a1917;

  /* jay — the mark's own blues */
  --jay-ink: #123048;
  --jay-mid: #3068a8;
  --jay-bright: #3a78b6;
  --jay-soft: #7aa4cc;
  --jay-belly: #e6eef4;

  /* resurrect — revival ONLY */
  --resurrect: #06c177;
  --resurrect-deep: #007d4f;

  --bg: var(--stone-50);
  --surface: #ffffff;
  --border: var(--stone-200);
  --text: var(--stone-950);
  --text-muted: var(--stone-600);
  --brand: var(--jay-mid);
  --brand-text: #ffffff;
  --accent: var(--resurrect-deep);

  --measure: 34rem;
  --radius: 14px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--stone-950);
    --surface: #221f1d;
    --border: #3a3630;
    --text: var(--stone-100);
    --text-muted: var(--stone-300);
    --brand: var(--jay-bright);
    --accent: var(--resurrect);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/*
 * Long-form sections keep the SAME centring box as everything else, so the left
 * edge never moves between sections — a narrower container would centre itself
 * and shift the whole section right, which reads as a layout bug rather than a
 * choice. The measure is taken off the right instead.
 */
.wrap.narrow > * {
  max-width: 41rem;
}

section {
  padding: 4.5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--jay-ink);
}

@media (prefers-color-scheme: dark) {
  a:hover {
    color: var(--jay-soft);
  }
}

code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--stone-100);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  border: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  code {
    background: #2e2a26;
  }
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1.4em;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ nav --- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

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

.hero {
  /* padding-block, NOT the shorthand: `.hero` is applied alongside `.wrap`, and
     a shorthand here silently wipes .wrap's horizontal padding — which pulled
     the hero 24px left of every other section on the page. */
  padding-block: 3.5rem 4.5rem;
}

.hero img.mark {
  width: 92px;
  height: 92px;
  margin-bottom: 1.6rem;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.status-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 2rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  flex: none;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--brand);
}

.btn:hover {
  background: var(--jay-ink);
  border-color: var(--jay-ink);
  color: var(--brand-text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--stone-300);
}

/* ----------------------------------------------------------------- grid --- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.6rem 2.2rem;
  margin-top: 2.5rem;
}

.feature h3 {
  margin-bottom: 0.35em;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 0;
  max-width: none;
}

/* The one place the accent is allowed: revival. */
.feature.revival h3::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-left: 0.5rem;
  vertical-align: 0.35em;
}

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

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--jay-belly);
  color: var(--jay-ink);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  .steps li::before {
    background: #24384c;
    color: var(--jay-soft);
  }
}

.steps h3 {
  margin-bottom: 0.3em;
}

.steps p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 0;
  max-width: none;
}

/* ---------------------------------------------------------------- tiers --- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.tier {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.tier h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.tier ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.tier li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  color: var(--text-muted);
}

.tier li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--jay-soft);
}

.tier-pro li::before {
  color: var(--accent);
}

/* --------------------------------------------------------------- tables --- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.5em;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 600;
  white-space: nowrap;
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------- a11y ----- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
