.walkthrough {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--section-border);
  border-radius: 28px;
  background: var(--section-glass);
  scroll-margin-top: 24px;
}

.walkthrough-copy h3 {
  margin-top: 12px;
  margin-bottom: 12px;
  color: var(--section-text);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 950;
  line-height: 1.1;
}

.faq-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-top: clamp(24px, 5vw, 44px);
}

.faq-group {
  border-top: 1px solid var(--section-border);
}

.faq-group + .faq-group {
  border-top: 0;
}

.faq-group__title {
  padding: 22px 8px 6px;
  color: var(--accent-blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-tabs[hidden] {
  display: none;
}

/* Three independent columns, one per topic, so opening an answer never
   shifts the others. */
@media (min-width: 820px) {
  .faq-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 48px);
  }

  .faq-group + .faq-group {
    border-top: 1px solid var(--section-border);
  }

  .faq-tabs {
    display: none;
  }
}

.faq-list details {
  border-bottom: 1px solid var(--section-border);
}

.faq-list summary {
  padding: 18px 8px;
  color: var(--section-text);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 850;
  cursor: pointer;
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.faq-list details > p {
  max-width: 760px;
  padding: 0 8px 24px;
  color: var(--section-muted);
  line-height: 1.6;
  font-weight: 650;
}

.faq-help {
  margin-top: 24px;
  color: var(--section-muted);
  line-height: 1.6;
}

.faq-section a {
  color: var(--accent-blue);
  text-underline-offset: 3px;
}

.walkthrough-copy > p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--section-muted);
  font-weight: 740;
  line-height: 1.5;
}

.walkthrough-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.walkthrough-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  /* One card: the video on top, a short caption under it. */
  .walkthrough {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 14px;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
  }

  .walkthrough-video {
    order: -1;
    border-radius: 0;
  }

  .walkthrough-copy {
    padding: 14px 16px 16px;
  }

  .walkthrough-copy .section-kicker {
    display: none;
  }

  .walkthrough-copy h3 {
    margin: 0 0 3px;
    font-size: 1.05rem;
    font-weight: 850;
  }

  .walkthrough-copy > p:not(.section-kicker) {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 550;
  }
}

/* Phones: topic tabs, four questions at a time, in one grouped card. */
@media (max-width: 819px) {
  .faq-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 20px;
    padding: 4px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--section-text) 6%, transparent);
  }

  .faq-tab {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    color: var(--section-muted);
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
    cursor: pointer;
  }

  .faq-tab[aria-selected="true"] {
    color: var(--section-text);
    background: var(--section-glass-strong);
    box-shadow: 0 2px 8px var(--section-shadow);
  }

  .faq-tab:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
  }

  .faq-section--tabbed .faq-list {
    margin-top: 12px;
  }

  .faq-section--tabbed .faq-group {
    display: none;
    overflow: hidden;
    border: 1px solid var(--section-border);
    border-radius: 22px;
    background: var(--section-glass-strong);
    box-shadow: 0 12px 36px var(--section-shadow);
  }

  .faq-section--tabbed .faq-group.is-active {
    display: block;
  }

  .faq-section--tabbed .faq-group__title {
    display: none;
  }

  .faq-section--tabbed .faq-group details:last-child {
    border-bottom: 0;
  }

  .faq-section--tabbed .faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    font-size: 0.97rem;
    line-height: 1.3;
    list-style: none;
  }

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

  .faq-section--tabbed .faq-list summary::after {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.4;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
  }

  .faq-section--tabbed .faq-list details[open] summary::after {
    transform: rotate(45deg);
  }

  .faq-section--tabbed .faq-list details > p {
    padding: 0 16px 16px;
    font-size: 0.94rem;
    font-weight: 550;
    line-height: 1.45;
  }

  .faq-help {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
  }
}
