/* Rackoryn V80 — the approved benefits/FAQ mockup, implemented as HTML.
   Every selector is component-scoped. In particular, no generic [open] span
   transform can rotate a question or its answer. */
.rk80 {
  --rk80-bg: #06111f;
  --rk80-surface: #081a2d;
  --rk80-surface-bottom: #071626;
  --rk80-text: #f3f6ff;
  --rk80-muted: #a1b8db;
  --rk80-border: #24415f;
  --rk80-accent: #9d85ff;
  --rk80-accent-line: #705ae0;
  --rk80-accent-soft: rgba(110, 83, 237, .12);
  --rk80-focus: #b5a5ff;
  color: var(--rk80-text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--rk80-bg);
  isolation: isolate;
}
.rk80 *, .rk80 *::before, .rk80 *::after { box-sizing: border-box; }
.rk80 .rk80-wrap { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.rk80 h2, .rk80 h3, .rk80 p { margin: 0; }
.rk80 h2 {
  color: var(--rk80-text);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.8rem, 2.7vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.rk80 .rk80-eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--rk80-accent);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.rk80 .rk80-lead { color: var(--rk80-muted); font-size: .98rem; line-height: 1.65; }
.rk80.rk80-why { padding: 44px 0 24px; }
.rk80 .rk80-why-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: end;
  gap: 50px;
  margin-bottom: 24px;
}
.rk80 .rk80-why-heading .rk80-lead { padding-bottom: 3px; }
.rk80 .rk80-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rk80 .rk80-benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 20px 18px;
  margin: 0;
  border: 1px solid var(--rk80-border);
  border-radius: 15px;
  background: linear-gradient(150deg, var(--rk80-surface), var(--rk80-surface-bottom));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.rk80 .rk80-feature-icon, .rk80 .rk80-advice-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid var(--rk80-accent-line);
  border-radius: 16px;
  color: #a6b9ff;
  background: radial-gradient(ellipse at 25% 10%, rgba(111,79,230,.18), transparent 80%), #0a152b;
  box-shadow: inset 0 1px 2px rgba(190,179,255,.06);
}
.rk80 .rk80-svg { display: block; width: 24px; height: 24px; flex: none; }
.rk80 .rk80-benefit-copy { min-width: 0; }
.rk80 .rk80-benefit h3 { color: var(--rk80-text); font-size: .98rem; line-height: 1.4; font-weight: 700; margin: 1px 0 8px; }
.rk80 .rk80-benefit p { color: var(--rk80-muted); font-size: .89rem; line-height: 1.65; }

/* Header + lightbulb callout */
.rk80.rk80-faq {
  scroll-margin-top: 96px;
  padding: 26px 0 48px;
  background: radial-gradient(ellipse at 12% 12%, rgba(70,50,155,.12), transparent 44%), var(--rk80-bg);
}
.rk80 .rk80-faq-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 54px;
  margin-bottom: 20px;
}
.rk80 .rk80-intro .rk80-lead { margin-top: 13px; max-width: 640px; }
.rk80 .rk80-advice {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--rk80-border);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(12,27,46,.55), rgba(6,17,31,.2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.rk80 .rk80-advice-icon { width: 56px; height: 56px; flex-basis: 56px; border-radius: 50%; color: var(--rk80-accent); }
.rk80 .rk80-advice-icon .rk80-svg { width: 27px; height: 27px; }
.rk80 .rk80-tag {
  display: inline-block;
  max-width: 100%;
  color: var(--rk80-accent);
  background: var(--rk80-accent-soft);
  border: 1px solid var(--rk80-accent-line);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 8px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.rk80 .rk80-advice p { color: var(--rk80-muted); font-size: .93rem; line-height: 1.65; }

/* A short answer stays visible on closed cards, like in the approved mockup.
   The plus reveals the complete answer. All content still works without JS. */
.rk80 .rk80-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: start; }
.rk80 .rk80-faq-item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rk80-border);
  border-radius: 13px;
  background: linear-gradient(130deg, var(--rk80-surface), var(--rk80-surface-bottom));
  color: var(--rk80-text);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  scroll-margin-top: 96px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.rk80 .rk80-faq-item[open] {
  border-color: var(--rk80-accent-line);
  box-shadow: 0 0 20px rgba(97,68,231,.065), inset 0 1px 0 rgba(188,170,255,.045);
}
.rk80 .rk80-faq-item[open]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  z-index: 1;
  background: linear-gradient(180deg, #9c77ff, #7258f5 58%, #46aeed);
  pointer-events: none;
}
.rk80 .rk80-summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) 34px;
  align-items: center;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 14px 22px 18px 24px;
  color: var(--rk80-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rk80 .rk80-summary::-webkit-details-marker { display: none; }
.rk80 .rk80-summary::marker { content: ""; }
.rk80 .rk80-question {
  display: block;
  min-width: 0;
  color: var(--rk80-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  /* Deliberately independent of the toggle: the title must never rotate. */
  transform: none;
}
.rk80 .rk80-toggle {
  display: grid;
  place-items: center;
  align-self: start;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(137,108,255,.43);
  border-radius: 12px;
  background: var(--rk80-accent-soft);
  color: var(--rk80-accent);
}
.rk80 .rk80-toggle svg { display: block; width: 18px; height: 18px; }
.rk80 .rk80-toggle-vertical { transform-origin: 10px 10px; transition: transform 160ms ease, opacity 160ms ease; }
.rk80 .rk80-faq-item[open] .rk80-toggle-vertical { transform: scaleY(0); opacity: 0; }
.rk80 .rk80-faq-item[open] .rk80-toggle { border-color: var(--rk80-accent-line); background: rgba(122,92,248,.14); }
.rk80 .rk80-preview { grid-column: 1 / -1; color: var(--rk80-muted); font-size: .94rem; line-height: 1.65; font-weight: 400; }
.rk80 .rk80-faq-item[open] .rk80-preview { display: none; }
.rk80 .rk80-faq-item[open] .rk80-summary { padding-top: 13px; padding-bottom: 13px; }
.rk80 .rk80-answer { border-top: 1px solid var(--rk80-border); padding: 13px 24px 17px; }
.rk80 .rk80-answer p { color: var(--rk80-muted); font-size: .94rem; font-weight: 400; line-height: 1.65; margin: 0; }
.rk80 .rk80-summary:hover .rk80-toggle { background: rgba(127,99,255,.2); }
.rk80 .rk80-summary:focus-visible { outline: 2px solid var(--rk80-focus); outline-offset: -5px; border-radius: 12px; }
.rk80 .rk80-contact { color: var(--rk80-muted); font-size: .87rem; text-align: center; margin-top: 20px; }
.rk80 .rk80-contact a { display: inline-block; color: var(--rk80-accent); font-weight: 600; margin-left: 5px; padding: 5px 2px; text-decoration: none; }
.rk80 .rk80-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rk80 .rk80-contact a:focus-visible { outline: 2px solid var(--rk80-focus); outline-offset: 3px; border-radius: 3px; }

/* Light theme: no white-on-white headings or dark-only answer panels. */
html[data-theme="light"] .rk80 {
  --rk80-bg: #f6f8fc;
  --rk80-surface: #fff;
  --rk80-surface-bottom: #f9fbff;
  --rk80-text: #152036;
  --rk80-muted: #52647e;
  --rk80-border: #d6e0ec;
  --rk80-accent: #6245c5;
  --rk80-accent-line: #947be0;
  --rk80-accent-soft: rgba(104,76,193,.06);
  --rk80-focus: #6546c5;
}
html[data-theme="light"] .rk80 .rk80-feature-icon,
html[data-theme="light"] .rk80 .rk80-advice-icon { background: linear-gradient(145deg, #eee9ff, #f9f8ff); color: #6655b5; }
html[data-theme="light"] .rk80 .rk80-advice { background: linear-gradient(145deg, #fff, #f5f7fd); }
html[data-theme="light"] .rk80 .rk80-faq-item[open] { box-shadow: 0 6px 20px rgba(82,66,130,.06); }

@media (hover: hover) {
  .rk80 .rk80-faq-item:hover { border-color: #526688; }
  .rk80 .rk80-faq-item[open]:hover { border-color: var(--rk80-accent-line); }
}
@media (max-width: 1180px) {
  .rk80 .rk80-benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rk80 .rk80-why-heading { gap: 32px; }
  .rk80 .rk80-faq-heading { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 28px; }
  .rk80 .rk80-advice { gap: 14px; padding: 17px; }
  .rk80 .rk80-summary { padding-inline: 18px; }
  .rk80 .rk80-answer { padding-inline: 18px; }
}
@media (max-width: 820px) {
  .rk80 .rk80-why-heading, .rk80 .rk80-faq-heading { grid-template-columns: 1fr; gap: 18px; }
  .rk80 .rk80-faq-grid { grid-template-columns: 1fr; }
  .rk80 .rk80-advice { align-items: center; }
  .rk80 .rk80-intro .rk80-lead { max-width: none; }
}
@media (max-width: 540px) {
  .rk80 .rk80-wrap { width: calc(100% - 28px); }
  .rk80.rk80-why { padding: 28px 0 20px; }
  .rk80.rk80-faq { padding: 24px 0 36px; }
  .rk80 .rk80-benefits { grid-template-columns: 1fr; gap: 12px; }
  .rk80 .rk80-benefit { padding: 17px 16px; gap: 14px; }
  .rk80 .rk80-advice { align-items: start; padding: 16px; gap: 12px; }
  .rk80 .rk80-advice-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .rk80 .rk80-advice-icon .rk80-svg { width: 24px; height: 24px; }
  .rk80 .rk80-tag { padding-inline: 8px; font-size: .66rem; }
  .rk80 .rk80-summary { grid-template-columns: minmax(0,1fr) 32px; padding: 14px 16px 16px; gap: 9px 12px; }
  .rk80 .rk80-question { font-size: .96rem; }
  .rk80 .rk80-preview, .rk80 .rk80-answer p { font-size: .9rem; }
  .rk80 .rk80-toggle { width: 32px; height: 32px; border-radius: 11px; }
  .rk80 .rk80-answer { padding: 13px 16px 16px; }
  .rk80 .rk80-contact { max-width: 260px; margin: 18px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rk80 *, .rk80 *::before, .rk80 *::after { transition: none !important; animation: none !important; }
}
