/* v18.0: shared reading rhythm and bidirectional trading workspace. */
:root { --wrap: 1280px; --r-lg: 18px; --muted: #a5b7b2; }
body { background-image: radial-gradient(ellipse at 85% 0%,rgba(204,228,100,.07),transparent 36%); }
h1,h2,h3,p { overflow-wrap: break-word; }
p { text-wrap: pretty; }
.hero { padding-block: clamp(2.5rem,6vw,5rem) 2.5rem; }
.hero-grid { align-items: start; gap: clamp(1.5rem,4vw,4rem); }
.hero-grid h1 { font-size: clamp(2.4rem,5vw,4.4rem); max-width: 13ch; line-height: 1.06; margin-block: 1rem 1.25rem; }
.hero-sub { max-width: 54ch; font-size: 1.125rem; line-height: 1.8; }
.hero-cta { flex-wrap: wrap; margin-block: 1.75rem; }
.hero .stats { margin-block-start: 2.5rem; gap: .85rem; }
.storyband { margin-block: 2rem; padding: clamp(1.3rem,3vw,2.5rem); border: 1px solid var(--line); border-inline-start: 3px solid var(--lime); }
.storyband-in { max-width: 80ch; text-align: start; margin-inline: 0; }
.storyband h2 { font-size: 1.5rem; }
.storyband p { font-size: 1rem; line-height: 1.85; }
.sec { padding-block: 2.75rem; }
.sec-h { max-width: 76ch; }
.sec-h h1,.sec-h h2 { margin-block-end: .65rem; }
.panel-h>div,.card-top>div,.topbar-right,.botstate-l { min-width: 0; }
.panel-p { max-width: 85ch; font-size: 1rem; line-height: 1.85; text-align: start; }
.fieldnote,.panel-note,.botfacts span,.botstate-k,.bot_c_note { font-size: .875rem; line-height: 1.65; }
.field label { font-size: .9375rem; line-height: 1.5; }
.field label.chk,.chk { display: flex; align-items: flex-start; gap: .7rem; text-align: start; }
.field input[type=checkbox],.field input[type=radio],.chk input { width: 1.1rem; height: 1.1rem; min-height: 0; flex: 0 0 1.1rem; margin-block-start: .25rem; }
.simgrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem 1.5rem; align-items: start; }
.simgrid .field { min-width: 0; margin: 0; }
.secretrow { align-items: stretch; }
.secretrow input { min-width: 0; width: 100%; }
.secretrow .eye { flex: 0 0 44px; }
.budgetmode .chk { padding-block: .4rem; }
.botswitches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-block: 1.5rem 1rem; }
.botcard { padding: clamp(1rem,2.5vw,1.75rem); border-radius: 18px; }
.botcard>h3 { margin-block-end: 1.1rem; }
.botfacts { gap: 1rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.botfacts div { padding: .9rem; border: 1px solid var(--line); border-radius: 10px; }
.botsteps li { padding-inline-start: 3rem; text-align: start; }
.botsteps li::before { inset-inline-start: 0; }
.botsteps li b { display: block; margin-block-end: .25rem; }
.botpicks { grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: .65rem; }
.botpick { min-width: 0; align-items: center; }
.botpick-sym { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.botsplit { flex-wrap: wrap; gap: .65rem 1rem; text-align: start; }
.inline-form,.deploy-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.tablewrap table th:not(.num),.tablewrap table td:not(.num) { text-align: start; }
.tablewrap table th,.tablewrap table td { vertical-align: top; }
.tablewrap td.num,.tablewrap th.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mono,.price,.stat-v,.kpi-v,.copyrow input { unicode-bidi: isolate; }
.copyrow { min-width: 0; }
.copyrow input { min-width: 0; direction: ltr; text-align: start; }
.steps,.plans { align-items: stretch; }
.step,.plan { display: flex; flex-direction: column; text-align: start; }
.step p { line-height: 1.8; }
.plan .btn { margin-block-start: auto; }
.plan ul { padding-inline-start: 1.2rem; }
.pred-x,.cardnotes,.notice { text-align: start; line-height: 1.7; }
.deploy-console { padding: clamp(1.1rem,3vw,2rem); margin-block-end: 1.5rem; border: 1px solid #53683c; border-radius: 18px; background: linear-gradient(120deg,#202c22,var(--bg-1) 65%); }
.deploy-console-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.deploy-console h2 { margin-block: .4rem .8rem; font-size: clamp(1.5rem,3vw,2.1rem); }
.deploy-console>p { max-width: 86ch; color: var(--txt-2); }
.deploy-examples { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); margin-block: 1.4rem; }
.deploy-examples>div { background: var(--bg-1); padding: 1.1rem; min-width: 0; }
.deploy-examples span { display: block; color: var(--txt-2); font-size: .875rem; }
.deploy-examples b { display: block; text-align: start; font: 600 clamp(1.2rem,2vw,1.5rem)/1.6 var(--mono); color: var(--lime); margin-block: .5rem; }
.deploy-examples p { font-size: .9375rem; line-height: 1.65; margin: 0; color: var(--txt-2); }
.deploy-actions { margin-block-start: 1.4rem; }
.deploy-actions .fieldnote { flex: 1 1 15rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
[dir=rtl] .hero-grid h1 { max-width: 17ch; line-height: 1.3; letter-spacing: 0; }
[dir=rtl] .hero-sub,[dir=rtl] .panel-p { line-height: 1.95; }
[dir=rtl] .stamp { direction: rtl; unicode-bidi: plaintext; }
[dir=rtl] .deploy-examples b { text-align: right; }
@media(max-width:1000px) { .nav a { padding-inline: .4rem; } .topbar-in { gap: .7rem; } }
@media(max-width:760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid h1 { max-width: 18ch; }
  .simgrid,.botswitches,.deploy-examples { grid-template-columns: 1fr; }
  .deploy-actions .btn { flex: 1 1 100%; }
  .botstate { align-items: flex-start; gap: .8rem; flex-wrap: wrap; }
  .botfacts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sec { padding-block: 2rem; }
  .plan { min-width: 0; }
}
