@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;1,500&display=swap";@layer components;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.fixed{position:fixed}.start{inset-inline-start:var(--spacing)}.grid{display:grid}.hidden{display:none}.inline{display:inline}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}:root{--ink:#2a1804;--ink-soft:#695b4b;--gold:#ffdd65;--gold-bright:#ffe88f;--cream:#fbf8f0;--paper:#fffdf8;--line:#e7dfd0;--serif:"Playfair Display", Georgia, serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--cream);color:var(--ink);-webkit-font-smoothing:antialiased;margin:0;font-family:DM Sans,sans-serif}button,textarea{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,a:focus-visible{outline-offset:2px;outline:3px solid #2a180440}.app-shell{min-height:100vh}.topbar{z-index:30;background:var(--gold);border-bottom:1px solid #2a180424;justify-content:space-between;align-items:center;height:76px;padding:0 30px;display:flex;position:fixed;inset:0 0 auto}.brand{color:var(--ink);align-items:center;text-decoration:none;display:flex}.brand-crop{flex:none;width:203px;height:54px;display:block;position:relative;overflow:hidden}.brand-crop img{width:275px;max-width:none;height:275px;position:absolute;top:-116px;left:-40px}.byline{letter-spacing:.18em;border-left:1px solid #2a180466;max-width:58px;margin-left:16px;padding-left:16px;font-size:9px;font-weight:700;line-height:1.3}.header-actions{align-items:center;gap:10px;display:flex}.search-button{cursor:pointer;background:#ffffff54;border:1px solid #2a180438;border-radius:7px;align-items:center;gap:10px;width:240px;height:40px;padding:0 11px;font-size:12px;display:flex}.search-button span{text-align:left;color:#2a1804a6;flex:1}.search-button kbd{background:#ffffff7a;border-radius:4px;padding:3px 6px;font-size:10px}.avatar-button,.mobile-menu{cursor:pointer;background:0 0;border:1px solid #2a180438;border-radius:50%;place-items:center;width:40px;height:40px;display:grid}.mobile-menu{border-radius:7px;display:none}.sidebar{z-index:20;background:var(--paper);border-right:1px solid var(--line);flex-direction:column;width:216px;padding:28px 18px 22px;display:flex;position:fixed;top:76px;bottom:0;left:0}.sidebar nav{gap:5px;display:grid}.sidebar nav button{width:100%;color:var(--ink-soft);cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:13px;padding:11px 13px;font-size:13px;font-weight:600;display:flex}.sidebar nav button:hover,.sidebar nav button.active{color:var(--ink);background:#fff2be}.sidebar nav button.active{box-shadow:inset 3px 0 var(--ink)}.study-card{background:#f5eddb;border-radius:10px;margin-top:auto;padding:16px}.study-icon{background:var(--gold);border-radius:50%;place-items:center;width:32px;height:32px;margin-bottom:12px;display:grid}.study-card strong{font-family:var(--serif);font-size:15px}.study-card p{color:var(--ink-soft);margin:5px 0 13px;font-size:11px;line-height:1.5}.study-card button{cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-size:10px;font-weight:700;display:flex}main{margin-left:216px;padding:132px 56px 90px}.hero{text-align:center;max-width:850px;margin:0 auto 32px}.eyebrow{letter-spacing:.18em;justify-content:center;align-items:center;gap:9px;margin-bottom:18px;font-size:9px;font-weight:700;display:flex}.eyebrow span{background:var(--ink);width:18px;height:1px}.hero h1{font-family:var(--serif);letter-spacing:-.035em;margin:0;font-size:clamp(38px,5vw,61px);font-weight:500;line-height:1.08}.hero h1 em{color:#795b19;font-weight:500}.hero p{max-width:610px;color:var(--ink-soft);margin:18px auto 0;font-size:14px;line-height:1.7}.solver-card,.solution-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;max-width:850px;margin:0 auto;overflow:hidden;box-shadow:0 18px 50px #3323090f}.mode-tabs{border-bottom:1px solid var(--line);gap:6px;height:52px;padding:0 18px;display:flex}.mode-tabs button{color:var(--ink-soft);cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:0 14px;font-size:12px;font-weight:600;display:flex;position:relative}.mode-tabs button.active{color:var(--ink)}.mode-tabs button.active:after{content:"";background:var(--ink);height:2px;position:absolute;bottom:0;left:10px;right:10px}.input-area{padding:24px 25px 20px}.input-area textarea{resize:none;width:100%;height:90px;color:var(--ink);font-family:var(--serif);background:0 0;border:0;outline:none;padding:4px;font-size:clamp(23px,3vw,31px);line-height:1.4}.input-area textarea::placeholder{color:#b5aa97}.input-toolbar{justify-content:space-between;align-items:center;margin-top:10px;display:flex}.tool-button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:6px;place-items:center;width:36px;height:34px;margin-right:6px;display:inline-grid}.tool-button.selected{background:#fff1b8;border-color:#d9bd54}.solve-button{border:1px solid var(--ink);background:var(--ink);height:40px;color:var(--gold);cursor:pointer;border-radius:7px;align-items:center;gap:10px;padding:0 18px;font-size:12px;font-weight:700;display:flex}.solve-button:hover{background:#442805}.upload-chip{color:#665022;background:#fff4c9;border-radius:5px;align-items:center;gap:6px;padding:6px 9px;font-size:10px;display:inline-flex}.math-keypad{border-top:1px solid var(--line);background:#faf6ec;grid-template-columns:repeat(9,1fr);gap:6px;padding:14px 24px;display:grid}.math-keypad button{border:1px solid var(--line);height:34px;font-family:var(--serif);cursor:pointer;background:#fff;border-radius:5px;font-size:14px}.math-keypad button:hover{background:var(--gold-bright)}.examples{border-top:1px solid var(--line);background:#fcfaf5;align-items:flex-start;gap:15px;padding:15px 24px 18px;display:flex}.examples>span{color:var(--ink-soft);letter-spacing:.08em;text-transform:uppercase;flex:none;margin-top:10px;font-size:9px;font-weight:700}.examples>div{grid-template-columns:repeat(4,1fr);gap:7px;width:100%;display:grid}.examples button{border:1px solid var(--line);background:var(--paper);text-align:left;white-space:nowrap;text-overflow:ellipsis;font-family:var(--serif);cursor:pointer;border-radius:6px;padding:9px 10px;font-size:12px;overflow:hidden}.examples button:hover{background:#fff9df;border-color:#c7a732}.examples small{color:var(--ink-soft);text-transform:uppercase;margin-bottom:3px;font-family:DM Sans;font-size:8px;font-weight:700;display:block}.solution-card{margin-top:22px}.solution-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:22px 25px;display:flex}.solution-header>div{align-items:center;gap:12px;display:flex}.status-dot{background:var(--gold);border-radius:50%;place-items:center;width:30px;height:30px;display:grid}.solution-header small,.answer-box>span,.section-heading span{color:#816f58;letter-spacing:.16em;font-size:8px;font-weight:700;display:block}.solution-header h2{font-family:var(--serif);margin:2px 0 0;font-size:20px;font-weight:500}.solution-header>button{border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:6px;align-items:center;gap:7px;padding:7px 11px;font-size:10px;font-weight:700;display:flex}.answer-box{border-left:3px solid var(--ink);background:#fff4c7;margin:22px 25px;padding:21px 24px}.answer-box strong{font-family:var(--serif);margin:7px 0 5px;font-size:clamp(24px,3vw,34px);font-weight:500;display:block}.answer-box p{color:var(--ink-soft);margin:0;font-size:11px;line-height:1.6}.steps-heading{justify-content:space-between;align-items:center;padding:7px 25px 14px;display:flex}.steps-heading h3{font-family:var(--serif);margin:0;font-size:18px;font-weight:500}.steps-heading p{color:var(--ink-soft);margin:4px 0 0;font-size:10px}.steps-heading>span{color:var(--ink-soft);background:#f1ece1;border-radius:10px;padding:5px 8px;font-size:9px}.steps{border:1px solid var(--line);border-radius:9px;margin:0 25px 23px;overflow:hidden}.steps>button{border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer;background:#fff;grid-template-columns:30px 1fr 24px;align-items:start;gap:12px;width:100%;padding:15px 17px;display:grid}.steps>button:last-child{border-bottom:0}.steps>button:hover,.steps>button.expanded{background:#fffdf4}.step-number{border:1px solid #d6cfc1;border-radius:50%;place-items:center;width:25px;height:25px;font-size:9px;font-weight:700;display:grid}.step-content small{color:var(--ink-soft);text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px;font-size:9px;font-weight:700;display:block}.step-content strong{font-family:var(--serif);font-size:17px;font-weight:500}.step-content p{color:var(--ink-soft);margin:8px 0 0;font-size:11px;line-height:1.5}.step-toggle{font-size:18px;transition:transform .2s}.expanded .step-toggle{transform:rotate(45deg)}.follow-up{background:#f3eee4;align-items:center;gap:12px;padding:15px 25px;display:flex}.follow-up span{color:var(--ink-soft);flex:1;font-size:10px}.follow-up span strong{color:var(--ink)}.follow-up button,.clear-button{cursor:pointer;background:0 0;border:0;font-size:10px;font-weight:700;text-decoration:underline}.topics-section,.history-section{max-width:1040px;margin:100px auto 0;scroll-margin-top:100px}.section-heading{justify-content:space-between;align-items:end;gap:40px;margin-bottom:26px;display:flex}.section-heading h2{font-family:var(--serif);margin:10px 0 0;font-size:clamp(28px,4vw,42px);font-weight:500;line-height:1.14}.section-heading>p{max-width:420px;color:var(--ink-soft);margin:0;font-size:12px;line-height:1.65}.topic-grid{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.topic-grid button{border:1px solid var(--line);background:var(--paper);text-align:left;cursor:pointer;border-radius:9px;grid-template-columns:43px 1fr 20px;align-items:center;gap:12px;min-height:98px;padding:16px;display:grid}.topic-grid button:hover{border-color:#d6bd58;transform:translateY(-2px);box-shadow:0 10px 24px #32230c0f}.topic-glyph{background:var(--gold-bright);width:43px;height:43px;font-family:var(--serif);border-radius:7px;place-items:center;font-size:18px;display:grid}.topic-grid strong{font-family:var(--serif);margin-bottom:4px;font-size:15px;display:block}.topic-grid small{color:var(--ink-soft);font-size:9px}.history-section{margin-top:80px;margin-bottom:40px}.section-heading.compact{align-items:center}.section-heading.compact h2{font-size:30px}.history-list{border:1px solid var(--line);background:var(--paper);border-radius:10px;overflow:hidden}.history-list button{border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer;background:0 0;grid-template-columns:28px 1fr auto 18px;align-items:center;gap:12px;width:100%;padding:15px 18px;display:grid}.history-list button:last-child{border-bottom:0}.history-list button:hover{background:#fffbeb}.history-list button>span{background:#f3ecda;border-radius:50%;place-items:center;width:26px;height:26px;font-size:9px;display:grid}.history-list strong{font-family:var(--serif);font-size:16px;font-weight:500}.history-list small{color:var(--ink-soft);font-size:9px}.empty-history{color:var(--ink-soft);border:1px dashed #d5ccbd;border-radius:10px;place-items:center;gap:10px;padding:34px;display:grid}.empty-history p{margin:0;font-size:11px}.mobile-tabs{display:none}@media (width<=960px){main{padding-left:34px;padding-right:34px}.examples>div{grid-template-columns:repeat(2,1fr)}.math-keypad{grid-template-columns:repeat(6,1fr)}.topic-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=720px),(height<=500px) and (pointer:coarse){.topbar{height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));justify-content:center}.brand{max-width:calc(100vw - 108px - env(safe-area-inset-left) - env(safe-area-inset-right));flex:none}.brand-crop{width:clamp(112px,34vw,130px);height:38px}.brand-crop img{width:clamp(160px,46vw,175px);height:clamp(160px,46vw,175px);top:clamp(-73px,-19vw,-66px);left:clamp(-25px,-6.5vw,-24px)}.byline{max-width:43px;margin-left:clamp(5px,2vw,8px);padding-left:clamp(6px,2vw,8px);font-size:clamp(5.5px,1.6vw,6px)}.header-actions{right:max(14px, env(safe-area-inset-right));position:absolute;bottom:9px}.search-button,.avatar-button{display:none}.mobile-menu{display:grid}.sidebar{top:calc(58px + env(safe-area-inset-top));width:100%;transition:transform .25s;transform:translate(-105%);box-shadow:16px 0 40px #2a18041f}.sidebar.open{transform:translate(0)}main{padding:calc(88px + env(safe-area-inset-top)) max(15px, env(safe-area-inset-right)) calc(105px + env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));margin-left:0}.hero{text-align:left;margin-bottom:24px}.eyebrow{justify-content:flex-start;font-size:8px}.hero h1{font-size:40px}.hero p{margin-left:0;font-size:12px}.solver-card,.solution-card{border-radius:11px}.mode-tabs{padding:0 9px}.mode-tabs button{flex:1;justify-content:center;padding:0 4px}.input-area{padding:20px 17px 16px}.input-area textarea{height:100px;font-size:25px}.solve-button{padding:0 14px}.math-keypad{grid-template-columns:repeat(4,1fr);padding:12px 16px}.examples{padding:13px 16px 16px;display:block}.examples>span{margin:0 0 9px;display:block}.examples>div{padding-bottom:3px;display:flex;overflow-x:auto}.examples button{min-width:138px}.solution-header,.answer-box{margin-left:16px;margin-right:16px}.solution-header{margin:0;padding:18px 16px}.answer-box{padding:18px}.steps-heading{padding:5px 16px 12px}.steps{margin:0 16px 17px}.steps>button{grid-template-columns:27px 1fr 18px;gap:9px;padding:14px 12px}.step-content strong{font-size:15px}.follow-up{flex-wrap:wrap;padding:14px 16px}.follow-up button{text-align:left;width:100%;padding-left:30px}.topics-section,.history-section{margin-top:68px}.section-heading{display:block}.section-heading>p{margin-top:14px}.topic-grid{grid-template-columns:1fr}.history-list button{grid-template-columns:28px 1fr 16px}.history-list small{display:none}.mobile-tabs{z-index:25;height:calc(70px + env(safe-area-inset-bottom));padding:7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));border-top:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fffdf8f5;grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.mobile-tabs button{color:#8a7c69;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:8px;font-weight:700;display:flex}.mobile-tabs button.active{color:var(--ink)}.mobile-tabs button.active svg{background:var(--gold);border-radius:9px;width:31px;height:31px;padding:5px}}@media (width<=380px){.brand{max-width:calc(100vw - 82px)}.byline{max-width:38px}.header-actions{right:max(9px, env(safe-area-inset-right))}.mobile-menu{width:36px;height:36px}.hero h1{font-size:35px}.input-toolbar{align-items:end}.solve-button{font-size:11px}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
