/*
 * FAQ, Support and 404 — the same "Amethyst Nebula" palette as the landing page (A053 ui/theme/Color.kt):
 * night-violet ground, glass panels with a lilac rim, the violet → magenta button gradient, gold accents.
 */

:root {
  --ground-0: #170a31;
  --ground: #0f0521;
  --ground-1: #07020f;
  --glass: linear-gradient(160deg, rgba(98, 48, 150, .5), rgba(46, 20, 82, .6));
  --line: rgba(206, 150, 255, .18);
  --line-strong: rgba(206, 150, 255, .32);
  --accent: #b04adf;
  --accent-hi: #e8bdff;
  --grad: linear-gradient(135deg, #7e2fc4 0%, #a83cd8 50%, #e21ccb 100%);
  --gold: #faca64;
  --ivory: #fbf5ff;
  --body: #e3d7f3;
  --muted: #b7a4d6;
  --header-height: 4.5rem;
  --site-width: 72rem;
  --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground-1); }
body {
  margin: 0; min-height: 100vh; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 1rem; line-height: 1.65; color: var(--body);
  background: radial-gradient(60vmax 60vmax at 100% 0%, rgba(160, 60, 225, .28), transparent 60%), radial-gradient(50vmax 50vmax at 0% 100%, rgba(226, 28, 203, .14), transparent 60%), linear-gradient(180deg, var(--ground-0), var(--ground) 40%, var(--ground-1)) fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--ivory); color: var(--ground); border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* header */
.header { position: fixed; inset: 0 0 auto; z-index: 100; background: rgba(15, 5, 33, .82); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding-top: env(safe-area-inset-top); }
.header__content { max-width: var(--site-width); height: var(--header-height); margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; gap: 1rem; }
.header-placeholder { height: calc(var(--header-height) + env(safe-area-inset-top)); }
.logo { display: flex; align-items: center; gap: .625rem; text-decoration: none; }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 18px rgba(170, 60, 230, .45); }
.logo__text { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.375rem; color: var(--ivory); line-height: 1; display: flex; flex-direction: column; }
.logo__text small { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .6rem; font-weight: 700; letter-spacing: .32em; color: var(--accent-hi); text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav__link { padding: .5rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav__link:hover { color: var(--ivory); background: rgba(170, 70, 230, .14); }
.nav__link--active { color: var(--ivory); background: rgba(170, 70, 230, .22); }
.nav__cta { margin-left: .5rem; }
.menu-button { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(110, 48, 170, .35); flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.menu-button__line { width: 18px; height: 2px; border-radius: 2px; background: var(--ivory); }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.button--brand { color: #fff; background: var(--grad); box-shadow: 0 10px 30px rgba(190, 50, 220, .4), inset 0 1px 0 rgba(255, 255, 255, .3); }
.button--brand:hover { transform: translateY(-2px); }
.button--dark { color: var(--ivory); background: rgba(110, 48, 170, .38); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: normal; text-align: center; overflow-wrap: anywhere; }
.button--dark:hover { background: rgba(140, 60, 210, .5); }
.button--small { min-height: 40px; padding: 0 1rem; font-size: .875rem; }

/* page title */
.page-title { padding: clamp(3rem, 7vw, 5.5rem) 1.25rem 1rem; text-align: center; }
.page-title__container { max-width: 46rem; margin: 0 auto; }
.page-title__title { margin: 0; font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); line-height: 1.12; color: var(--ivory); text-shadow: 0 0 34px rgba(190, 100, 255, .4); }
.page-title__description { margin: 1rem auto 0; font-size: 1.0625rem; color: var(--muted); }

/* sections */
.section { padding: 2rem 1.25rem clamp(4rem, 8vw, 6rem); }
.section__container { max-width: var(--site-width); margin: 0 auto; }
.section__container--narrow { max-width: 50rem; }
.section__title { margin: 3rem 0 1rem; font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--ivory); }
.section__title--small { font-size: 1.3rem; }

/* faq accordion */
.faq { display: grid; gap: .75rem; }
.faq__item { border-radius: var(--radius); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.faq__question { margin: 0; }
.faq__button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 0; background: none; color: var(--ivory); font: inherit; font-weight: 700; font-size: 1.0625rem; text-align: left; cursor: pointer; }
.faq__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(250, 202, 100, .45); transition: transform .3s; font-size: 1.2rem; line-height: 1; }
.faq__item--open .faq__icon { transform: rotate(45deg); }
.faq__answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq__item--open .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner { overflow: hidden; }
.faq__answer-inner p { margin: 0; padding: 0 1.25rem 1.2rem; color: var(--body); }

/* call to action */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 2.5rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: radial-gradient(circle at 0% 50%, rgba(226, 28, 203, .2), transparent 55%), linear-gradient(140deg, #3a1670, #1a0a33 75%); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cta__title { margin: 0; font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--ivory); }
.cta__body { margin: .35rem 0 0; color: var(--muted); }

.prose-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .8rem; }
.prose-list strong { color: var(--ivory); }
.link { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.facts { margin: 0; border-radius: var(--radius); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.facts__row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 1.25rem; border-top: 1px solid var(--line); }
.facts__row:first-child { border-top: 0; }
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; color: var(--ivory); overflow-wrap: anywhere; }

/* 404 */
.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.25rem; }
.not-found__title { margin: 0; font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; background: linear-gradient(100deg, #e7a8ff, #ff7ae0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found__subtitle { margin: .5rem 0 0; font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--ivory); }
.not-found__description { margin: .75rem 0 2rem; color: var(--muted); }

/* footer */
.footer { margin-top: 2rem; padding: 3.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(7, 2, 15, .6); }
.footer__container { max-width: var(--site-width); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.footer__brand { max-width: 26rem; }
.footer__pitch { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer__group { display: flex; flex-direction: column; gap: .5rem; min-width: 9rem; }
.footer__group-title { margin: 0 0 .25rem; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer__group a { color: var(--body); text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.footer__group a:hover { color: var(--ivory); text-decoration: underline; }
.footer__note { max-width: var(--site-width); margin: 2.5rem auto 0; font-size: .82rem; color: rgba(183, 164, 214, .8); }
.copyright { max-width: var(--site-width); margin: 1.25rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .82rem; color: var(--muted); }

@media (max-width: 860px) {
  .menu-button { display: flex; }
  .nav { display: none; position: absolute; top: calc(var(--header-height) + env(safe-area-inset-top)); left: .75rem; right: .75rem; flex-direction: column; align-items: stretch; padding: .75rem; border-radius: 1.25rem; background: rgba(17, 7, 34, .98); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line); }
  .nav.is-open { display: flex; }
  .nav__link { padding: .85rem 1rem; font-size: 1rem; }
  .nav__cta { margin: .5rem 0 0; }
}
@media (max-width: 560px) {
  .facts__row { grid-template-columns: 1fr; gap: .2rem; }
  .cta { padding: 1.25rem; }
  .cta .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
