/* MandateRails — static marketing site */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2-variations"),
       url("../fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080a10;
  --bg-elev: #0c1017;
  --bg-card: #12171f;
  --bg-card-hover: #171d27;
  --line: rgba(232, 237, 245, 0.09);
  --line-strong: rgba(232, 237, 245, 0.16);
  --text: #f2f5f8;
  --muted: #8b95a4;
  --muted-2: #6d7786;
  --accent: #47c6b5;
  --accent-hover: #5ed4c4;
  --accent-ink: #05201c;
  --accent-dim: rgba(71, 198, 181, 0.12);
  --accent-glow: rgba(71, 198, 181, 0.28);
  --focus: #47c6b5;
  --danger: #f07167;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --wrap: 1120px;
  --font: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo img, .logo svg { width: 32px; height: 32px; }
.logo-word {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-word span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.site-nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle .bars {
  display: block;
  position: relative;
  width: 16px;
  height: 12px;
  background:
    linear-gradient(var(--text), var(--text)) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 5.25px / 100% 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 10.5px / 100% 1.5px no-repeat;
}
.nav-toggle[aria-expanded="true"] .bars {
  background: linear-gradient(var(--text), var(--text)) 0 5.25px / 100% 1.5px no-repeat;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5.25px;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transform: rotate(90deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { color: inherit; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--muted-2);
}
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(232, 237, 245, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 237, 245, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -8%;
  top: -18%;
  z-index: -1;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.35rem, 4.6vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.hero .lede {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}

/* ---------- Form card ---------- */

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.6rem 1.55rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.form-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.form-card .form-intro {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.form-row .optional {
  font-weight: 500;
  color: var(--muted-2);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--muted-2); }

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover { border-color: var(--muted-2); }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b95a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m4 6 4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

.form-row select option { background: var(--bg-card); color: var(--text); }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted-2);
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
}
.form-success.is-visible,
.form-card.is-sent .form-success { display: block; }
.form-card.is-sent form { display: none; }

.form-success .check {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.form-success h2 {
  margin-bottom: 0.4rem;
}
.form-success p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.6rem;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2,
.section > h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.55rem;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

/* Audiences */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.audience {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.65rem 1.7rem;
  display: flex;
  flex-direction: column;
}

.audience h2 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.audience .lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  flex: 1;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.975rem;
  color: var(--text);
}

.checklist li svg {
  margin-top: 0.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.audience .btn { align-self: flex-start; }

/* Trust */

.trust {
  background:
    linear-gradient(180deg, transparent, rgba(71, 198, 181, 0.035) 40%, transparent);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.45rem;
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.95rem;
  border-radius: 9px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.feature-icon svg { width: 18px; height: 18px; }

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* FAQ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.faq-list details + details { }

/* Waitlist band */

.waitlist-band {
  padding-bottom: 5.5rem;
}

.waitlist-band .form-card {
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.1rem;
  color: var(--muted-2);
  font-size: 0.875rem;
}

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

.footer-brand .logo { margin-bottom: 0.7rem; }
.footer-brand p { margin: 0; max-width: 26rem; line-height: 1.55; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: center;
}

.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--text); }

.footer-meta {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 0.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}

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

/* Inner pages (thanks, terms, privacy, 404) */

.page {
  padding: 4.5rem 0 5.5rem;
  min-height: calc(100vh - var(--header-h) - 180px);
}

.page-narrow { max-width: 680px; }

.page h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page .lede,
.prose p { color: var(--muted); }

.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner,
  .steps,
  .split,
  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.25rem 0 3.5rem;
  }

  .hero-inner { gap: 2.25rem; }

  .hero::after {
    width: 420px;
    height: 420px;
    right: -30%;
    top: -10%;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 1.1rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a:not(.btn) {
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn { margin-top: 0.85rem; width: 100%; }

  .section { padding: 3.5rem 0; }
  .waitlist-band { padding-bottom: 4rem; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }

  .hero h1 { font-size: 2.15rem; }
  .hero .lede { font-size: 1.05rem; }

  .form-card { padding: 1.3rem 1.15rem 1.25rem; }

  .logo-word { font-size: 0.98rem; }

  .footer-inner { flex-direction: column; }
  .footer-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.section.tight-top { padding-top: 0; }

.form-row input::placeholder {
  text-overflow: ellipsis;
}
.form-note {
  text-wrap: pretty;
}
