/* Shared chrome: menu button and menu sheet, FAQ accordion, "how we work" steps. Loaded on every public page after the other styles. */

/* ---- Menu button: three lines, turns into a cross ---- */
#menu-toggle{padding:0;min-width:44px;min-height:44px;display:none;align-items:center;justify-content:center;background:transparent;border:1px solid rgba(255,255,255,.22);border-radius:12px;cursor:pointer;color:inherit}
.burger{position:relative;width:20px;height:14px;display:block}
.burger i{position:absolute;left:0;right:0;height:2px;border-radius:2px;background:currentColor;transition:transform .25s ease,opacity .2s ease,top .25s ease}
.burger i:nth-child(1){top:0}.burger i:nth-child(2){top:6px}.burger i:nth-child(3){top:12px}
#menu-toggle[aria-expanded="true"] .burger i:nth-child(1){top:6px;transform:rotate(45deg)}
#menu-toggle[aria-expanded="true"] .burger i:nth-child(2){opacity:0}
#menu-toggle[aria-expanded="true"] .burger i:nth-child(3){top:6px;transform:rotate(-45deg)}

@media (max-width:900px){
 .header{position:sticky;top:0;z-index:60;background:#14171d;display:flex;flex-wrap:nowrap;align-items:center;gap:10px;padding-top:12px;padding-bottom:12px}
 .header .logo{margin-right:auto;font-size:26px}
 .header .account-link{order:2;font-size:14px;white-space:nowrap}
 .header .project-link{order:3;width:auto;min-height:44px;font-size:14px;white-space:nowrap}
 .header #menu-toggle{display:inline-flex;order:4;margin:0}
 .header nav{display:none}
 /* The open menu is a full-screen sheet under the header bar: big targets, one column, nothing cramped. */
 .header nav.expanded{display:flex;flex-direction:column;position:fixed;inset:0;z-index:-1;padding:calc(var(--head,72px) + 14px) var(--gutter) 28px;background:#0e1116;overflow-y:auto;animation:menu-in .22s ease both}
 .header nav.expanded a,.header nav.expanded .mobile-only{display:flex;align-items:center;justify-content:space-between;padding:18px 2px;font-size:clamp(24px,6.4vw,32px);letter-spacing:-.02em;border-bottom:1px solid rgba(255,255,255,.1);color:#f5f6f8;min-height:44px;text-decoration:none}
 .header nav.expanded a::after{content:"\2192";font-size:.8em;opacity:.55}
 .header nav.expanded a[aria-current="page"],.header nav.expanded a.active{color:var(--accent,#b7ceff)}
 .mobile-only{display:flex}
 html:has(#site-nav.expanded){overflow:hidden}
}
@keyframes menu-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* ---- FAQ accordion ---- */
.faq{display:grid;gap:12px;max-width:860px;margin-top:28px}
.faq-item{background:#232832;border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden;transition:border-color .2s}
.faq-item[open]{border-color:rgba(183,206,255,.4)}
.faq-item summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;min-height:44px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary h2{margin:0;font-size:clamp(17px,2.2vw,21px);font-weight:500;letter-spacing:-.01em;line-height:1.35}
.faq-item summary::after{content:"+";flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(255,255,255,.25);font-size:20px;line-height:1;transition:transform .25s ease,background .2s}
.faq-item[open] summary::after{transform:rotate(45deg);background:var(--accent,#b7ceff);color:#14171d;border-color:transparent}
.faq-a{padding:0 22px 22px}
.faq-a p{margin:0;font-size:17px;line-height:1.65;color:#d5dae4;max-width:62ch}
.faq-more{max-width:860px;margin-top:40px;padding:24px;border-radius:18px;background:#1a1f28}
.faq-more h2{margin:0 0 8px;font-size:22px}.faq-more p{margin:0}
.faq-item:focus-within{outline:2px solid #7aa2ff;outline-offset:2px}

/* ---- How we work: styled steps (desktop cards, mobile thread) ---- */
.approach{padding:clamp(40px,6vw,90px) var(--gutter)}
.approach .process{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:36px;counter-reset:pstep}
.approach .process article{position:relative;background:#232832;border-radius:22px;padding:26px 22px 32px}
.approach .process article:first-child{background:var(--pale,#c9d8ff);color:#14171d}
.step-icon{width:44px;height:44px;display:block;margin:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:var(--accent,#b7ceff)}
.approach .process article:first-child .step-icon{color:#2859df}
.approach .process h3{margin:0 0 8px;font-size:clamp(22px,2.2vw,30px);font-weight:500;letter-spacing:-.03em}
.approach .process p{margin:0;font-size:17px;line-height:1.5}
@media (max-width:900px){
 .approach .process{display:block;position:relative;margin:30px 0 0 18px;padding:0 0 0 38px}
 .approach .process::before,.approach .process::after{content:"";position:absolute;left:0;top:8px;width:2px;border-radius:2px;z-index:0}
 .approach .process::before{bottom:8px;background:rgba(255,255,255,.16)}
 .approach .process::after{height:var(--thread,0%);max-height:calc(100% - 16px);background:linear-gradient(var(--accent,#b7ceff),#7aa2ff);transition:height .2s linear}
 .approach .process article,.approach .process article:first-child{position:relative;z-index:1;background:none;color:inherit;border-radius:0;padding:0 0 38px}
 .approach .process article:last-child{padding-bottom:6px}
 .approach .process article::before{counter-increment:pstep;content:counter(pstep);position:absolute;left:-57px;top:-2px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:15px;font-weight:600;background:#14171d;border:2px solid rgba(255,255,255,.28);color:#f5f6f8;transition:background .4s,border-color .4s,color .4s,transform .4s}
 .step-icon{width:30px;height:30px;margin:0 0 10px}
 .js-thread .approach .process article{opacity:.4;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
 .js-thread .approach .process article.is-on{opacity:1;transform:none}
 .js-thread .approach .process article.is-on::before{background:var(--accent,#b7ceff);border-color:var(--accent,#b7ceff);color:#14171d;transform:scale(1.08)}
}

/* ---- Lighter curtain on small screens ---- */
@media (max-width:900px){#veil{transition-duration:.55s}#veil.is-closing{transition-duration:.28s}}

/* Footer links: bigger targets, left edge aligned with the page text */
.footer-nav{margin-left:-8px;display:flex;flex-wrap:wrap;gap:0 6px}.footer-nav a{display:inline-flex;align-items:center;padding:12px 8px;min-height:44px}
.social-links{margin-left:-8px;display:flex;flex-wrap:wrap;gap:0 6px;align-items:center}.social-links a,.social-links button{padding:12px 8px;min-height:44px;display:inline-flex;align-items:center;margin:0;background:none;border:0;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.settings-row>div>button.button{margin-bottom:14px}.account-link{white-space:nowrap}

body{font-variant-emoji:text}
