:root {
  --navy:#101d32; --navy-2:#172942; --teal:#087f78; --teal-soft:#e7f6f3;
  --blue:#2457a6; --gold:#d69a3d; --red:#b42318; --text:#223248; --muted:#66768b;
  --line:#e2e9ef; --panel:#fff; --surface:#f5f8fa; --shadow:0 14px 38px rgba(16,29,50,.055);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--surface);color:var(--text);font-family:Vazirmatn,Tahoma,sans-serif;font-size:14px;line-height:1.8}
button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid rgba(57,198,179,.65);outline-offset:3px}
.topbar{min-height:78px;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px max(28px,calc((100vw - 1240px)/2));background:var(--navy);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.brand{display:inline-flex;align-items:center;gap:11px;min-width:0}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(57,198,179,.48);color:#39c6b3;border-radius:11px;font-size:19px;font-weight:900}.brand-copy{display:flex;flex-direction:column;line-height:1.35}.brand-copy strong{color:#fff;font-size:16px;font-weight:900}.brand-copy small{color:#a7b7c9;font-size:9.5px;margin-top:3px}
.topbar-side{display:flex;align-items:center;gap:25px}.demo-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 11px;border:1px solid rgba(57,198,179,.2);border-radius:100px;background:rgba(57,198,179,.08);color:#b7f0e8;font-size:10px;font-weight:700;white-space:nowrap}.status-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#39c6b3}.back-link{color:#c3d0df;font-size:11px;white-space:nowrap}.back-link:hover{color:#39c6b3}
.page-shell{width:min(1240px,calc(100% - 44px));margin:0 auto;padding:40px 0 70px}.intro-block{max-width:900px;padding:16px 0 26px}.eyebrow{display:inline-flex;align-items:center;gap:9px;color:var(--teal);font-size:10px;font-weight:900;margin-bottom:12px}.eyebrow-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#39c6b3}.intro-block h1{max-width:850px;color:var(--navy);font-size:clamp(2rem,4vw,3.1rem);font-weight:900;line-height:1.45;margin:0 0 12px;letter-spacing:-.7px}.intro-block h1 span{color:var(--teal)}.intro-text{max-width:820px;color:#536377;font-size:13px;line-height:2.15;margin:0}.feature-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:19px}.feature-pills span{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;color:#425269;background:#fff;border:1px solid var(--line);border-radius:100px;font-size:10px}.feature-pills b{color:var(--teal);font-size:12px}
.panel{border:1px solid #e5ebf0;border-radius:19px;background:var(--panel);box-shadow:var(--shadow)}.control-panel{padding:25px 26px 20px;margin-top:12px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.panel-heading h2{margin:0;color:var(--navy);font-size:19px;line-height:1.55}.panel-heading p{margin:5px 0 0;color:var(--muted);font-size:11px}.small-eyebrow{margin-bottom:5px;font-size:9px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:9px 16px;border-radius:11px;border:1px solid transparent;font-size:11px;font-weight:850;cursor:pointer}.button-light{color:#4d5e71;background:#fff;border-color:#dce5eb}.button-light:hover{background:#f5f8fa;border-color:#bbcbd7}
.settings-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:20px}.setting-card{display:flex;flex-direction:column;gap:3px;min-width:0;padding:12px;border:1px solid #e5ebf0;border-radius:12px;background:#fbfcfd}.setting-card>span{color:var(--navy);font-size:10px;font-weight:850}.setting-card small{min-height:34px;color:var(--muted);font-size:9px;line-height:1.7}.setting-card input,.period-table input{width:100%;height:37px;border:1px solid #dce5eb;border-radius:8px;text-align:center;color:var(--navy);background:#fff;font-size:12px;font-weight:800;outline:none}.setting-card input:focus,.period-table input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(8,127,120,.1)}input[aria-invalid="true"]{border-color:#c94d4d!important;background:#fff6f6!important}
.table-wrap{overflow-x:auto;border:1px solid #e5ebf0;border-radius:13px}.period-table,.output-table{width:100%;min-width:510px;border-collapse:separate;border-spacing:0;font-size:11px}.period-table th,.output-table th{padding:11px 10px;color:#56667a;background:#f6f9fb;font-size:10px;font-weight:850;white-space:nowrap;border-bottom:1px solid var(--line);text-align:center}.period-table th[scope="row"]{text-align:right;padding-right:18px;color:var(--navy)}.period-table td,.output-table td{padding:7px 10px;text-align:center;border-bottom:1px solid #edf1f4;font-variant-numeric:tabular-nums}.period-table tr:last-child td,.period-table tr:last-child th[scope="row"],.output-table tr:last-child td{border-bottom:0}.period-table input{max-width:150px;height:34px;background:#fbfcfd}.table-help{margin:11px 0 0;color:var(--muted);font-size:10px;line-height:1.9}
.solve-status{display:flex;align-items:center;gap:9px;margin-top:16px;padding:10px 12px;border-radius:10px;color:#536377;background:#f6f9fb;font-size:11px}.solve-status.is-success{color:#14695f;background:#edf8f5}.solve-status.is-error{color:#9b3030;background:#fff3f3}.solve-status.is-pending{color:#536377;background:#f6f9fb}.status-mark{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:#8b9aad}.is-success .status-mark{background:#168f87}.is-error .status-mark{background:#c94d4d}
.results-section{margin-top:33px}.section-heading{max-width:820px;margin-bottom:20px}.section-heading h2{margin:0 0 8px;color:var(--navy);font-size:clamp(1.45rem,2.4vw,2rem);line-height:1.55}.section-heading p{margin:0;color:var(--muted);font-size:12px;line-height:2}
.comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.comparison-card{padding:23px;border:1px solid var(--line);border-radius:17px;background:#fff;min-width:0}.comparison-card.is-best{border-color:rgba(8,127,120,.4);box-shadow:0 10px 28px rgba(8,127,120,.07)}.comparison-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:18px}.comparison-top h3{margin:0;color:var(--navy);font-size:15px}.comparison-top p{margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.9}.method-pill{display:inline-flex;padding:5px 8px;white-space:nowrap;border-radius:7px;color:#5b6879;background:#f1f5f7;font-size:9px;font-weight:800}.is-best .method-pill{color:#0d756d;background:var(--teal-soft)}.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{border-radius:11px;background:#f6f9fb;padding:12px 13px;min-width:0}.metric small{display:block;margin-bottom:5px;color:var(--muted);font-size:9px}.metric strong{display:block;color:var(--navy);font-size:21px;font-weight:900;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metric span{color:var(--muted);font-size:9px}.comparison-foot{padding-top:13px;margin-top:13px;border-top:1px solid #e9eef2;color:#69798b;font-size:10px;line-height:1.9}.card-warning{margin:13px 0 0;padding:10px 12px;border-radius:9px;background:#fff5f2;color:#9a3412;font-size:10px;line-height:1.9}.card-warning[hidden]{display:none}.comparison-note{margin-top:15px;padding:14px 16px;border-right:3px solid var(--teal);border-radius:0 10px 10px 0;background:#edf8f5;color:#2d635d;font-size:11px;line-height:1.9}.comparison-note.is-warning{border-color:#d97706;background:#fff7ed;color:#92400e}
.timeline-section{margin-top:31px}.timeline-panel{padding:24px}.timeline-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.timeline-header h2{margin:0 0 5px;color:var(--navy);font-size:18px}.timeline-header p{margin:0;color:var(--muted);font-size:10px;line-height:1.9}.plan-switch{display:inline-flex;flex-shrink:0;gap:4px;padding:4px;background:#f0f4f7;border-radius:11px}.plan-switch button{border:0;padding:8px 11px;border-radius:8px;background:transparent;color:#5b6a7c;font-size:10px;font-weight:850;cursor:pointer}.plan-switch button.is-selected{background:var(--navy);color:#fff;box-shadow:0 3px 8px rgba(16,29,50,.13)}.chart-legend{display:flex;flex-wrap:wrap;align-items:center;gap:9px 20px;margin-bottom:15px;color:#425269;font-size:10px}.chart-legend span{display:inline-flex;align-items:center;gap:7px}.legend-swatch{display:inline-block;width:13px;height:13px;border-radius:4px;border:1px solid rgba(16,29,50,.16)}.stock-swatch{background:#087f78}.order-swatch{background:#2457a6}.chart-scroll{overflow-x:auto;padding:2px 0 8px}.inventory-chart{display:grid;grid-template-columns:repeat(6,minmax(70px,1fr));gap:12px;min-width:520px}.inventory-period{min-width:0;text-align:center}.inventory-period-name{color:var(--navy);font-size:10px;font-weight:850}.inventory-period-bars{height:154px;display:flex;justify-content:center;align-items:stretch;gap:8px;padding:7px 4px 0;border-bottom:1px solid #dfe7ed;background:repeating-linear-gradient(to top,#f5f8fa 0,#f5f8fa calc(25% - 1px),#e3eaf0 calc(25% - 1px),#e3eaf0 25%);border-radius:8px 8px 0 0}.inventory-bar-group{display:grid;grid-template-rows:14px minmax(0,1fr) 16px;align-items:stretch;gap:4px;flex:0 1 32px;min-width:0;height:100%}.inventory-bar-value{color:#596b80;font-size:9px;font-variant-numeric:tabular-nums;line-height:1}.inventory-bar-area{display:flex;align-items:flex-end;justify-content:center;height:100%;min-height:0}.inventory-bar{display:block;width:min(26px,100%);min-height:0;border-radius:5px 5px 2px 2px}.inventory-bar.stock{background:#087f78}.inventory-bar.order{background:#2457a6}.inventory-bar-label{margin-top:0;color:var(--muted);font-size:8px;line-height:1.5}.output-table-wrap{margin-top:19px}.output-table{min-width:700px}.output-table td{color:#3f4f64}.output-table td:first-child{font-weight:850;color:var(--navy)}.output-table tr:nth-child(even) td{background:#fbfcfd}.empty-state{padding:24px 14px;border:1px dashed #d1dce4;border-radius:12px;text-align:center;color:var(--muted);font-size:11px;line-height:2;background:#fafcfd}
.method-notes{margin-top:28px;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.method-notes summary{padding:17px 20px;color:var(--navy);font-weight:850;font-size:12px;cursor:pointer}.method-notes[open] summary{border-bottom:1px solid var(--line)}.method-notes-content{padding:18px 22px 22px;color:#536377;font-size:11px;line-height:2}.method-notes-content p{margin:0 0 10px}.demo-footer{margin-top:34px;padding-top:17px;display:flex;justify-content:space-between;gap:16px;border-top:1px solid #dfe7ed;color:var(--muted);font-size:10px}.demo-footer a{color:var(--teal);font-weight:850}
@media(max-width:1050px){.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.comparison-grid{grid-template-columns:1fr}}
@media(max-width:720px){.topbar{padding:13px 17px;align-items:flex-start}.topbar-side{align-items:flex-end;flex-direction:column;gap:7px}.demo-badge{font-size:9px;padding:5px 8px}.page-shell{width:calc(100% - 28px);padding-top:24px}.intro-block{padding:8px 0 19px}.intro-block h1{font-size:clamp(1.8rem,8vw,2.5rem)}.intro-text{font-size:12px}.control-panel{padding:18px 13px 14px}.panel-heading{align-items:flex-start}.panel-heading h2{font-size:16px}.panel-heading .button{white-space:nowrap;padding:8px 10px;min-height:37px;font-size:9px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.setting-card{padding:10px}.setting-card small{min-height:31px}.comparison-card{padding:16px}.metric{padding:10px}.metric strong{font-size:18px}.timeline-panel{padding:17px 13px}.timeline-header{flex-direction:column}.plan-switch{width:100%}.plan-switch button{flex:1;padding:8px 5px;font-size:9px}.chart-legend{font-size:9px;gap:8px 12px}.method-notes-content{padding:15px}.demo-footer{flex-direction:column}}
@media(max-width:390px){.settings-grid{grid-template-columns:1fr}.setting-card small{min-height:0}.panel-heading{gap:8px}.panel-heading h2{font-size:15px}.metric-grid{gap:7px}.metric strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important}}

/* Wordmark/tagline proportion refinement. */
.topbar .brand{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px}
.topbar .brand-logo{display:block;width:150px;height:auto}
.topbar .brand-tagline{display:block;color:#a7b7c9;font-size:11px;font-weight:650;line-height:1.5;white-space:nowrap;text-align:right}
.topbar .brand-tagline strong{color:#39c6b3;font-weight:850}
@media(max-width:720px){.topbar .brand-logo{width:128px}.topbar .brand-tagline{font-size:10px}}


/* Center the tagline on the visible wordmark instead of aligning both to the right. */
.topbar .brand{align-items:center;width:max-content}
.topbar .brand-tagline{width:max-content;text-align:center}


/* Keep the dark wordmark visible on the navy demo header. */
.topbar .brand-logo{filter:brightness(0) invert(1)}
