/* CueClass site — inner pages: page heads, features spec grid, FAQ accordion, stacked split sections. */

/* ---------------------------------------------------------------- page head */

.page-head {
  position: relative;
  padding: clamp(56px, 8vw, 112px) 0 0;
}

.page-head-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .page-head-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 64px;
  }
}

.page-head h1 {
  margin: 0;
}

.page-head .lead {
  margin: 0;
}

.page-head + .section,
.page-head + .section.section--tight-top {
  padding-top: clamp(56px, 7vw, 96px);
}

/* ---------------------------------------------------------------- features page */

.h-sub {
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.spec-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  counter-reset: spec;
}

@media (min-width: 760px) {
  .spec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .spec-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.spec-item {
  counter-increment: spec;
  padding: 26px 24px 28px;
  background: var(--bg);
}

.spec-item::before {
  content: counter(spec, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--brand-ink);
}

.spec-item h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.spec-item p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- FAQ accordion (details / summary) */

.faq-group {
  display: grid;
  gap: 8px 64px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.faq-group:first-child {
  padding-top: 0;
  border-top: 0;
}

@media (min-width: 960px) {
  .faq-group {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .faq-group h2 {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
  }
}

.faq-group h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.faq-group > :not(h2) {
  grid-column: -2 / -1;
}

details {
  border-bottom: 1px solid var(--line);
}

details:first-of-type {
  border-top: 1px solid var(--line);
}

summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4px;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  border-radius: 8px;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  color: var(--brand-ink);
}

/* plus that turns into a minus: two 2px bars */
summary {
  padding-right: 44px;
}

summary::before,
summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
}

summary::before {
  transform: rotate(90deg);
}

details[open] > summary::before {
  transform: rotate(180deg);
  opacity: 0;
}

.answer {
  padding: 0 56px 22px 4px;
  color: var(--ink-2);
}

details[open] > .answer {
  animation: faq-open 320ms var(--ease);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.answer ul,
.answer ol {
  padding-left: 1.3em;
}

.faq-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .answer {
    padding-right: 0;
  }
}

/* ---------------------------------------------------------------- stacked split sections (download) */

.section--split + .section--split {
  padding-top: 0;
}

.section--split + .section--split > .split {
  padding-top: calc(var(--section) * 0.55);
  border-top: 1px solid var(--line);
}

.section--split .split-aside h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}
