/* Trade Manager PRO sales page and user guide (/trade-manager/, /trade-manager/guide/).
   Builds on style.css (colours, buttons, cards, sections). No inline styles anywhere (the site's security rule). */

/* ---------- hero ---------- */
.tm-hero { padding-bottom: 0; }
.tm-hero h1 { max-width: 1080px; }
.tm-hero .lead { max-width: 800px; }
.tm-hero .tm-sub { margin: 22px 0 0; }
/* "Watch the 2-minute video": a pill with a gold play button that pulses softly; a click scrolls to the video and plays it */
.tm-watch-pill { display: inline-flex; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(20, 20, 20, 0.10); text-decoration: none; color: var(--ink); text-align: left; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.tm-watch-pill:hover, .tm-watch-pill:focus-visible { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 14px 34px rgba(201, 150, 43, 0.25); }
.tm-watch-pill .pi { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 6px 16px rgba(201, 150, 43, 0.45); }
.tm-watch-pill .pi::before { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--btn-ink); }
.tm-watch-pill .pi::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: tm-pulse 2.2s ease-out infinite; }
@keyframes tm-pulse { 0% { transform: scale(0.85); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tm-watch-pill .pi::after { animation: none; } }
.tm-watch-pill .tx b { display: block; font: 700 16px/1.2 var(--head); }
.tm-watch-pill .tx small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.tm-watch-pill .len { margin-left: 4px; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 12.5px/1 var(--text); }
/* in-page targets: #plans (free button), #download (old link), #pro (the free EA's Get PRO button) */
#plans, #download, #pro { scroll-margin-top: 96px; }
.tm-shot { position: relative; max-width: 1180px; margin: 54px auto 0; padding: 0 0 64px; }
.tm-shot img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 40px 90px rgba(20, 20, 20, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.tm-shot::before { content: ""; position: absolute; left: 6%; right: 6%; top: 8%; bottom: 10%; background: radial-gradient(ellipse at 50% 40%, rgba(232, 196, 106, 0.45), transparent 70%); filter: blur(40px); z-index: -1; }
.tm-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20, 20, 20, 0.16); text-align: left; font-size: 14px; line-height: 1.25; }
.tm-float i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; background: var(--good); flex: none; }
.tm-float i.g { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--btn-ink); }
.tm-float i.b { background: #229ED9; }
.tm-float b { display: block; font-weight: 700; color: var(--ink); }
.tm-float span { color: var(--ink-2); font-size: 13px; }
/* placed on empty chart areas: under the panel (left) and right of the candles, below the trade lines */
.tm-float.f1 { left: -40px; top: 66%; }
.tm-float.f2 { right: -36px; top: 50%; }
.tm-float.f3 { right: -24px; top: 70%; }
.tm-note { text-align: center; font-size: 12.5px; color: var(--ink-2); margin: -46px 0 0; position: relative; }
@media (max-width: 1100px) { .tm-float { display: none; } }

/* ---------- facts strip ---------- */
.tm-facts b { font-family: var(--head); font-size: 18px; margin-right: 4px; }

/* ---------- problem ---------- */
.tm-answer { margin: 44px auto 0; text-align: center; font: 700 clamp(22px, 2.6vw, 32px)/1.25 var(--head); letter-spacing: -0.02em; max-width: 880px; }

/* ---------- the four tabs ---------- */
.tm-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tm-four a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.2s ease, border-color 0.2s ease; }
.tm-four a:hover { transform: translateY(-3px); border-color: var(--gold); }
.tm-four h3 { font-size: 22px; margin: 6px 0 0; display: flex; align-items: center; gap: 8px; }
.tm-four p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tm-four .go { margin-top: auto; padding-top: 8px; color: var(--gold-ink); font-weight: 650; font-size: 15px; }
.tm-tag { display: inline-block; font: 700 11px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-ink); }
.tm-tag.free { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
@media (max-width: 1000px) { .tm-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tm-four { grid-template-columns: minmax(0, 1fr); } }

/* ---------- feature rows: words on one side, the panel on the other ---------- */
.tm-row { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.tm-row.rev .tm-copy { order: 2; }
.tm-copy .kicker { margin-bottom: 14px; }
.tm-copy h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 760; margin: 0 0 16px; }
.tm-copy > p { color: var(--ink-2); font-size: 18px; margin: 0 0 22px; }
.tm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tm-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 16.5px; color: var(--ink-2); }
.tm-list li::before { content: "\2713"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--gold-soft); color: var(--gold-ink); margin-top: 1px; }
.tm-list b { color: var(--ink); font-weight: 650; }
.tm-calc { margin: 26px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); font-size: 15.5px; color: var(--ink-2); }
.tm-calc b { color: var(--ink); }
.tm-media { position: relative; display: flex; justify-content: center; }
.tm-media img { display: block; height: auto; max-width: 100%; }
.tm-media .one { width: 420px; }
.tm-media .duo { display: flex; align-items: flex-start; gap: 0; }
/* two panels side by side: only their soft shadows touch, so nothing on either panel is hidden */
.tm-media .duo img { width: 300px; }
.tm-media .duo img + img { margin: 60px 0 0 -22px; }
.tm-badge-pro { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; vertical-align: middle; font: 700 12px/1 var(--text); letter-spacing: 0.08em; padding: 6px 10px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--btn-ink); }
.tm-more { display: inline-block; margin-top: 22px; color: var(--gold-ink); font-weight: 650; }
@media (max-width: 960px) {
  .tm-row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tm-row.rev .tm-copy { order: 0; }
  .tm-media .duo img { width: 48%; }
  .tm-media .duo img + img { margin: 40px 0 0 -6%; }
}

/* ---------- the lines on the chart ---------- */
.tm-lines { margin: 72px auto 0; max-width: 1100px; }
.tm-lines img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.tm-decode { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tm-decode li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.tm-decode b { color: var(--ink); margin-right: 4px; }
.tm-lines figcaption { text-align: center; margin: 22px auto 0; max-width: 720px; color: var(--ink-2); }
.tm-lines figcaption b { color: var(--ink); }

/* ---------- Connect (dark section) ---------- */
.tm-connect .tm-media img.phone { width: 290px; }
.tm-connect .tm-media img.panel { width: 300px; margin: 80px 0 0 -26px; }
.tm-steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 64px 0 0; }
.tm-steps3 div { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.tm-steps3 .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--btn-ink); font: 800 14px/1 var(--head); }
.tm-steps3 h3 { font-size: 18px; margin: 12px 0 6px; }
.tm-steps3 p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tm-steps3 code { font-size: 14px; color: var(--ink); }
@media (max-width: 900px) {
  .tm-steps3 { grid-template-columns: minmax(0, 1fr); }
  .tm-connect .tm-media img.phone, .tm-connect .tm-media img.panel { width: 48%; }
  .tm-connect .tm-media img.panel { margin: 50px 0 0 -6%; }
}

/* ---------- safety rules ---------- */
.tm-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; counter-reset: r; }
.tm-rules li { counter-increment: r; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.tm-rules li::before { content: counter(r); flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); font: 800 12.5px/1 var(--head); }
@media (max-width: 560px) { .tm-rules { grid-template-columns: minmax(0, 1fr); } }

/* ---------- who it is for ---------- */
.tm-who .card h3 { font-size: 20px; margin: 16px 0 8px; }
.tm-who .card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- with and without ---------- */
.tm-vs td:nth-child(2) { color: var(--ink-2); }
.tm-vs td:nth-child(3) { font-weight: 600; }
.tm-vs td:nth-child(3)::before { content: "\2713\00a0\00a0"; color: var(--good); font-weight: 800; }
.tm-vs thead th:nth-child(3) { color: var(--gold-ink); }

/* ---------- pricing: how to get it ---------- */
.tm-howto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 48px auto 0; max-width: 1040px; }
.tm-howto .card h3 { font-size: 19px; margin: 0 0 14px; }
.tm-howto ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15.5px; }
.tm-howto ol b { color: var(--ink); }
.tm-sure { text-align: center; color: var(--ink-2); font-size: 15px; margin: 26px auto 0; max-width: 760px; }
@media (max-width: 860px) { .tm-howto { grid-template-columns: minmax(0, 1fr); } }

/* ---------- user guide band ---------- */
.tm-guideband { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 34px 36px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tm-guideband h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
.tm-guideband p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .tm-guideband { grid-template-columns: minmax(0, 1fr); } }

/* ---------- user guide page ---------- */
.tm-guide .prose h2 { padding-top: 6px; border-top: 1px solid var(--line); }
.tm-guide .prose h2:first-of-type { border-top: 0; }
.tm-guide .prose h3[id] { scroll-margin-top: 90px; }   /* links to a setup step land below the sticky header */
.tm-guide .prose blockquote { margin: 22px 0; padding: 16px 20px; border-radius: 14px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.tm-guide .prose blockquote p { margin: 0 0 8px; } .tm-guide .prose blockquote p:last-child { margin: 0; }
.tm-guide .prose code { font-size: 0.9em; background: var(--bg-2); border-radius: 6px; padding: 1px 6px; }
.tm-guide .prose figure { margin: 26px 0; text-align: center; }
.tm-guide .prose figure img { display: inline-block; width: 340px; max-width: 100%; height: auto; }
.tm-guide .prose figure.wide img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.tm-guide .prose figcaption { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.tm-guide .toc { font-size: 15px; }
.tm-guide .toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tm-guide .toc a { color: var(--ink-2); text-decoration: none; }
.tm-guide .toc a:hover { color: var(--ink); text-decoration: underline; }
.tm-guide .aside .card h2 { font-size: 17px; margin: 0 0 10px; letter-spacing: 0; }
.tm-guide .aside .card p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.tm-guide .aside .card .btn { width: 100%; }
kbd { font: 600 0.85em var(--text); background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--ink); white-space: nowrap; }
