/* FundiLabs landing and downloads: the app's workshop look (navy ink, off-white bench, mono labels), phone first,
   light and dark. System fonts only: nothing is fetched from elsewhere, so it opens fast on mobile data. */

:root {
  --bench: #f7f6f2;
  --surface: #ffffff;
  --ink: #141b2b;
  --ink-2: #3c4458;
  --ink-3: #5a6276;
  --edge: #d9d6cc;
  --navy: #1b2a4a;
  --on-navy: #ffffff;
  --accent: #b3451e;
  --note: #eef1f7;
  --focus: #2f5bd3;
  --radius: 14px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bench: #11151f;
    --surface: #1a2030;
    --ink: #eef0f5;
    --ink-2: #c5cad6;
    --ink-3: #9ba2b3;
    --edge: #2e3647;
    --navy: #c9d6f2;
    --on-navy: #11151f;
    --accent: #f0956b;
    --note: #212a3d;
    --focus: #8fb0ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bench);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--navy); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus { left: 16px; z-index: 10; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* The header: the wordmark as in the app, and two links. */
.site-header { border-bottom: 1px solid var(--edge); background: var(--bench); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 50%;
}
.site-header nav { display: flex; gap: 18px; font-weight: 600; }
.site-header nav a { text-decoration: none; }

.overline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 7vw, 52px); }
h2 { font-size: clamp(24px, 4.5vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }
.lead { font-size: clamp(18px, 2.6vw, 21px); color: var(--ink-2); }

section { padding: 48px 0; }
section + section { border-top: 1px solid var(--edge); }

/* Buttons: one filled (the main action), one outlined, each at least 48 px tall. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--navy);
}
.button.primary { background: var(--navy); color: var(--on-navy); }
.button.secondary { background: transparent; color: var(--navy); }

.small { font-size: 15px; color: var(--ink-3); }

/* Hero */
.hero { padding-top: 32px; }
.hero .shot {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
@media (max-width: 699px) {
  .hero .shot { max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* The three-moment story and the audience cards: one column on a phone, more on wider screens. */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 20px;
}
.card .phone {
  max-width: 240px;
  margin: 0 auto 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--edge);
}
.step-number {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.card ul { margin: 0 0 12px; padding-left: 20px; }
.card li { margin-bottom: 6px; }

.note {
  background: var(--note);
  border-radius: var(--radius);
  padding: 18px 20px;
  border-left: 4px solid var(--navy);
}
.note p:last-child { margin-bottom: 0; }

/* Downloads */
table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
/* On a phone a table's rows stack, one block each, so nothing scrolls sideways. */
@media (max-width: 599px) {
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--edge); }
  table.stack th, table.stack td { display: block; border: 0; padding: 2px 0; }
}
code, .hash { font-family: var(--mono); font-size: 14px; word-break: break-all; }
ol li, ul li { margin-bottom: 8px; }
details { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 14px 18px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 700; }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  color: var(--ink-3);
  margin-left: 6px;
  vertical-align: middle;
}

/* Footer */
.site-footer { border-top: 1px solid var(--edge); padding: 28px 0 40px; color: var(--ink-3); font-size: 15px; }
.site-footer p { margin-bottom: 8px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
