*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{font-family:Inter,system-ui,sans-serif;line-height:1.6;transition:background .4s ease,color .4s ease}body.theme-adhd{background:linear-gradient(150deg,#0f0f23,#1a1a3e,#0f0f23);color:#e2e8f0}body.theme-dyslexia{font-family:Lexend,Inter,system-ui,sans-serif;background:linear-gradient(150deg,#fdf6e3,#faf3e8,#fdf6e3);color:#2d2d2d}a{text-decoration:none}button{cursor:pointer;font-family:inherit}.app-container{min-height:100vh;display:flex;flex-direction:column}.main-content{flex:1;max-width:860px;width:100%;margin:0 auto;padding:0 24px}.navbar{display:flex;align-items:center;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:100;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition:background .3s}.theme-adhd .navbar{background:#0f0f23d9;border-bottom:1px solid rgba(255,255,255,.05)}.theme-dyslexia .navbar{background:#fdf6e3e6;border-bottom:1px solid rgba(180,160,120,.15)}.nav-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px}.theme-adhd .nav-brand{color:#fff}.theme-dyslexia .nav-brand{color:#2d2d2d}.nav-brand img{width:32px;height:32px;border-radius:8px}.nav-right{display:flex;align-items:center;gap:12px}.mode-toggle{display:flex;gap:4px;background:#ffffff0f;border-radius:12px;padding:3px}.theme-dyslexia .mode-toggle{background:#8b691414}.mode-btn{border:none;border-radius:10px;padding:8px 18px;font-size:13px;font-weight:600;transition:all .25s ease}.mode-btn.inactive{background:transparent}.theme-adhd .mode-btn.inactive{color:#94a3b8}.theme-dyslexia .mode-btn.inactive{color:#8b7355}.mode-btn.active{box-shadow:0 2px 8px #00000026}.theme-adhd .mode-btn.active{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff}.theme-dyslexia .mode-btn.active{background:#8b6914;color:#fff}.auth-btn{border:none;border-radius:10px;padding:8px 18px;font-size:13px;font-weight:600;transition:all .2s ease}.theme-adhd .auth-btn{background:#ffffff0f;color:#e2e8f0}.theme-adhd .auth-btn:hover{background:#ffffff1f}.theme-dyslexia .auth-btn{background:#8b69141a;color:#5c4e3c}.theme-dyslexia .auth-btn:hover{background:#8b69142e}.auth-avatar{width:32px;height:32px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:border .2s}.theme-adhd .auth-avatar:hover{border-color:#6366f1}.theme-dyslexia .auth-avatar:hover{border-color:#8b6914}.hero{text-align:center;padding:80px 24px 48px}.hero-title{font-size:clamp(32px,5vw,52px);font-weight:700;line-height:1.15;margin-bottom:16px;letter-spacing:-.02em}.theme-adhd .hero-title{color:#fff}.theme-dyslexia .hero-title{color:#2d2d2d;letter-spacing:.01em}.hero-sub{font-size:clamp(16px,2.5vw,20px);max-width:560px;margin:0 auto 36px;line-height:1.6}.theme-adhd .hero-sub{color:#94a3b8}.theme-dyslexia .hero-sub{color:#5c4e3c;line-height:1.8}.hero-gradient{background:linear-gradient(135deg,#6366f1,#a855f7,#ec4899);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.theme-dyslexia .hero-gradient{background:linear-gradient(135deg,#8b6914,#b8860b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.install-cta{display:inline-flex;align-items:center;gap:10px;padding:14px 32px;border-radius:14px;font-size:16px;font-weight:700;border:none;transition:all .3s ease;margin-bottom:12px}.theme-adhd .install-cta{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff}.theme-adhd .install-cta:hover{transform:translateY(-2px);box-shadow:0 8px 30px #6366f166}.theme-dyslexia .install-cta{background:#8b6914;color:#fff}.theme-dyslexia .install-cta:hover{transform:translateY(-2px);box-shadow:0 8px 30px #8b69144d}.install-sub{font-size:13px;margin-top:4px}.theme-adhd .install-sub{color:#64748b}.theme-dyslexia .install-sub{color:#8b7355}.installed-badge{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;border-radius:14px;font-size:15px;font-weight:600}.theme-adhd .installed-badge{background:#10b9811f;color:#10b981}.theme-dyslexia .installed-badge{background:#8b69141a;color:#6b4f10}.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:32px 0 48px}.feature-card{padding:24px;border-radius:16px;transition:transform .2s ease,box-shadow .2s ease}.feature-card:hover{transform:translateY(-3px)}.theme-adhd .feature-card{background:#ffffff0a;border:1px solid rgba(255,255,255,.06)}.theme-adhd .feature-card:hover{box-shadow:0 8px 24px #0000004d}.theme-dyslexia .feature-card{background:#ffffff80;border:1px solid rgba(180,160,120,.18)}.theme-dyslexia .feature-card:hover{box-shadow:0 8px 24px #b4a0781f}.feature-icon{font-size:28px;margin-bottom:12px}.feature-title{font-size:15px;font-weight:600;margin-bottom:6px}.feature-desc{font-size:13px}.theme-adhd .feature-desc{color:#94a3b8}.theme-dyslexia .feature-desc{color:#8b7355}.simplify-section{padding:24px 0 48px}.simplify-label{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin-bottom:12px;display:block}.theme-adhd .simplify-label{color:#a5b4fc}.theme-dyslexia .simplify-label{color:#6b4f10}.simplify-tabs{display:flex;gap:4px;margin-bottom:16px;border-radius:12px;padding:3px;width:fit-content}.theme-adhd .simplify-tabs{background:#ffffff0a}.theme-dyslexia .simplify-tabs{background:#8b69140f}.tab-btn{border:none;border-radius:10px;padding:8px 20px;font-size:13px;font-weight:600;transition:all .2s}.tab-btn.inactive{background:transparent}.theme-adhd .tab-btn.inactive{color:#94a3b8}.theme-dyslexia .tab-btn.inactive{color:#8b7355}.theme-adhd .tab-btn.active{background:#6366f126;color:#c7d2fe}.theme-dyslexia .tab-btn.active{background:#8b69141f;color:#6b4f10}.input-url{width:100%;padding:14px 18px;border-radius:14px;font-size:15px;font-family:inherit;border:1.5px solid transparent;transition:all .2s}.theme-adhd .input-url{background:#ffffff0d;color:#e2e8f0;border-color:#ffffff14}.theme-adhd .input-url:focus{border-color:#6366f1;outline:none}.theme-dyslexia .input-url{background:#ffffff80;color:#2d2d2d;border-color:#b4a07833}.theme-dyslexia .input-url:focus{border-color:#8b6914;outline:none}.input-textarea{width:100%;min-height:160px;padding:14px 18px;border-radius:14px;font-size:15px;font-family:inherit;resize:vertical;border:1.5px solid transparent;transition:all .2s}.theme-adhd .input-textarea{background:#ffffff0d;color:#e2e8f0;border-color:#ffffff14}.theme-adhd .input-textarea:focus{border-color:#6366f1;outline:none}.theme-dyslexia .input-textarea{background:#ffffff80;color:#2d2d2d;border-color:#b4a07833}.theme-dyslexia .input-textarea:focus{border-color:#8b6914;outline:none}.simplify-btn{margin-top:16px;padding:14px 36px;border:none;border-radius:14px;font-size:15px;font-weight:700;width:100%;transition:all .2s}.theme-adhd .simplify-btn{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff}.theme-adhd .simplify-btn:hover{box-shadow:0 4px 20px #6366f14d}.theme-dyslexia .simplify-btn{background:#8b6914;color:#fff}.theme-dyslexia .simplify-btn:hover{box-shadow:0 4px 20px #8b691440}.simplify-btn:disabled{opacity:.5;cursor:not-allowed}.result-area{padding:32px 0 48px}.result-card{border-radius:16px;padding:24px;margin-bottom:16px;animation:fadeUp .3s ease}@keyframes fadeUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.theme-adhd .result-card{background:#ffffff0a;border:1px solid rgba(255,255,255,.06)}.theme-dyslexia .result-card{background:#ffffff80;border:1px solid rgba(180,160,120,.18)}.card-header{display:flex;align-items:center;gap:10px;margin-bottom:14px}.card-icon{font-size:20px}.card-title{font-size:14px;font-weight:600;flex:1}.theme-adhd .card-title{color:#a5b4fc}.theme-dyslexia .card-title{color:#6b4f10}.card-body{font-size:15px;line-height:1.8}.theme-dyslexia .card-body{line-height:2;letter-spacing:.02em}.key-list{list-style:none;padding:0}.key-list li{padding:8px 0;display:flex;align-items:flex-start;gap:10px}.key-bullet{flex-shrink:0;margin-top:4px}.theme-adhd .key-bullet{color:#a5b4fc}.theme-dyslexia .key-bullet{color:#8b6914}.tts-btn{border:none;border-radius:8px;padding:6px 10px;display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600;transition:all .2s}.theme-adhd .tts-btn{background:#ffffff0f;color:#94a3b8}.theme-adhd .tts-btn:hover{background:#ffffff1f}.theme-adhd .tts-btn.active{background:#6366f126;color:#a5b4fc}.theme-dyslexia .tts-btn{background:#8b691414;color:#8b7355}.theme-dyslexia .tts-btn:hover{background:#8b691426}.theme-dyslexia .tts-btn.active{background:#8b691426;color:#6b4f10}.flashcard-wrap{display:flex;flex-direction:column;align-items:center;padding:32px 0 48px}.flashcard{width:100%;max-width:560px;border-radius:20px;padding:36px 28px;text-align:center;animation:fadeUp .3s ease}.theme-dyslexia .flashcard{background:#fff9;border:1px solid rgba(180,160,120,.18)}.theme-adhd .flashcard{background:#ffffff0a;border:1px solid rgba(255,255,255,.06)}.flashcard-label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin-bottom:12px}.theme-adhd .flashcard-label{color:#a5b4fc}.theme-dyslexia .flashcard-label{color:#8b6914}.flashcard-body{font-size:18px;line-height:2}.theme-dyslexia .flashcard-body{letter-spacing:.03em;word-spacing:.1em}.flashcard-nav{display:flex;gap:12px;margin-top:24px;justify-content:center;align-items:center}.fc-nav-btn{border:none;border-radius:12px;padding:10px 24px;font-size:14px;font-weight:600;transition:all .2s}.theme-adhd .fc-nav-btn{background:#ffffff0f;color:#e2e8f0}.theme-adhd .fc-nav-btn:hover{background:#ffffff1f}.theme-dyslexia .fc-nav-btn{background:#8b69141a;color:#5c4e3c}.theme-dyslexia .fc-nav-btn:hover{background:#8b69142e}.fc-nav-btn:disabled{opacity:.3;cursor:not-allowed}.fc-counter{font-size:13px;font-weight:600;min-width:50px;text-align:center}.theme-adhd .fc-counter{color:#94a3b8}.theme-dyslexia .fc-counter{color:#8b7355}.ask-section{padding:0 0 48px}.ask-input-wrap{display:flex;gap:10px}.ask-input{flex:1;padding:12px 16px;border-radius:12px;font-size:14px;font-family:inherit;border:1.5px solid transparent}.theme-adhd .ask-input{background:#ffffff0d;color:#e2e8f0;border-color:#ffffff14}.theme-adhd .ask-input:focus{border-color:#6366f1;outline:none}.theme-dyslexia .ask-input{background:#ffffff80;color:#2d2d2d;border-color:#b4a07833}.theme-dyslexia .ask-input:focus{border-color:#8b6914;outline:none}.ask-btn{padding:12px 24px;border:none;border-radius:12px;font-size:14px;font-weight:700;transition:all .2s}.theme-adhd .ask-btn{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff}.theme-dyslexia .ask-btn{background:#8b6914;color:#fff}.ask-btn:disabled{opacity:.5}.ask-answer{margin-top:16px;padding:20px;border-radius:14px;font-size:15px;line-height:1.8;animation:fadeUp .3s ease}.theme-adhd .ask-answer{background:#ffffff0a;border:1px solid rgba(255,255,255,.06)}.theme-dyslexia .ask-answer{background:#ffffff80;border:1px solid rgba(180,160,120,.18)}.spinner{width:24px;height:24px;border:3px solid transparent;border-radius:50%;animation:spin .8s linear infinite;display:inline-block}.theme-adhd .spinner{border-top-color:#6366f1}.theme-dyslexia .spinner{border-top-color:#8b6914}@keyframes spin{to{transform:rotate(360deg)}}.loading-center{display:flex;flex-direction:column;align-items:center;gap:12px;padding:48px 0}.loading-text{font-size:14px;font-weight:500}.theme-adhd .loading-text{color:#94a3b8}.theme-dyslexia .loading-text{color:#8b7355}.history-sidebar{position:fixed;right:0;top:0;bottom:0;width:320px;z-index:200;padding:24px;overflow-y:auto;transform:translate(100%);transition:transform .3s ease}.history-sidebar.open{transform:translate(0)}.theme-adhd .history-sidebar{background:#0f0f23;border-left:1px solid rgba(255,255,255,.06)}.theme-dyslexia .history-sidebar{background:#fdf6e3;border-left:1px solid rgba(180,160,120,.18)}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.history-title{font-size:16px;font-weight:700}.history-close{border:none;background:none;font-size:20px;cursor:pointer}.theme-adhd .history-close{color:#94a3b8}.theme-dyslexia .history-close{color:#8b7355}.history-item{padding:14px;border-radius:12px;margin-bottom:8px;cursor:pointer;transition:all .2s}.theme-adhd .history-item{background:#ffffff08}.theme-adhd .history-item:hover{background:#ffffff0f}.theme-dyslexia .history-item{background:#fff6}.theme-dyslexia .history-item:hover{background:#fff9}.history-item-title{font-size:14px;font-weight:600;margin-bottom:4px}.history-item-date{font-size:11px}.theme-adhd .history-item-date{color:#64748b}.theme-dyslexia .history-item-date{color:#b8a88a}.app-footer{text-align:center;padding:24px;font-size:12px}.theme-adhd .app-footer{color:#475569}.theme-dyslexia .app-footer{color:#b8a88a}
