/* TradePace website – navy & amber like the app, with white working sections.
   Fonts are self-hosted (no Google requests from visitors' browsers). */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/Barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/Barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/Barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/BarlowCondensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/BarlowCondensed-700.woff2") format("woff2"); }

:root {
  --navy: #1e293b;
  --navy-deep: #141c2a;
  --navy-line: #2f3d55;
  --amber: #f5a623;
  --amber-deep: #b9761a;
  --white: #ffffff;
  --paper: #f6f4ef;
  --ink: #1b2230;
  --ink-soft: #566074;
  --line: #e3e0d8;
  --on-navy: #eef1f6;
  --on-navy-soft: #aab4c5;
  --ok: #2e7d4f;
  --err: #b3261e;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--navy-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.01em; color: var(--white); }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--on-navy-soft); }
.nav a:hover { color: var(--amber); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--body); font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 10px; border: 2px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: #ffb73d; }
.btn-ghost { border-color: var(--navy-line); color: var(--on-navy); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 10px 18px; border-radius: 12px; background: var(--white); color: var(--navy-deep); text-decoration: none; border: 2px solid var(--white); }
.store:hover { border-color: var(--amber); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; line-height: 1.2; color: var(--ink-soft); }
.store strong { display: block; font-size: 19px; line-height: 1.15; font-weight: 600; }
.store.soon { background: transparent; color: var(--on-navy); border-color: var(--navy-line); cursor: default; }
.store.soon small { color: var(--on-navy-soft); }
.store-note { font-size: 14px; color: var(--on-navy-soft); margin: 12px 0 0; }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding-block: 56px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 64px; min-width: 0; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 76px); line-height: 0.98; letter-spacing: -0.005em; margin: 0 0 20px; color: var(--white); text-wrap: balance; }
.hero h1 span { color: var(--amber); }
.hero p.lead { font-size: 19px; color: var(--on-navy-soft); max-width: 34em; margin: 0 0 28px; }
.hero-phones { position: relative; display: flex; justify-content: center; gap: 18px; min-width: 0; }
.phone { width: 240px; max-width: 46%; border-radius: 30px; padding: 8px; background: #0b111c; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.phone img { border-radius: 23px; width: 100%; height: auto; }
.hero-phones .phone:first-child { transform: translateY(34px); }
.hero-phones .phone { margin-bottom: -60px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-phones .phone { margin-bottom: -120px; }
}

/* Proof strip */
.strip { background: var(--amber); color: var(--navy-deep); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center; padding-block: 16px; font-weight: 600; font-size: 16px; }

/* Sections */
section { padding-block: 80px; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2, h2.big { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 48px); line-height: 1.02; margin: 0 0 12px; color: var(--navy); text-wrap: balance; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }
.paper { background: var(--paper); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; padding-block: 28px; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 1fr 300px; }
.feature.flip .phone-col { order: 2; }
.feature .phone { width: 100%; max-width: 280px; margin: 0 auto; box-shadow: 0 18px 40px rgba(20,28,42,0.22); }
.feature-copy { min-width: 0; }
.feature-copy h3 { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.05; margin: 0 0 12px; color: var(--navy); }
.feature-copy p { margin: 0 0 14px; color: var(--ink-soft); max-width: 36em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg); }
@media (max-width: 760px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .phone-col { order: 0; }
  .feature .phone { max-width: 240px; }
}

/* Everything grid */
.grid-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.grid-list div { background: var(--white); padding: 22px; min-width: 0; }
.grid-list h4 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.grid-list p { margin: 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 860px) { .grid-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-list { grid-template-columns: 1fr; } }

/* Trades */
.trades { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.trades span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

/* Founder */
.founder { background: var(--navy); color: var(--on-navy); }
.founder-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.founder h2 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 54px); line-height: 1; margin: 0; color: var(--white); text-wrap: balance; }
.founder h2 span { color: var(--amber); }
.founder p { color: var(--on-navy-soft); margin: 0 0 16px; font-size: 18px; }
.founder p strong { color: var(--white); font-weight: 600; }
@media (max-width: 760px) { .founder-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--white); min-width: 0; }
.plan.pro { border: 2px solid var(--navy); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--amber); color: var(--navy-deep); font-weight: 600; font-size: 13px; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--display); font-weight: 700; font-size: 28px; margin: 0 0 4px; color: var(--navy); }
.price { font-size: 17px; color: var(--ink-soft); margin: 0 0 18px; }
.price strong { font-family: var(--display); font-size: 40px; color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.plan .ticks { font-size: 16px; }
.small-print { font-size: 14px; color: var(--ink-soft); margin-top: 18px; max-width: 860px; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

/* Download band */
.download { background: var(--navy-deep); color: var(--on-navy); text-align: left; }
.download .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.download h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.5vw, 46px); margin: 0 0 6px; color: var(--white); line-height: 1; }
.download p { margin: 0; color: var(--on-navy-soft); }

/* Help & contact */
.help-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--amber-deep); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 860px) { .help-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; min-width: 0; }
.form-card h3 { font-family: var(--display); font-weight: 700; font-size: 30px; margin: 0 0 6px; color: var(--navy); }
.form-card > p { margin: 0 0 20px; color: var(--ink-soft); font-size: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 15px; color: var(--navy); }
label .opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1.5px solid #cfd4dc; border-radius: 10px; padding: 11px 13px; width: 100%; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(245,166,35,0.35); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13.5px; color: var(--ink-soft); margin: 12px 0 0; }
.email-line { font-size: 15px; color: var(--ink-soft); margin-top: 18px; }
.email-line strong { color: var(--navy); user-select: all; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-soft); font-size: 15px; padding-block: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; color: var(--on-navy); }
.site-footer a:hover { color: var(--amber); }

/* Legal pages */
.legal-hero { background: var(--navy); color: var(--on-navy); padding-block: 48px 40px; }
.legal-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 60px); margin: 0 0 8px; color: var(--white); line-height: 1; }
.legal-hero p { margin: 0; color: var(--on-navy-soft); }
.legal { padding-block: 48px 80px; }
.legal .lede { background: var(--paper); border-left: 4px solid var(--amber); border-radius: 8px; padding: 18px 22px; margin: 0 0 36px; color: var(--ink-soft); }
.legal .lede strong { color: var(--ink); }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--navy); margin: 36px 0 10px; }
.legal p { margin: 0 0 14px; color: var(--ink-soft); }
.legal .switch { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.legal .switch a { color: var(--amber-deep); font-weight: 600; }

/* Thanks */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.thanks h1 { font-family: var(--display); font-weight: 700; font-size: 52px; color: var(--navy); margin: 0 0 10px; }
.thanks p { color: var(--ink-soft); margin: 0 0 24px; }
