/* TradeOps marketing site — shared styles
   Brand-consistent with the app: teal #2BBCB3, ink #1a1a2e, generous spacing. */

:root {
  --teal: #2BBCB3;
  --teal-dark: #1FA89F;
  --teal-light: #E6F7F6;
  --teal-50: #BFE8E4;
  --ink: #1a1a2e;
  --ink-2: #4E4E6E;
  --ink-3: #8C8CA0;
  --surface: #ffffff;
  --bg: #F7F9FB;
  --border: #E4E6EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.site-header .logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--ink); letter-spacing: -0.3px;
  font-size: 20px;
  text-decoration: none;
}
.site-header .logo img { height: 36px; width: 36px; }
.site-header .logo .brand-wordmark {
  font-size: 20px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.4px;
}
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.site-header nav a:hover { color: var(--ink); text-decoration: none; }
.site-header .cta {
  background: var(--teal); color: #fff !important;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 800; font-size: 14px; letter-spacing: -0.1px;
}
.site-header .cta:hover { background: var(--teal-dark); text-decoration: none; }

@media (max-width: 720px) {
  .site-header nav .nav-link { display: none; }
}

/* ───────── Hero ───────── */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(43,188,179,0.10), transparent 60%),
    radial-gradient(800px 500px at 100% 10%, rgba(43,188,179,0.08), transparent 60%);
  text-align: center;
}
.eyebrow {
  display: inline-block; padding: 6px 14px; margin-bottom: 24px;
  background: var(--teal-light); color: var(--teal-dark);
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 800;
  letter-spacing: 1.3px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--ink); line-height: 1.02;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--teal-dark); }
.hero p.lead {
  max-width: 680px; margin: 0 auto 36px;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--ink-2); line-height: 1.5;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 800; font-size: 16px; letter-spacing: -0.2px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); text-decoration: none; box-shadow: var(--shadow-lg); }
.btn-secondary { background: #fff; color: var(--ink); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; }
.hero-trust {
  margin-top: 32px; color: var(--ink-3); font-size: 14px;
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.hero-trust span::before { content: '✓ '; color: var(--teal); font-weight: 800; }

/* ───────── Sections ───────── */
section { padding: 80px 0; }
section.alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 56px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-head h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); line-height: 1.1;
  margin-bottom: 16px;
}
.section-head p { color: var(--ink-2); font-size: 19px; }

/* Feature grid */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover {
  transform: translateY(-2px); border-color: var(--teal-50);
  box-shadow: var(--shadow-md);
}
.feature .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--teal-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 28px;
}
.feature h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* Pricing */
.pricing {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 800px; margin: 0 auto;
}
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  text-align: center; position: relative;
}
.plan.popular { border-color: var(--teal); box-shadow: var(--shadow-md); }
.plan .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.plan h3 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.plan .price {
  font-size: 56px; font-weight: 800; color: var(--ink); letter-spacing: -0.04em;
}
.plan .price .unit { font-size: 18px; color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.plan .meta { color: var(--ink-3); font-size: 14px; margin-top: 8px; margin-bottom: 24px; }
.plan ul { list-style: none; text-align: left; margin-bottom: 32px; }
.plan li { padding: 8px 0; color: var(--ink-2); font-size: 16px; }
.plan li::before { content: '✓'; color: var(--teal); font-weight: 800; margin-right: 10px; }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}
.site-footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer a { color: rgba(255,255,255,0.7); display: block; padding: 6px 0; font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 22px; font-weight: 800; color: #fff; }
.site-footer .brand img { height: 36px; }
.site-footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  color: rgba(255,255,255,0.5); font-size: 14px; text-align: center;
}

/* ───────── Legal pages (privacy / terms / support) ───────── */
.legal {
  max-width: 760px; margin: 0 auto;
  padding: 72px 24px 96px;
}
.legal h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); line-height: 1.05; margin-bottom: 12px;
}
.legal .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); margin: 40px 0 14px;
}
.legal h3 {
  font-size: 19px; font-weight: 700;
  color: var(--ink); margin: 24px 0 10px;
}
.legal p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.65; }
.legal ul, .legal ol { margin: 0 0 14px 24px; color: var(--ink-2); line-height: 1.65; }
.legal li { margin-bottom: 6px; }
.legal a { font-weight: 600; }
.legal strong { color: var(--ink); }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.legal .toc {
  background: var(--bg); border-radius: var(--radius-md);
  padding: 20px 24px; margin-bottom: 32px;
}
.legal .toc h4 {
  font-size: 12px; font-weight: 800; letter-spacing: 1.4px;
  color: var(--ink-3); text-transform: uppercase; margin-bottom: 10px;
}
.legal .toc ol { margin-left: 18px; }
.legal .toc li { padding: 3px 0; }
.legal .toc a { font-weight: 600; color: var(--ink-2); }

/* Support FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 12px;
  padding: 18px 22px; transition: box-shadow .15s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--teal-50); }
.faq summary {
  font-weight: 700; font-size: 17px; color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 26px; font-weight: 400; color: var(--ink-3);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-top: 12px; color: var(--ink-2); line-height: 1.6; }

/* Contact card */
.contact-card {
  background: var(--teal-light); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; max-width: 600px; margin: 48px auto 0;
}
.contact-card h3 { font-size: 24px; margin-bottom: 8px; }
.contact-card p { color: var(--ink-2); margin-bottom: 20px; }
.contact-card a.btn-primary { font-size: 15px; padding: 12px 22px; }
