/* TradeSystem HQ - shared styles */
:root {
  --ink: #12161B;
  --navy: #12161B;
  --navy-deep: #0D1015;
  --ink-2: #1F252E;
  --blue: #1A6FC2;
  --blue-dark: #135594;
  --orange: #B4530A;
  --orange-bright: #F28C28;
  --warm-1: #FFC93C;
  --warm-2: #F28C28;
  --cool-1: #7CC0F5;
  --cool-2: #1E7FD8;
  --dial: linear-gradient(90deg, #1E7FD8 0%, #7CC0F5 30%, #F5F7FA 50%, #FFC93C 70%, #F28C28 100%);
  --blue-tint: #E6F1FC;
  --orange-tint: #FDF1E6;
  --ground: #F3F5F7;
  --white: #FFFFFF;
  --text: #1C2733;
  --muted: #4A5866;
  --line: #D5DCE3;
  --on-ink: #E9EEF3;
  --on-ink-muted: #B9C6D3;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ground);
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header and nav: always visible, wraps on phones, no JS needed */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 230px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: 8px 10px; border-radius: 6px; font-size: 0.97rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-tint); color: var(--ink); }
.nav a.btn { padding: 8px 14px; margin-left: 4px; color: var(--white); }
.nav a.btn:hover { background: var(--blue-dark); color: var(--white); }

/* Buttons */
.btn {
  display: inline-block; background: var(--blue); color: var(--white);
  text-decoration: none; font-weight: 600; border: 2px solid var(--blue);
  padding: 12px 20px; border-radius: 8px; font-size: 1rem; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-dark); border-color: var(--blue-dark); }
.on-ink .btn-ghost { color: var(--white); border-color: var(--on-ink-muted); }
.on-ink .btn-ghost:hover { background: var(--ink-2); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections */
section { padding: 72px 0; }
.section-white { background: var(--white); }
.on-ink { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-ink); }
.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--white); }
.on-ink a:not(.btn) { color: var(--blue-tint); }
.on-ink .muted { color: var(--on-ink-muted); }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.on-ink .eyebrow { color: var(--warm-1); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.on-ink .lead { color: var(--on-ink-muted); }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 84px 0 76px; }
.hero h1 { max-width: 18em; }
.hero .lead { margin-bottom: 1.5em; }
.note { font-size: 0.95rem; margin-top: 18px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.section-white .card { background: var(--ground); }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 10px;
  border-radius: 999px; margin-bottom: 10px;
}
.tag-cool { background: var(--blue-tint); color: var(--blue-dark); }
.tag-warm { background: var(--orange-tint); color: var(--orange); }
.card-cool { border-top: 4px solid var(--blue); }
.card-warm { border-top: 4px solid var(--orange); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--blue);
}
.card-warm .ticks li::before { background: var(--orange); }

.feature-group { margin-top: 44px; }
.feature-group > h3 { font-size: 1.3rem; margin-bottom: 16px; }

/* Fit-with panel */
.fit { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.fit .card { background: var(--ink-2); border-color: #2C415A; color: var(--on-ink); }
.fit .card h3 { color: var(--white); }

/* CTA band */
.cta { text-align: left; }
.cta-box {
  background: var(--orange-tint); border: 1px solid #F7CBA8; border-radius: var(--radius);
  padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.cta-box h2 { margin-bottom: 6px; }
.cta-box p { margin: 0; color: var(--text); max-width: 40em; }

/* Prose pages */
.page-head { padding: 56px 0 36px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose-wrap { background: var(--white); padding: 48px 0 72px; }
.dated { font-weight: 600; color: var(--ink); }
.callout {
  background: var(--blue-tint); border-left: 4px solid var(--blue);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 1.2em 0;
}
.callout-warm { background: var(--orange-tint); border-left-color: var(--orange); }

/* FAQ */
details {
  background: var(--ground); border: 1px solid var(--line); border-radius: 8px;
  padding: 0 18px; margin-bottom: 10px;
}
details[open] { background: var(--white); }
summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
}
details p { margin-top: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 48px 0 28px; font-size: 0.95rem; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: var(--white); }
.site-footer .legal { border-top: 1px solid #2C415A; margin-top: 32px; padding-top: 18px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 52px; }
  .brand img { width: 200px; }
  .site-header { position: static; }
  .nav { width: 100%; }
  .nav a { padding: 8px 8px; }
  .cta-box { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---- Dial theme: matches the TradeSystem HQ thermostat-dial logo ---- */
.site-header::before, .site-footer::before, .dial-bar {
  content: ""; display: block; height: 4px; background: var(--dial);
}
.site-footer { padding-top: 0; }
.site-footer::before { margin-bottom: 44px; }
.site-header { padding-top: 0; }

/* Hot / cold words */
.hot, .cold { -webkit-background-clip: text; background-clip: text; color: transparent; }
.hot { background-image: linear-gradient(180deg, var(--warm-1), #FF8A3D 60%, var(--warm-2)); }
.cold { background-image: linear-gradient(180deg, var(--cool-1), #3D9BFF 60%, var(--cool-2)); }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hot { color: var(--warm-1); } .cold { color: var(--cool-1); }
}

/* Hero with the dial */
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--dial);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-dial { display: flex; justify-content: center; }
.hero-dial img {
  width: min(320px, 100%); height: auto; border-radius: 22%;
  box-shadow: -18px 0 60px rgba(255, 138, 61, .28), 18px 0 60px rgba(61, 155, 255, .30), 0 20px 50px rgba(0,0,0,.35);
}
.hero-tagline {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none;
}
.hero-tagline li {
  font-weight: 600; font-size: .9rem; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--on-ink);
}
.hero-tagline .t-hot { border-color: rgba(255,181,71,.55); color: #FFD9A8; }
.hero-tagline .t-cold { border-color: rgba(143,211,255,.55); color: #CDEBFF; }

/* Page heads get the dial bar too */
.page-head { position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--dial); }
.page-head .head-mark { width: 56px; height: 56px; border-radius: 22%; display: block; margin-bottom: 16px; }

/* Cards: warm/cool tops use the logo gradients */
.card-cool { border-top: 4px solid var(--cool-2); border-image: none; }
.card-warm { border-top: 4px solid var(--orange-bright); }
.tag-warm { background: var(--orange-tint); color: var(--orange); }
.card-warm .ticks li::before { background: var(--orange-bright); }
.ticks li::before { background: var(--blue); }

/* Feature cards: small dial accent line */
.feature-group .card { position: relative; overflow: hidden; }
.feature-group .card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--dial); opacity: .85;
}
.feature-group .card.card-warm::before, .feature-group .card.card-cool::before { display: none; }

/* CTA band: navy with the dial, like the app icon */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 0; color: var(--on-ink); position: relative; overflow: hidden;
}
.cta-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--dial); }
.cta-box h2 { color: var(--white); }
.cta-box p { color: var(--on-ink-muted); }
.cta-box .btn { background: var(--orange-bright); border-color: var(--orange-bright); color: #1C1206; }
.cta-box .btn:hover { background: #FF8A3D; border-color: #FF8A3D; color: #1C1206; }

/* Footer brand */
.footer-brand img { width: 230px; height: auto; display: block; margin-bottom: 12px; }
.site-footer .legal { border-top-color: #24405E; }
.fit .card { background: rgba(255,255,255,.05); border-color: #2C4C6E; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-dial { order: -1; justify-content: flex-start; }
  .hero-dial img { width: 120px; }
}

/* Pricing */
.founding { background: linear-gradient(135deg, #12161B 0%, #0B1724 100%); color: var(--on-ink); border-radius: var(--radius); padding: 28px 32px; position: relative; overflow: hidden; margin-bottom: 32px; }
.founding::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--dial); }
.founding h2 { color: var(--white); margin: 8px 0 6px; }
.founding p { color: var(--on-ink-muted); margin: 0; max-width: 52em; }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.plan { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan .ticks { margin: 14px 0 20px; flex: 1; }
.plan .btn { text-align: center; }
.plan .who { color: var(--muted); margin: -4px 0 12px; font-weight: 500; }
.plan .price { margin: 0 0 4px; color: var(--muted); }
.plan .amt { font-family: "Archivo", Arial, sans-serif; font-weight: 800; font-size: 2.1rem; color: var(--ink); }
.plan-main { background: var(--white); border: 2px solid var(--blue); box-shadow: 0 10px 30px rgba(15,30,46,.10); }
.plan-main .badge { position: absolute; top: -13px; left: 24px; background: var(--orange-bright); color: #1C1206; font-weight: 700; font-size: .8rem; padding: 3px 12px; border-radius: 999px; }
.small-note { font-size: .92rem; margin-top: 14px; }
.example { margin-top: 48px; }
.example .calc { color: var(--muted); margin: 0; }
.example .total { font-family: "Archivo", Arial, sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--ink); margin: 4px 0; }
/* language menu */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-pick select {
  font: inherit; font-size: 0.9rem; min-height: 40px; padding: 6px 28px 6px 10px; border-radius: 8px;
  border: 1px solid #C9D6E6; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2316314D'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.site-footer .lang-pick { display: inline-block; margin: 20px 0 4px; }
.site-footer .lang-pick select { background-color: var(--ink-2); color: var(--on-ink); border-color: #3A5675;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23E9EEF3'/%3E%3C/svg%3E"); }

/* App Store buttons */
.stores{display:flex;flex-wrap:wrap;gap:10px}
.store{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:10px;background:#000;color:#fff !important;text-decoration:none;font-weight:600;border:1px solid rgba(255,255,255,.35)}
.store::before{content:"";width:18px;height:18px;background:url('/assets/apple.svg') center/contain no-repeat}

/* TradeSystem HQ additions */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-name { font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand-name b { color: var(--blue); }
.site-footer .brand-name, .on-ink .brand-name { color: #fff; }
.site-footer .brand-name b { color: var(--cool-1); }
.hero-logo img { width: 100%; height: auto; border-radius: 18px; }
.stores-soon { margin-top: 14px; font-weight: 600; color: var(--on-ink-muted); }
.section-white .stores-soon, .card .stores-soon { color: var(--muted); }
