@font-face{font-family:D4 Space;src:url('/_d4/assets/SpaceGrotesk.ttf') format('truetype');font-weight:300 700;font-display:swap}
@font-face{font-family:D4 Mono;src:url('/_d4/assets/JetBrainsMono.ttf') format('truetype');font-display:swap}
html:has(body[data-d4-theme]){background:#0a0a0a;color-scheme:dark;scroll-padding-top:24px}
body[data-d4-theme]{--d4-ink:#f2f2ee;--d4-muted:#b3b3b0;--d4-line:#343434;--d4-lime:#d6f24a;background:#0a0a0a!important;color:var(--d4-ink)!important;font-family:'D4 Space',Arial,sans-serif!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;line-height:1.65;-webkit-font-smoothing:antialiased}
body[data-d4-theme] *,body[data-d4-theme] *::before,body[data-d4-theme] *::after{box-sizing:border-box}
body[data-d4-theme] :is(h1,h2,h3,h4,h5,h6,p,a,span,li,dt,dd,label,button,input,select,textarea,summary,th,td){font-family:'D4 Space',Arial,sans-serif!important}
body[data-d4-theme] :is(h1,h2,h3,h4,h5,h6,strong,b,dt){color:var(--d4-ink)!important}
body[data-d4-theme] :is(h1,h2,h3){letter-spacing:-.04em;line-height:1.12}
body[data-d4-theme] h1{font-size:clamp(40px,6vw,82px)!important;line-height:1.04!important;font-weight:650!important;max-width:1100px;overflow-wrap:break-word!important}
body[data-d4-theme] :is(p,li,dd,.subtitle,.muted,.meta,.date,.app-desc,.app-genre,.trust-line,.cta-note){color:var(--d4-muted)!important}
body[data-d4-theme] a{color:var(--d4-lime);text-underline-offset:4px}
body[data-d4-theme] a:hover{color:#e3ff6d}
body[data-d4-theme] :is(.eyebrow,.section-label,.label,.kicker,.app-genre){font-family:'D4 Mono',monospace!important;font-size:12px;letter-spacing:.1em;color:var(--d4-muted)!important}
body[data-d4-theme] :is(main,section,article,.container,.wrap,.shell,.hero,.content){background-color:transparent}
body[data-d4-theme] :is(.card,.panel,.feature,.prompt-card,.map-card,.lessons-soft,.atlas-panel,.trial,.tldr,.cta,.cta-box,.cta-section,.app-row,.price-badge,.pill,.chip,blockquote){background:#111!important;color:var(--d4-ink)!important;border-color:var(--d4-line)!important;border-radius:8px;box-shadow:none!important}
body[data-d4-theme] :is(.chip-task,.chip-note,.price-badge){color:var(--d4-lime)!important;background:#18200e!important}
body[data-d4-theme] :is(.btn,.button,.btn-primary,.button-primary,a.cta,.cta>a,.app-link,.primary,button[type=submit],input[type=submit]){background:var(--d4-lime)!important;color:#111!important;border:1px solid var(--d4-lime)!important;border-radius:5px!important;font-weight:650!important;min-height:48px;box-shadow:none!important}
body[data-d4-theme] :is(.btn-secondary,.secondary,.support-link){background:transparent!important;color:var(--d4-ink)!important;border:1px solid #555!important;border-radius:5px!important;min-height:48px}
body[data-d4-theme] :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--d4-lime)!important;outline-offset:5px}
body[data-d4-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea,select){background:#101010!important;color:var(--d4-ink)!important;border:1px solid #555!important;border-radius:5px!important;font-size:16px!important;min-height:46px;max-width:100%}
body[data-d4-theme] :is(input,textarea)::placeholder{color:#a4a4a0!important}
body[data-d4-theme] :is(code,pre){font-family:'D4 Mono',monospace!important;background:#151515!important;color:#f2f2ee!important;overflow:auto}
body[data-d4-theme] :is(table,td,th){border-color:var(--d4-line)!important}
body[data-d4-theme] :is(th,thead){background:#171717!important}
body[data-d4-theme] hr{border-color:var(--d4-line)!important}
body[data-d4-theme] > header.hero{position:static!important;inset:auto!important;width:100%;border:0!important;background:transparent!important}
body[data-d4-theme] .hero{padding-top:64px!important;padding-bottom:48px!important}
body[data-d4-theme] .container{max-width:1200px}
body[data-d4-theme] main{padding-top:0!important}
body[data-d4-theme] .app-row{grid-template-columns:100px minmax(0,1fr);gap:32px;padding:32px 0;border:0;border-top:1px solid var(--d4-line);border-radius:0!important;background:transparent!important;align-items:start}
body[data-d4-theme] .app-icon{width:96px;height:96px;border-radius:22px;margin:0;object-fit:cover}
body[data-d4-theme] .apps-grid{gap:0;padding-bottom:64px}
body[data-d4-theme] .app-info h2{font-size:30px;line-height:1.18;margin-bottom:12px}
body[data-d4-theme] .app-info h2 a{color:var(--d4-ink)!important}
body[data-d4-theme] .app-desc{font-size:17px;max-width:720px}
body[data-d4-theme] .app-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
body[data-d4-theme] .app-link{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px}
body[data-d4-theme] .app-actions .app-link:not(:last-child){background:transparent!important;color:var(--d4-ink)!important;border-color:#555!important}
body[data-d4-apps] .hero{text-align:left}
body[data-d4-apps] .hero p{margin:20px 0 0;max-width:600px;font-size:20px}
body[data-d4-document] > :not(.d4-global-header):not(.d4-global-footer):not(script):not(style):not(.d4-skip){max-width:820px;margin-left:auto;margin-right:auto}
body[data-d4-document] > h1{margin-top:64px;margin-bottom:24px}
body[data-d4-document] > :is(p,h2,h3,ul,ol){padding-inline:24px}
body[data-d4-document] > .card{margin:24px auto;padding:28px}
/* Shared navigation is intentionally independent of legacy template selectors. */
body[data-d4-theme] .d4-global-header{position:relative!important;inset:auto!important;z-index:120!important;display:block!important;padding:0!important;margin:0!important;width:100%!important;background:#0a0a0a!important;border:0!important;backdrop-filter:none!important;transform:none!important}
body[data-d4-theme] .d4-global-inner{width:min(1320px,calc(100% - 120px));max-width:none!important;margin:0 auto!important;padding:0 56px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px}
body[data-d4-theme] .d4-global-header .d4-global-inner{min-height:82px}
body[data-d4-theme] .d4-brand{display:inline-flex!important;align-items:center;gap:12px;min-height:44px;color:#f2f2ee!important;font-size:21px!important;font-weight:700;text-decoration:none!important;letter-spacing:-.7px;white-space:nowrap}
body[data-d4-theme] .d4-brand img{width:30px!important;height:30px!important;max-width:none}
body[data-d4-theme] .d4-accent{color:#d6f24a!important}
body[data-d4-theme] .d4-global-nav{position:static!important;transform:none!important;inset:auto!important;display:flex;flex-wrap:nowrap!important;align-items:center;gap:36px!important;margin:0!important;padding:0!important;width:auto!important;background:transparent!important;border:0!important;box-shadow:none!important}
body[data-d4-theme] .d4-global-nav a{display:inline-flex;align-items:center;min-height:44px;padding:10px 0;color:#f2f2ee!important;font-size:15px!important;font-weight:400;text-decoration:none!important;white-space:nowrap}
body[data-d4-theme] .d4-global-nav a:hover,body[data-d4-theme] .d4-global-nav [aria-current=page]{color:#d6f24a!important}
body[data-d4-theme] .d4-global-nav .d4-primary{gap:14px;padding:10px 19px;color:#111!important;background:#d6f24a!important;border:1px solid #d6f24a!important;border-radius:5px;font-size:13px!important;font-weight:650;justify-content:center}
body[data-d4-theme] .d4-global-nav .d4-primary img{width:17px;height:17px}
body[data-d4-theme] .d4-global-toggle{display:none;background:transparent!important;border:1px solid #444!important;border-radius:4px!important;width:44px;height:44px;padding:9px;flex-shrink:0}
body[data-d4-theme] .d4-global-toggle img{width:24px;height:24px}
body[data-d4-theme] .d4-global-footer{width:min(1320px,calc(100% - 120px));max-width:none!important;margin:60px auto 0!important;padding:22px 16px!important;border-top:1px solid #343434!important;background:#0a0a0a!important;color:#a6a6a2!important;text-align:left}
body[data-d4-theme] .d4-global-footer .d4-global-inner{padding:0!important;width:100%;min-height:44px}
body[data-d4-theme] .d4-global-footer .d4-brand{font-size:17px!important}
body[data-d4-theme] .d4-global-footer .d4-brand img{width:26px!important;height:26px!important}
body[data-d4-theme] .d4-global-footer nav{position:static!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:flex-end;flex-wrap:wrap;gap:10px 28px!important;background:none!important;border:0!important;padding:0!important;margin:0!important;width:auto!important}
body[data-d4-theme] .d4-global-footer :is(nav a,nav span){display:inline-flex;align-items:center;min-height:44px;font-size:13px!important;color:#b3b3b0!important;text-decoration:none}
body[data-d4-theme] .d4-skip{position:absolute;top:-100px;left:20px;z-index:200;background:#d6f24a;color:#111;padding:12px 20px}
body[data-d4-theme] .d4-skip:focus{top:16px}
@media(max-width:1150px){body[data-d4-theme] .d4-global-inner{width:calc(100% - 64px);padding:0 20px!important}body[data-d4-theme] .d4-global-footer{width:calc(100% - 64px)}}
@media(max-width:820px){body[data-d4-theme] chat-widget{display:none!important}}
@media(max-width:760px){
 body[data-d4-theme] .d4-global-inner{width:calc(100% - 40px);padding:0!important;flex-wrap:wrap}
 body[data-d4-theme] .d4-global-header .d4-global-inner{min-height:76px;gap:0;position:relative}
 body[data-d4-theme] .d4-brand{font-size:20px!important}
 body[data-d4-theme][data-d4-js] .d4-global-toggle{display:flex;align-items:center;justify-content:center}
 body[data-d4-theme] .d4-global-nav{width:100%!important;flex-direction:column;align-items:stretch!important;gap:4px!important;padding:16px!important;background:#151515!important;border:1px solid #444!important;border-radius:5px;margin-bottom:16px!important}
 body[data-d4-theme][data-d4-js] .d4-global-nav{display:none;position:absolute!important;top:68px!important;left:0!important;right:0!important;z-index:125}
 body[data-d4-theme][data-d4-js] .d4-global-nav[data-open]{display:flex}
 body[data-d4-theme] .d4-global-nav a{padding:12px 10px;min-height:48px}
 body[data-d4-theme] .d4-global-nav .d4-primary{margin-top:7px}
 body[data-d4-theme] .d4-global-footer{width:calc(100% - 40px);padding:24px 0!important;margin-top:40px!important}
 body[data-d4-theme] .d4-global-footer .d4-global-inner{align-items:flex-start!important;flex-wrap:nowrap;gap:20px}
 body[data-d4-theme] .d4-global-footer nav{max-width:220px;gap:0 18px!important}
 body[data-d4-theme] .d4-global-footer nav span{width:100%;justify-content:flex-end}
 body[data-d4-theme] .d4-global-footer .d4-brand{font-size:16px!important}
 body[data-d4-theme] .hero{padding-top:36px!important;padding-bottom:32px!important}
 body[data-d4-theme] h1{font-size:clamp(36px,9vw,58px)!important}
 body[data-d4-theme] .app-row{grid-template-columns:1fr;gap:20px;padding:28px 0}
 body[data-d4-theme] .app-icon{width:80px;height:80px;margin:0}
 body[data-d4-theme] .app-info h2{font-size:27px}
 body[data-d4-theme] .app-actions .app-link{width:100%}
 body[data-d4-theme] .app-desc{font-size:16px}
 body[data-d4-document] > :not(.d4-global-header):not(.d4-global-footer):not(script):not(style):not(.d4-skip){max-width:calc(100% - 40px)}
 body[data-d4-document] > :is(p,h2,h3,ul,ol){padding-inline:0}
 body[data-d4-document] > h1{margin-top:36px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}}

body[data-d4-theme] :is(.btn,.button,.btn-primary,.button-primary,a.cta,.cta>a,.app-link,.primary,button[type=submit]) :is(span,strong,b){color:inherit!important}

body[data-d4-theme] :is(a,button).btn-secondary,body[data-d4-theme] :is(a,button).secondary{background:transparent!important;color:#f2f2ee!important;border-color:#555!important}

body[data-d4-theme] :is(a,button).button-secondary{background:transparent!important;color:#f2f2ee!important;border:1px solid #555!important}
body[data-d4-theme] :is(.flow-icon,.portrait-mark){background:#d6f24a!important;color:#111!important}

body[data-d4-theme] chat-widget{display:none!important}
