/* Tour, founder story, build log, follow form, and FAQ. */

.take-tour,
.halo-tour-path,
.halo-tour-actions button {
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}

.take-tour {
  border: 1px solid rgba(215, 169, 63, 0.55);
  border-radius: 999px;
  background: #10140f;
  color: var(--gold-bright);
  padding: 8px 12px;
}

a.take-tour {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.founder-layout {
  display: grid;
  grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.founder-portrait {
  margin: 0;
}

.founder-portrait img,
.about-founder img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  box-sizing: border-box;
  border: 1px solid var(--gold);
}

.founder-story a:not(:where(.primary-button, .secondary-button, .project-action)) {
  color: var(--gold-bright);
}

.founder-story a:not(:where(.primary-button, .secondary-button, .project-action)):hover {
  color: var(--text);
}

.founder-story a:not(:where(.primary-button, .secondary-button, .project-action)):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.about-founder {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.about-founder img {
  max-width: 140px;
}

.founder-story blockquote {
  margin: 1rem 0;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  background: #10140c;
}

.founder-story blockquote p {
  margin: 0;
}

.build-log {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.build-log-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #29433f;
  background: #071216;
}

.build-log-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.build-log-date {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.build-log-status {
  color: var(--gold-bright);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.build-log-item[data-status="done"] .build-log-status { color: var(--success); }
.build-log-item[data-status="pending"] { border-color: rgba(215, 169, 63, 0.75); }
.build-log-item[data-status="planned"] { border-color: #3a4642; }

.follow-build-form {
  display: grid;
  gap: 12px;
  box-sizing: border-box;
  max-width: 100%;
}

.follow-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.follow-build-form label {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.follow-build-form input,
.follow-build-form select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: #080d0f;
  border: 1px solid #52646a;
  border-radius: 8px;
  color: #f5fbfc;
  font: inherit;
  min-height: 44px;
  padding: 0.7rem;
}

.follow-build-form .contact-consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  font-weight: 400;
}

.follow-build-form .primary-button {
  width: auto;
  min-width: 10rem;
  padding: 0 18px;
}

.site-footer .footer-follow {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(215, 169, 63, 0.35);
  background: #10140c;
  max-width: 720px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid #29433f;
  background: #071216;
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 8px 0 0;
}

.fact-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 10px 12px;
  border: 1px solid #29433f;
  background: #071216;
}

html.halo-tour-open {
  overflow: hidden;
}

.halo-tour-shade {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.62);
}

.halo-tour-dialog {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  box-sizing: border-box;
  width: min(24rem, calc(100% - 32px));
  max-height: min(70vh, 34rem);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--gold);
  background: #12140f;
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.halo-tour-face {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.halo-tour-dialog h2 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.25rem;
}

#haloTourChoices {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

#haloTourChoices[hidden],
.halo-tour-actions button[hidden] {
  display: none;
}

.halo-tour-path,
.halo-tour-actions button {
  border: 1px solid rgba(215, 169, 63, 0.55);
  border-radius: 8px;
  background: #10140f;
  color: var(--gold-bright);
  padding: 8px 12px;
  text-align: left;
}

.halo-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.halo-tour-actions button {
  text-align: center;
}

#haloTourNext {
  background: var(--gold);
  color: #120f08;
  border-color: var(--gold);
}

.halo-tour-target {
  position: relative;
  z-index: 81;
  outline: 3px solid var(--gold-bright);
  outline-offset: 6px;
  scroll-margin: 24px;
}

.halo-tour-target.is-animated {
  animation: halo-tour-pulse 1.6s ease-in-out infinite;
}

.halo-tour-target.is-still,
html.calm-mode .halo-tour-target,
html.reduced-motion .halo-tour-target {
  animation: none;
}

@keyframes halo-tour-pulse {
  50% { outline-color: #fff6d0; }
}

@media (max-width: 680px) {
  .founder-layout,
  .follow-build-grid {
    grid-template-columns: 1fr;
  }

  .about-founder {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .halo-tour-dialog {
    left: 16px;
    right: 16px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .halo-tour-target {
    animation: none;
  }
}
