.faq-page {
  --faq-width: 980px;
  --faq-line: #e7dfda;
}

.faq-page .top-nav a[aria-current="page"] {
  color: var(--ink);
}

.faq-page .top-nav a[aria-current="page"]::after {
  right: 0;
}

.faq-page .skip-link {
  text-transform: none;
}

.faq-main {
  min-height: 60vh;
}

.faq-container {
  width: min(var(--faq-width), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 76px) 0 clamp(64px, 8vw, 92px);
}

.faq-hero {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-bottom: 34px;
}

.faq-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 3.72rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.faq-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.6;
}

.faq-hero a,
.faq-answer a {
  color: var(--ink);
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.faq-hero a:hover,
.faq-answer a:hover {
  text-decoration-color: var(--brand);
}

.faq-categories {
  display: grid;
  gap: 44px;
}

.faq-category {
  scroll-margin-top: calc(var(--site-header-height) + 20px);
}

.faq-category-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.faq-category-number {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1;
}

.faq-category-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.72rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.faq-list {
  display: grid;
}

.faq-item {
  border: 1px solid var(--faq-line);
  border-radius: 0;
  background: var(--surface);
}

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

.faq-item summary {
  min-height: 62px;
  padding: 18px 62px 18px 20px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  transition: color 140ms ease, background 140ms ease;
}

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

.faq-item summary::marker {
  content: "";
}

.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 9px;
  height: 1.5px;
  background: currentColor;
  transition: transform 220ms ease;
}

.faq-item summary::before {
  transform: translate(-3px, -50%) rotate(45deg);
}

.faq-item summary::after {
  transform: translate(3px, -50%) rotate(-45deg);
}

.faq-item[open] summary::before {
  transform: translate(-3px, -50%) rotate(-45deg);
}

.faq-item[open] summary::after {
  transform: translate(3px, -50%) rotate(45deg);
}

.faq-item summary:hover {
  background: var(--brand-tint);
  color: var(--brand);
}

.faq-item summary:focus-visible {
  z-index: 1;
  outline: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 3px var(--brand);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.65;
  transition: grid-template-rows 220ms ease;
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer-inner > * {
  margin-right: 62px;
  margin-left: 20px;
}

.faq-answer-inner > :first-child {
  margin-top: 0;
  padding-top: 0;
}

.faq-answer-inner > :last-child {
  margin-bottom: 0;
  padding-bottom: 20px;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer ul {
  margin-top: -2px;
  margin-bottom: 14px;
  padding-left: 38px;
}

.faq-answer li + li {
  margin-top: 3px;
}

.faq-cta {
  display: grid;
  justify-items: center;
  margin-top: clamp(60px, 8vw, 88px);
  text-align: center;
}

.faq-cta h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.3;
}

.faq-cta p {
  margin: 5px 0 20px;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.faq-cta .start-order-button-image-default {
  margin-inline: auto;
}

.faq-page .site-footer {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-item summary::before,
  .faq-item summary::after {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 680px) {
  .faq-container {
    width: min(100% - 28px, var(--faq-width));
    padding-top: 38px;
  }

  .faq-hero {
    margin-bottom: 28px;
  }

  .faq-hero p {
    font-size: 0.98rem;
  }

  .faq-categories {
    gap: 38px;
  }

  .faq-category-heading {
    gap: 12px;
  }

  .faq-category-number {
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
  }

  .faq-item summary {
    min-height: 58px;
    padding: 16px 48px 16px 16px;
    font-size: 0.92rem;
  }

  .faq-item summary::before,
  .faq-item summary::after {
    right: 19px;
  }

  .faq-answer {
    font-size: 0.9rem;
  }

  .faq-answer-inner > * {
    margin-right: 48px;
    margin-left: 16px;
  }

  .faq-answer-inner > :last-child {
    padding-bottom: 18px;
  }
}

@media (max-width: 420px) {
  .faq-page .top-nav {
    gap: 10px;
    font-size: 0.7rem;
  }

  .faq-page .brand-link img {
    width: 62px;
  }
}
