@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--brand:#0f6cbd;--brand-dark:#115ea3;--ink:#172b4d;--muted:#5d6b82;--line:#e2e8f0;--panel:#fff;--wash:#f6f9fc;--green:#16834a;--shadow:0 18px 50px rgba(22,43,77,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:#fbfcfe;color:var(--ink);font-family:"DM Sans",Segoe UI,Arial,sans-serif;font-size:15px;line-height:1.5}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}.topbar{height:78px;padding:0 clamp(20px,5vw,76px);display:flex;align-items:center;gap:36px;background:rgba(255,255,255,.94);border-bottom:1px solid #e9eef4;position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:11px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:var(--brand);color:white;font-weight:700;font-size:19px;box-shadow:0 5px 12px #0f6cbd35}.brand strong{font-size:17px;letter-spacing:-.4px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:-2px}.topbar nav{display:flex;gap:27px;margin-left:auto;color:#52617a;font-size:13px;font-weight:600}.topbar nav a:hover{color:var(--brand)}.button{border:0;border-radius:9px;padding:11px 16px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:transform .15s,background .15s,border-color .15s}.button:active{transform:translateY(1px)}.button:disabled{opacity:.45;cursor:not-allowed}.button-primary{background:var(--brand);color:white;box-shadow:0 4px 10px #0f6cbd22}.button-primary:hover:not(:disabled){background:var(--brand-dark)}.button-subtle{background:#eef5fc;color:var(--brand)}.button-subtle:hover{background:#e0eefb}.button-ghost{background:transparent;color:#50617a;border:1px solid var(--line)}.button-ghost:hover{background:#f5f8fb}.button-light{background:#fff;color:var(--brand);padding:13px 20px}.hidden{display:none!important}
.hero{padding:68px clamp(20px,8vw,120px) 74px;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:40px;background:radial-gradient(ellipse at 85% 10%,#dceeff 0,transparent 37%),linear-gradient(180deg,#fff 0%,#f7fbff 100%);overflow:hidden}.eyebrow{font-size:10px;letter-spacing:1.45px;font-weight:700;color:var(--brand);display:flex;align-items:center;gap:8px}.dot{width:7px;height:7px;border-radius:50%;background:#2b9c65;box-shadow:0 0 0 4px #2b9c6518}.hero h1{font-size:clamp(38px,4.2vw,57px);letter-spacing:-2.4px;line-height:1.08;margin:20px 0 19px;max-width:700px}.hero h1 span{color:var(--brand)}.hero-copy>p{color:#5e6c81;font-size:17px;line-height:1.75;max-width:530px;margin:0}.hero-points{display:flex;gap:19px;flex-wrap:wrap;margin-top:28px;color:#465873;font-size:12px;font-weight:600}.hero-points i{font-style:normal;color:#16834a;font-weight:700;margin-right:5px}.hero-art{min-height:290px;position:relative;display:flex;align-items:center;justify-content:center}.formula-card{width:min(100%,430px);padding:0 23px 23px;background:white;border:1px solid #e2eaf2;border-radius:17px;box-shadow:0 22px 60px #17385c18;transform:rotate(-2deg);position:relative;z-index:2}.window-dots{height:54px;display:flex;align-items:center;gap:6px;border-bottom:1px solid #edf1f6;margin-bottom:26px;color:#8995a8;font-size:11px}.window-dots i{width:7px;height:7px;border-radius:50%;background:#d9e1eb}.window-dots span{margin-left:8px}.formula-card code{font-family:"DM Mono",monospace;font-size:clamp(19px,2vw,26px);letter-spacing:-.8px;white-space:nowrap}.formula-card code em{font-style:normal;color:#9b54be}.formula-card code strong{color:var(--brand);font-weight:500}.formula-status{margin-top:24px;color:#5f7186;font-size:11px;display:flex;align-items:center;gap:7px}.formula-status span{width:7px;height:7px;background:#20a464;border-radius:50%}.floating-card{position:absolute;z-index:3;display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #e4ebf3;padding:12px 15px;border-radius:12px;box-shadow:0 12px 32px #17385c12}.floating-card b{font-size:12px;display:block}.floating-card small{display:block;color:#7b8798;font-size:10px;margin-top:2px}.card-one{left:-4px;top:17px}.card-two{right:-7px;bottom:14px}.mini-icon{width:30px;height:30px;display:grid;place-items:center;background:#edf5ff;color:var(--brand);border-radius:8px;font-weight:700}.mini-icon.green{background:#e7f8ee;color:#16834a}
.section-card{margin:-20px clamp(20px,6vw,90px) 0;position:relative;z-index:4;background:white;border:1px solid #e5ebf2;border-radius:18px;box-shadow:var(--shadow);padding:30px clamp(20px,3.3vw,48px)}.workspace-heading,.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.workspace-heading h2,.section-heading h2{font-size:24px;letter-spacing:-.8px;margin:5px 0 4px}.workspace-heading p,.section-heading p{margin:0;color:var(--muted);font-size:13px}.mode-switch{display:flex;padding:4px;background:#f0f4f8;border-radius:10px;gap:3px}.mode{border:0;border-radius:7px;padding:9px 12px;background:transparent;color:#5c6b80;font-size:12px;font-weight:700;white-space:nowrap}.mode.active{background:white;color:var(--brand);box-shadow:0 1px 4px #1b365015}.editor-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:22px;margin-top:26px}.input-column label{font-size:12px;font-weight:700;display:block;margin-bottom:9px}.editor-shell{border:1px solid #dce5ee;border-radius:11px;display:flex;min-height:175px;position:relative;background:#fbfdff;overflow:visible}.editor-shell:focus-within{border-color:#68a9e4;box-shadow:0 0 0 3px #0f6cbd15}.editor-gutter{font:12px/25px "DM Mono",monospace;color:#a3afbd;text-align:right;padding:13px 10px 13px 13px;border-right:1px solid #edf1f6;user-select:none}.editor-main{flex:1;position:relative;min-width:0}textarea{width:100%;height:100%;min-height:175px;resize:vertical;border:0;outline:0;background:transparent;padding:13px 15px;font:13px/25px "DM Mono",monospace;color:#243c59}textarea::placeholder{color:#9aa8b9}.editor-hints{display:flex;gap:14px;flex-wrap:wrap;margin-top:9px;color:#8a97a8;font-size:10px}.editor-hints kbd{font:10px "DM Mono",monospace;padding:2px 5px;border:1px solid #dfe5ec;background:#f7f9fb;border-radius:4px;margin-right:3px}.quick-prompts{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:18px;font-size:11px;color:#7a8798}.prompt{border:1px solid #e2e9f1;background:white;color:#52647c;border-radius:6px;padding:5px 8px;font-size:10px}.prompt:hover{border-color:#9fc7ed;color:var(--brand)}.actions{display:flex;gap:8px;margin-top:17px}.result-column{background:#f8fafc;border:1px solid #e6edf4;border-radius:12px;padding:17px;display:flex;flex-direction:column;min-width:0}.result-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.result-label{font-size:10px;font-weight:700;letter-spacing:1.2px;color:#7a899c}.status-pill{font-size:10px;padding:4px 8px;border-radius:99px;background:#eef2f6;color:#75849a;white-space:nowrap}.status-pill.ready{background:#e6f7ed;color:#177b48}.result-formula{font:14px/1.7 "DM Mono",monospace;overflow-wrap:anywhere;color:#146c43;padding:23px 0 18px;min-height:94px}.result-formula.empty{font:12px "DM Sans",sans-serif;color:#a1adbb}.result-actions{display:flex;gap:8px}.result-actions .button{flex:1}.explanation{display:flex;align-items:flex-start;gap:9px;border-top:1px solid #e5ebf1;padding-top:15px;margin-top:15px;color:#69798e;font-size:11px;line-height:1.7}.info-icon{width:17px;height:17px;flex:0 0 17px;display:grid;place-items:center;border-radius:50%;background:#e8f1fb;color:var(--brand);font-size:10px;font-weight:700}.notice{font-size:11px;margin-top:12px;padding:9px 10px;border-radius:7px;background:#fff5e6;color:#805800}.privacy-note{margin:20px 0 0;color:#8492a4;font-size:10px}.privacy-note span{margin-right:4px}.suggestions{position:absolute;left:6px;right:6px;top:100%;z-index:12;background:white;border:1px solid #dce5ee;border-radius:9px;box-shadow:0 12px 28px #1b36501f;max-height:240px;overflow:auto}.suggestion{width:100%;border:0;background:white;text-align:left;padding:10px 12px;display:flex;gap:10px;align-items:center;border-bottom:1px solid #f0f3f6}.suggestion:last-child{border-bottom:0}.suggestion:hover,.suggestion.selected{background:#eff6fd}.suggestion-name{font:12px "DM Mono",monospace;font-weight:500;color:#1b5f99;min-width:110px}.suggestion-desc{font-size:11px;color:#6b7a8f}.suggestion-kind{margin-left:auto;font-size:9px;text-transform:uppercase;color:#93a0af}
.content-section{padding:76px clamp(20px,6vw,90px) 0}.section-heading{margin-bottom:23px}.section-heading p{max-width:330px;line-height:1.65}.example-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.example-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:18px;border:1px solid #e4eaf1;background:white;border-radius:13px;min-height:205px;transition:transform .16s,box-shadow .16s,border-color .16s}.example-card:hover{transform:translateY(-3px);box-shadow:0 12px 25px #183a5d0b;border-color:#b7d5f2}.example-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:9px;font-weight:700;font-size:16px;margin-bottom:14px}.blue{background:#e9f3ff;color:#1766ad}.purple{background:#f0eaff;color:#7551bd}.orange{background:#fff1e2;color:#bd701d}.green{background:#e4f8ed;color:#16834a}.example-title{font-size:13px;font-weight:700}.example-sentence{font-size:11px;line-height:1.6;color:#77869a;margin:7px 0 12px}.example-card code{font:11px "DM Mono",monospace;color:#167348;background:#f1f8f4;border-radius:5px;padding:6px 7px;max-width:100%;overflow-wrap:anywhere}.card-arrow{margin-top:auto;padding-top:12px;font-size:10px;color:var(--brand);font-weight:700}
.catalogue-section{padding-bottom:78px}.catalogue-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:17px}.search-box{display:flex;align-items:center;gap:8px;flex:1;max-width:600px;border:1px solid #dfe7ef;border-radius:9px;background:white;padding:0 12px}.search-box span{font-size:22px;color:#8b9aae}.search-box input{border:0;outline:0;padding:12px 0;width:100%;font-size:12px;background:transparent}.catalogue-toolbar select{border:1px solid #dfe7ef;border-radius:9px;background:white;color:#53657c;padding:11px 12px;font-size:12px;max-width:190px}.function-count{font-size:11px;color:#8492a4;white-space:nowrap}.function-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.function-item{border:1px solid #e3eaf1;border-radius:10px;background:white;text-align:left;padding:14px;min-width:0}.function-item:hover{border-color:#a6c9ec;background:#fbfdff}.function-item-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.function-item strong{font:12px "DM Mono",monospace;color:#165f9c}.function-item .category{font-size:9px;color:#8b98a9;background:#f2f5f8;border-radius:4px;padding:3px 5px}.function-item p{font-size:11px;color:#738198;line-height:1.6;margin:9px 0 0}.function-item .starter{display:block;margin-top:9px;color:#16834a;font-size:10px;font-weight:700}.catalogue-footnote{font-size:10px;line-height:1.7;color:#8996a8;margin:17px 0 0;max-width:900px}
.bottom-cta{margin:0 clamp(20px,6vw,90px) 65px;padding:35px 40px;border-radius:16px;background:linear-gradient(115deg,#0f5ea8,#0f6cbd 65%,#237fc9);color:white;display:flex;justify-content:space-between;align-items:center;gap:20px}.bottom-cta .eyebrow{color:#c5e2ff}.bottom-cta h2{font-size:24px;letter-spacing:-.8px;margin:8px 0}.bottom-cta p{font-size:12px;color:#d7eaff;margin:0}footer{display:flex;align-items:center;gap:25px;padding:22px clamp(20px,6vw,90px);border-top:1px solid #e8edf3;color:#8995a6;font-size:10px}footer>span:nth-of-type(1){margin-left:auto}.footer-brand{gap:8px;color:#31435c}.footer-brand .brand-mark{width:28px;height:28px;font-size:13px;border-radius:8px;box-shadow:none}.footer-brand strong{font-size:13px}
@media(max-width:1050px){.hero{padding-top:52px}.hero-art{transform:scale(.93)}.editor-layout{grid-template-columns:1fr}.result-column{min-height:230px}.example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.function-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-card{margin-left:24px;margin-right:24px}.bottom-cta{margin-left:24px;margin-right:24px}}
@media(max-width:720px){.topbar{height:66px;padding:0 17px;gap:10px}.brand small{display:none}.topbar nav{display:none}.topbar .button{margin-left:auto;padding:9px 11px}.hero{grid-template-columns:1fr;padding:45px 22px 50px;gap:12px}.hero h1{font-size:42px;letter-spacing:-1.8px}.hero-copy>p{font-size:15px}.hero-points{gap:10px 15px}.hero-art{min-height:225px;margin:0 5px;transform:scale(.9)}.card-one{left:-5px;top:0}.card-two{right:-6px;bottom:1px}.section-card{margin:-9px 12px 0;padding:21px 15px}.workspace-heading{align-items:flex-start;flex-direction:column}.workspace-heading h2,.section-heading h2{font-size:22px}.mode-switch{width:100%}.mode{flex:1}.editor-layout{gap:14px;margin-top:20px}.quick-prompts{gap:6px}.editor-hints{gap:8px}.result-column{padding:13px}.content-section{padding:53px 15px 0}.section-heading{align-items:flex-start;flex-direction:column;gap:7px}.section-heading p{max-width:none}.example-grid{gap:9px}.example-card{padding:13px;min-height:205px}.example-sentence{font-size:10px}.example-card code{font-size:10px}.catalogue-toolbar{flex-wrap:wrap}.search-box{flex-basis:100%;max-width:none}.catalogue-toolbar select{flex:1;max-width:none}.function-count{margin-left:auto}.function-grid{grid-template-columns:1fr}.bottom-cta{margin:0 12px 40px;padding:26px 22px;align-items:flex-start;flex-direction:column}.bottom-cta h2{font-size:22px}footer{padding:18px;flex-wrap:wrap;gap:12px}footer>span:nth-of-type(1){margin-left:0}footer>span:last-child{margin-left:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.catalogue-pagination{margin-top:18px;display:flex;justify-content:flex-end}.function-item{display:block;text-decoration:none;color:inherit}.function-item .starter{display:block;margin-top:10px}.function-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.function-item-top strong{font-family:monospace}.function-item p{line-height:1.55}

/* v6 feature panels */
.tool-panel{padding:24px;display:grid;gap:12px}
.tool-panel label{font-weight:650;font-size:13px;color:var(--ink,#182230);margin-top:4px}
.tool-panel input[type="text"],.tool-panel input[type="file"],.tool-panel input:not([type]),.tool-panel textarea,.tool-panel select{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:9px;padding:11px 12px;font:inherit;background:#fff;color:#172033}
.tool-panel textarea{resize:vertical;line-height:1.5}
.tool-status{font-size:13px;color:#64748b;align-self:center}.tool-status.good{color:#16803d}
.small-note{font-size:12px;line-height:1.6;color:#64748b;margin:2px 0}
.column-map{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0}
.column-chip{display:inline-flex;gap:7px;align-items:center;border:1px solid #d7e0ea;background:#f8fafc;border-radius:8px;padding:7px 10px;font-size:12px}
.column-chip b{color:#0f6cbd;font-family:monospace}
.builder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.builder-grid>div{display:grid;gap:8px;align-content:start}
.builder-wide{grid-column:1/-1}
.builder-wide .result-formula{min-height:50px;padding:14px;overflow-wrap:anywhere}
.sandbox-result{border:1px solid #d7e0ea;background:#f8fafc;border-radius:9px;padding:16px;min-height:42px;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,monospace}
.doctor-output{line-height:1.65}.doctor-output h3{margin:18px 0 6px}.doctor-output p{margin:7px 0}.doctor-output code{overflow-wrap:anywhere;background:#f1f5f9;padding:2px 5px;border-radius:4px}
.warning-note{border-left:3px solid #d97706;padding:8px 12px;background:#fffbeb;border-radius:0 6px 6px 0}
.guide-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.guide-card{border:1px solid #dce4ee;border-radius:12px;padding:18px;text-decoration:none;color:inherit;background:#fff;display:flex;flex-direction:column;gap:8px;min-width:0;transition:transform .15s,border-color .15s}
.guide-card:hover{transform:translateY(-2px);border-color:#0f6cbd}
.guide-card strong{font-size:16px}.guide-card p{font-size:13px;color:#64748b;line-height:1.5;margin:0;flex:1}.guide-card code{font-size:11px;white-space:normal;overflow-wrap:anywhere;background:#f1f5f9;padding:8px;border-radius:6px}.guide-card span{font-size:12px;color:#0f6cbd;font-weight:650}
@media(max-width:900px){.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.builder-grid,.guide-grid{grid-template-columns:1fr}.builder-wide{grid-column:auto}.tool-panel{padding:16px}}
