/* Jacarium landing page. Tokens live in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--violet-200); }
a:hover { color: var(--lilac); }
img { max-width: 100%; }
[hidden] { display: none !important; }

.page { min-height: 100vh; overflow-x: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 16px 28px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; font-size: 16px; transition: background 0.2s ease, box-shadow 0.2s ease; }
.btn:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 3px; }
.btn-primary, .btn-primary:hover { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: #6A4BD1; }
.btn-secondary, .btn-secondary:hover { background: var(--bg-card); color: var(--lilac); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-secondary:hover { background: var(--bg-card-hover); }
.btn-soon { background: transparent; color: var(--text-faint); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: default; }
.btn-glow { box-shadow: 0 16px 36px -14px var(--accent); }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn-lg { padding: 16px 32px; }

.eyebrow { margin: 0 0 16px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--violet-200); }
.section-title { margin: 0 0 32px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { max-width: var(--max-width); margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav-link { padding: 12px 16px; text-decoration: none; font-size: 15px; color: var(--text-muted); }

/* ---------- Hero (the only 3D part of the page) ---------- */
.hero { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px 96px; position: relative; perspective: 1400px; perspective-origin: 50% 40%; }
.hero-intro { text-align: center; max-width: 980px; margin: 0 auto 64px; position: relative; z-index: 2; }
.hero-intro .eyebrow { margin-bottom: 20px; }
.hero-title { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.hero-sub { margin: 24px auto 0; max-width: 680px; font-size: 19px; line-height: 1.7; color: var(--text-muted); }
.signature { margin: 16px 0 0; display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 16px; font-weight: 600; color: var(--lilac); }
.signature span { margin-right: 6px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--violet-200); transition: background 0.2s ease, color 0.2s ease; }
.social:hover { background: var(--bg-raised); color: var(--lilac); }
.social:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.hero-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 0 48px; position: relative; }
.frame-col { flex: 0 1 61%; min-width: 0; position: relative; z-index: 1; padding: 24px 0; }

.frame { margin: 0; border-radius: 20px; background: var(--bg-card); box-shadow: 0 0 0 1px var(--line), 0 60px 120px -40px #000000, 0 30px 60px -30px #2A1F4D; position: relative; }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.frame-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); }

.deck { position: relative; aspect-ratio: 16 / 10; margin: 16px; isolation: isolate; }
/* Flat slide transition: the incoming slide glides in and fades up over the
   outgoing one, which stays solid underneath until it's covered. */
.slide { position: absolute; inset: 0; z-index: 1; opacity: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, var(--bg-section), var(--bg)); box-shadow: 0 0 0 1px var(--line); will-change: transform, opacity; }
.slide.is-leaving { z-index: 2; opacity: 1; transform: scale(0.985); transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.slide.is-current { z-index: 3; opacity: 1; transform: none; transition: transform 0.7s cubic-bezier(.2,.7,.2,1), opacity 0.45s ease; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-ph { position: absolute; inset: 0; border: 2px dashed var(--line-strong); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--violet-200); text-align: center; padding: 24px; }
.slide-ph-title { font-size: 16px; font-weight: 600; color: var(--lilac); }

.frame-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 18px 16px; position: relative; z-index: 6; }
.frame-caption { font-size: 13px; color: var(--text-faint); min-width: 0; flex: 1 1 200px; }
.carousel-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ctl { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--bg-raised); color: var(--lilac); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background 0.2s ease; }
.ctl:hover { background: var(--bg-raised-hover); }
.ctl:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 2px; }
.dots { display: flex; align-items: center; }
.dot { width: 28px; height: 28px; padding: 0; border: none; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dot span { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background 0.3s ease, transform 0.3s ease; }
.dot[aria-current="true"] span { background: var(--violet-200); transform: scale(1.4); }
.dot:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 2px; border-radius: 50%; }

/* Device stack: desktop and phone frames. The one behind is dimmed and
   clickable; clicking it brings it to the front. */
.device-stack { --tilt: perspective(1400px) rotateY(7deg) rotateX(3deg); position: relative; padding-left: 9%; }
.device { transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.5s ease, z-index 0s 0.2s; transform-style: preserve-3d; }
.device-switch { display: none; position: absolute; inset: 0; z-index: 30; width: 100%; height: 100%; padding: 0; border: none; border-radius: inherit; background: transparent; cursor: pointer; }
.device-switch:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 3px; }
.device[data-back] .device-switch { display: block; }

.phone { position: absolute; left: 0; bottom: -3%; width: 29%; max-width: 250px; padding: 8px; border-radius: 36px; background: var(--bg-card); box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -30px #000000, 0 20px 40px -20px #2A1F4D; transform-origin: 0% 100%; }
.phone-deck { aspect-ratio: 786 / 1704; margin: 0; }
.phone-deck .slide, .phone-deck .slide-ph { border-radius: 28px; }
.phone-deck .slide-ph { padding: 12px; gap: 8px; }
.phone-deck .slide-ph-title { font-size: 12px; }
.phone-foot { flex-direction: column; gap: 6px; padding: 10px 0 4px; }
.phone-foot .frame-caption { flex: none; text-align: center; font-size: 12px; }
.phone-foot .carousel-controls { flex-wrap: nowrap; gap: 2px; }
.phone-foot .dot { width: 20px; }

.device-stack[data-front="desktop"] .frame { z-index: 2; transform: var(--tilt); }
.device-stack[data-front="desktop"] .phone { z-index: 1; transform: var(--tilt) translate3d(-30%, -4%, 0) scale(0.78); filter: brightness(0.55) saturate(0.8); }
.device-stack[data-front="phone"] .phone { z-index: 3; transform: var(--tilt) translate3d(18%, 0, 0) scale(1); }
.device-stack[data-front="phone"] .frame { z-index: 1; transform: var(--tilt) translate3d(5%, -3%, 0) scale(0.92); filter: brightness(0.55) saturate(0.8); }
/* Hovering the frame behind lifts it out so it reads as clickable. */
.device-stack[data-front="desktop"] .phone:hover, .device-stack[data-front="desktop"] .phone:focus-within { transform: var(--tilt) translate3d(-38%, -7%, 0) scale(0.82); filter: brightness(0.9) saturate(1); }
.device-stack[data-front="phone"] .frame:hover, .device-stack[data-front="phone"] .frame:focus-within { transform: var(--tilt) translate3d(3%, -6%, 0) scale(0.93); filter: brightness(0.85) saturate(1); }

/* Wide: the tree overlaps the carousel's top-right edge. Only the tree's
   painted shapes take taps, so the carousel underneath stays clickable. */
.hero-tree { position: absolute; right: -3%; top: -22%; width: 50%; max-width: 620px; z-index: 4; pointer-events: none; }

.scroll-cue { display: flex; justify-content: center; align-items: center; margin: 72px auto 0; width: 48px; height: 48px; color: var(--violet-200); animation: bob 2.4s ease-in-out infinite; position: relative; z-index: 5; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Narrow: the tree stacks under the carousel, and the frame stops tilting. */
@media (max-width: 900px) {
  .frame-col { flex: 1 1 100%; }
  /* Both frames share one grid cell so the stack grows to fit the taller one. */
  .device-stack { --tilt: translateZ(0); display: grid; align-items: end; padding-left: 0; }
  .device-stack > .device { grid-area: 1 / 1; }
  .frame { margin-left: 12%; }
  .phone { position: relative; left: auto; bottom: auto; width: 34%; min-width: 176px; justify-self: start; }
  .hero-tree { position: relative; right: auto; top: auto; width: auto; max-width: none; flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 3; padding-top: 24px; }
  .hero-tree jacaranda-tree { width: 100%; }
}

/* ---------- Security (flat) ---------- */
.security { background: var(--bg-section); padding: 112px 24px; position: relative; z-index: 2; }
.security-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.security-tree { flex: 1 1 420px; min-width: 0; }
.security-copy { flex: 1 1 480px; min-width: 0; }

.accordion { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.acc-card { width: 100%; text-align: left; border: none; cursor: pointer; font: inherit; color: var(--text); padding: 22px 24px; border-radius: 20px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.3s ease, box-shadow 0.3s ease; }
.acc-card:hover { background: var(--bg-card-hover); }
.acc-card[aria-expanded="true"] { background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--accent); }
.acc-card:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 3px; }
.acc-head { display: flex; align-items: center; gap: 16px; }
.acc-num { font-size: 13px; color: var(--violet-200); font-weight: 600; min-width: 24px; }
.acc-title { font-size: 20px; font-weight: 600; flex-grow: 1; }
.acc-chev { color: var(--violet-200); transition: transform 0.3s ease; }
.acc-card[aria-expanded="true"] .acc-chev { transform: rotate(180deg); }
.security-copy .section-title { margin-bottom: 16px; }
.security-copy .security-lead { margin-bottom: 32px; }
.acc-body { display: block; margin: 12px 0 0 40px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Shared section layout (flat) ---------- */
.container { max-width: var(--max-width); margin: 0 auto; }
.privacy { padding: 112px 24px 0; position: relative; z-index: 2; }
.get-started { background: var(--bg-section); padding: 112px 24px; position: relative; z-index: 2; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Privacy and data ---------- */
.privacy-inner { display: flex; flex-wrap: wrap; gap: 56px; }
.privacy-intro { flex: 1 1 340px; min-width: 0; }
.privacy-detail { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.fact { padding: 24px; border-radius: 20px; background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
.fact dt { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.fact dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.good-to-know { padding: 24px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.good-to-know h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--violet-200); }
.good-to-know ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Get started ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.path { min-width: 0; padding: 32px; border-radius: 24px; background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.path-title { margin: 0; font-size: 22px; font-weight: 600; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.steps li::before { content: '0' counter(step); font-size: 13px; font-weight: 600; color: var(--violet-200); min-width: 24px; }
.platforms { margin: 24px 0 0; font-size: 15px; color: var(--text-faint); }
.platforms a { margin-left: 8px; }
.trust { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-faint); max-width: 720px; }
.path-detail { width: 100%; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.path-detail h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.path-detail p { margin: 0 0 12px; }
.path-detail p:last-child { margin-bottom: 0; }
.path-detail strong { color: var(--text); font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; padding: 1px 5px; border-radius: 6px; background: var(--bg-raised); color: var(--lilac); overflow-wrap: anywhere; }
pre.code { max-width: 100%; margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; font-size: 13px; line-height: 1.6; }
pre.code code { padding: 0; background: none; color: var(--text); overflow-wrap: anywhere; white-space: pre-wrap; font-size: inherit; }

/* ---------- Open source ---------- */
.open-source { padding: 112px 24px; position: relative; z-index: 2; }
.os-inner { display: flex; flex-wrap: wrap; gap: 56px; }
.os-intro { flex: 1 1 340px; min-width: 0; }
.os-detail { flex: 999 1 560px; min-width: 0; padding: 32px; border-radius: 24px; background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
.os-detail p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.os-detail p:last-child { margin-bottom: 0; }
.os-support { margin-top: 24px; }
.tips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.tips-label { margin-right: 4px; font-size: 15px; color: var(--text-muted); }
.os-detail .sponsor-line { margin: 14px 0 0; font-size: 15px; }
.os-detail .os-credits { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-faint); }

/* ---------- Closing (flat) ---------- */
.closing { padding: 120px 24px; position: relative; z-index: 2; }
.closing-card { max-width: 960px; margin: 0 auto; border-radius: 32px; background: var(--light-block); color: var(--on-light); padding: 72px 32px; text-align: center; box-shadow: 0 0 0 1px var(--line); }
.closing-title { margin: 24px 0 16px; }
.closing-sub { margin: 0 auto 36px; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--on-light-muted); }

/* ---------- Footer ---------- */
.site-footer { max-width: var(--max-width); margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-faint); border-top: 1px solid var(--line); }

/* ---------- Scroll reveal ---------- */
.reveal { transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Release update additions ---------- */
.stack-note { margin: 20px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-faint); text-align: center; position: relative; z-index: 5; }
.sec-report { margin: 20px 0 0; font-size: 15px; color: var(--text-muted); }

/* ---------- Desktop download picker ---------- */
.download { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; width: 100%; }
.download .btn { flex: none; display: inline-flex; align-items: center; }
.picker { position: relative; flex: 1 1 260px; min-width: 0; }
.picker-btn { width: 100%; height: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: none; border-radius: 18px; background: var(--bg-raised); color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background 0.2s ease, box-shadow 0.2s ease; }
.picker-btn:hover { background: var(--bg-raised-hover); }
.picker-btn:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 3px; }
.picker-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--violet-200); }
.picker-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgb(123 92 224 / 0.18); color: var(--violet-200); }
.picker-text { display: flex; flex-direction: column; min-width: 0; }
.picker-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.picker-sub { font-size: 13px; line-height: 1.4; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-chev { flex: none; margin-left: auto; color: var(--lilac); transition: transform 0.2s ease; }
.picker-btn[aria-expanded="true"] .picker-chev { transform: rotate(180deg); }
.picker-list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; margin: 0; padding: 6px; list-style: none; max-height: 380px; overflow-y: auto; border-radius: 18px; background: var(--bg-card); box-shadow: 0 0 0 1px var(--line-strong), 0 24px 48px -16px #000000; outline: none; }
.picker-group { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--violet-200); }
.picker-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 15px; }
.picker-opt.is-active { background: var(--bg-raised); }
.picker-opt-name { font-weight: 600; }
.picker-opt-hint { color: var(--text-muted); font-size: 13px; }
.picker-check { margin-left: auto; color: var(--violet-200); visibility: hidden; }
.picker-opt[aria-selected="true"] .picker-check { visibility: visible; }
.dl-meta { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--text-faint); }
.dl-meta:empty { display: none; }
.dl-notes { width: 100%; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.dl-notes p { margin: 0 0 8px; }
.dl-notes pre.code { margin: 0 0 8px; }
.dl-notes p:last-child { margin-bottom: 0; }
.dl-notes strong { color: var(--text); font-weight: 600; }

/* ---------- FAQ page ---------- */
.faq-page { padding: 64px 24px 112px; }
.faq-col { max-width: 880px; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group[hidden] { display: none; }
.faq-group-title { margin: 0 0 14px; font-size: 20px; font-weight: 600; color: var(--text); }
.faq-list { max-width: 880px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 20px; background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
.faq-item[open] { box-shadow: inset 0 0 0 1px var(--line-strong); }
.faq-item summary { display: flex; align-items: center; gap: 16px; padding: 22px 24px; list-style: none; cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.4; border-radius: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 2px; }
.faq-link { position: relative; flex: none; margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-faint); transition: color 0.2s ease, background 0.2s ease; }
.faq-link:hover, .faq-link:focus-visible { color: var(--lilac); background: var(--bg-raised); }
.faq-link:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 2px; }
.faq-link-tip { position: absolute; bottom: calc(100% + 6px); right: 50%; transform: translateX(50%); padding: 4px 10px; border-radius: 8px; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--lilac); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.faq-link.is-copied .faq-link-tip { opacity: 1; }
.faq-chev { flex: none; color: var(--lilac); transition: transform 0.2s ease; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-body { padding: 0 24px 24px; font-size: 16px; line-height: 1.6; color: var(--text-muted); min-width: 0; }
.faq-body p { margin: 0 0 14px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body pre.code { margin-bottom: 14px; }
.faq-body ul { margin: 0 0 14px; padding-left: 20px; }
.faq-body li { margin-bottom: 6px; }
.faq-body strong { color: var(--text); font-weight: 600; }
.faq-item summary code { font-weight: 400; }
.faq-search { position: relative; max-width: 880px; margin-bottom: 20px; color: var(--lilac); }
.faq-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.faq-search input { width: 100%; padding: 16px 20px 16px 50px; border: none; border-radius: var(--radius-pill); background: var(--bg-raised); color: var(--text); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.faq-search input::placeholder { color: var(--text-faint); }
.faq-search input:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 3px; }
.faq-empty { margin: 0 0 20px; font-size: 15px; color: var(--text-muted); }
.faq-item[hidden] { display: none; }
.faq-more { margin: 32px 0 0; font-size: 15px; color: var(--text-muted); }

/* Security page */
.sec-page .lead { margin-top: 20px; }
.sec-asof { margin: 16px 0 0; font-size: 14px; color: var(--text-faint); }
.sec-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.sec-badges a { display: inline-flex; }
.sec-badges img { display: block; height: 20px; width: auto; }
.sec-badges-note { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.sec-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 48px; }
.sec-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
.sec-card { padding: 22px 24px; border-radius: 20px; background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.6; color: var(--text-muted); min-width: 0; }
.sec-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--text); }
.sec-card ul { margin: 0; padding-left: 18px; }
.sec-card li + li { margin-top: 6px; }
.sec-note { margin: 12px 0 0; font-size: 13px; color: var(--text-faint); }
.sec-verify { margin-top: 40px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.sec-verify p { margin: 0; }
.sec-card pre.code { margin: 12px 0 0; font-size: 13px; }

/* ---------- Accessibility ---------- */
.a11y { padding: 112px 24px 0; position: relative; z-index: 2; }
.a11y-head { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.a11y-intro { flex: 1 1 340px; min-width: 0; }
.a11y-lead { flex: 999 1 560px; }
.a11y-shot { margin: 0; min-width: 0; }
.a11y-shot a { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong); }
.a11y-shot a:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 3px; }
.a11y-shot img { display: block; width: 100%; height: auto; }
.a11y-shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.a11y-shot figcaption strong { color: var(--text); font-weight: 600; }
.a11y-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.a11y-note { margin: 32px 0 0; max-width: 820px; font-size: 14px; line-height: 1.6; color: var(--text-faint); }
