/* AICitySim pilot — light brand + spacing (Skeleton-first) */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

:root {
  --brand-bg: #0f1419;
  --brand-chrome-bg: #121922;
  --brand-fg: #e8eef2;
  --brand-muted: #9aa7b2;
  --brand-accent: #3db8e8;
}

body.theme-dark {
  background: var(--brand-bg);
  color: var(--brand-fg);
}

body.theme-dark a {
  color: var(--brand-accent);
}

body.theme-dark a:hover {
  color: #6fd4ff;
}

/* Dark theme fills Skeleton gaps for buttons, forms, and tables without editing the framework. */
body.theme-dark .button,
body.theme-dark button,
body.theme-dark input[type="submit"],
body.theme-dark input[type="reset"],
body.theme-dark input[type="button"] {
  color: var(--brand-fg);
  border-color: #3a4654;
}

body.theme-dark .button:hover,
body.theme-dark button:hover,
body.theme-dark input[type="submit"]:hover,
body.theme-dark input[type="reset"]:hover,
body.theme-dark input[type="button"]:hover,
body.theme-dark .button:focus,
body.theme-dark button:focus,
body.theme-dark input[type="submit"]:focus,
body.theme-dark input[type="reset"]:focus,
body.theme-dark input[type="button"]:focus {
  color: #ffffff;
  border-color: #6fd4ff;
}

body.theme-dark .button.button-primary,
body.theme-dark button.button-primary,
body.theme-dark input[type="submit"].button-primary,
body.theme-dark input[type="reset"].button-primary,
body.theme-dark input[type="button"].button-primary {
  color: #0f1419;
  background-color: #00ff90;
  border-color: #00ff90;
}

body.theme-dark .button.button-primary:hover,
body.theme-dark button.button-primary:hover,
body.theme-dark input[type="submit"].button-primary:hover,
body.theme-dark input[type="reset"].button-primary:hover,
body.theme-dark input[type="button"].button-primary:hover,
body.theme-dark .button.button-primary:focus,
body.theme-dark button.button-primary:focus,
body.theme-dark input[type="submit"].button-primary:focus,
body.theme-dark input[type="reset"].button-primary:focus,
body.theme-dark input[type="button"].button-primary:focus {
  color: #0f1419;
  background-color: #00ff90;
  border-color: #00ff90;
}

body.theme-dark input[type="email"],
body.theme-dark input[type="number"],
body.theme-dark input[type="search"],
body.theme-dark input[type="text"],
body.theme-dark input[type="tel"],
body.theme-dark input[type="url"],
body.theme-dark input[type="password"],
body.theme-dark textarea,
body.theme-dark select {
  color: var(--brand-fg);
  background-color: #121922;
  border-color: #3a4654;
}

body.theme-dark input[type="email"]:focus,
body.theme-dark input[type="number"]:focus,
body.theme-dark input[type="search"]:focus,
body.theme-dark input[type="text"]:focus,
body.theme-dark input[type="tel"]:focus,
body.theme-dark input[type="url"]:focus,
body.theme-dark input[type="password"]:focus,
body.theme-dark textarea:focus,
body.theme-dark select:focus {
  border-color: var(--brand-accent);
}

body.theme-dark th,
body.theme-dark td {
  border-bottom-color: #2a3440;
}

body.theme-dark code {
  color: var(--brand-fg);
  background: #151c24;
  border-color: #3a4654;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: 2rem;
  padding-bottom: 1rem;
  background-color: var(--brand-chrome-bg);
  border-bottom: 1px solid #e1e1e1;
}

body.theme-dark .site-header {
  border-bottom-color: #2a3440;
}

.site-header__brand {
  display: inline-block;
  line-height: 44px;
}

.site-header__logo {
  display: inline-block;
  max-height: 40px;
  vertical-align: middle;
}

.site-footer {
  margin-top: 0;
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: 1.3rem;
  color: var(--brand-muted);
  background-color: var(--brand-chrome-bg);
  border-top: 1px solid #e1e1e1;
}

body.theme-dark .site-footer {
  color: #7d8b99;
  border-top-color: #2a3440;
}

.site-footer__content {
  text-align: center;
}

.site-footer__social {
  margin-bottom: 1.5rem;
}

.site-footer__social img {
  height: 48px;
  margin-right: 0.8rem;
  margin-left: 0.8rem;
}

@media (max-width: 549px) {
  .site-footer__social {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .site-footer__social img {
    height: 36px;
    margin-right: 0.35rem;
    margin-left: 0.35rem;
  }

  body.landing-skeleton .site-footer__social {
    gap: 0;
  }
}

.site-footer__contact {
  margin-bottom: 1rem;
  color: #cccccc;
}

.site-footer__contact a {
  color: #cccccc;
}

.site-footer__ssl {
  height: 20px;
  margin-bottom: 1rem;
}

.site-footer__legal {
  color: #777777;
}

.site-footer__legal a {
  color: #777777;
}

/* Landing prototype sections need viewport-height bands; Skeleton has no section-height primitive. */
.landing-skeleton .landing-section {
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 6rem;
  box-sizing: border-box;
}

.landing-skeleton .landing-section:not(.hero-section) {
  display: flex;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.landing-skeleton .landing-section:not(.hero-section) > .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 6rem);
}

/* Hero prototype needs a background image and centered overlay; Skeleton has no primitives for this. */
.landing-skeleton .hero-section {
  min-height: calc(100vh - 7rem);
  padding-top: 3rem;
  padding-bottom: 3rem;
  background:
    linear-gradient(rgba(15, 20, 25, 0.34), rgba(15, 20, 25, 0.52)),
    url("../images/hero-background.png") center center / cover no-repeat;
}

.landing-skeleton .hero-stage {
  min-height: calc(100vh - 13rem);
  padding-top: 8vh;
  box-sizing: border-box;
}

.landing-skeleton .hero-copy {
  width: 75%;
  margin-right: auto;
  margin-left: auto;
  padding: 3.5rem;
  box-sizing: border-box;
  text-align: center;
  background: rgba(15, 20, 25, 0.76);
  border: 1px solid rgba(232, 238, 242, 0.16);
}

.landing-skeleton .hero-copy p {
  font-size: 1.8rem;
  line-height: 1.55;
}

.landing-skeleton .hero-actions {
  margin-bottom: 0;
  text-align: center;
}

.landing-skeleton .hero-actions .button {
  margin-right: 0.8rem;
}

.landing-skeleton .landing-section {
  text-align: center;
}

.landing-skeleton .landing-section ul,
.landing-skeleton .landing-section ol {
  padding-left: 0;
  list-style-position: inside;
}

.landing-skeleton .landing-section img,
.landing-skeleton .landing-section svg,
.landing-skeleton .landing-section .icon {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.landing-skeleton .landing-section .row:not(.section-step-nav) > .columns:not(.twelve)::before {
  content: "";
  display: block;
  width: min(100%, 16rem);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.5rem;
  box-sizing: border-box;
  border: 1px dashed rgba(232, 238, 242, 0.32);
  border-radius: 4px;
  background: rgba(232, 238, 242, 0.06);
}

.landing-skeleton .landing-section > .container:has(.section-step-nav) > .row:first-child {
  margin-top: auto;
}

.landing-skeleton .landing-section > .container:has(.section-step-nav) > .row:not(.section-step-nav) {
  transform: translateY(-2vh);
}

.landing-skeleton .section-step-nav {
  margin-top: auto;
  padding-top: 3rem;
  text-align: center;
}

.landing-skeleton .section-step-nav__button {
  min-width: 12rem;
  margin-right: 0.6rem;
  margin-left: 0.6rem;
}

.landing-skeleton .preview-panel {
  box-sizing: border-box;
}

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

@media (max-width: 549px) {
  .landing-skeleton .hero-stage {
    padding-top: 6vh;
  }

  .landing-skeleton .hero-copy {
    width: 75%;
    padding: 2rem;
  }

  .landing-skeleton .hero-copy p {
    font-size: 1.5rem;
  }

  .landing-skeleton .hero-actions .button {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: 0;
  }

  .landing-skeleton .section-step-nav {
    display: none;
  }
}

.pill-muted {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid #d1d1d1;
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

body.theme-dark .pill-muted {
  border-color: #3a4654;
}

.stack-tight .row {
  margin-bottom: 0.5rem;
}

.flash-wrap {
  margin-bottom: 1.5rem;
}

.flash {
  padding: 1rem 1.2rem;
  border-radius: 4px;
  border: 1px solid #e1e1e1;
  margin-bottom: 0.8rem;
}

.flash-success {
  border-color: #33c3f0;
}

.flash-error {
  border-color: #ff7979;
}

.flash-info {
  border-color: #bbb;
}

body.theme-dark .flash {
  border-color: #3a4654;
  background: #151c24;
}

.preview-panel {
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

body.theme-dark .preview-panel {
  border-color: #2a3440;
  background: #121922;
}

table.admin-table {
  width: 100%;
}

/* Heading scale on small screens: see custom.css (html.pilot-surface) for global scaffold typography */

/* ===== Theme toggle button ===== */
.theme-toggle {
  padding: 0 12px;
  min-width: 44px;
}

.theme-icon {
  vertical-align: middle;
  display: inline-block;
  pointer-events: none;
}

/* Default (dark mode): show sun to indicate "switch to light" */
.theme-icon--moon { display: none; }

body.theme-light .theme-icon--sun { display: none; }
body.theme-light .theme-icon--moon { display: inline-block; }

/* ===== Light mode ===== */

body.theme-light {
  background: #ffffff;
  color: #1a1a1a;
}

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

body.theme-light a:hover {
  color: #005580;
}

body.theme-light .button,
body.theme-light button,
body.theme-light input[type="submit"],
body.theme-light input[type="reset"],
body.theme-light input[type="button"] {
  color: #1a1a1a;
  border-color: #c5cdd5;
}

body.theme-light .button:hover,
body.theme-light button:hover,
body.theme-light input[type="submit"]:hover,
body.theme-light input[type="reset"]:hover,
body.theme-light input[type="button"]:hover,
body.theme-light .button:focus,
body.theme-light button:focus,
body.theme-light input[type="submit"]:focus,
body.theme-light input[type="reset"]:focus,
body.theme-light input[type="button"]:focus {
  color: #0a0a0a;
  border-color: #3a4654;
}

body.theme-light .button.button-primary,
body.theme-light button.button-primary,
body.theme-light input[type="submit"].button-primary,
body.theme-light input[type="reset"].button-primary,
body.theme-light input[type="button"].button-primary {
  color: #0f1419;
  background-color: #00ff90;
  border-color: #00ff90;
}

body.theme-light .button.button-primary:hover,
body.theme-light button.button-primary:hover,
body.theme-light input[type="submit"].button-primary:hover,
body.theme-light input[type="reset"].button-primary:hover,
body.theme-light input[type="button"].button-primary:hover,
body.theme-light .button.button-primary:focus,
body.theme-light button.button-primary:focus,
body.theme-light input[type="submit"].button-primary:focus,
body.theme-light input[type="reset"].button-primary:focus,
body.theme-light input[type="button"].button-primary:focus {
  color: #0f1419;
  background-color: #00ff90;
  border-color: #00ff90;
}

body.theme-light input[type="email"],
body.theme-light input[type="number"],
body.theme-light input[type="search"],
body.theme-light input[type="text"],
body.theme-light input[type="tel"],
body.theme-light input[type="url"],
body.theme-light input[type="password"],
body.theme-light textarea,
body.theme-light select {
  color: #1a1a1a;
  background-color: #ffffff;
  border-color: #c5cdd5;
}

body.theme-light input[type="email"]:focus,
body.theme-light input[type="number"]:focus,
body.theme-light input[type="search"]:focus,
body.theme-light input[type="text"]:focus,
body.theme-light input[type="tel"]:focus,
body.theme-light input[type="url"]:focus,
body.theme-light input[type="password"]:focus,
body.theme-light textarea:focus,
body.theme-light select:focus {
  border-color: #33c3f0;
}

body.theme-light th,
body.theme-light td {
  border-bottom-color: #e1e1e1;
}

body.theme-light code {
  color: #1a1a1a;
  background: #f5f5f5;
  border-color: #e1e1e1;
}

body.theme-light .site-header {
  background-color: #ffffff;
  border-bottom-color: #e1e1e1;
}

body.theme-light .site-header__logo {
  content: url('../images/aicitysim-pilot-logo-light.png');
}

body.theme-light .site-footer__ssl {
  content: url('../images/ssl.lock-light.png');
}

body.theme-light .site-footer__social img[src*="github.png"] {
  content: url('../images/icons/github-light.png');
}

body.theme-light .site-footer__social img[src*="instagram.png"] {
  content: url('../images/icons/instagram-light.png');
}

body.theme-light .site-footer__social img[src*="linkedin.png"] {
  content: url('../images/icons/linkedin-light.png');
}

body.theme-light .site-footer__social img[src*="twitter.png"] {
  content: url('../images/icons/twitter-light.png');
}

body.theme-light .site-footer__social img[src*="gitbook.png"] {
  content: url('../images/icons/gitbook-light.png');
}

body.theme-light .site-footer {
  background-color: #f5f7fa;
  border-top-color: #e1e1e1;
  color: #555;
}

body.theme-light .site-footer__contact {
  color: #777777;
}

body.theme-light .pill-muted {
  border-color: #c5cdd5;
}

body.theme-light .flash {
  border-color: #e1e1e1;
  background: #f9f9f9;
}

body.theme-light .preview-panel {
  border-color: #dde1e5;
  background: #ffffff;
}
