*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F4F3EF;
  --surface: #FFFFFF;
  --surface-2: #F9F8F5;
  --onyx: #1A1916;
  --border: #E4E2DB;
  --border-strong: #C8C5BC;
  --text-primary: #1A1916;
  --text-secondary: #6B6860;
  --text-tertiary: #9E9C97;
  --text-on-dark: #F4F3EF;
  --text-on-dark-secondary: #B8B6AE;

  /* TradeSorter brand — Coral */
  --accent: #D85A30;
  --accent-light: #FDF0EB;
  --accent-mid: #E8734A;

  --success: #2D6A4F;
  --success-light: #E8F5EE;

  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --radius-lg: 16px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 40px rgba(26,25,22,0.12);
  --max: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

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

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c04e28; transform: translateY(-1px); }

.btn-dark { background: var(--onyx); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); }

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── Wordmark (real text, no logo image needed) ── */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}
.wordmark-text { color: var(--onyx); font-size: 22px; }
.wordmark-bar { height: 3px; width: 100%; background: var(--accent); margin-top: 5px; border-radius: 2px; }
.wordmark-sub {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-tertiary);
  margin-top: 5px;
  text-transform: uppercase;
}
.wordmark.on-dark .wordmark-text { color: #fff; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,243,239,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text-primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-ghost { padding: 10px 18px; font-size: 14px; }
.header-actions .btn-primary { padding: 10px 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-primary);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ── Hero ── */
.hero {
  background: var(--onyx);
  color: #fff;
  padding: 72px 0 0;
  overflow: hidden;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 { color: #fff; margin-bottom: 20px; }
.hero-copy h1 .accent-word { color: var(--accent-mid); }
.hero-copy p.lead {
  font-size: 18px;
  color: var(--text-on-dark-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-on-dark-secondary);
  font-family: var(--mono);
}
.hero-trust svg { width: 15px; height: 15px; color: #6FCF97; flex-shrink: 0; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  align-self: end;
}
.hero-visual img {
  max-width: 100%;
  width: 380px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  animation: felixFloat 4.5s ease-in-out infinite;
}

@keyframes felixFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
}

/* ── Roaming Felix (scroll-driven, GSAP ScrollTrigger) ── */
.felix-lane {
  position: relative;
  height: 120px;
  margin: -8px 0 32px;
  overflow: hidden;
  pointer-events: none;
}
.felix-roaming {
  position: absolute;
  top: 0;
  left: -160px;
  width: 130px;
  height: auto;
  will-change: transform;
  filter: drop-shadow(0 10px 16px rgba(26,25,22,0.18));
}
@media (max-width: 900px) {
  .felix-lane { display: none; }
}

/* ── Sections ── */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 17px; margin-top: 12px; }
.section-head.left { margin-left: 0; text-align: left; }

.bg-surface { background: var(--surface); }
.bg-dark { background: var(--onyx); color: #fff; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: var(--text-on-dark-secondary); }

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}
.feature-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; }
.feature-card a.feature-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  text-decoration: none; margin-top: 14px;
}
.feature-card a.feature-link svg { width: 14px; height: 14px; }

/* ── How it works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; }

/* ── Value strip ── */
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-item { text-align: center; }
.value-num { font-family: var(--mono); font-size: 34px; font-weight: 500; color: var(--accent-mid); margin-bottom: 6px; }
.value-item p { font-size: 13.5px; color: var(--text-on-dark-secondary); }

/* ── Pricing ── */
.billing-toggle {
  display: inline-flex;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  margin: 0 auto 8px;
}
.billing-toggle button {
  padding: 7px 18px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.billing-toggle button.active { background: var(--accent); color: #fff; }
.billing-toggle .save-tag {
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px;
  background: var(--accent-light); color: var(--accent); margin-left: 6px; text-transform: uppercase;
}
.billing-toggle button.active .save-tag { background: rgba(255,255,255,0.25); color: #fff; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.popular { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(216,90,48,0.12), var(--shadow-md); }
.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
  white-space: nowrap;
}
.price-card h3 { margin-bottom: 4px; }
.price-users { font-size: 13px; color: var(--text-tertiary); margin-bottom: 20px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-amount .amt { font-size: 38px; font-weight: 800; letter-spacing: -1px; font-family: var(--mono); }
.price-amount .period { font-size: 14px; color: var(--text-tertiary); }
.price-billed { font-size: 12px; color: var(--text-tertiary); margin-bottom: 24px; min-height: 16px; }
.price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.price-features svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ── Testimonial-style / quote block (no fabricated quotes — used for philosophy statement) ── */
.statement {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.statement blockquote {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #fff;
}
.statement cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 14px;
  color: var(--text-on-dark-secondary);
}

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: none; border: none; text-align: left; cursor: pointer;
  font-family: var(--sans); font-size: 15.5px; font-weight: 600; color: var(--text-primary);
}
.faq-q svg { width: 18px; height: 18px; color: var(--text-tertiary); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 22px 20px; font-size: 14.5px; }

/* ── Final CTA ── */
.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 28px; }
.cta-band .btn-dark { background: var(--onyx); }
.cta-band .btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.site-footer { background: var(--onyx); color: var(--text-on-dark-secondary); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: var(--text-on-dark-secondary); font-size: 13.5px; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 13px; color: #fff; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--text-on-dark-secondary); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; padding-top: 24px;
  font-size: 12.5px; flex-wrap: wrap; gap: 12px;
}

/* ── Simple hero for inner pages ── */
.page-hero { background: var(--onyx); color: #fff; padding: 64px 0 72px; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 560px; margin: 16px auto 0; font-size: 17px; color: var(--text-on-dark-secondary); }

/* ── Feature detail rows ── */
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.detail-row:nth-child(even) .detail-copy { order: 2; }
.detail-visual {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.detail-visual svg { width: 100%; height: auto; max-width: 280px; color: var(--accent); }
.detail-copy .eyebrow { margin-bottom: 14px; }
.detail-copy h2 { margin-bottom: 14px; }
.detail-copy p.lead-sm { font-size: 16px; margin-bottom: 20px; }
.detail-list { display: flex; flex-direction: column; gap: 12px; }
.detail-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-secondary); }
.detail-list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.detail-block + .detail-block { margin-top: 96px; }

/* ── Utility ── */
.mt-8 { margin-top: 8px; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
  .hero-visual img { width: 220px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .value-strip { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 32px; }
  .detail-row:nth-child(even) .detail-copy { order: 0; }
}

@media (max-width: 640px) {
  .wordmark-text { font-size: 18px; }
  .main-nav, .header-actions .btn-ghost, .header-actions > .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .header-actions.mobile-open { position: fixed; inset: 76px 0 0 0; background: var(--bg); flex-direction: column; padding: 24px; gap: 16px; z-index: 40; }
  .header-actions.mobile-open .btn-ghost,
  .header-actions.mobile-open > .btn-primary { display: inline-flex; width: 100%; }
  .header-actions.mobile-open .main-nav { display: flex; flex-direction: column; gap: 20px; width: 100%; }
  section { padding: 56px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .value-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 40px 24px; }
}
