/* Launch-checklist fixes, 2026-11-09: contrast, focus, reflow, reduced motion, legal pages. */

/* Visible keyboard focus everywhere */
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.problem :focus-visible, .approach :focus-visible, .about :focus-visible, .cta :focus-visible { outline-color: var(--ink); }
main:focus { outline: none; }
.skip-link:focus { outline: 2px solid #fff; outline-offset: -4px; }

/* Text contrast on light and mint backgrounds (WCAG AA 4.5:1) */
.problem .section-label, .approach .section-label, .about .section-label { color: #0f675d; }
.principles span { color: #0f675d; }
.principles p { color: #4f5d66; }
.about-grid strong { color: #0f675d; }
.cta .section-label { color: var(--ink); }
.accent-copy { border-left-color: #1e9d8b; }

/* Comfortable tap and click targets */
.topbar nav a { padding: 4px 0; }
.menu { padding: 10px 12px; cursor: pointer; border: 1px solid rgba(255,255,255,.4); border-radius: 3px; }

/* Reflow at 320px: let grid columns shrink below their content width */
.contact-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.briefing-form input, .briefing-form select, .briefing-form textarea { width: 100%; min-width: 0; }
.briefing-form .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .contact-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .briefing-form .form-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .briefing-form { padding: 22px 14px; } }
h1, h2, h3 { overflow-wrap: break-word; }

/* Form help and errors */
.form-note { margin: 0 0 18px; font-size: 13px; color: #c7d3db; }
.field-hint { margin: 0; font-size: 13px; color: #9fb0bc; }
.field-error { margin: 0; font-size: 13px; font-weight: 600; color: #ff8a80; }
.field-error:empty { display: none; }
.briefing-form [aria-invalid="true"] { border-color: #ff8a80; }
.cf-turnstile { margin: 0 0 14px; }
.cf-turnstile:empty { margin: 0; }
.form-legal { margin: 14px 0 0; font-size: 13px; color: #9fb0bc; text-align: center; }
.form-legal a { color: var(--mint); text-decoration: underline; }

/* Footer links */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.footer-links a { font-size: 13px; color: #c7d3db; text-decoration: underline; padding: 4px 0; }
.footer-links a:hover { color: var(--mint); }
footer .footer-links + p { margin-left: 0; }
@media (max-width: 600px) { .footer-links { margin-left: 0; } }

/* Plain text pages: privacy, terms, accessibility, 404 */
.page { max-width: 760px; margin: 0 auto; padding: 150px 6vw 90px; }
.page h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -2px; margin: 0 0 10px; }
.page h2 { font-size: 24px; letter-spacing: -.5px; margin: 44px 0 12px; }
.page p, .page li { color: #c7d3db; font-size: 17px; }
.page a { color: var(--mint); text-decoration: underline; }
.page a.button { color: var(--ink); text-decoration: none; }
.page .updated { color: #9fb0bc; font-size: 14px; }
.page ul { padding-left: 22px; }
.page.center { text-align: center; padding-top: 190px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Narrow phones: keep the menu button inside the screen */
@media (max-width: 420px) { .topbar { gap: 12px; } .brand { font-size: 19px; } }
