/* Automated Trade Bots: the CAD buyer-guide layout (banner, intro with form card, strip, band, content column).
   Loaded after site.css and pages.css. Emerald and navy, the structure of customaidashboard.com's guide pages. */
:root { --atp-ink: #0b1a2b; --atp-body: #334155; --atp-line: #e2e8f0; --atp-em: #059669; --atp-em-dark: #047857; --atp-wash: #f0fdf4; }
.atp-page .nav { background: rgba(255, 255, 255, .97) !important; border-bottom-color: var(--atp-line) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .05) !important; }
.atp { max-width: 1080px; margin: 0 auto; padding: 96px 20px 8px; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--atp-ink); }
.atp-crumbs { margin: 0 0 14px; font-size: 13px; color: #64748b; }
.atp-crumbs a { color: #64748b; }
.atp-crumbs a:hover { color: var(--atp-em-dark); }
.atp-crumbs span { color: var(--atp-ink); font-weight: 600; }
.atp-banner { margin: 0 0 28px; }
.atp-banner svg { display: block; width: 100%; height: auto; border-radius: 14px; background: #071521; box-shadow: 0 18px 50px rgba(11, 26, 43, .22); }
.atp-banner figcaption { margin-top: 10px; text-align: center; font-size: 13px; font-style: italic; color: #64748b; }
.atp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.atp-pill { display: inline-block; padding: 5px 12px; border-radius: 6px; background: var(--atp-em-dark); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.atp-h1 { margin: 14px 0 18px; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; color: var(--atp-ink); }
.atp-answer { margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid var(--atp-em); border-radius: 0 12px 12px 0; background: var(--atp-wash); }
.atp-answer span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--atp-em-dark); }
.atp-answer p { margin: 0; font-size: 16.5px; line-height: 1.5; font-weight: 700; color: var(--atp-ink); }
.atp-lead { margin: 0 0 16px; font-size: 16.5px; line-height: 1.65; color: var(--atp-body); }
.atp-ticks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.atp-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--atp-body); }
.atp-ticks .icon, .atp-strip .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--atp-em); stroke-width: 3; }
.atp-form { position: sticky; top: 92px; padding: 22px; border: 2px solid var(--atp-em); border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(5, 150, 105, .14); }
.atp-form h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-weight: 800; text-align: center; color: var(--atp-ink); }
.atp-form-sub { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; text-align: center; color: #475569; }
.atp-form form { display: grid; gap: 12px; }
.atp-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: #334155; }
.atp-form input, .atp-form select, .atp-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-weight: 400; font-size: 14px; color: #64748b; background: #f8fafc; }
.atp-form textarea { resize: none; }
.atp-send { width: 100%; justify-content: center; border: 0; margin-top: 2px; }
.atp-send[disabled] { opacity: .6; cursor: not-allowed; }
.atp-fine { margin: 12px 0 0; font-size: 12px; line-height: 1.5; text-align: center; color: #64748b; }
.atp-fine a { color: var(--atp-em-dark); text-decoration: underline; text-underline-offset: 3px; }
.atp-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 28px 0 0; padding: 12px 18px; border-radius: 12px; background: #f1f8f5; font-size: 13px; font-weight: 600; color: #1e3a34; }
.atp-strip span { display: inline-flex; gap: 6px; align-items: center; }
.atp-strip .icon { margin-top: 0; }

/* the content column under the intro: one 980px width, headings with a bar like the CAD guide pages */
.atp-main { padding-bottom: 0; }
.atp-main > section:not(#faq):not(#start) { max-width: 1040px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.atp-main > section:not(#faq):not(#start) .wrap, .atp-main > section:not(#faq):not(#start) .wrap-figure, .atp-main > section:not(#faq):not(#start) .prose,
.atp-main > section:not(#faq):not(#start) .table-wrap, .atp-main > section:not(#faq):not(#start) .keyfacts-wrap, .atp-main > section:not(#faq):not(#start) .calc,
.atp-main > section:not(#faq):not(#start) .related { max-width: none; padding-left: 0; padding-right: 0; }
.atp-main .prose { font-size: 15.5px; line-height: 1.75; color: var(--atp-body); }
.atp-main .prose h2 { position: relative; margin: 6px 0 22px; padding-bottom: 14px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--atp-ink); }
.atp-main .prose h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--atp-em); }
.atp-main .prose h3 { font-size: 18px; font-weight: 800; color: var(--atp-ink); margin: 26px 0 8px; }
.atp-main .prose td:first-child, .atp-main table.data td:first-child { font-weight: 600; color: var(--atp-ink); }
.atp-main .keyfacts { max-width: none; box-shadow: none; background: #f8fafc; }
.atp-main .section-head { text-align: left; margin-bottom: 26px; }
.atp-main .section.section-tight { padding: 40px 0; }
.atp-main .section-tight { padding-top: 28px; padding-bottom: 28px; }
.atp-main .callout { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.atp-main .figure-block { padding-top: 16px; padding-bottom: 16px; }
.atp-main .figure-block figcaption { text-align: left; }

/* the "ready to go further" band */
.atp-band { max-width: 1040px; margin: 30px auto; padding: 24px 28px; display: grid; gap: 18px; align-items: center; border: 1px solid #bbf7d0; border-radius: 16px; background: linear-gradient(135deg, #f0fdf4, #ecfdf5); box-shadow: 0 8px 30px rgba(5, 150, 105, .08); width: calc(100% - 40px); }
.atp-band .atp-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--atp-em-dark); }
.atp-band h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; font-weight: 800; color: var(--atp-ink); }
.atp-band p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--atp-body); }
.atp-band .btn { justify-self: start; }
@media (min-width: 760px) { .atp-band { grid-template-columns: 1fr auto; } .atp-band .btn { justify-self: end; } }

/* calculators inside the column */
.atp-main .calc { display: grid; gap: 22px; }
@media (min-width: 900px) { .atp-main .calc { grid-template-columns: 1fr 1fr; } }

@media (max-width: 860px) {
  .atp { padding-top: 84px; }
  .atp-hero { grid-template-columns: 1fr; gap: 24px; }
  .atp-form { position: static; }
  .atp-band { width: calc(100% - 40px); }
}
@media (max-width: 480px) { .atp-h1 { font-size: 30px; } .atp-strip { justify-content: flex-start; } }

/* calculator fields line up on their inputs even when a label wraps */
.atp-main .calc-grid label { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; }
.atp-main .calc-grid label small { order: 2; margin-top: -2px; }
.atp-main .calc-grid label input, .atp-main .calc-grid label select { order: 3; }

/* what is included / who it is for */
.atp-panels { max-width: 1040px; margin: 0 auto 8px; padding: 0 20px; display: grid; gap: 16px; }
@media (min-width: 760px) { .atp-panels { grid-template-columns: 1fr 1fr; } }
.atp-panel { padding: 18px 20px; border: 1px solid #d1fae5; border-radius: 14px; background: #f6fdf9; }
.atp-panel h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--atp-ink); }
.atp-panel .atp-ticks li { font-size: 14px; }

/* phones: a jump to the calculator above the sign-up card */
.atp-jump { display: none; margin-top: 16px; }
@media (max-width: 860px) { .atp-jump { display: inline-flex; } }

/* ---- one picture size: the banner and every figure share one box, one width ---- */
.atp, .atp-main > section:not(#faq):not(#start) { max-width: 1080px; }
.atp-banner svg { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 628; background: #0b3a5c; border-radius: 14px; }
.atp-main .figure-block svg { display: block; width: 100%; height: auto; background: #0b1a2b; border-radius: 14px; }
.atp-main .figure-block .wrap-figure, .atp-main .figure-block figure { max-width: none; width: 100%; margin: 0; }
.atp-main .prose { max-width: 900px; }
.atp-main .table-wrap, .atp-main .keyfacts, .atp-main .related { max-width: none; }

/* ---- fact cards, on this page, stamp, keep exploring ---- */
.atp-stamp { margin: 14px 0 0; font-size: 12.5px; color: #64748b; }
.atp-facts { max-width: 1080px; margin: 0 auto 10px; padding: 0 20px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .atp-facts { grid-template-columns: repeat(4, 1fr); } }
.atp-facts div { padding: 12px 14px; border: 1px solid var(--atp-line); border-radius: 12px; background: #fff; }
.atp-facts span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--atp-em-dark); }
.atp-facts b { display: block; margin-top: 2px; font-size: 14.5px; color: var(--atp-ink); }
.atp-toc { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 14px 0 0; font-size: 13px; }
.atp-toc b { margin-right: 4px; color: var(--atp-ink); }
.atp-toc a { padding: 5px 11px; border: 1px solid #d1fae5; border-radius: 999px; background: #f6fdf9; color: var(--atp-em-dark); font-weight: 600; }
.atp-toc a:hover { background: #ecfdf5; border-color: var(--atp-em); }
html { scroll-padding-top: 90px; }
.atp-more { max-width: 1080px; margin: 24px auto 8px; padding: 0 20px; }
.atp-more-in { padding: 26px; border: 1px solid var(--atp-line); border-radius: 16px; background: #f8fafc; }
.atp-more .atp-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--atp-em-dark); }
.atp-more h2 { margin: 0 0 16px; font-size: 22px; font-weight: 800; color: var(--atp-ink); }
.atp-more-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .atp-more-grid { grid-template-columns: repeat(3, 1fr); } }
.atp-more-grid a { display: block; padding: 14px 16px; border: 1px solid var(--atp-line); border-radius: 12px; background: #fff; }
.atp-more-grid a:hover { border-color: var(--atp-em); }
.atp-more-grid b { display: block; font-size: 14.5px; color: var(--atp-ink); margin-bottom: 3px; }
.atp-more-grid span { font-size: 13px; line-height: 1.5; color: #475569; }
.atp-more-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: 14px; font-weight: 600; }
.atp-more-links a { color: var(--atp-em-dark); text-decoration: underline; text-underline-offset: 3px; }
.atp-main .prose a:not(.btn) { color: var(--atp-em-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: inherit; opacity: .85; }

/* ---- closer to the CAD form card and band ---- */
.atp-step { display: flex; justify-content: center; gap: 10px; align-items: baseline; margin: 0 0 10px; font-size: 12.5px; color: #64748b; }
.atp-step b { padding: 2px 8px; border-radius: 6px; background: #d1fae5; color: var(--atp-em-dark); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.atp-form { border-image: none; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #34d399, #0ea5e9) border-box; border: 2px solid transparent; }
.atp-form form { gap: 10px; }
.atp-form select, .atp-form input { padding: 12px 12px; }
.atp-band-go { display: grid; justify-items: center; gap: 6px; }
.atp-band-go small { font-size: 12px; color: #64748b; }
.atp-h1 { font-size: clamp(34px, 4.8vw, 50px); }

/* ---- blocks that sit directly in <main> (tables) stay inside the same column as the text ---- */
.atp-main > .table-wrap { max-width: 940px; margin: 0 auto 18px; padding: 0 20px; box-sizing: content-box; }
.atp-main > .table-wrap table.data { width: 100%; }
.atp-main > .table-wrap { box-sizing: border-box; }

/* text stays at a readable line length and centred over the 1040 column; tables below use the same 900 */
.atp-main > section:not(#faq):not(#start) .prose { max-width: 900px; margin-left: auto; margin-right: auto; }
.atp-main > section:not(#faq):not(#start) .keyfacts-wrap .keyfacts { max-width: 900px; margin-left: auto; margin-right: auto; }
.atp-main > .table-wrap { max-width: 940px; }
