/* TRAIDM website — shared styles. Mobile-first. Tokens come from ../styles.css */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg-primary);
  background: var(--bg-page);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--fg-primary); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-family: var(--font-display); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; text-wrap: pretty; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-lg { padding: 88px 0; }
.center { text-align: center; }
.muted { color: var(--fg-muted); }
.lead { font-size: 1.0625rem; color: var(--fg-secondary); max-width: 620px; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: rgba(255,189,57,0.14); border: 1px solid rgba(255,189,57,0.4);
  color: #8a5a00; font-size: 0.72rem; font-weight: 700;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; margin-bottom: 18px;
}
.tr-dark .eyebrow { color: var(--gold); }
.eyebrow.blue { background: rgba(79,140,255,0.12); border-color: rgba(79,140,255,0.3); color: var(--ai-blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.875rem;
  letter-spacing: var(--tracking-button); text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius-button);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  min-height: 48px;
}
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; width: auto; max-width: 100%; }
  .btn-lg { padding: 15px 24px; }
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--black); color: var(--gold); border-color: var(--black); }
.btn-primary:hover { background: var(--gold-hover); color: var(--black); border-color: var(--gold-hover); box-shadow: var(--shadow-gold-glow); }
.btn-secondary { background: transparent; color: var(--black); border-color: var(--black); }
.btn-secondary:hover { background: var(--black); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); box-shadow: var(--shadow-gold-glow); color: var(--black); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1240px; margin: 0 auto; }
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.nav-logo span { color: var(--gold); }
.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a { font-size: 0.875rem; font-weight: 600; color: var(--fg-secondary); }
.nav-links a:hover, .nav-links a.active { color: var(--fg-primary); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: -12px;
  background: var(--white); border: 1px solid var(--border-subtle);
  border-radius: 16px; box-shadow: var(--shadow-float);
  padding: 10px; min-width: 220px; flex-direction: column; gap: 2px;
}
.nav-links .dropdown:hover .dropdown-menu { display: flex; }
.nav-links .dropdown-menu a { display: block; padding: 9px 12px; border-radius: 10px; }
.nav-links .dropdown-menu a:hover { background: var(--grey-100); }
.nav-cta { display: none; }
.nav-burger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-burger span { width: 22px; height: 2px; background: var(--black); border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; padding: 12px 20px 24px; border-top: 1px solid var(--border-subtle); background: var(--white); max-height: calc(100vh - 60px); overflow: auto; }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 4px; font-weight: 600; font-size: 0.9375rem; border-bottom: 1px solid var(--border-subtle); }
.nav-mobile .sub { padding-left: 20px; font-weight: 500; color: var(--fg-secondary); font-size: 0.875rem; }
.nav-mobile .btn { margin-top: 16px; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* ---------- Hero ---------- */
.hero-dark { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.hero-glow-gold { position: absolute; top: -140px; right: -100px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255,189,57,0.16), transparent 70%); pointer-events: none; }
.hero-glow-blue { position: absolute; bottom: -180px; left: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(79,140,255,0.13), transparent 70%); pointer-events: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-surface-raised); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
a.card { display: block; }
a.card:hover { color: inherit; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-static:hover { transform: none; box-shadow: var(--shadow-card); }
.glass-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-card); padding: 28px; color: var(--white);
}
.icon-chip { width: 44px; height: 44px; border-radius: 12px; background: var(--grey-100); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.icon-chip svg, .icon-chip i { width: 22px; height: 22px; }
.tr-dark .icon-chip, .hero-dark .icon-chip { background: rgba(255,255,255,0.08); }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid > *, .split > *, .footer-grid > * { min-width: 0; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- Trust bar ---------- */
.trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; padding: 22px 20px; border-bottom: 1px solid var(--border-subtle); }
.trust-bar div { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-muted); }

/* ---------- Forms ---------- */
.form-panel { background: var(--bg-surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-float); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 6px; color: var(--fg-secondary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-size: 1rem; font-family: var(--font-body);
  color: var(--fg-primary); background: var(--white);
  border: 1.5px solid var(--border-default); border-radius: var(--radius-sm);
  outline: none; transition: border-color var(--duration-fast) var(--ease-out);
  appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2345484F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); }
.form-note { font-size: 0.75rem; color: var(--fg-muted); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 4px; font-family: var(--font-body); font-size: 0.9875rem; font-weight: 600; color: var(--fg-primary);
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--gold); flex-shrink: 0; transition: transform var(--duration-base) var(--ease-out); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 4px 18px; color: var(--fg-secondary); font-size: 0.9rem; }
.faq-item.open .faq-a { display: block; }

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--gold); }
.stat .lbl { font-size: 0.8125rem; color: var(--fg-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Steps / timeline ---------- */
.flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; }
.flow .step { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 16px 22px; font-size: 0.875rem; font-weight: 600; }
.flow .arr { color: var(--gold); font-size: 1.1rem; }

/* ---------- Breadcrumb / page head ---------- */
.page-head { background: var(--black); color: var(--white); padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-head .lead { color: rgba(255,255,255,0.72); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--white); padding: 56px 0 28px; margin-top: 0; }
.footer a { color: rgba(255,255,255,0.68); font-size: 0.875rem; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; margin-bottom: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.footer-bottom a, .footer ul a { display: inline-block; padding: 7px 0; }
.footer ul { gap: 0; }

/* ---------- Check row (wrapping inline badges) ---------- */
.check-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 11px 24px; }
.check-row li { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; }
.check-row li::before { content: '✓'; color: var(--gold); font-weight: 800; flex-shrink: 0; }
.tr-dark .check-row li, .hero-dark .check-row li { color: rgba(255,255,255,0.85); }

/* ---------- Module card ---------- */
.module-card ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.module-card ul li { font-size: 0.85rem; color: var(--fg-secondary); padding-left: 14px; position: relative; }
.module-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; background: var(--black); border-top: 1px solid rgba(255,255,255,0.12); }
.sticky-cta a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 52px; text-align: center; padding: 8px 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #fff; }
.sticky-cta a.gold { background: var(--gold); color: var(--black); }
.sticky-cta a.wa { background: #25D366; }
.sticky-cta-spacer { height: 58px; }
@media (min-width: 960px) { .sticky-cta, .sticky-cta-spacer { display: none; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform var(--duration-fast) var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
body:has(.sticky-cta) .wa-float { bottom: 76px; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .section-lg { padding: 64px 0; }
  .card, .glass-card { padding: 22px; }
  .form-panel { padding: 24px 20px; }
  .flow .step { padding: 12px 16px; font-size: 0.8125rem; }
}

/* ---------- Misc ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 9px 20px; font-size: 0.875rem; font-weight: 600; background: var(--white); }
.tr-dark .pill, .hero-dark .pill { background: var(--glass-bg); border-color: var(--glass-border); color: var(--white); }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 10px; font-size: 0.9375rem; color: var(--fg-secondary); }
.check-list li::before { content: '✓'; color: var(--gold); font-weight: 800; flex-shrink: 0; }
.tr-dark .check-list li { color: rgba(255,255,255,0.78); }
.img-frame { border-radius: var(--radius-image); overflow: hidden; }
.badge-ai { display: inline-flex; white-space: nowrap; padding: 4px 11px; border-radius: 999px; background: rgba(79,140,255,0.12); border: 1px solid rgba(79,140,255,0.3); color: var(--ai-blue); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-gold { display: inline-flex; white-space: nowrap; padding: 4px 11px; border-radius: 999px; background: rgba(255,189,57,0.14); border: 1px solid rgba(255,189,57,0.4); color: #8a5a00; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 640px) { .badge-gold, .badge-ai { white-space: normal; border-radius: 14px; } }
.tr-dark .badge-gold, .hero-dark .badge-gold { color: var(--gold); }
