/* Interview questions hub. Apple-like surfaces on top of the marketing tokens. */

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --surface: rgba(255, 255, 255, 0.78);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #1d1d1f;
  --muted: rgba(29, 29, 31, 0.72);
  --muted-2: rgba(29, 29, 31, 0.48);
  --brand-1: #0071e3;
  --brand-2: #0077ed;
}

html[data-theme="light"] body.iq-body {
  background: #f5f5f7;
}

html[data-theme="light"] .site-header.is-scrolled {
  background: rgba(245, 245, 247, 0.86);
}

html[data-theme="light"] .logo img {
  filter: invert(1) hue-rotate(180deg);
}

html[data-theme="light"] .aceternity-aurora {
  opacity: 0.28;
}

html[data-theme="light"] .btn-store {
  color: #fff;
}

.iq-page {
  padding: calc(var(--nav-h) + 28px) 0 88px;
}

.iq-wrap {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.iq-wrap-narrow {
  width: min(100% - 40px, 860px);
}

.iq-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  font-weight: 650;
}

.iq-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-1);
}

.iq-hero .lead {
  max-width: 68ch;
  font-size: 19px;
}

.iq-product-path {
  max-width: 68ch;
  margin: 14px 0 0;
}

.iq-product-path a,
.iq-panel .iq-muted a {
  color: var(--brand-1);
}

.iq-note,
.iq-panel,
.iq-card,
.iq-q {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .iq-note,
  .iq-panel,
  .iq-card,
  .iq-q {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--surface);
  }
}

.iq-note {
  margin: 8px 0 28px;
  padding: 16px 18px;
}

.iq-note p,
.iq-muted {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.iq-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.iq-search {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.iq-search input,
.iq-form input,
.iq-form select,
.iq-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text);
  font: inherit;
  font-weight: 450;
}

.iq-form textarea {
  min-height: 120px;
  resize: vertical;
}

.iq-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
}

.iq-segment {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.iq-segment[aria-current="page"],
.iq-segment[aria-selected="true"] {
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
}

.iq-segment:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.iq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.iq-card {
  padding: 18px 18px 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.iq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.iq-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.iq-card h2,
.iq-q h2,
.iq-panel h2 {
  letter-spacing: -0.02em;
}

.iq-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.iq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.iq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px !important;
}

.iq-chips a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-2) 12%, transparent);
}

.iq-questions {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.iq-q {
  padding: 22px;
}

.iq-q-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.iq-badge {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--text);
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-1) 16%, transparent);
}

.iq-badge.reported {
  background: color-mix(in srgb, #30d158 22%, transparent);
}

.iq-q h2 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  margin: 12px 0;
}

.iq-approach {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.iq-approach strong {
  color: var(--text);
  font-weight: 650;
}

.iq-panel {
  margin-top: 28px;
  padding: 22px;
}

.iq-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.iq-panel h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.iq-related-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.iq-related {
  display: block;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform 0.18s ease;
}

.iq-related:hover {
  transform: translateY(-2px);
}

.iq-related span {
  display: block;
  font-weight: 650;
}

.iq-related small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.iq-guides {
  margin: 0;
  padding-left: 1.1em;
}

.iq-guides a {
  color: var(--brand-1);
}

.iq-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.iq-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
}

.iq-optional {
  font-weight: 500;
  color: var(--muted);
}

.iq-honeypot {
  position: absolute;
  left: -10000px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.iq-form-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
}

.iq-form-status[data-state="error"] {
  color: #ff6b6b;
}

.iq-form-status[data-state="ok"] {
  color: var(--text);
}

.iq-theme {
  min-height: 36px;
  min-width: 7.5rem;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}

.iq-search-inline {
  margin-top: 16px;
}

.iq-empty {
  margin: 18px 0;
  color: var(--muted);
}

.iq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.iq-reported-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .iq-hero h1 {
    font-size: 34px;
  }

  .iq-q,
  .iq-panel,
  .iq-note {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iq-card,
  .iq-segment,
  .iq-related {
    transition: none;
  }
}
