/*
 * FAQ, Support and 404 — the same A57 palette as the landing page (ui/theme/Color.kt): the warm near-black #161311,
 * ivory text, the red → peach CTA, Manrope (res/font) and Instrument Serif for headlines (the serif Tryco wordmark).
 */

:root {
  --ground-0: #1f1815;
  --ground: #161311;
  --ground-1: #0d0a09;
  --glass: linear-gradient(160deg, rgba(58, 30, 34, .5), rgba(31, 26, 24, .9));
  --line: rgba(255, 244, 238, .1);
  --line-strong: rgba(253, 178, 113, .32);
  --peach: #fdb271;
  --peach-hi: #ffe4c8;
  --grad: linear-gradient(100deg, #ff1534 0%, #f5506a 35%, #fdb271 100%);
  --grad-text: linear-gradient(100deg, #ff5a6e 0%, #f58a62 45%, #ffd2b0 100%);
  --ivory: #fff4ee;
  --body: #e6d3c9;
  --muted: #b3a39b;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --header-height: 4.5rem;
  --site-width: 72rem;
  --radius: 1.4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground-1); }
body {
  margin: 0; min-height: 100vh; font-family: 'Manrope', 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(255, 21, 52, .24), transparent 60%), radial-gradient(50vmax 50vmax at 0% 100%, rgba(253, 178, 113, .12), 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; }
em { font-style: italic; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .06em; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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(22, 19, 17, .84); 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: .7rem; text-decoration: none; color: var(--ivory); }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 18px rgba(255, 21, 52, .4); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__word { width: 74px; height: 26px; color: var(--ivory); }
.logo__text small { font-size: .56rem; font-weight: 800; letter-spacing: .28em; color: var(--peach); text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav__link { padding: .5rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav__link:hover { color: var(--ivory); background: rgba(255, 244, 238, .07); }
.nav__link--active { color: var(--ivory); background: rgba(253, 178, 113, .14); }
.nav__cta { margin-left: .5rem; }
.menu-button { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 244, 238, .07); 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: 800; 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, 17, 52, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
.button--brand:hover { transform: translateY(-2px); }
.button--dark { color: var(--ivory); background: rgba(255, 244, 238, .07); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: normal; text-align: center; overflow-wrap: anywhere; }
.button--dark:hover { background: rgba(255, 244, 238, .12); }
.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: 48rem; margin: 0 auto; }
.eyebrow { display: inline-block; margin: 0 0 1rem; padding: .4rem 1rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--peach-hi); background: rgba(253, 178, 113, .1); box-shadow: inset 0 0 0 1px rgba(253, 178, 113, .3); }
.page-title__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.01em; color: var(--ivory); }
.page-title__description { margin: 1.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: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1.1; color: var(--ivory); }
.section__title--small { font-size: 1.9rem; }

/* 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; transition: box-shadow .25s; }
.faq__item--open { box-shadow: inset 0 0 0 1px var(--line-strong); }
.faq__question { margin: 0; }
.faq__button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; border: 0; background: none; color: var(--ivory); font: inherit; font-weight: 800; 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: #fff; background: var(--grad); 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.35rem 1.25rem; 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.6rem 1.8rem; border-radius: var(--radius); background: radial-gradient(circle at 0% 50%, rgba(255, 21, 52, .3), transparent 55%), linear-gradient(140deg, #3a1e22, #1a1412 75%); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cta--soft { background: var(--glass); }
.cta__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.1; color: var(--ivory); }
.cta__body { margin: .35rem 0 0; color: var(--muted); }

.prose-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .85rem; }
.prose-list li::marker { color: var(--peach); }
.prose-list strong { color: var(--ivory); }
.link { color: var(--peach); 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: var(--serif); font-style: italic; font-size: clamp(6rem, 22vw, 12rem); line-height: .9; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found__subtitle { margin: .75rem 0 0; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1.1; 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(13, 10, 9, .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(--peach); }
.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: #7f716a; }
.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: 980px) {
  .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(27, 22, 20, .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; }
}
