/*
 * FAQ, Support and 404 — the landing page's light "paper & plan" look (A014 ui/theme/Color.kt): the Home's lavender
 * ground with grid paper, white cards, the #6969FF primary, Bricolage Grotesque titles over Inter text.
 */

:root {
  --ground: #f7f6ff;
  --card: #ffffff;
  --line: #e7e5f6;
  --line-strong: #d9d6f0;
  --accent: #6969ff;
  --accent-hi: #5b4cf0;
  --grad: linear-gradient(135deg, #7a7aff 0%, #6240ed 100%);
  --ivory: #1e1e1e;
  --body: #475467;
  --muted: #8a88a3;
  --header-height: 4.25rem;
  --site-width: 72rem;
  --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background-color: var(--ground); background-image: linear-gradient(rgba(105, 105, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(105, 105, 255, .1) 1px, transparent 1px), linear-gradient(rgba(105, 105, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(105, 105, 255, .05) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
body {
  margin: 0; min-height: 100vh; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 1rem; line-height: 1.65; color: var(--body);
  background: transparent;
  -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(--accent); color: #fff; 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(247, 246, 255, .86); 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 4px 12px rgba(55, 55, 133, .25); }
.logo__text { font-family: 'Bricolage Grotesque', 'Inter', sans-serif; font-weight: 800; font-size: 1.3rem; color: #373785; line-height: 1; display: flex; flex-direction: column; }
.logo__text small { font-family: 'Inter', sans-serif; font-size: .7rem; font-weight: 500; color: var(--muted); 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: #4747ad; background: rgba(105, 105, 255, .08); }
.nav__link--active { color: #4747ad; background: #fff; box-shadow: 0 1px 2px rgba(38, 38, 92, .06), 0 2px 8px rgba(38, 38, 92, .05); }
.nav__cta { margin-left: .5rem; }
.menu-button { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); 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 8px 22px rgba(98, 64, 237, .32), inset 0 1px 0 rgba(255, 255, 255, .25); }
.button--brand:hover { transform: translateY(-2px); }
.button--dark { color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgba(98, 64, 237, .28); white-space: normal; text-align: center; overflow-wrap: anywhere; }
.button--dark:hover { transform: translateY(-1px); }
.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: 'Bricolage Grotesque', 'Inter', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; color: var(--ivory); }
.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: 'Bricolage Grotesque', 'Inter', sans-serif; font-weight: 800; 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(--card); box-shadow: inset 0 0 0 1px var(--line), 0 2px 8px rgba(38, 38, 92, .05); 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(--accent); background: #f1f0ff; 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: linear-gradient(165deg, #f6e6f6 0%, #d9cff9 55%, #bcb7fb 100%); }
.cta__title { margin: 0; font-family: 'Bricolage Grotesque', 'Inter', sans-serif; font-weight: 800; font-size: 1.3rem; color: #26265c; }
.cta__body { margin: .35rem 0 0; color: #4a4870; }

.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(--card); 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: 'Bricolage Grotesque', 'Inter', sans-serif; font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; background: linear-gradient(100deg, #6969ff, #8f5cff 52%, #d978c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found__subtitle { margin: .5rem 0 0; font-family: 'Bricolage Grotesque', 'Inter', sans-serif; font-weight: 800; 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(255, 255, 255, .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(--accent); }
.footer__group a { color: var(--body); text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.footer__group a:hover { color: var(--accent-hi); text-decoration: underline; }
.footer__note { max-width: var(--site-width); margin: 2.5rem auto 0; font-size: .82rem; color: var(--muted); }
.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: #fff; box-shadow: 0 24px 60px rgba(38, 38, 92, .18), 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; }
}
