/* ==========================================================================
   iamota MCP — public landing page styles
   Consumes the shared tokens in /brand.css. Palette and type values belong
   there, not here.

   The public page is only the pitch: the setup wizards and everything else
   live behind the docs sign-in (assets/docs/guide.js, guide.css).

   Brand rules held to throughout: square corners, fine rules, Instrument
   Serif for display, Instrument Sans for copy, Roboto Mono uppercase with
   2px tracking for labels/nav/buttons, restrained use of yellow and blue.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

/* Header, hero, footer in a column, with the hero taking the slack so the
   footer sits at the bottom of a tall window instead of mid-page. */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Layout scale ===================================================== */

:root {
  --gutter: 24px;
  --measure: 1180px;
}

/* One centring rule for every band. Padding centres the content box, so
   children keep a common left edge regardless of their own width. */
.hero,
.site-header,
.site-footer {
  padding-inline: max(var(--gutter), calc((100% - var(--measure)) / 2));
}

/* ===== Header =========================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  border-bottom: var(--hairline) solid var(--border);
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 22px; width: auto; }
.brand-sep { width: var(--hairline); height: 20px; background: var(--border-strong); }
.brand-tag { font-size: 12px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 11px; color: var(--text-muted); }
.nav-link:hover { color: var(--text); }
.nav-link-cta { color: var(--text); }
.nav-link-cta:hover { color: var(--accent); }

/* ===== Hero ============================================================= */

.hero { padding-block: clamp(56px, 10vw, 116px); }

.eyebrow { font-size: 11px; color: var(--text-muted); margin-bottom: 26px; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 7.4vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; }

.hero-lede {
  max-width: 58ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-muted);
  margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Buttons =========================================================
   Brand spec: square corners, Roboto Mono SemiBold 12px uppercase, 2px
   tracking, 50px reference height, optional 10px arrow with a 10px gap. */

.btn {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  height: 50px;
  padding-inline: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: var(--hairline) solid transparent;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease),
              border-color 0.15s var(--ease);
}
.btn-arrow { font-size: 10px; line-height: 1; }

.btn-primary { background: var(--ia-yellow); color: var(--ia-charcoal); }
.btn-primary:hover { background: var(--ia-charcoal); color: var(--ia-white); }

.btn-secondary {
  background: var(--surface);
  color: var(--ia-charcoal);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--ia-yellow); border-color: var(--ia-yellow); }

/* ===== Footer =========================================================== */

.site-footer {
  border-top: var(--hairline) solid var(--border);
  padding-block: 36px 44px;
}
.footer-logo { height: 20px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); }

/* ===== Narrow screens =================================================== */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { min-height: 0; padding-block: 16px; }
  .hero-title { max-width: none; }
  .btn { padding-inline: 20px; }
}

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