/* Matsu landing — small custom layer on top of Tailwind (loaded via CDN). */

html { scroll-behavior: smooth; }
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
}

/* Match the iOS app's Inter type system (see AppTypography.swift):
   - 400 Regular, 500 Medium, 600 SemiBold, 700 Bold, 900 Black
   - Display headings use SemiBold/Bold + tight tracking. The site uses
     `font-serif` (aliased to Inter in tailwind.config) for headlines; this
     block gives those headlines the right weight + tracking automatically. */
.font-serif {
  font-weight: 700;
  letter-spacing: -0.022em;
}
h1.font-serif, .hero-title { letter-spacing: -0.03em; font-weight: 700; }
h2.font-serif { letter-spacing: -0.025em; font-weight: 700; }
h3.font-serif { letter-spacing: -0.018em; font-weight: 600; }

/* Make <details> chevron rotate smoothly. */
details > summary > span:last-child { transition: transform .2s ease; display: inline-block; }

/* Subtle focus ring across the site. */
:focus-visible {
  outline: 2px solid #7085FD;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Prose tweaks for privacy page */
.prose code {
  background: #242424;
  border: 1px solid #2A2A2A;
  padding: 0.05rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.85em;
}
.prose a { color: #C7C6FF; }

/* ---------- Email signup forms ---------- */
.form-input {
  width: 100%;
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  color: #F8F8F8;
  font: inherit;
  transition: border-color .15s ease, background-color .15s ease;
}
.form-input::placeholder { color: #6F6F6F; }
.form-input:focus {
  outline: none;
  border-color: #7085FD;
  background: #161616;
}
.form-input[aria-invalid="true"] { border-color: #F08C8C; }

/* Radio pills used in the "I'm interested in" group */
.radio-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2A2A2A;
  border-radius: 9999px;
  padding: 0.55rem 0.5rem;
  color: #A8A8A8;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.radio-pill:hover { border-color: #3A3A3A; color: #F8F8F8; }
.radio-pill:has(input:checked) {
  border-color: #7085FD;
  color: #F8F8F8;
  background: rgba(112, 133, 253, 0.08);
}
.radio-pill:focus-within {
  outline: 2px solid #7085FD;
  outline-offset: 2px;
}

/* Disabled state for the form submit while in flight */
.form-submit[disabled] {
  pointer-events: none;
}

/* Hidden helper (template render fallback already uses Tailwind 'hidden') */
.form-error:not(.hidden) { display: block; }
