/* Musteon www — one stylesheet, mobile-first, light + dark from the OS setting. */

:root {
  --bg: #ffffff;
  --surface: #f3f7f7;
  --surface-strong: #e6efef;
  --fg: #0f1a1f;
  --muted: #4a5a61;
  --border: #d3dee0;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --on-brand: #ffffff;
  --link: #0b6b63;
  --focus: #1d4ed8;
  --pill-bg: #fff4d6;
  --pill-fg: #6b4700;
  --shadow: 0 1px 2px rgb(15 26 31 / 6%), 0 4px 16px rgb(15 26 31 / 6%);
  --radius: 14px;
  --container: 70rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1215;
    --surface: #121d21;
    --surface-strong: #1a282d;
    --fg: #e7eff1;
    --muted: #a3b3b8;
    --border: #26373d;
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --on-brand: #04201c;
    --link: #5eead4;
    --focus: #93c5fd;
    --pill-bg: #3a2f12;
    --pill-fg: #ffe08a;
    --shadow: none;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 48rem) {
  .container {
    padding: 0 1.5rem;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--fg);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  margin-right: auto;
}

.logo {
  color: var(--brand);
}

.logo .logo-m {
  stroke: var(--on-brand);
}

.site-nav {
  order: 3;
  flex-basis: 100%;
}

.site-nav ul,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
}

@media (min-width: 52rem) {
  .site-nav {
    order: 0;
    flex-basis: auto;
    margin-right: 0.5rem;
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.button-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.button-small {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.section {
  padding: 3rem 0;
}

@media (min-width: 48rem) {
  .section {
    padding: 4.5rem 0;
  }
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--brand);
  }
}

.lede {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: var(--muted);
  max-width: 42rem;
}

.hero {
  padding: 3rem 0 2.5rem;
}

@media (min-width: 48rem) {
  .hero {
    padding: 5rem 0 4rem;
  }
}

.hero h1 {
  max-width: 18ch;
}

.hero .button-row {
  margin-top: 1.75rem;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

/* Cards / features ------------------------------------------------------ */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-grid .card p:last-child {
  margin-bottom: 0;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--brand-strong);
  margin-bottom: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  .feature-icon {
    color: var(--brand);
  }
}

.feature-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.55rem;
  height: 0.95rem;
  border: solid var(--brand);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checklist.is-elsewhere li::before {
  width: 0.8rem;
  height: 0;
  top: 0.8em;
  border-width: 0 0 3px;
  border-color: var(--muted);
  transform: none;
}

/* Find your association ------------------------------------------------- */

.find-form {
  display: grid;
  gap: 0.5rem;
  max-width: 36rem;
}

.find-form label {
  font-weight: 600;
}

.find-row {
  display: flex;
  gap: 0.5rem;
}

.find-row input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.find-row input:focus-visible {
  border-color: var(--focus);
}

.find-status {
  min-height: 1.6em;
  color: var(--muted);
  margin: 0.75rem 0;
}

.assoc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}

.assoc {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
}

.assoc:hover {
  border-color: var(--brand);
}

.assoc-mark,
.assoc-logo {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
}

.assoc-mark {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}

.assoc-logo {
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
}

.assoc-text {
  display: grid;
}

.assoc-name {
  font-weight: 600;
}

.assoc-city {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Get the app ----------------------------------------------------------- */

.store-badges {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
}

.store-badge img {
  height: auto;
}

.store-soon,
.pill {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-weight: 600;
  font-size: 0.95rem;
}

.store-soon-device {
  font-weight: 700;
}

.get-app {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 48rem) {
  .get-app {
    grid-template-columns: 1fr auto;
  }
}

.qr-figure {
  margin: 0;
  text-align: center;
}

.qr-figure figcaption,
.qr-caption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Phone cameras need dark-on-light, so the QR keeps a white tile in dark mode too. */
.qr-frame {
  display: inline-block;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.25rem;
  line-height: 0;
  border: 1px solid var(--border);
}

.qr-frame .qr {
  width: 11rem;
  height: 11rem;
  display: block;
}

.store-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 44rem) {
  .store-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.store-card {
  text-align: center;
}

.store-card p:last-child {
  margin-bottom: 0;
}

/* Long-form pages (privacy, terms, support) ----------------------------- */

.prose {
  max-width: 46rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.prose h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.meta-line {
  color: var(--muted);
  font-size: 0.95rem;
}

.callout {
  border-left: 4px solid var(--brand);
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.toc {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.97rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
}

details[open] summary {
  margin-bottom: 0.5rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p:last-child,
details ol:last-child,
details ul:last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--fg);
}

.footer-note {
  color: var(--muted);
  margin: 1rem 0 0;
}

/* Poster (/poster) — one US Letter sheet ------------------------------- */

.poster-page {
  background: var(--surface);
}

.poster {
  max-width: 8.5in;
  margin: 1rem auto;
  padding: 0.6in 0.6in 0.5in;
  background: #ffffff;
  color: #0f1a1f;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25in;
}

.poster .logo {
  color: #0f766e;
  width: 64px;
  height: 64px;
  --on-brand: #ffffff;
}

.poster-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2rem;
  font-weight: 800;
}

.poster h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  margin: 0;
  max-width: none;
}

.poster-sub {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #34454c;
  margin: 0;
  max-width: 30rem;
}

.poster .qr-frame {
  border: 3px solid #0f1a1f;
  padding: 0.1in;
}

.poster .qr-poster {
  width: min(4.25in, 70vw);
  height: min(4.25in, 70vw);
}

.poster-url {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 700;
  margin: 0;
  color: #0f1a1f;
}

.poster-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  font-size: 1.1rem;
  color: #34454c;
}

.poster-actions {
  text-align: center;
  margin: 1rem 0 2rem;
}

@media print {
  @page {
    size: letter portrait;
    margin: 0.4in;
  }

  .poster-page {
    background: #ffffff;
  }

  .poster {
    box-shadow: none;
    margin: 0;
    max-width: none;
    border-radius: 0;
    padding: 0.2in 0;
  }

  .poster-actions {
    display: none;
  }
}

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