/* Light mode uses the existing layout, artwork and motion. Brand colors stay intact. */
.theme-toggle{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border:1px solid var(--edge);border-radius:50%;background:transparent;color:var(--muted);transition:background .2s,color .2s}
.theme-toggle:hover{background:var(--surface);color:var(--text)}
.theme-toggle .line-icon{width:19px;height:19px}
.theme-icon-dark{display:none}
:root[data-theme=light]{color-scheme:light;--page:#faf9f6;--text:#191a18;--muted:#62665f;--quiet:#6c7069;--surface:#efeee9;--edge:#ddded7;--pitra-eye:#f6f5ef;--light-card:#fffefa;--light-hover:#e8e8e1}
:root[data-theme=light] .theme-icon-light{display:none}
:root[data-theme=light] .theme-icon-dark{display:block}
:root[data-theme=light] :is(button,a,input):focus-visible{outline-color:#4f6855}
:root[data-theme=light] .site-header{border-color:var(--edge)}
:root[data-theme=light] :is(.header-nav,.pixel-hero .intro,.intro,.hero-watch,.pixel-hero .hero-watch,.connect-copy p,.demo-heading p,.connections-description,.download-copy p,.role-description p,.simple-copy p,.section-heading>p:not(.section-kicker)){color:var(--muted)}
:root[data-theme=light] :is(.header-nav a,.hero-watch,.pixel-hero .hero-watch,.footer-group a,.footer-group button,.download-trial):hover{color:var(--text)}
:root[data-theme=light] :is(.primary-button,.header-cta,.plan-button,.review-pill,.phone-action button,.connect-section .url-field button){background:var(--text);color:#faf9f6}
:root[data-theme=light] :is(.primary-button,.header-cta,.plan-button,.demo-review,.phone-action button,.connect-section .url-field button):hover{background:#353831;color:#fff}
:root[data-theme=light] .plush-character-layer[data-character=pitra] .plush-body-image{filter:grayscale(1) brightness(.4) contrast(1.7)}
:root[data-theme=light] .plush-character-layer[data-character=pitra] .eye ellipse{fill:url(#plush-eye-material-light)}
:root[data-theme=light] :is(.header-avatar,.small-avatar,.footer-brand .brand,.connect-mascot,.simple-mascot){color:var(--text)}
:root[data-theme=light] .menu-toggle{background:var(--surface)}
:root[data-theme=light] .menu-toggle span{background:var(--text)}
:root[data-theme=light] .header-nav{border-color:var(--edge)}
:root[data-theme=light] .header-download-menu{background:var(--light-card);border-color:var(--edge);box-shadow:0 12px 32px #24282014}
:root[data-theme=light] .header-download-menu button{color:var(--text)}
:root[data-theme=light] .header-download-menu button:hover,:root[data-theme=light] .header-download-menu button:focus-visible{background:var(--surface)}
:root[data-theme=light] .header-download-menu .line-icon{color:var(--text)}
:root[data-theme=light] .chat-card{background:var(--light-card);border-color:var(--edge)}
:root[data-theme=light] :is(.demo-badge,.reply-label span,.action-copy span,.composer-placeholder,.phone-agent div>span,.phone-time,.phone-action-label,.phone-footnote,.phone-composer>span:not(.voice-icon),.download-card>span>span,.download-arrow,.footer-brand>p,.footer-bottom,.quiet-caption,.apps-caption,.supported-stores,.platform-list,.section-kicker,.understated-caption,.plan-name,.plan-price span,.plan-description,.pricing-card ul,.preview-note){color:var(--muted)}
:root[data-theme=light] .demo-badge{border-color:var(--edge)}
:root[data-theme=light] :is(.user-message,.phone-user){background:#e5e8df;color:var(--text)}
:root[data-theme=light] :is(.reply-bubble,.phone-reply){background:var(--surface);color:var(--text)}
:root[data-theme=light] .action-card{background:#f7f6f2;border-color:var(--edge)}
:root[data-theme=light] :is(.composer,.phone-composer){background:#f4f3ef;border-color:var(--edge)}
:root[data-theme=light] :is(.composer-plus,.phone-composer .line-icon,.composer-copy,.phone-store-header svg){color:var(--muted)}
:root[data-theme=light] :is(.voice-icon i,.text-caret,.typing-dots i){background:var(--muted)}
:root[data-theme=light] .scenario-label{color:#8f590d!important}
:root[data-theme=light] .chat-scenario:has(#marketing-heading) .scenario-label{color:#9d4078!important}
:root[data-theme=light] .connections-panel{background:#f0efea;border-color:var(--edge)}
:root[data-theme=light] :is(.connections-copy .section-kicker,.connector-name,.connector-featured .connector-name,.connections-link){color:var(--muted)}
:root[data-theme=light] .connector-tile{box-shadow:0 2px 10px #2428200b}
:root[data-theme=light] .connect-pitra-body{color:#c5c8be}
:root[data-theme=light] .connect-copy h2{color:var(--text)}
:root[data-theme=light] .connect-card{background:var(--light-card);border-color:var(--edge);box-shadow:0 14px 45px #24282006}
:root[data-theme=light] .connect-section .connect-buttons button{background:var(--surface);color:var(--text);border-color:transparent}
:root[data-theme=light] .connect-section .connect-buttons button:hover{background:var(--light-hover);border-color:#c9ccc2}
:root[data-theme=light] .connect-divider>span{background:var(--edge)}
:root[data-theme=light] .connect-divider p{color:var(--muted)}
:root[data-theme=light] .url-input-shell{background:#f5f4f0;border-color:#d4d6ce}
:root[data-theme=light] .url-input-shell:focus-within{border-color:#687c63}
:root[data-theme=light] .connect-section .url-field input{color:var(--text)}
:root[data-theme=light] .connect-section .url-field input::placeholder{color:#73776f}
:root[data-theme=light] .connection-result{border-color:var(--edge)}
:root[data-theme=light] .connection-result :is(p,.connection-result-label){color:var(--muted)}
:root[data-theme=light] .form-error{color:#a03d2c}
:root[data-theme=light] :is(.secondary-button,.app-download-button,.download-card,.desktop-platform-options button){background:var(--surface);color:var(--text);border-color:var(--edge)}
:root[data-theme=light] :is(.secondary-button,.app-download-button,.download-card,.desktop-platform-options button):hover{background:var(--light-hover);border-color:#c6c9bf}
:root[data-theme=light] :is(.app-download-button .line-icon,.download-dialog>.line-icon,.download-trial){color:var(--text)}
:root[data-theme=light] .role-tab{border-color:#d8dbd1;color:var(--muted)}
:root[data-theme=light] .role-tab:hover{background:var(--surface);color:var(--text)}
:root[data-theme=light] .role-tab[data-role=pitra]{--role-ink:#252922}
:root[data-theme=light] .role-tab[data-role=mira]{--role-ink:#913a70}
:root[data-theme=light] .role-tab[data-role=tavi]{--role-ink:#385f96}
:root[data-theme=light] .role-tab[data-role=ali]{--role-ink:#915407}
:root[data-theme=light] .role-tab[data-role=mohammad]{--role-ink:#286e51}
:root[data-theme=light] .role-tab[data-role=lumi]{--role-ink:#7b6610}
:root[data-theme=light] .role-tab[aria-selected=true]{color:var(--role-ink);border-color:var(--role-ink);background:color-mix(in srgb,var(--role-color) 10%,var(--page))}
:root[data-theme=light] .role-tab[data-role=pitra] svg,:root[data-theme=light] .phone-agent svg:has(use[href="#pitra-icon"]),:root[data-theme=light] .phone-reply-row svg:has(use[href="#pitra-icon"]){color:var(--text)!important}
:root[data-theme=light] .phone-shell{background:#30322e;border-color:#555850;box-shadow:inset 0 0 0 1px #74786c}
:root[data-theme=light] .phone-screen{background:var(--light-card)}
:root[data-theme=light] .phone-app-tabs{background:var(--surface);color:var(--muted)}
:root[data-theme=light] .phone-app-tabs .selected{background:#dedfd6;color:var(--text)}
:root[data-theme=light] :is(.phone-action,.phone-action-heading){border-color:var(--edge)}
:root[data-theme=light] .phone-action-heading>span{color:#5e6658}
:root[data-theme=light] .phone-action>p:not(.phone-action-label){color:var(--muted)}
:root[data-theme=light] .phone-home{background:#33362e}
:root[data-theme=light] .simple-panel{background:#efeee8}
:root[data-theme=light] .pricing-card{background:#f1f0eb}
:root[data-theme=light] .featured-plan{background:#e9ece3;border-color:#ccd3c2}
:root[data-theme=light] .pricing-card ul{border-color:#d6d9cf}
:root[data-theme=light] .pricing-card li::before{color:#5b7352}
:root[data-theme=light] .site-footer{color:var(--muted);border-color:var(--edge)}
:root[data-theme=light] :is(.footer-group h3,.footer-brand .brand){color:var(--text)}
:root[data-theme=light] :is(.footer-group a,.footer-group button){color:var(--muted)}
:root[data-theme=light] :is(.footer-socials a,.footer-bottom){border-color:var(--edge)}
:root[data-theme=light] .footer-socials a:hover{background:var(--surface);border-color:#b9bdb2}
:root[data-theme=light] .footer-socials img{filter:brightness(0)}
:root[data-theme=light] .signup-dialog{background:var(--light-card);border-color:#d3d7cb;color:var(--text);box-shadow:0 20px 80px #24282026}
:root[data-theme=light] .signup-dialog::backdrop{background:#2428205c;backdrop-filter:blur(4px)}
:root[data-theme=light] .signup-dialog :is(p,label,.dialog-close){color:var(--muted)}
:root[data-theme=light] .signup-dialog input{background:#f3f3ed;border-color:#cdd1c5;color:var(--text)}
:root[data-theme=light] .signup-dialog input::placeholder{color:#73776f}
.mobile-theme-control{display:none}
@media(max-width:760px){
 .header-actions>.theme-toggle{display:none}
 .mobile-theme-control{display:block;border-top:1px solid var(--edge);margin-top:7px;padding-top:7px}
 .mobile-theme-control .theme-toggle{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:48px;height:auto;padding:13px 12px;border:0;border-radius:10px;font-size:14px;text-align:left}
 :root[data-theme=light] .header-nav{background:var(--light-card)}
 .site-header .download-toggle{padding:10px 12px;gap:5px;min-height:44px}
 .download-toggle .download-chevron{width:14px;height:14px}
}
