/* Finished AI backdrop edit from original photo. Proportional display; no manual cutout. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
.hero-visual{height:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-width:0;padding:38px 28px 34px}.portrait-stage{position:relative;width:min(100%,390px);aspect-ratio:840/901;border-radius:200px 200px 28px 28px;isolation:isolate}.portrait-backdrop{inset:0;border-radius:inherit;background:#e9ebe6;box-shadow:inset 0 0 0 1px #ffffff30}.hero-portrait{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;object-position:center bottom;margin:0;border:0;border-radius:inherit;clip-path:inset(0 round 200px 200px 28px 28px)}.hero-visual:after{display:none}.note-card{box-shadow:0 5px 18px #172c9420}.note-question{position:absolute;margin:0;left:-26px;bottom:auto;top:max(calc(55% + 32px),calc(100% - 55px - 2.565rem - 26px));right:auto;padding:13px 18px;border-radius:15px;transform:rotate(-3deg);font-size:.75rem;line-height:1.5;white-space:nowrap}.note-question strong{font-size:.96rem;font-weight:600}.note-hello{position:relative;display:flex;align-items:center;align-self:flex-end;gap:12px;width:min(calc(100% - 12px),274px);min-width:0;margin:max(-20px,calc(3rem - 68px)) 6px 0 0;padding:15px 18px;top:auto;bottom:auto;left:auto;right:auto;border-radius:18px;transform:rotate(6deg);transform-origin:70% 50%;font-size:.74rem;line-height:1.45}.note-hello>div{min-width:0}.note-spark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--lime);flex-shrink:0;color:var(--blue)}.note-spark .icon{width:23px;height:23px;stroke-width:1.5}.handwritten{font-size:1.1rem;font-style:normal;font-weight:600;line-height:1.35;letter-spacing:-.03em;margin-bottom:4px}.math-mark{top:13px;left:-25px;font-size:1.9rem;z-index:2}
.contact-messengers{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}.contact-messengers .button{font-size:.87rem;min-height:54px;padding:12px 18px}.max-contact{display:inline-flex;gap:10px;align-items:center;justify-content:center;background:#fff;color:var(--ink);border:1px solid #c5cda8;border-radius:99px;min-height:54px;padding:8px 18px;font-size:.87rem;font-weight:600;transition:background .2s,border-color .2s}.max-contact:hover{background:#f9f8ff;border-color:#8c77e8}.max-brand-mark{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;background:#471aff;border-radius:9px}.max-brand-mark img{display:block;width:22px;height:22px;object-fit:contain;max-width:none}.max-dialog>.max-brand-mark{width:60px;height:60px;border-radius:17px;margin-bottom:22px}.max-dialog>.max-brand-mark img{width:38px;height:38px}.max-dialog h2{font-size:2rem}.max-dialog p{color:var(--muted);font-size:.94rem;margin-bottom:25px}.max-dialog .button{width:100%;font-size:.9rem}.max-phone{display:block;text-align:center;text-decoration:underline;padding:18px 0 0;font-size:.92rem}
.chat-launcher{display:flex;align-items:center;gap:10px;position:fixed;right:24px;bottom:24px;z-index:18;min-height:54px;border:0;border-radius:99px;padding:14px 21px;background:var(--ink);color:white;box-shadow:0 8px 30px #19222430;font-size:.85rem;font-weight:600}.chat-unread{position:absolute;top:0;right:1px;width:13px;height:13px;border-radius:50%;background:var(--blue);border:2px solid white}.chat-dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:24px;width:min(420px,calc(100vw - 32px));height:min(690px,calc(100dvh - 48px));max-height:calc(var(--chat-vh,100dvh) - 24px);padding:0;margin:auto 24px 24px auto;overflow:hidden;box-shadow:0 18px 70px #19222440}.chat-dialog[open]{display:flex;flex-direction:column}.chat-dialog::backdrop{background:#19222445;backdrop-filter:blur(3px)}.chat-header{display:flex;align-items:center;gap:11px;padding:16px 18px;border-bottom:1px solid var(--line);background:#fff;flex-shrink:0}.chat-header>img{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:center 49%}.chat-header>div{min-width:0;flex:1}.chat-header h2{font-size:1.12rem;letter-spacing:-.025em;margin:0 0 4px;line-height:1.3}.chat-header p{margin:0;font-size:.72rem;color:var(--muted);line-height:1.4}.chat-icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:0;border-radius:50%;color:var(--ink);background:#edf0e6;padding:10px}.chat-icon-button .icon{width:21px;height:21px}.chat-intro{padding:26px 25px 20px;overflow:auto;min-height:0}.chat-kicker{font-size:.64rem;letter-spacing:.09em;font-weight:700;color:var(--blue);margin-bottom:17px}.chat-intro h3{font-size:2.35rem;line-height:1.1;letter-spacing:-.05em;margin-bottom:18px}.chat-intro>p:not(.chat-kicker){font-size:.86rem;color:var(--muted);line-height:1.6}.chat-intro form>label:first-child{font-size:.8rem;display:block;margin:20px 0 8px}.chat-intro label>span:not(.consent span){color:var(--muted)}.chat-intro form>input{width:100%;padding:13px;border:1px solid #bfc9be;border-radius:12px;background:white;min-height:48px;font-size:1rem}.chat-intro .consent{font-size:.73rem;line-height:1.5;margin:16px 0 20px}.chat-intro .consent a{text-decoration:underline}.chat-intro .button{width:100%;font-size:.88rem}.chat-intro .chat-hint{font-size:.69rem;margin:15px 0 0}.chat-conversation{display:flex;flex-direction:column;flex:1;min-height:0;position:relative}.chat-transcript{padding:18px 18px 8px;flex:1;min-height:70px;overflow:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at top right,#edf0ff,transparent 65%)}.chat-message{width:fit-content;max-width:88%;border-radius:16px;padding:11px 13px;margin:0 0 12px;overflow-wrap:anywhere;box-shadow:0 2px 6px #19222406}.chat-message-self{margin-left:auto;background:#e4f4ab;border-bottom-right-radius:4px}.chat-message-staff{background:#fff;border:1px solid #e2e6df;border-bottom-left-radius:4px}.chat-message-author{display:block;font-size:.64rem;font-weight:600;color:#535f43;margin-bottom:5px}.chat-message p{font-size:.86rem;line-height:1.5;margin:0;white-space:pre-wrap}.chat-message time{display:block;text-align:right;margin-top:5px;font-size:.6rem;color:#5f6b60}.chat-message img{width:auto;height:auto;max-width:100%;max-height:230px;border-radius:9px;margin:4px 0 8px}.chat-explainer{font-size:.65rem;color:var(--muted);line-height:1.45;margin:0;padding:8px 18px 4px;flex-shrink:0}.chat-history-button{display:block;margin:0 auto 16px;min-height:44px;border:1px solid var(--line);background:var(--paper);color:var(--muted);padding:9px 14px;border-radius:99px;font-size:.72rem}.chat-new-message{position:absolute;bottom:190px;left:50%;transform:translateX(-50%);border:0;border-radius:99px;background:var(--blue);color:white;display:flex;align-items:center;gap:7px;padding:11px 15px;font-size:.75rem;white-space:nowrap;min-height:44px}.chat-new-message .icon{width:18px;height:18px}#chat-compose{margin:6px 16px 0;padding:11px 12px 6px;background:white;border:1px solid #bfc9be;border-radius:16px;flex-shrink:0}#chat-body{width:100%;border:0;resize:none;background:white;color:var(--ink);font-size:1rem;line-height:1.45;max-height:110px;min-height:47px;padding:2px 1px}.chat-compose-actions{display:flex;align-items:center;gap:8px}.chat-file-label{position:relative;background:transparent;cursor:pointer;overflow:hidden}.chat-file-label:focus-within{outline:3px solid #9e42d8;outline-offset:2px}.chat-file-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.chat-photo-hint{font-size:.62rem;color:var(--muted);flex:1}.chat-send{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--blue);color:white}.chat-send:disabled{opacity:.45;cursor:default}.chat-attachment{display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--line);margin-bottom:10px;padding-bottom:10px}.chat-attachment>img{width:50px;height:50px;object-fit:cover;border-radius:9px}.chat-attachment>span{font-size:.68rem;flex:1}.chat-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 18px 7px;font-size:.59rem;color:var(--muted);flex-shrink:0}.chat-footer button{font-size:.64rem;min-height:38px;background:transparent;border:0;text-decoration:underline;color:var(--muted)}.chat-status{font-size:.72rem;color:#46514c;line-height:1.4;margin:0;flex-shrink:0;padding:0 18px;max-height:80px;overflow:auto}.chat-status:not(:empty){padding-block:10px;border-top:1px solid var(--line);background:#f1f3e9}.chat-delete-confirm{position:absolute;bottom:0;left:0;right:0;background:var(--paper);border-top:1px solid var(--line);padding:20px;box-shadow:0 -20px 40px #19222424}.chat-delete-confirm p{font-size:.8rem}.chat-delete-confirm .button{font-size:.8rem;min-height:44px;margin:4px 0}.mobile-chat{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink)}
@media(max-width:760px){.hero-visual{max-width:420px;width:100%;min-height:0;margin:0 auto;padding:8px 8px 30px;gap:16px}.portrait-stage{width:min(88%,305px);border-radius:150px 150px 23px 23px}.hero-portrait{width:100%;height:100%;border:0;border-radius:inherit;clip-path:inset(0 round 150px 150px 23px 23px)}.portrait-backdrop{inset:0}.note-question{left:-20px;bottom:auto;top:max(calc(55% + 32px),calc(100% - 44px - 2.265rem - 22px));padding:11px 14px;font-size:.68rem;border-radius:13px}.note-question strong{font-size:.83rem}.note-hello{width:min(calc(100% - 20px),258px);margin:max(-12px,calc(3rem - 60px)) 10px 0 0;font-size:.72rem;padding:14px 16px;gap:11px;border-radius:16px}.note-spark{width:34px;height:34px}.note-spark .icon{width:21px;height:21px}.handwritten{font-size:1rem;margin-bottom:3px}.math-mark{font-size:1.5rem;top:8px;left:-15px}.chat-launcher{display:none}.mobile-cta{gap:8px;padding-inline:12px}.mobile-cta .button{padding-inline:12px;font-size:.82rem;gap:6px;min-width:0}.mobile-cta .button .icon{width:18px}.mobile-call,.mobile-chat{width:44px;height:44px;flex-shrink:0}.chat-dialog{margin:0;inset:0;width:100vw;max-width:none;height:var(--chat-vh,100dvh);max-height:var(--chat-vh,100dvh);border:0;border-radius:0}.chat-header{padding:12px 16px}.chat-intro{padding:25px 23px}.chat-footer{padding-bottom:calc(7px + env(safe-area-inset-bottom))}.chat-status:not(:empty){padding-bottom:calc(10px + env(safe-area-inset-bottom))}.max-dialog{max-width:430px}.contact-messengers .button{font-size:.81rem}.contact-messengers{gap:9px}.max-contact{font-size:.85rem;padding-inline:14px}.chat-footer button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.note-hello,.note-question{translate:none}}
@media(max-width:360px){.contact-messengers{display:grid;grid-template-columns:minmax(0,1fr)}.contact-messengers .button,.max-contact{width:100%}}
@media(forced-colors:active){.chat-message,.chat-icon-button,.chat-send,.chat-launcher{border:1px solid CanvasText}.chat-unread{background:Highlight}.hero-portrait{border-color:CanvasText}}

/* The rounded composer carries the focus indicator, including keyboard input. */
#chat-compose{transition:border-color .15s,box-shadow .15s}
#chat-compose:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px #2949e81a}
#chat-dialog :focus-visible{outline-color:var(--blue)}
#chat-body:focus-visible{outline:none}
#chat-dialog .chat-file-label:focus-within{outline-color:var(--blue)}
@media(forced-colors:active){#chat-compose:focus-within{border-color:Highlight;outline:2px solid Highlight;outline-offset:2px}}
