/* FAQ page and homepage taster */

.faq-section {
  background: var(--bg);
  min-height: auto;
  place-items: start;
  padding-top: clamp(54px, 6vw, 76px);
  padding-bottom: clamp(54px, 6vw, 76px);
}

.faq-taster {
  border-top: 1px solid var(--line);
}

.faq-taster__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.faq-taster__copy {
  display: grid;
  gap: 16px;
  align-self: center;
}

.faq-taster__copy h2 {
  font-size: clamp(42px, 5.8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.faq-taster__copy p {
  max-width: none;
  color: rgba(9, 17, 27, 0.68);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.38;
  letter-spacing: -0.02em;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 6px;
}

.faq-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

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

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: 0 18px 46px rgba(31, 27, 18, 0.08);
}

.faq-item summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 18px clamp(16px, 2.2vw, 24px);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.faq-item summary span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

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

.faq-item summary::after {
  content: "+";
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item summary:focus-visible {
  outline: 2px solid #ff5a2c;
  outline-offset: -4px;
}

.faq-answer {
  padding: 0 clamp(16px, 2.2vw, 24px) 22px;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.68;
}

.faq-more {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-left: clamp(16px, 2.2vw, 24px);
  color: #ff5a2c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-more:hover {
  color: #e3491f;
}

.faq-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(58px, 6vw, 78px) var(--pad) clamp(64px, 8vw, 104px);
  display: grid;
  gap: clamp(20px, 2vw, 26px);
}

.faq-back {
  width: 100%;
  padding: 0;
}

.faq-hero {
  padding: clamp(8px, 1vw, 14px) 0 clamp(4px, 1vw, 12px);
}

.faq-loop-mark {
  width: fit-content;
}

.faq-loop-mark h1 {
  max-width: none;
  font-size: clamp(56px, 8.5vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.072em;
  font-weight: 900;
}

.faq-loop-mark img {
  height: clamp(32px, 4.2vw, 60px);
}

.faq-title-group {
  align-items: flex-start;
}

.faq-built-note {
  max-width: 28rem;
  text-align: left;
}

.faq-search {
  width: min(100%, 42rem);
  display: grid;
  gap: 8px;
}

.faq-search span {
  color: rgba(9, 17, 27, 0.56);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-search input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  outline: none;
}

.faq-search input:focus {
  border-color: rgba(255, 90, 44, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 90, 44, 0.14);
}

.faq-page .faq-list {
  gap: 12px;
}

.faq-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 32px; }
.faq-tools .faq-search { width: 100%; min-width: 0; }
.faq-support { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-width: 0; }
.faq-topic-link { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 20px; border: 2.5px solid var(--text); border-radius: 6px; background: #fff; color: var(--text); text-decoration: none; text-transform: uppercase; font-size: 14px; font-weight: 900; letter-spacing: .01em; white-space: nowrap; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; }
.faq-topic-link:hover { background: #ff5a2c; color: #fff; border-color: #ff5a2c; }
.faq-topic-link:focus-visible { outline: 2px solid #ff5a2c; outline-offset: 4px; }
.faq-ai { flex-direction: column; align-items: stretch; gap: 8px; margin: 0; min-width: 0; }
.faq-ai .footer-ai-label {
  color: rgba(9,17,27,.56);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.faq-ai .footer-ai-providers { display: flex; align-items: center; justify-content: flex-start; min-height: 54px; gap: 8px; }
.faq-ai .footer-ai-provider {
  width: 48px;
  height: 54px;
  background: none;
  opacity: .65;
}
.faq-ai .footer-ai-provider img { filter: none; width: 24px; height: 24px; flex: none; }
.faq-ai .footer-ai-provider:hover { opacity: 1; background: none; }
@media (max-width: 1100px) {
  .faq-tools { grid-template-columns: 1fr; gap: 18px; }
  .faq-ai .footer-ai-providers { max-width: 420px; }
}
@media (max-width: 520px) {
  .faq-support { flex-wrap: wrap; }
}

.faq-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.faq-cta__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 88px);
}

.faq-cta h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.058em;
  font-weight: 900;
}

.faq-cta__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.faq-cta__card {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 9px;
  min-height: 184px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 2px solid rgba(9, 17, 27, 0.28);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.faq-cta__card:hover,
.faq-cta__card:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.faq-cta__card:hover .case-cta__stamp,
.faq-cta__card:focus-visible .case-cta__stamp {
  background: var(--text);
  color: #ff5a2c;
}

.faq-cta__label {
  color: rgba(9, 17, 27, 0.66);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-cta__card strong {
  max-width: 100%;
  min-width: 0;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 860;
  white-space: normal;
}

@media (max-width: 900px) {
  .faq-taster__inner,
  .faq-cta__inner {
    grid-template-columns: 1fr;
  }

  .faq-cta__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .faq-shell {
    width: 100%;
    max-width: 100%;
    padding-top: 68px;
    overflow-x: clip;
  }

  .faq-search,
  .faq-list {
    width: calc(100vw - (var(--pad) * 2));
    max-width: calc(100vw - (var(--pad) * 2));
    justify-self: start;
  }

  .faq-item {
    width: 100%;
    max-width: 100%;
  }

  .faq-section {
    padding-top: 46px;
    padding-bottom: 48px;
  }

  .faq-taster__inner {
    gap: 24px;
  }

  .faq-taster__copy h2 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .faq-taster__copy {
    min-width: 0;
  }

  .faq-taster__copy p {
    white-space: normal;
  }

  .faq-loop-mark {
    align-items: baseline;
    gap: 9px;
  }

  .faq-loop-mark h1 {
    font-size: clamp(54px, 20vw, 82px);
  }

  .faq-loop-mark img {
    height: clamp(30px, 12vw, 46px);
  }

  .faq-built-note {
    max-width: 18rem;
  }

  .faq-item summary {
    gap: 12px;
    min-height: 58px;
    padding: 16px 14px;
    font-size: 16px;
  }

  .faq-item summary::after {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 18px;
  }

  .faq-answer {
    padding: 0 14px 18px;
    font-size: 14.5px;
    line-height: 1.62;
  }

  .faq-cta__card {
    min-height: 162px;
  }

  .footer-cols {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
    min-width: 0;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-col:nth-child(3) {
    grid-column: 1 / -1;
  }

  .footer-col a,
  .footer-bottom span {
    overflow-wrap: anywhere;
  }
}
