/*
 * mesopod.com landing page. Tokens, type, spacing, and radius come from
 * /DESIGN.md (Amethyst colorway) and mirror platform/frontend/src/styles/tokens.css.
 * Light by default; the shipped warm dark follows the OS preference.
 * No scripts anywhere on this page. Fonts are self-hosted (./fonts, SIL OFL).
 */

@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/fraunces-latin-standard-normal.woff2) format("woff2-variations");
  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: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  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: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations");
  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;
}

/* ---- Tokens: light (default) ---- */
:root {
  color-scheme: light;
  --bg: #efedf4;
  --surface: #f8f6fb;
  --sunken: #e4e0ec;
  --hairline: #dad4e4;
  --ink: #1e1830;
  --muted: #6a6280;
  --accent: #7028c4;
  --accent-strong: #58189e;
  --accent-tint: #ebe1fa;
  --on-accent: #ffffff;

  --font-display: "Fraunces Variable", ui-serif, Georgia, serif;
  --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, "SF Mono", monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --measure: 1120px;
  --gutter: 24px;
}

/* ---- Tokens: dark (warm-cool espresso, follows the OS) ---- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #16111f;
    --surface: #1e1830;
    --sunken: #100b18;
    --hairline: #322843;
    --ink: #ece7f5;
    --muted: #a99ebe;
    --accent: #9d6bf0;
    --accent-strong: #b48df5;
    --accent-tint: #241634;
    --on-accent: #16111f;
  }
}

/* ---- Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--accent-tint);
  border-radius: var(--radius-sm);
}
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 500;
  color: var(--ink);
  background: var(--sunken);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- Shared ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 44ch;
  text-wrap: pretty;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  transition: background 180ms ease-out;
}
.btn:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
  text-decoration: none;
}
.btn-sm {
  font-size: 13px;
  padding: 9px 14px;
}
.textlink {
  font-weight: 500;
}

/* ---- Top bar ---- */
.top {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark:hover {
  text-decoration: none;
  color: var(--ink);
}
.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}
.topnav a:not(.btn) {
  color: var(--ink);
}
.topnav a:not(.btn):hover {
  color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  gap: 20px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  max-width: 17ch;
  font-variation-settings: "opsz" 144;
}
.hero .lede {
  max-width: 52ch;
}
.cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ---- Screenshots ---- */
.shots {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 16px var(--gutter) 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot {
  margin: 0;
  display: grid;
  gap: 10px;
}
.shot-frame {
  aspect-ratio: 16 / 10;
  background: var(--sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.shot-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}
.shot-frame > span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.shot figcaption {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---- Sections ---- */
.block {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 48px var(--gutter);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}
.block h2 {
  font-size: 28px;
  line-height: 1.15;
}
.block h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.prose {
  display: grid;
  gap: 14px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.55;
}
.prose .strong {
  font-weight: 600;
}
.lead-in {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 60ch;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}
.values li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-left: 18px;
  position: relative;
}
.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--accent);
}
.values h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}
.values p {
  font-size: 15px;
  line-height: 1.5;
}

.veterans {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
}
.veterans .honest li {
  font-size: 15px;
}

.steps {
  display: grid;
  gap: 24px;
}
.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  max-width: 64ch;
}
.steps .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 5px;
}
.steps p {
  color: var(--ink);
}

.apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.apps li {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}
.platforms {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: -12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.platforms em {
  font-style: normal;
  color: var(--accent);
}

.honest {
  display: grid;
  max-width: 64ch;
}
.honest li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.5;
}
.honest li:first-child {
  padding-top: 0;
}
.honest li:last-child {
  border-bottom: 0;
}
.honest strong {
  font-weight: 600;
}

.faq {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}
.faq dt {
  font-weight: 600;
  margin-bottom: 4px;
}
.faq dd {
  margin: 0;
  color: var(--muted);
}

/* ---- Closing ---- */
.closing {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.closing h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  max-width: 20ch;
  font-variation-settings: "opsz" 72;
}
.closing .btn {
  margin-top: 8px;
}

/* ---- Footer ---- */
.foot {
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.foot-links,
.foot-note {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.foot-links {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot-links a {
  color: var(--ink);
}
.foot-links a:hover {
  color: var(--accent);
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.foot-note {
  padding-top: 10px;
  padding-bottom: 28px;
  color: var(--muted);
}

/* ---- Narrow screens ---- */
@media (max-width: 860px) {
  .shots {
    grid-template-columns: 1fr;
  }
  .block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px var(--gutter);
  }
  .platforms {
    grid-column: auto;
    margin-top: 0;
  }
  .faq,
  .values {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .topnav a:not(.btn) {
    display: none;
  }
  .hero {
    padding-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
