:root{
  --bg:#F7F4EC;
  --dot:#DAD5C6;
  --ink:#1B1A17;
  --dim:#8A8678;
  --line:#E7E2D4;
  --card:#FFFFFF;
  --pill:#1B1A17;
  --accent:#3B6FE0;
  --accent-soft:#EAF0FD;
  --radius:18px;
}
*{box-sizing:border-box;}
html,body{margin:0;background:var(--bg);color:var(--ink);}
body{
  font-family:"Inter","SF Pro Text",ui-sans-serif,-apple-system,Segoe UI,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--accent);text-decoration:none;}
a:focus-visible, button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px;}

.shell{position:relative;z-index:1;min-height:100vh;}

.main{padding:0 0 90px;}
.topbar{
  display:flex;align-items:center;gap:8px;padding:22px 32px 14px;
  font-size:19px;font-weight:600;
}
.topbar a.brand{color:var(--ink);}
.topbar .more{color:var(--dim);margin-left:4px;font-weight:400;}
.topbar nav{margin-left:14px;display:flex;gap:16px;}
.topbar nav a{color:var(--dim);font-size:14px;font-weight:500;}
.topbar nav a:hover{color:var(--ink);}
.topbar .gh-link{margin-left:auto;color:var(--ink);display:inline-flex;align-items:center;padding:6px;border-radius:8px;}
.topbar .gh-link:hover{background:rgba(0,0,0,0.06);}
.topbar .gh-link svg{width:22px;height:22px;display:block;}

.content{max-width:880px;margin:0 auto;padding:18px 32px 0;}

.hero{margin-bottom:30px;}
.hero h1{font-size:clamp(26px,3.6vw,38px);line-height:1.15;margin:0 0 12px;font-weight:650;letter-spacing:-0.01em;}
.hero .lede{color:var(--dim);font-size:16px;max-width:560px;margin:0 0 22px;}

.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:40px;}
.badge-link{display:inline-flex;}
.badge-link img{display:block;}
.btn{
  font-family:inherit;font-size:14px;font-weight:600;padding:11px 18px;border-radius:11px;cursor:pointer;border:1px solid var(--line);
  background:#fff;color:var(--ink);display:inline-flex;align-items:center;gap:6px;
}
.btn.primary{background:var(--ink);color:#fff;border-color:var(--ink);}
.btn:hover{border-color:#c9c3b1;}

.device-row{display:flex;align-items:flex-end;gap:34px;flex-wrap:wrap;margin-bottom:26px;}
.device{display:flex;flex-direction:column;align-items:center;gap:8px;}
.device .caption{font-size:11px;color:var(--dim);font-weight:600;}

.mac-frame{width:250px;}
.mac-frame .screen-bezel{background:var(--ink);border-radius:11px 11px 0 0;padding:8px 8px 0;}
.mac-frame .screen{background:#fff;border-radius:5px 5px 0 0;padding:12px 13px;height:132px;overflow:hidden;}
.mac-frame .base{height:11px;background:var(--dot);border-radius:0 0 7px 7px;margin:0 -6px;}

.ipad-frame{background:var(--ink);border-radius:20px;padding:7px;}
.ipad-frame .screen{background:#fff;border-radius:12px;padding:12px 11px;width:135px;height:176px;overflow:hidden;}

.iphone-frame{background:var(--ink);border-radius:15px;padding:4px;}
.iphone-frame .screen{background:#fff;border-radius:12px;padding:7px 5px;width:50px;height:100px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;position:relative;}
.iphone-slit{position:absolute;top:5px;left:50%;transform:translateX(-50%);width:16px;height:3px;border-radius:2px;background:var(--ink);}

.note-title{font-size:11px;font-weight:650;color:var(--ink);margin-bottom:7px;}
.text-line{height:6px;background:var(--line);border-radius:3px;margin-bottom:6px;}

.notes-list-label{font-size:10px;font-weight:650;color:var(--dim);text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px;}
.note-row{border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:9px;}
.note-row:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0;}
.note-row .title{font-size:10.5px;font-weight:650;color:var(--ink);margin-bottom:5px;}
.note-row .line{height:5px;background:var(--line);border-radius:3px;}

.mini-pill{align-self:flex-end;max-width:92%;background:var(--pill);color:#fff;font-size:4px;line-height:1.3;padding:3.5px 4.5px;border-radius:5px;}
.mini-card{background:var(--card);border:1px solid var(--line);border-radius:4.5px;padding:3.5px 4px;}
.mini-card .line{height:2px;background:var(--line);border-radius:1px;margin-bottom:2px;}
.mini-card .line:last-child{margin-bottom:0;}

.convo{display:flex;flex-direction:column;gap:14px;margin-bottom:46px;}
.msg-user{align-self:flex-end;max-width:78%;}
.pill{
  background:var(--pill);color:#fff;padding:13px 20px;border-radius:22px;font-size:15px;line-height:1.4;
}
.msg-assistant{align-self:flex-start;max-width:86%;}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 22px;box-shadow:0 1px 2px rgba(0,0,0,0.03);
}
.card .src{color:var(--dim);font-size:13px;margin-bottom:8px;}
.card p{margin:0 0 4px;font-size:15px;line-height:1.55;}
.card b{font-weight:650;}
.card ul{margin:8px 0 0;padding-left:20px;font-size:15px;}
.card li{margin-bottom:4px;}
.readline{display:flex;align-items:center;gap:6px;color:var(--dim);font-size:12.5px;margin-top:4px;align-self:flex-start;}

.section-label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--dim);margin:0 0 14px;font-weight:600;}
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:14px;}
.section-head .section-label{margin-bottom:0;}
.section-head .see-all{font-size:13px;font-weight:600;}

.settings-card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:8px;margin-bottom:40px;
}
.setting-row{
  display:flex;align-items:center;gap:14px;padding:14px 14px;border-bottom:1px solid var(--line);
}
.setting-row:last-child{border-bottom:none;}
.setting-row .ic{font-size:17px;width:22px;text-align:center;}
.setting-row .label{font-weight:600;font-size:15px;flex:1;}
.setting-row .desc{color:var(--dim);font-size:13px;margin-top:2px;}
a.setting-row{text-decoration:none;color:inherit;}
a.setting-row:hover{background:rgba(0,0,0,0.02);}
.setting-row .chev{color:var(--dim);font-size:15px;}

.switch{width:42px;height:25px;border-radius:13px;background:#E3DECF;position:relative;flex-shrink:0;}
.switch.on{background:var(--accent);}
.switch .knob{position:absolute;top:2.5px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,0.2);}
.switch.on .knob{left:auto;right:3px;}

.outputs{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;margin-bottom:18px;
}
.outputs .head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;}
.outputs .head .t{font-weight:600;font-size:15px;}
.outputs .empty{color:var(--dim);font-size:13.5px;margin:6px 0 0;}
.outputs a.headlink{color:var(--ink);}

footer.page{max-width:880px;margin:36px auto 0;padding:18px 32px;color:var(--dim);font-size:12.5px;border-top:1px solid var(--line);}

/* Feature article pages */
.breadcrumb{color:var(--dim);font-size:13px;margin-bottom:18px;}
.breadcrumb a{color:var(--dim);}
.breadcrumb a:hover{color:var(--ink);}

.article-head{margin-bottom:28px;}
.article-head .ic{font-size:28px;display:block;margin-bottom:10px;}
.article-head h1{font-size:clamp(24px,3.2vw,32px);line-height:1.2;margin:0 0 10px;font-weight:650;letter-spacing:-0.01em;}
.article-head .summary{color:var(--dim);font-size:16px;max-width:560px;margin:0;}

.article-body{font-size:15.5px;line-height:1.7;max-width:640px;margin-bottom:40px;}
.article-body h2{font-size:19px;font-weight:650;margin:28px 0 10px;}
.article-body p{margin:0 0 14px;}
.article-body ul{margin:0 0 14px;padding-left:20px;}
.article-body li{margin-bottom:6px;}
.article-body code{background:var(--accent-soft);color:#2a4faa;padding:2px 6px;border-radius:6px;font-size:0.9em;}
.article-body img{display:block;max-width:100%;height:auto;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(0,0,0,0.03);margin:18px 0 22px;}
.article-body img.shot-phone{max-width:280px;margin-left:auto;margin-right:auto;}

.feature-nav{display:flex;justify-content:space-between;gap:12px;padding-top:20px;border-top:1px solid var(--line);}
.feature-nav a{font-size:14px;font-weight:600;color:var(--ink);}
.feature-nav a:hover{color:var(--accent);}
.feature-nav .dir{display:block;color:var(--dim);font-weight:400;font-size:12px;margin-bottom:2px;}
