/* ==========================================================================
   Lumanta subpages: 404, privacy, terms, support, donate
   Loads after style.css and reuses its tokens, fonts, nav, menu, social bar and footer.
   ========================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.page h1, .page h2, .page h3 { text-transform: uppercase; }

/* ---------- Gentle reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; filter: none; transition: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px;
  font: 500 14px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s, color .4s; }
.btn span { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover span { transform: translateX(4px); }
.btn--glow { background: var(--glow); color: #fff; box-shadow: 0 16px 34px -16px rgba(255, 95, 138, .9); }
.btn--glow:hover { background: #ff4f7e; box-shadow: 0 22px 40px -16px rgba(255, 95, 138, 1); }
.btn--ink { background: var(--ink); color: var(--off); box-shadow: 0 16px 30px -16px rgba(34, 36, 58, .7); }
.btn--line { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px currentColor, 0 16px 30px -18px rgba(34, 36, 58, .5); }

/* ---------- Page hero ---------- */
.ph { position: relative; overflow-x: clip; isolation: isolate; padding: calc(var(--nav-h) + clamp(56px, 11vh, 130px)) var(--pad) clamp(56px, 9vh, 100px); }
.ph__aura { position: absolute; inset: -20% -10% -40%; z-index: -2; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%); mask-image: linear-gradient(180deg, #000 45%, transparent 92%); }
.ph__aura i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 22s ease-in-out infinite alternate; }
.ph__aura i:nth-child(1) { width: 42vw; height: 42vw; left: 48%; top: 0; background: var(--ember); opacity: .32; }
.ph__aura i:nth-child(2) { width: 36vw; height: 36vw; left: 68%; top: 22%; background: var(--glow); opacity: .26; animation-duration: 26s; animation-direction: alternate-reverse; }
.ph__aura i:nth-child(3) { width: 30vw; height: 30vw; left: 58%; top: 46%; background: var(--aqua); opacity: .24; animation-duration: 30s; }
.ph__aura i:nth-child(4) { width: 26vw; height: 26vw; left: 82%; top: 54%; background: var(--lumen); opacity: .16; animation-duration: 24s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate3d(-6vw, 5vh, 0) scale(1.12); } }
.ph__mark { position: absolute; z-index: -1; right: calc(var(--pad) * .5); top: calc(var(--nav-h) + 3vh); width: clamp(220px, 27vw, 440px); opacity: .75; pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(255, 95, 138, .25)); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ph__inner { position: relative; max-width: 1100px; }
.ph h1 { margin-top: 22px; font: 300 clamp(44px, 7.2vw, 118px)/1.02 var(--head); letter-spacing: .04em; color: var(--ink); }
.ph h1 em, .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }
.ph__lead { margin-top: clamp(22px, 3.4vh, 34px); max-width: 36em; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.75; color: var(--ink-2); }
.ph__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(34, 36, 58, .08);
  font: 500 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(46, 223, 207, .2); }
@media (max-width: 760px) {
  .ph { padding-top: calc(var(--nav-h) + 48px); }
  .ph__mark { width: 58vw; right: -20vw; top: calc(var(--nav-h) + 6px); opacity: .22; }
  .page .social { display: none; }
  .ph h1 { font-size: clamp(38px, 11vw, 56px); }
}

/* ---------- Legal layout: sticky contents + readable body ---------- */
.legal { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); padding: 0 var(--pad) clamp(90px, 14vh, 160px); }
.toc { position: sticky; top: calc(var(--nav-h) + 34px); align-self: start; }
.toc .kicker { display: block; margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { position: relative; display: grid; grid-template-columns: 34px 1fr; padding: 9px 0 9px 18px; font-size: 14px; line-height: 1.4; color: var(--ink-2); transition: color .35s; }
.toc a::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--grad); transform: scaleY(0); transition: transform .5s var(--ease); }
.toc a:hover, .toc a.is-on { color: var(--ink); }
.toc a.is-on::before { transform: scaleY(1); }
.toc a .num { line-height: 1.4; font-size: 11px; }
.legal__body { max-width: 780px; min-width: 0; }

.short { position: relative; padding: clamp(28px, 3.4vw, 44px); border-radius: 30px; background: #fff; overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(34, 36, 58, .45), 0 0 0 1px rgba(34, 36, 58, .05); }
.short::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--grad); }
.short h2 { font: 400 clamp(20px, 1.8vw, 26px)/1.2 var(--head); letter-spacing: .12em; }
.short ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.short li { position: relative; padding-left: 40px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.short li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--ember), var(--glow), var(--lumen), var(--aqua), var(--ember));
  -webkit-mask: radial-gradient(circle, transparent 6.5px, #000 7.5px); mask: radial-gradient(circle, transparent 6.5px, #000 7.5px); }

.lsec { padding-top: clamp(50px, 7vh, 72px); scroll-margin-top: calc(var(--nav-h) + 20px); }
.lsec h2 { display: flex; align-items: baseline; gap: 18px; font: 400 clamp(22px, 2.1vw, 32px)/1.2 var(--head); letter-spacing: .08em; }
.lsec h2 .num { flex: none; font-size: 12px; }
.lsec h3 { margin-top: 28px; font: 500 14px/1.4 var(--body); letter-spacing: .2em; color: var(--ink); }
.lsec p, .lsec li { font-size: 17px; line-height: 1.85; color: #3d3f56; }
.lsec p { margin-top: 16px; }
.lsec ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.lsec li { position: relative; padding-left: 28px; }
.lsec li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--glow)); }
.lsec li:nth-child(4n+2) { --c: var(--ember); } .lsec li:nth-child(4n+3) { --c: var(--aqua); } .lsec li:nth-child(4n+4) { --c: var(--lumen); }
.lsec b { font-weight: 500; color: var(--ink); }
.lsec a, .note a, .short a, .crisis a, .faq2__a a { color: var(--lumen); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.note { margin-top: 22px; padding: 18px 22px; border-radius: 0 18px 18px 0; border-left: 3px solid var(--aqua); background: rgba(46, 223, 207, .09); font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.note b { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; display: block; margin-bottom: 4px; color: #129c90; }
.legal__end { margin-top: clamp(60px, 9vh, 90px); padding-top: 34px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.legal__end p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; padding: 22px 24px; border-radius: 22px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(34, 36, 58, .07); }
  .toc ol { border: 0; columns: 2 160px; column-gap: 20px; }
  .toc a { padding: 6px 0; grid-template-columns: 28px 1fr; break-inside: avoid; }
  .toc a::before { display: none; }
}

/* ---------- Crisis note (support) ---------- */
.crisis { display: flex; align-items: flex-start; gap: 18px; margin: 0 var(--pad); padding: 22px 26px; border-radius: 24px; background: #fff;
  box-shadow: 0 30px 60px -44px rgba(34, 36, 58, .5), inset 0 0 0 1px rgba(34, 36, 58, .06); }
.crisis__dot { flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 6px rgba(255, 95, 138, .18); animation: breath 4.5s ease-in-out infinite; }
@keyframes breath { 50% { box-shadow: 0 0 0 12px rgba(255, 95, 138, .06); } }
.crisis p { font-size: 16px; line-height: 1.7; color: var(--ink); }
.crisis b { font-weight: 600; }

/* ---------- Cards (support quick links, donate ways) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); padding: clamp(60px, 10vh, 110px) var(--pad) 0; }
.card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: clamp(26px, 2.6vw, 38px); border-radius: 32px 32px 32px 90px; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--cc); box-shadow: 0 30px 60px -36px var(--cs); transition: transform .7s cubic-bezier(.2, .9, .25, 1.15), box-shadow .7s var(--ease); }
.card::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .16); }
.card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 46px 80px -40px var(--cs); }
.card--ember { --cc: var(--ember); --cs: rgba(255, 154, 60, .9); }
.card--glow { --cc: var(--glow); --cs: rgba(255, 95, 138, .9); }
.card--aqua { --cc: #20c9ba; --cs: rgba(46, 223, 207, .9); }
.card--lumen { --cc: var(--lumen); --cs: rgba(30, 111, 217, .9); }
.card .num { color: rgba(255, 255, 255, .85); }
.card h2, .card h3 { margin-top: 18px; font: 500 clamp(20px, 1.7vw, 26px)/1.15 var(--head); letter-spacing: .2em; }
.card p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.card .btn { margin-top: auto; align-self: flex-start; background: #fff; color: var(--ink); }
.card .btn:hover { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .35); }
.card > .btn:first-of-type { margin-top: auto; }
.card__gap { flex: 1; min-height: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ---------- FAQ (support) ---------- */
.help { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 110px); padding: clamp(80px, 13vh, 150px) var(--pad); }
.help__title { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; font: 300 clamp(32px, 3.8vw, 64px)/1.1 var(--head); letter-spacing: .04em; }
.faq2 { border-top: 1px solid var(--line); }
.faq2__item { border-bottom: 1px solid var(--line); }
.faq2__q { width: 100%; display: grid; grid-template-columns: 54px 1fr 24px; align-items: center; gap: 10px; padding: 26px 0; text-align: left; font: 400 clamp(17px, 1.35vw, 21px)/1.35 var(--body); color: var(--ink); }
.faq2__q i { position: relative; width: 18px; height: 18px; }
.faq2__q i::before, .faq2__q i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease); }
.faq2__q i::after { transform: rotate(90deg); }
.faq2__q[aria-expanded="true"] i::after { transform: rotate(0); }
.faq2__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq2__q[aria-expanded="true"] + .faq2__a { grid-template-rows: 1fr; }
.faq2__a > div { overflow: hidden; }
.faq2__a p { padding: 0 34px 28px 64px; color: var(--ink-2); font-size: 16.5px; line-height: 1.8; max-width: 44em; }
@media (max-width: 900px) {
  .help { grid-template-columns: 1fr; }
  .help__title { position: static; }
  .faq2__q { grid-template-columns: 40px 1fr 20px; }
  .faq2__a p { padding: 0 10px 24px 50px; }
}

/* ---------- Message form (support) and list form (donate) ---------- */
.reach { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 13vh, 150px) var(--pad); background: var(--sand); }
.reach__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.reach h2 { font: 300 clamp(32px, 3.8vw, 64px)/1.1 var(--head); letter-spacing: .04em; }
.reach__lead { margin-top: 22px; color: var(--ink-2); font-size: 17px; line-height: 1.75; max-width: 30em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(24px, 3vw, 40px); border-radius: 30px; background: #fff; box-shadow: 0 40px 80px -50px rgba(34, 36, 58, .45); }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: 300 16px/1.5 var(--body); color: var(--ink); background: var(--off); border: 0; border-radius: 16px;
  padding: 15px 18px; box-shadow: inset 0 0 0 1px rgba(34, 36, 58, .1); transition: box-shadow .35s; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lumen), 0 0 0 5px rgba(30, 111, 217, .12); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form__foot small { font-size: 13px; color: var(--ink-2); max-width: 30em; }
.form__foot small a { color: var(--lumen); text-decoration: underline; text-underline-offset: 3px; }
.thanks { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: 17px; color: var(--ink); }
.thanks i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(from 200deg, var(--ember), var(--glow), var(--lumen), var(--aqua), var(--ember));
  -webkit-mask: radial-gradient(circle, transparent 10px, #000 11px); mask: radial-gradient(circle, transparent 10px, #000 11px); }
@media (max-width: 900px) { .reach__inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

.listform { display: flex; gap: 6px; margin-top: 26px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 24px 50px -30px rgba(34, 36, 58, .5); max-width: 520px; }
.listform input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 20px; font: 300 16px/1.4 var(--body); color: var(--ink); }
.listform input:focus { outline: none; }
.listform:focus-within { box-shadow: 0 24px 50px -30px rgba(34, 36, 58, .5), 0 0 0 2px var(--lumen); }
@media (max-width: 560px) { .listform { flex-direction: column; border-radius: 26px; } .listform .btn { width: 100%; } }

/* ---------- Donate: statement band ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; margin: clamp(70px, 11vh, 130px) var(--pad) 0; padding: clamp(50px, 8vw, 110px) clamp(26px, 6vw, 100px);
  border-radius: 40px; background: var(--night); color: var(--off); text-align: center; }
.band::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, rgba(255, 154, 60, .35), rgba(255, 95, 138, .35), rgba(30, 111, 217, .35), rgba(46, 223, 207, .35), rgba(255, 154, 60, .35));
  filter: blur(80px); animation: spin 40s linear infinite; }
.band p { font: 300 clamp(24px, 3vw, 46px)/1.3 var(--head); letter-spacing: .05em; text-transform: uppercase; max-width: 26ch; margin: 0 auto; }
.band p em { background: linear-gradient(100deg, #ffc08a, #ff9bb6, #8fd0ff, #8ff3ea); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }
.band img { width: 64px; margin: 0 auto 26px; }

.share-msg { display: block; margin-top: 12px; font-size: 13px; letter-spacing: .1em; min-height: 1.4em; color: rgba(255, 255, 255, .95); }

/* ---------- 404 ---------- */
.page--404 { background: var(--night); color: var(--off); }
.nf { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 30px) var(--pad) 60px; text-align: center; }
.nf__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.nf::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 50% 50%, rgba(10, 15, 36, .55), transparent 70%); }
.nf__inner { max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.nf .kicker { color: var(--aqua); }
.nf__code { display: flex; align-items: center; justify-content: center; gap: .04em; margin-top: 10px; font: 100 clamp(120px, 24vw, 330px)/.9 var(--head); letter-spacing: .02em; color: var(--off);
  text-shadow: 0 0 40px rgba(10, 15, 36, .9); }
.nf__o { width: .78em; height: .78em; margin: 0 .06em; filter: drop-shadow(0 0 28px rgba(255, 95, 138, .45)) drop-shadow(0 0 60px rgba(46, 223, 207, .25)); animation: spin 40s linear infinite; }
.nf h1 { margin-top: clamp(10px, 2vh, 24px); font: 300 clamp(28px, 4.2vw, 62px)/1.1 var(--head); letter-spacing: .06em; color: var(--off);
  text-shadow: 0 0 2px rgba(10, 15, 36, .9), 0 2px 10px rgba(10, 15, 36, .9), 0 0 34px rgba(10, 15, 36, .8); }
.nf h1 em { background: linear-gradient(100deg, var(--ember), var(--glow), #5ea2ff, var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; text-shadow: none; filter: drop-shadow(0 0 14px rgba(10, 15, 36, .9)); }
.nf p { margin-top: 22px; max-width: 32em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.75; color: rgba(250, 247, 245, .78); text-shadow: 0 1px 12px rgba(10, 15, 36, .9); }
.nf__actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nf .btn--line { color: var(--off); }
.nf__hint { margin-top: clamp(30px, 6vh, 60px); font: 400 11px/1 var(--body); letter-spacing: .36em; text-transform: uppercase; color: rgba(250, 247, 245, .55); animation: cuePulse 4.2s ease-in-out infinite; }
.page--404 .footer { background: #0e1430; }
.page--404 .footer, .page--404 .footer__col a, .page--404 .footer__brand p, .page--404 .footer__bottom, .page--404 .footer__credit { color: rgba(250, 247, 245, .7); }
.page--404 .footer__brand b, .page--404 .footer__credit-name, .page--404 .footer__col a:hover { color: var(--off); }
.page--404 .footer__top { border-color: rgba(250, 247, 245, .12); }
.page--404 .footer__brand img { content: url(../img/lumanta-lockup-light.webp); }
@media (max-width: 560px) { .nf__actions .btn { width: 100%; } }

/* ---------- Footer legal links on the dark 404 ---------- */
.page--404 .footer__legal a:hover { color: var(--off); }

/* Subpages have no loader or hero: the social bar simply rests, stepping aside at the footer on phones */
.page .social.is-foot { opacity: 0; pointer-events: none; }
