/* Interior marketing pages (About, How it works, Rules, …) */

.page-intro {
  padding: 1.5rem 2rem 3rem 2rem;
  border-bottom: 1px solid var(--line-color);
  animation: fade-in 0.55s ease both;
}

.page-intro h1 {
  margin: 0 0 1rem;
}

.page-intro-lead {
  margin: 0;
  max-width: 44rem;
  color: var(--text-color-muted);
  /* Same as home .hero-lead */
  font-size: 1.12rem;
  line-height: 1.65;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.page-actions-center {
  justify-content: center;
}

.page-lead-follow {
  margin-top: 1.5rem;
}

/* Full-width content blocks (not a narrow left column) */
.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.page-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-grid + .rules-note {
  margin-top: 2rem;
}

.page-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 1.4rem;
  background: color-mix(in srgb, var(--card-bg-color) 88%, black);
  border: 1px solid var(--line-color);
  border-radius: 12px;
}

.page-card .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.25rem;
  color: var(--text-color);
  background: var(--color-blue);
  border-radius: 8px;
}

.page-card h3 {
  margin: 0;
}

.page-card p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.65;
}

/* Vertical walkthrough steps */
.flow-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow-step;
}

.flow-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding: 1.5rem 1.4rem;
  background: color-mix(in srgb, var(--card-bg-color) 88%, black);
  border: 1px solid var(--line-color);
  border-radius: 12px;
  counter-increment: flow-step;
}

.flow-step-body {
  display: grid;
  gap: 0;
  min-width: 0;
}

.flow-shot,
.flow-shots {
  margin-top: 1.25rem;
}

.flow-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.flow-list .screenshot-frame {
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.28);
}

.flow-shot > img,
.flow-shots .screenshot-frame > img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.flow-step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-color);
  font-weight: 700;
  background: var(--color-blue);
  border-radius: 10px;
}

.flow-step-num::before {
  content: counter(flow-step);
}

.flow-list h3 {
  margin: 0 0 0.55rem;
}

.flow-list p {
  margin: 0;
  max-width: none;
  font-size: 1.12rem;
  line-height: 1.65;
}

.flow-list p + p {
  margin-top: 0.75rem;
}

.detail-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-color-muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-yellow);
}

.license-text {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.5rem;
  overflow-x: auto;
  color: var(--text-color-muted);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  background: color-mix(in srgb, var(--card-bg-color) 88%, black);
  border: 1px solid var(--line-color);
  border-radius: 12px;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  max-width: 52rem;
}

.faq-list details {
  padding: 0.15rem 0;
  background: color-mix(in srgb, var(--card-bg-color) 88%, black);
  border: 1px solid var(--line-color);
  border-radius: 12px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  color: var(--text-color);
  font-size: 1.12rem;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--color-yellow);
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  font-size: 1.12rem;
  line-height: 1.65;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-methods .page-card {
  min-height: 100%;
}

@media (max-width: 900px) {
  .page-grid,
  .page-grid-2,
  .contact-methods,
  .flow-shots {
    grid-template-columns: 1fr;
  }
}
