*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fafafb;color:#2d2735;font:16px/1.65 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:#6b30b3}
:focus-visible{outline:3px solid #a26af1;outline-offset:3px}
[hidden]{display:none!important}
.wrap{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.skip-link{position:absolute;left:-9999px;top:10px;z-index:20;background:#fff;padding:10px 16px}
.skip-link:focus{left:10px}
.site-header{background:#fff;border-bottom:1px solid #e6e0ed}
.header-inner,.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.header-inner{min-height:72px}
.brand{text-decoration:none;color:#2d2735;display:inline-flex;align-items:center;gap:11px;font-size:18px;letter-spacing:-.03em}
.brand em,.site-footer em{color:#6b30b3;font-style:normal}
.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#6b30b3;color:#fff;font-weight:800}
.site-header nav,.site-footer nav{display:flex;flex-wrap:wrap;gap:22px}
.site-header nav a,.site-footer nav a{text-decoration:none;color:#665f70;font-size:14px}
.site-header nav a:hover,.site-footer nav a:hover{text-decoration:underline;color:#6b30b3}
.breadcrumb{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#665f70;font-size:13px;margin:26px 0 24px}
.breadcrumb a{text-decoration:none;color:#665f70}.breadcrumb strong{color:#2d2735}
.hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(290px,.8fr);gap:44px;align-items:center;padding:18px 0 38px}
.eyebrow{font-size:11px;font-weight:850;letter-spacing:.19em;text-transform:uppercase;color:#6b30b3;margin:0 0 12px}
.hero h1{font-size:clamp(38px,5vw,62px);line-height:1.11;letter-spacing:-.045em;margin:0 0 20px}
.hero h1 span{color:#6b30b3}
.hero-copy>p:not(.eyebrow){max-width:700px;color:#665f70;font-size:18px;margin:0 0 22px}
.hero-points{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:26px}.hero-points span,.chip,.format-chip{font-size:12px;font-weight:750;border-radius:99px;padding:6px 12px;background:#f3edfa;color:#6b30b3}
.hero-link{display:inline-flex;align-items:center;gap:10px;color:#6b30b3;text-decoration:none;font-weight:750}
.hero-card{background:#fff;border:1px solid #e4daee;box-shadow:0 28px 70px #4e30621a;border-radius:23px;padding:30px;transform:rotate(2deg)}
.card-top{display:flex;justify-content:space-between;color:#6b30b3;font-size:11px;font-weight:850;letter-spacing:.13em;margin-bottom:30px}
.fake-title,.fake-line{border-radius:99px;background:#bba8d9}.fake-title{width:70%;height:20px;background:#6b30b3;margin-bottom:29px}.fake-line{height:11px;margin-bottom:13px}.fake-line.one{width:100%}.fake-line.two{width:94%}.fake-line.three{width:88%}.fake-line.four{width:65%}.card-tag{display:block;color:#6b30b3;margin-top:30px;font-size:13px}
.trust-strip{display:flex;gap:24px;flex-wrap:wrap;padding:16px 20px;background:#f3edfa;border:1px solid #e6ddf1;border-radius:14px;color:#533087;font-weight:650;font-size:13px;margin-bottom:34px}
.workspace,.content-section{background:#fff;border:1px solid #e6e0ed;border-radius:20px;box-shadow:0 12px 34px #2d273508}
.workspace{padding:30px}
.workspace-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e6e0ed;padding-bottom:22px}
.workspace-head h2,.content-section h2{font-size:clamp(25px,3vw,34px);letter-spacing:-.035em;line-height:1.2;margin:0 0 8px}
.workspace-head p:last-child{color:#665f70;margin:0}
.tool-grid{display:grid;grid-template-columns:minmax(290px,410px) minmax(0,1fr);gap:24px;padding-top:24px}
.controls{background:#fbf9fd;border:1px solid #e9e1f1;border-radius:17px;padding:22px;min-width:0}
.field{margin:0 0 21px;border:0;padding:0;min-width:0}
.field>label,.field legend{display:block;color:#2d2735;font-weight:750;font-size:14px;margin:0 0 9px}
.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#eee8f3;padding:4px;border-radius:11px}
.segmented label{position:relative;cursor:pointer;min-width:0}.segmented input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}.segmented span{display:block;text-align:center;border-radius:8px;padding:9px 4px;font-size:13px;font-weight:700;color:#665f70}
.segmented input:checked+span{background:#fff;color:#6b30b3;box-shadow:0 2px 7px #47245e1b}
.segmented input:focus-visible+span{outline:3px solid #a26af1}
.number-control{display:grid;grid-template-columns:48px 1fr 48px;gap:8px}
.number-control button{border:1px solid #d9cce8;background:#fff;border-radius:10px;color:#6b30b3;font-size:22px;line-height:1;min-height:46px}
.number-control button:hover{background:#f3edfa}
.number-control input,.field select{width:100%;min-height:46px;border:1px solid #d9cce8;border-radius:10px;background:#fff;color:#2d2735;padding:9px 12px}
.number-control input{text-align:center;font-weight:750}
.number-control input[aria-invalid=true]{border-color:#bb3535}
.hint{font-size:12px;color:#665f70;margin:6px 0 0}.field-error{font-size:13px;color:#a32727;margin:4px 0 0;min-height:0}
.option-group{display:grid;gap:8px;margin-bottom:22px}
.check-row{display:flex;gap:11px;padding:11px 12px;background:#fff;border:1px solid #e6e0ed;border-radius:11px;cursor:pointer}
.check-row input{accent-color:#6b30b3;width:18px;height:18px;flex:none;margin:2px 0 0}
.check-row strong,.check-row small{display:block;line-height:1.4}.check-row strong{font-size:13px}.check-row small{font-size:12px;color:#665f70;margin-top:3px}
.form-actions,.result-actions{display:flex;flex-wrap:wrap;gap:9px}
.button{border-radius:10px;border:1px solid transparent;min-height:46px;padding:10px 16px;font-weight:750;font-size:13px;transition:background .15s,transform .15s}
.button:hover:not(:disabled){transform:translateY(-1px)}
.button.primary{background:#6b30b3;color:white;flex:1}
.button.primary:hover{background:#54258f}.button.secondary{background:#f3edfa;color:#6b30b3;border-color:#e2d5f0}.button.subtle{background:#fff;color:#6b30b3;border-color:#d9cce8}
.button:disabled{opacity:.48;cursor:not-allowed}
.privacy-note{font-size:12px;line-height:1.5;color:#665f70;margin:20px 0 0}
.result-side{min-width:0;background:#fff;border:1px solid #e6e0ed;border-radius:17px;padding:22px;display:flex;flex-direction:column}
.result-head{display:flex;justify-content:space-between;align-items:start;gap:14px;border-bottom:1px solid #e6e0ed;padding-bottom:13px}
.result-head h3{font-size:23px;letter-spacing:-.03em;margin:0}.result-head .eyebrow{margin-bottom:2px}
.empty-state{min-height:350px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:#665f70}
.empty-state strong{color:#2d2735;font-size:17px}.empty-state p{max-width:300px;margin:6px auto 0;font-size:14px}
.empty-icon{width:58px;height:58px;border-radius:16px;background:#f3edfa;color:#6b30b3;display:grid;place-items:center;font-size:32px;margin-bottom:16px}
#result-panel{padding-top:15px}
#output{display:block;width:100%;height:315px;max-height:55vh;resize:vertical;overflow:auto;white-space:pre-wrap;border:1px solid #e2d8ed;border-radius:12px;background:#fcfbfe;color:#2d2735;padding:17px;line-height:1.65;font-size:14px}
#output.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px}
.stats{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 19px}.stats span{display:inline-block;border:1px solid #e5dcee;border-radius:20px;padding:5px 9px;background:#faf7fd;color:#59436e;font-size:11px;font-weight:700}
.result-actions{border-top:1px solid #e6e0ed;padding-top:17px;margin-top:auto}.status{font-size:12px;min-height:20px;color:#665f70;margin:12px 0 0}.status[data-tone=error]{color:#a32727}.status[data-tone=success]{color:#247a4e}
.ad-space{min-height:90px;margin:25px 0;display:grid;place-items:center;border:1px dashed #e6e0ed;border-radius:12px;color:#665f70;background:#fff;font-size:12px}
.content-section{padding:32px;margin:24px 0}.content-section>p:not(.eyebrow),.content-section>h3{max-width:850px}.content-section>p:not(.eyebrow){color:#665f70}.content-section h3{font-size:18px;margin:22px 0 8px}
.guide-grid,.insight-grid,.related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:22px}.guide-grid article,.insight-grid article{border:1px solid #e6e0ed;background:#fcfafe;border-radius:13px;padding:18px}.guide-grid article span{color:#6b30b3;font-weight:850;font-size:12px}.guide-grid h3,.insight-grid h3{font-size:16px;margin:10px 0 6px}.guide-grid p,.insight-grid p{font-size:13px;color:#665f70;margin:0}.insight-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.faq-list{border-top:1px solid #e6e0ed;margin-top:19px}.faq-list details{border-bottom:1px solid #e6e0ed;padding:14px 2px}.faq-list summary{cursor:pointer;font-weight:750}.faq-list p{color:#665f70;margin:9px 0 3px}
.related-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.related-grid a{text-decoration:none;border:1px solid #e6e0ed;border-radius:12px;padding:15px;color:#2d2735}.related-grid a:hover{border-color:#6b30b3;background:#fcfafe}.related-grid strong,.related-grid span{display:block}.related-grid span{font-size:12px;color:#665f70;margin-top:4px}
.site-footer{border-top:1px solid #e6e0ed;background:#fff;padding:30px 0;margin-top:34px}.site-footer p{color:#665f70;font-size:13px;margin:4px 0 0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.nojs{padding:14px;background:#fff3df;color:#684313;border-radius:10px}
@media(max-width:900px){.hero{grid-template-columns:1fr}.hero-card{display:none}.tool-grid{grid-template-columns:1fr}.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.wrap{width:min(100% - 28px,1180px)}.header-inner{min-height:65px}.site-header nav{gap:11px}.site-header nav a{font-size:12px}.hero{padding:7px 0 27px}.hero h1{font-size:37px}.hero-copy>p:not(.eyebrow){font-size:16px}.trust-strip{gap:8px 15px}.workspace{padding:17px}.workspace-head{display:block}.workspace-head .chip{display:inline-block;margin-top:13px}.controls,.result-side{padding:16px}.tool-grid{gap:14px;padding-top:16px}.content-section{padding:21px}.guide-grid,.insight-grid{grid-template-columns:1fr}.form-actions .button{flex:1}.result-actions .button{flex:1 1 120px}.footer-inner{align-items:start;flex-direction:column}.breadcrumb{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}}
