/*
 * pilot.aicitysim.city — minimal scaffold overrides (Skeleton-compliant)
 * See docs/skeleton_reference.md — scoped to .pilot-surface only.
 * Avenir + width rhythm + modest type/form scale; no utility framework.
 */

/* ---- Width: ~95% small/tablet, ~80% desktop (per product brief; Skeleton grid unchanged) ---- */
.pilot-surface .container {
  width: 95%;
  max-width: 1120px;
  box-sizing: border-box;
}

@media (min-width: 550px) {
  .pilot-surface .container {
    width: 80%;
  }
}

/* ---- Typography: Avenir stack, slightly friendlier scale (scoped) ---- */
html.pilot-surface {
  font-family:
    "Plus Jakarta Sans",
    "Avenir Next",
    Avenir,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}

.pilot-surface h1 {
  font-size: 4.4rem;
  line-height: 1.12;
  letter-spacing: -0.12rem;
}

.pilot-surface h2 {
  font-size: 3.8rem;
  line-height: 1.18;
  letter-spacing: -0.1rem;
}

.pilot-surface h3 {
  font-size: 3.2rem;
  line-height: 1.22;
}

.pilot-surface h4 {
  font-size: 2.6rem;
  line-height: 1.28;
}

.pilot-surface h5 {
  font-size: 2rem;
  line-height: 1.35;
}

.pilot-surface h6 {
  font-size: 1.6rem;
  line-height: 1.45;
}

@media (min-width: 550px) {
  .pilot-surface h1 {
    font-size: 5.4rem;
  }
  .pilot-surface h2 {
    font-size: 4.6rem;
  }
  .pilot-surface h3 {
    font-size: 3.8rem;
  }
}

@media (max-width: 549px) {
  .pilot-surface h1 {
    font-size: 3.6rem;
  }
  .pilot-surface h2 {
    font-size: 3.1rem;
  }
}

.pilot-surface .lede {
  font-size: 1.75em;
  line-height: 1.55;
}

/* ---- Forms: slightly larger tap/read targets (Skeleton inputs preserved) ---- */
.pilot-surface input[type="email"],
.pilot-surface input[type="number"],
.pilot-surface input[type="search"],
.pilot-surface input[type="text"],
.pilot-surface input[type="tel"],
.pilot-surface input[type="url"],
.pilot-surface input[type="password"],
.pilot-surface select {
  min-height: 44px;
  font-size: 1.55em;
  padding: 8px 12px;
}

.pilot-surface textarea {
  min-height: 96px;
  font-size: 1.55em;
  line-height: 1.45;
  padding: 10px 12px;
}

.pilot-surface .button,
.pilot-surface button,
.pilot-surface input[type="submit"],
.pilot-surface input[type="reset"],
.pilot-surface input[type="button"] {
  min-height: 44px;
  line-height: 44px;
  padding: 0 28px;
  font-size: 12px;
}

/* ---- Light layout polish (main column breathing room) ---- */
.pilot-surface .main-stage {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.site-header__nav {
  display: inline-block;
}

.table-scroll {
  overflow-x: auto;
}

.login-panel {
  margin-top: 3rem;
}

body.landing-skeleton .landing-main {
  margin: 0;
}

body.landing-skeleton .landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

body.landing-skeleton .landing-footer {
  position: relative;
  z-index: 2;
}

body.landing-skeleton .landing-header {
  padding-top: 2.4rem;
  padding-bottom: 1.6rem;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.95), rgba(8, 12, 18, 0.72)),
    linear-gradient(135deg, #101720, #172331 52%, #1a4150);
  backdrop-filter: blur(8px);
}

body.landing-skeleton .landing-header .twelve.columns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}

body.landing-skeleton .landing-footer .twelve.columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

body.landing-skeleton .site-header__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  color: #f7fafc;
  text-decoration: none;
}

body.landing-skeleton .site-header__brand:hover,
body.landing-skeleton .site-header__brand:focus {
  color: #f7fafc;
}

body.landing-skeleton .site-header__brand-mark {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.landing-skeleton .site-header__brand-subtitle {
  font-size: 1.4rem;
  color: #9bb7c6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.landing-skeleton .landing-section {
  position: relative;
  padding: 6.5rem 0;
  border-top: 1px solid rgba(154, 167, 178, 0.12);
}

body.landing-skeleton .landing-section:nth-of-type(odd) {
  background:
    radial-gradient(circle at top right, rgba(61, 184, 232, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(12, 18, 26, 0.92), rgba(13, 19, 28, 0.98));
}

body.landing-skeleton .landing-section:nth-of-type(even) {
  background:
    radial-gradient(circle at top left, rgba(61, 184, 232, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(10, 15, 22, 0.98), rgba(9, 14, 20, 0.98));
}

body.landing-skeleton .landing-section.hero-section {
  padding-top: 7.5rem;
  padding-bottom: 7rem;
  border-top: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(6, 10, 20, 0.5), rgba(6, 10, 20, 0.72)),
    url("../images/hero-background.png") center bottom / cover no-repeat;
}

body.landing-skeleton .hero-stage {
  position: relative;
}

body.landing-skeleton .hero-copy,
body.landing-skeleton .landing-hero-panel,
body.landing-skeleton .landing-final-cta,
body.landing-skeleton .site-footer__content {
  position: relative;
  z-index: 1;
}

body.landing-skeleton .landing-eyebrow {
  display: inline-block;
  margin-bottom: 1.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(111, 212, 255, 0.24);
  border-radius: 999px;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fdcff;
}

body.landing-skeleton .hero-copy p:not(.hero-actions) {
  max-width: 62rem;
  margin-right: auto;
  margin-left: auto;
  font-size: 1.95rem;
  line-height: 1.7;
  color: #cfdae2;
}

body.landing-skeleton .hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

body.landing-skeleton .hero-actions .button,
body.landing-skeleton .section-step-nav__button {
  margin-bottom: 0;
}

body.landing-skeleton .landing-hero-panel {
  padding: 2.4rem;
  border: 1px solid rgba(111, 212, 255, 0.18);
  border-radius: 1.6rem;
  background: rgba(14, 21, 31, 0.82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

body.landing-skeleton .landing-checklist {
  margin-bottom: 0;
}

body.landing-skeleton .landing-checklist li {
  margin-bottom: 1rem;
}

body.landing-skeleton .section-step-nav {
  margin-top: 1.6rem;
}

body.landing-skeleton .section-step-nav .twelve.columns {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

body.landing-skeleton .landing-final-cta {
  padding: 3rem;
  border: 1px solid rgba(111, 212, 255, 0.18);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(61, 184, 232, 0.2), transparent 34%),
    rgba(14, 21, 31, 0.92);
  text-align: center;
}

body.landing-skeleton .landing-footer {
  margin-top: 0;
  padding-top: 3.2rem;
  padding-bottom: 4.2rem;
  background: #0b1016;
}

body.landing-skeleton .landing-footer .site-footer__content {
  width: 100%;
  text-align: center;
}

body.landing-skeleton .site-footer__social {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

body.landing-skeleton .site-footer__contact,
body.landing-skeleton .site-footer__legal,
body.landing-skeleton .site-footer__content h6 {
  margin-bottom: 1rem;
}

@media (max-width: 749px) {
  .site-header__brand {
    display: block;
    width: fit-content;
    margin: 0 auto 1.2rem;
  }

  body.landing-skeleton .landing-header .twelve.columns,
  body.landing-skeleton .section-step-nav .twelve.columns {
    flex-direction: column;
    align-items: flex-start;
  }

  body.landing-skeleton .landing-footer .twelve.columns {
    flex-direction: column;
    align-items: center;
  }

  body.landing-skeleton .site-header__brand {
    align-self: center;
  }

  body.landing-skeleton .site-header__nav {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    float: none;
  }

  body.landing-skeleton .hero-section {
    padding-top: 5.6rem;
    padding-bottom: 5.2rem;
  }

  body.landing-skeleton .landing-section {
    padding: 4.8rem 0;
  }

  body.landing-skeleton .landing-hero-panel,
  body.landing-skeleton .landing-final-cta {
    padding: 2rem;
  }

  body.landing-skeleton .hero-copy p:not(.hero-actions) {
    font-size: 1.8rem;
  }
}

@media (max-width: 549px) {
  body.landing-skeleton .landing-header {
    padding-top: 1.8rem;
  }

  body.landing-skeleton .site-header__brand-mark {
    font-size: 1.8rem;
  }

  body.landing-skeleton .hero-actions {
    width: 100%;
  }

  body.landing-skeleton .hero-actions .button,
  body.landing-skeleton .section-step-nav__button {
    width: 100%;
    text-align: center;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  body.landing-skeleton .site-header__nav {
    flex-wrap: nowrap;
    gap: 0.4rem;
    width: 100%;
    justify-content: center;
  }

  body.landing-skeleton .site-header__nav .button {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.landing-skeleton .landing-final-cta {
    text-align: center;
  }
}

/* ===== Light mode — intake components ===== */

body.theme-light .intake-frame {
  border-color: #dde1e5;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.theme-light .intake-banner-image {
  border-bottom-color: #dde1e5;
}

body.theme-light .intake-frame__eyebrow {
  color: #0077bb;
}

body.theme-light .intake-frame__lede {
  color: #3a4654;
}

body.theme-light .intake-frame__note,
body.theme-light .field-help,
body.theme-light .field-optional {
  color: #5c6b7a;
}

body.theme-light .intake-progress {
  border-top-color: #dde1e5;
}

body.theme-light .intake-progress__meta,
body.theme-light .intake-progress__dots {
  color: #5c6b7a;
}

body.theme-light .intake-form__actions {
  border-top-color: #dde1e5;
}

body.intake-shell .main-stage {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.intake-stage {
  max-width: 84rem;
  margin: 0 auto;
}

.intake-frame {
  border: 1px solid #2a3440;
  border-radius: 1.2rem;
  background: #121922;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.intake-banner-image {
  display: block;
  aspect-ratio: 3 / 1;
  min-height: 8rem;
  object-fit: cover;
  border-bottom: 1px solid #2a3440;
}

.intake-frame__body {
  padding: 2.6rem 2.8rem 3rem;
}

.intake-frame__header {
  margin-bottom: 2.4rem;
}

.intake-frame__eyebrow {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: #9fdcff;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intake-frame__title {
  margin-bottom: 1rem;
}

.intake-frame__lede {
  margin-bottom: 1rem;
  color: #d7e0e7;
  font-size: 1.75rem;
  line-height: 1.6;
  max-width: 64rem;
}

.intake-frame__note,
.field-help,
.field-optional {
  color: #9aa7b2;
}

.field-help {
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 1.35rem;
}

.field-help--spaced {
  margin-top: -1rem;
  margin-bottom: 1.8rem;
}

.field-error {
  margin-top: 0.8rem;
  margin-bottom: 0;
  color: #ff7979;
  font-size: 1.3rem;
}

.field-required {
  color: #ff7979;
}

.intake-progress {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid #2a3440;
}

.intake-progress__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.intake-progress__meta,
.intake-progress__dots {
  color: #9aa7b2;
  font-size: 1.3rem;
}

.intake-progress__dots {
  margin-top: 0.4rem;
  letter-spacing: 0.18em;
}

.intake-form .row {
  margin-bottom: 1.6rem;
}

.intake-form label {
  line-height: 1.5;
}

.choice-row {
  display: block;
  margin-bottom: 1rem;
}

.intake-form__actions {
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid #2a3440;
}

.intake-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.intake-actions--review {
  margin-bottom: 2rem;
}

.intake-inline-form {
  display: inline-block;
  margin: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 749px) {
  .intake-frame__body {
    padding: 2.2rem 2rem 2.6rem;
  }

  .intake-frame__lede {
    font-size: 1.65rem;
  }
}

@media (max-width: 549px) {
  body:not(.landing-skeleton) .site-header__nav {
    display: flex;
    float: none;
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  body.intake-shell .main-stage {
    margin-top: 2rem;
    margin-bottom: 3rem;
  }

  body.intake-shell .site-header__nav {
    display: flex;
    float: none;
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .intake-banner-image {
    min-height: 7rem;
  }

  .intake-frame {
    border-radius: 1.2rem;
  }

  .intake-frame__body {
    padding: 2rem 1.6rem 2.4rem;
  }

  .intake-progress {
    padding-top: 1rem;
  }

  .intake-progress__summary,
  .intake-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .intake-form__actions .button,
  .intake-actions .button,
  .intake-inline-form .button,
  .submit-feedback-panel .button {
    width: 100%;
    text-align: center;
  }

  .intake-form__actions .u-pull-right {
    float: none;
  }
}

body.preview-shell .main-stage {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.preview-stage {
  max-width: 92rem;
  margin: 0 auto;
}

.preview-frame {
  border: 1px solid #2a3440;
  border-radius: 1.2rem;
  background: #121922;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.preview-banner-image {
  display: block;
  aspect-ratio: 3 / 1;
  min-height: 8rem;
  object-fit: cover;
  border-bottom: 1px solid #2a3440;
}

.preview-frame__body {
  padding: 2.6rem 2.8rem 3rem;
}

.preview-frame__header {
  margin-bottom: 2.4rem;
}

.preview-frame__eyebrow {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: #9fdcff;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-frame__title {
  margin-bottom: 1rem;
}

.preview-frame__lede {
  margin-bottom: 0;
  color: #d7e0e7;
  font-size: 1.75rem;
  line-height: 1.6;
  max-width: 72rem;
}

.preview-pill {
  margin-left: 0.8rem;
}

.preview-notice {
  margin-bottom: 2rem;
  padding: 1.2rem;
  border: 1px solid #5c6b7a;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.preview-confidence {
  font-size: 1.3rem;
  color: #9aa7b2;
}

.preview-next-steps {
  margin-top: 0.8rem;
}

.preview-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 749px) {
  .preview-frame__body {
    padding: 2.2rem 2rem 2.6rem;
  }

  .preview-frame__lede {
    font-size: 1.65rem;
  }
}

@media (max-width: 549px) {
  body.preview-shell .main-stage {
    margin-top: 2rem;
    margin-bottom: 3rem;
  }

  .preview-banner-image {
    min-height: 7rem;
  }

  .preview-frame__body {
    padding: 2rem 1.6rem 2.4rem;
  }

  .preview-pill {
    display: inline-block;
    margin-top: 0.8rem;
    margin-left: 0;
  }

  .preview-actions .button {
    width: 100%;
    text-align: center;
  }
}

/* ===== Light mode — preview components ===== */

body.theme-light .preview-frame {
  border-color: #dde1e5;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.theme-light .preview-banner-image {
  border-bottom-color: #dde1e5;
}

body.theme-light .preview-frame__eyebrow {
  color: #0077bb;
}

body.theme-light .preview-frame__lede {
  color: #3a4654;
}

body.theme-light .preview-notice {
  border-color: #c5cdd5;
  background: rgba(0, 0, 0, 0.02);
}

body.theme-light .preview-confidence {
  color: #5c6b7a;
}

/* ===== Light mode — landing page ===== */

body.theme-light.landing-skeleton .landing-header {
  background: #ffffff;
  border-bottom: 1px solid #e1e1e1;
}

body.theme-light.landing-skeleton .site-header__brand,
body.theme-light.landing-skeleton .site-header__brand:hover,
body.theme-light.landing-skeleton .site-header__brand:focus {
  color: #1a1a1a;
}

body.theme-light.landing-skeleton .site-header__brand-subtitle {
  color: #5c6b7a;
}

body.theme-light.landing-skeleton .landing-section {
  border-top-color: #e1e1e1;
}

body.theme-light.landing-skeleton .landing-section:nth-of-type(odd) {
  background: #f7f9fb;
}

body.theme-light.landing-skeleton .landing-section:nth-of-type(even) {
  background: #ffffff;
}

body.theme-light.landing-skeleton .landing-section.hero-section {
  background:
    linear-gradient(rgba(6, 10, 20, 0.2), rgba(6, 10, 20, 0.2)),
    url("../images/hero-background.png") center bottom / cover no-repeat;
}

body.theme-light.landing-skeleton .landing-eyebrow {
  color: #0077bb;
  border-color: rgba(0, 119, 187, 0.3);
}

body.theme-light.landing-skeleton .hero-copy p:not(.hero-actions) {
  color: #2a3440;
}

body.theme-light.landing-skeleton .hero-copy {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light.landing-skeleton .landing-hero-panel {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 119, 187, 0.2);
}

body.theme-light.landing-skeleton .landing-final-cta {
  background: #eef6fb;
  border-color: rgba(0, 119, 187, 0.2);
}

body.theme-light.landing-skeleton .landing-footer {
  background: #eef0f4;
}

body.theme-light.landing-skeleton .landing-section .row:not(.section-step-nav) > .columns:not(.twelve)::before {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
}
