/* Inner pages for Automated Trade Bots: recolours the CAD page pieces (hero art, figures, callout)
   and adds the calculator, key facts and table styles. Loaded after site.css. */
:root { --risk: #d97706; --risk-wash: #fffbeb; --risk-line: #fde68a; --navy: #0b1a2b; }
h1, h2 { text-wrap: balance; }
.hero-art { box-shadow: 0 30px 80px rgba(11, 26, 43, .30), 0 0 0 1px rgba(5, 150, 105, .25); background: var(--navy); }
.figure-block figure > svg { box-shadow: 0 20px 60px rgba(11, 26, 43, .22), 0 0 0 1px rgba(5, 150, 105, .22); }
.callout { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #a7f3d0; }
.page-hero-slim { padding: 120px 0 24px; }
.page-hero-slim .hero-art { margin-top: 32px; }
.crumbs { margin: 0 auto 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.stamp { margin-top: 14px; font-size: 13px; color: var(--muted); }

.prose { max-width: 768px; margin: 0 auto; padding: 0 24px; }
.prose h2 { font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 16px; }
.prose h3 { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--ink); margin: 28px 0 8px; }
.prose p { color: var(--body); line-height: 1.7; margin: 0 0 16px; }
.prose ul.dots { display: grid; gap: 10px; margin: 0 0 16px; }
.prose ul.dots li { position: relative; padding-left: 26px; color: var(--body); line-height: 1.6; }
.prose ul.dots li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-light), var(--brand)); }
.prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.formula { margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: var(--wash); border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: var(--ink); overflow-x: auto; }

.keyfacts { max-width: 768px; margin: 0 auto 8px; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(11, 26, 43, .06); }
.keyfacts h2 { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-dark); margin: 0 0 10px; }
.keyfacts ul { display: grid; gap: 8px; }
.keyfacts li { position: relative; padding-left: 22px; line-height: 1.55; color: var(--ink-2); }
.keyfacts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.keyfacts-wrap { padding: 0 24px; }

.warn { max-width: 768px; margin: 0 auto 16px; padding: 14px 18px; border-radius: 12px; background: var(--risk-wash); border: 1px solid var(--risk-line); color: #92400e; font-size: 14px; line-height: 1.6; }

.calc { max-width: 1040px; margin: 0 auto; padding: 0 24px; display: grid; gap: 24px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; gap: 32px; } }
.calc-panel { padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(11, 26, 43, .07); }
.calc-panel h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 16px; }
.calc-fields { display: grid; gap: 14px; }
.calc-fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.calc-fields input { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; width: 100%; }
.calc-fields input:focus { outline: 2px solid var(--brand-light); outline-offset: 1px; border-color: var(--brand); }
.calc-fields small { font-weight: 400; color: var(--muted); }
.calc-two { display: grid; gap: 14px; }
@media (min-width: 520px) { .calc-two { grid-template-columns: 1fr 1fr; } }
.tiles { display: grid; gap: 12px; }
.tile { padding: 14px 16px; border-radius: 12px; background: var(--wash); border: 1px solid var(--line); }
.tile .k { font-size: 13px; color: var(--muted); }
.tile .v { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.tile.good .v { color: var(--brand-dark); }
.tile.bad .v { color: #b45309; }
.tile .n { font-size: 13px; color: var(--body); margin-top: 2px; }
.verdict { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-weight: 600; line-height: 1.5; }
.verdict.good { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.verdict.bad { background: var(--risk-wash); border: 1px solid var(--risk-line); color: #92400e; }
.table-wrap { max-width: 900px; margin: 0 auto 8px; padding: 0 24px; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-weight: 700; color: var(--ink); background: var(--wash); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.hot td { background: var(--risk-wash); color: #92400e; font-weight: 600; }
.related { max-width: 900px; margin: 0 auto; padding: 0 24px; display: grid; gap: 14px; }
@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a, .related span.soon { display: block; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.related a:hover { border-color: var(--brand); }
.related .t { font-weight: 700; color: var(--ink); display: block; margin-bottom: 4px; }
.related .d { font-size: 14px; color: var(--body); line-height: 1.5; }
.related span.soon { border-style: dashed; background: rgba(244, 248, 247, .7); }
.related span.soon .t { color: var(--muted); }
.related .tag { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #475569; }
.section-tight { padding: 56px 0; }
.start-form { display: grid; gap: 12px; justify-items: center; margin: 0 auto 16px; max-width: 520px; }
.start-form input { width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; background: #f8fafc; color: var(--muted); }
.start-form .btn[disabled] { opacity: .65; cursor: not-allowed; }
.risk-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 9999px; border: 1px solid var(--risk-line); background: var(--risk-wash); color: #92400e; font-size: 13px; font-weight: 600; }
.legal-note { max-width: 760px; margin: 0 auto; padding: 0 24px; font-size: 12px; line-height: 1.6; color: var(--muted); text-align: center; }

/* the shared stylesheet already has a blog .prose; keep these pages' own spacing */
.prose { padding: 0 24px; font-size: 16px; line-height: 1.7; color: var(--body); }
.prose > * + * { margin-top: 0; }
.prose h2 { border: 0; padding: 0; }
.prose h2 + *, .prose h3 + * { margin-top: 0; }
.prose ul.dots { list-style: none; padding-left: 0; }
.prose strong { color: var(--ink); }

/* calculator results with a table must scroll inside the panel, not stretch the page */
.calc > * { min-width: 0; }
.calc-panel { min-width: 0; max-width: 100%; }
.calc-panel .table-wrap { overflow-x: auto; max-width: 100%; }
.calc-grid { display: grid; gap: 14px; }
@media (min-width: 520px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.tile .v.long { font-size: 17px; line-height: 1.4; font-weight: 700; letter-spacing: 0; }
.calc-panel table.data { min-width: 0; }
.calc-panel table.data th, .calc-panel table.data td { padding: 8px 10px; vertical-align: top; }
