/* CityMotion Website 2.1 — page-level components that sit on top of styles.css. */

.wide-head { max-width: 980px; }

.site-nav a { white-space: nowrap; }

/* Page headers used by the 2.1 pages sit directly under <main>; give them the
   same gutter and max width as .page-section. */
main > .page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
}

@media (max-width: 760px) {
  main > .page-head {
    padding-top: 28px;
  }
}

.plain-list { margin: 12px 0 18px; padding-left: 20px; line-height: 1.65; color: var(--text-2); }
.plain-list li { margin: 6px 0; }

.feature-tag { margin-top: 10px; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--text-3); }

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.status-ok { color: var(--ok); background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.status-warn { color: var(--warn); background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.status-danger { color: var(--danger); background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.status-neutral { color: var(--text-2); background: var(--surface-2); }

.status-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 26px; }
.status-legend p { flex: 1 1 320px; margin: 0; color: var(--text-3); font-size: 14px; }

.matrix-table { min-width: 980px; }
.matrix-table .row-sub { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; }

.compat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 22px 0; }
.compat-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: inherit; text-decoration: none;
}
.compat-card:hover, .compat-card:focus-visible { border-color: var(--brand); }
.compat-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.compat-card-line { color: var(--text-2); font-size: 14px; }
.compat-card-note { color: var(--text-3); font-size: 13px; }

.split-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }

.two-screens { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin: 26px 0; }
.two-screens-copy p { color: var(--text-2); }
.two-screens-phones { display: flex; gap: 16px; justify-content: center; }
.phone-shot { margin: 0; width: min(230px, 46%); }
.phone-shot img {
  width: 100%; height: auto; display: block;
  border-radius: 22px; border: 1px solid var(--border); background: var(--surface-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.phone-shot figcaption { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; }
.phone-shot-empty .phone-placeholder {
  aspect-ratio: 9 / 19.5; border-radius: 22px; border: 1px dashed var(--border); background: var(--surface-2);
}

.shot-gallery { margin: 18px 0 8px; }
.shot-gallery-title { margin: 0 0 12px; }
.shot-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory;
}
.shot { margin: 0; scroll-snap-align: start; }
.shot a { display: block; }
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2);
}
.shot figcaption { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.shot figcaption span { color: var(--text-3); font-size: 12px; }
.shot-meta { margin: 12px 0 0; font-size: 12px; color: var(--text-3); }
.shot-empty {
  padding: 18px 20px; border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text-2);
}
.shot-empty p { margin: 0; }

.release-card {
  display: grid; gap: 6px; margin: 16px 0;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.release-card .sha code { word-break: break-all; font-size: 12px; }

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin: 22px 0; }
.account-card {
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin: 0 0 20px;
}
.account-card h2 { margin-top: 0; font-size: 20px; }
.account-card h3 { font-size: 16px; margin: 18px 0 6px; }
.account-page > .account-card { margin-top: 20px; }
.status-line { margin: 0 0 8px; }
.progress-line { font-size: 18px; margin: 4px 0 10px; }
.progress-track { display: flex; gap: 8px; margin: 0 0 12px; }
.progress-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); }
.progress-dot.is-on { background: var(--ok); border-color: var(--ok); }

.changelog { max-width: 920px; }
.log-product { margin: 0 0 40px; }
.log-product > h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.log-note { font-size: 13px; font-weight: 400; color: var(--text-3); }
.log-entry {
  position: relative; margin: 0; padding: 0 0 26px 20px;
  border-left: 2px solid var(--surface-3);
}
.log-entry::before {
  content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand);
}
.log-entry header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.log-entry h3 { margin: 0; font-size: 18px; }
.log-entry time { color: var(--text-3); font-size: 13px; }
.log-group { margin-top: 10px; }
.log-group h4 { margin: 0 0 4px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.log-group ul { margin: 0; padding-left: 18px; line-height: 1.55; color: var(--text-2); }
.log-added h4 { color: var(--ok); }
.log-fixed h4 { color: var(--warn); }

.account-page .admin-metrics { margin-bottom: 16px; }

.video-figure { margin: 24px 0 0; }
.video-figure video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #05080b;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}
.video-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--text-3); }

/* Home hero text: the lead is a paragraph, not a short model name. */
.premium-home .hero-title {
  display: block;
}
.premium-home .hero-title h1 {
  max-width: 15ch;
  font-size: clamp(36px, 5.6vw, 82px);
}
.premium-home .hero-model {
  white-space: normal;
  max-width: 62ch;
  margin-top: 18px;
  padding-block-end: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  letter-spacing: 0;
}
.premium-home .hero-line {
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.premium-home .hero-line p {
  max-width: 46ch;
}
.premium-home .hero-line {
  flex-wrap: wrap;
}
.premium-home .premium-hero .hero-reviews {
  flex: 1 0 100%;
  max-width: none;
  margin: 26px 0 0;
}
.premium-home .hero-reviews a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding: 15px 20px;
  border: 1px solid color-mix(in srgb, var(--cockpit-accent) 42%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--cockpit-accent) 10%, transparent);
  color: var(--cockpit-ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.premium-home .hero-reviews a:hover {
  background: color-mix(in srgb, var(--cockpit-accent) 24%, transparent);
  border-color: var(--cockpit-accent);
}
.premium-home .hero-reviews a:focus-visible {
  outline: 2px solid var(--cockpit-accent);
  outline-offset: 3px;
}
.premium-home .hero-reviews-title {
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .2em;
}
.premium-home .hero-reviews-meta {
  color: var(--cockpit-muted);
  font-weight: 500;
}
.premium-home .hero-reviews a:hover .hero-reviews-meta {
  color: var(--cockpit-ink);
}
.premium-home .hero-figure,
.premium-home .hero-frame {
  min-width: 0;
}
.premium-home .two-screens-phones {
  flex-wrap: wrap;
  min-width: 0;
}
.premium-home .phone-shot {
  min-width: 0;
}
.premium-home .phone-shot img {
  max-width: 100%;
}
.premium-home .feature-list,
.premium-home .compat-grid,
.premium-home .early-grid,
.premium-home .two-screens {
  min-width: 0;
}

@media (max-width: 760px) {
  .premium-home .hero-title h1 {
    max-width: none;
    font-size: clamp(32px, 8.4vw, 46px);
  }
  .premium-home .hero-model {
    font-size: 17px;
  }
  .premium-home .hero-vehicle-actions {
    align-items: stretch;
  }
  .site-header {
    align-items: flex-start;
  }
  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .header-actions .theme-switch {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
  .header-actions .button {
    width: 100%;
    white-space: normal;
  }
  .page-actions .button,
  .cookie-actions .button,
  .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .page-actions,
  .cookie-actions {
    flex-wrap: wrap;
  }
  .cookie-notice {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(100vw - 2 * var(--gutter));
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .two-screens { grid-template-columns: 1fr; }
  .two-screens-phones { justify-content: flex-start; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shot-strip { grid-auto-columns: minmax(160px, 80%); }
  .phone-shot { width: 48%; }
  .feature-tag { font-size: 11px; }
}

.article-answer {
  margin: 18px 0 10px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.55;
}
.article-answer strong { color: var(--brand); }
