/* =============================================================
   TrustEasyGo Landing Page — CSS
   Phase 1: Base, Navbar, Hero
============================================================= */

:root {
  /* Heritage Legal / Ledger theme. Variable NAMES are kept for stability
     (every rule already references them) — only the VALUES are repointed:
     "navy" now holds deep ink-green, "teal" now holds brass/gold. */
  --navy:    #14302a;   /* deep pine / ink green — primary dark */
  --navy-2:  #1c4034;   /* gradient mid */
  --teal:    #b08542;   /* brass / gold — accent (replaces cyan) */
  --teal-dk: #946d2e;   /* brass, darker — hover */
  --green:   #2e7d5b;   /* emerald — balanced / positive states */
  --accent:  #7a2e39;   /* oxblood — legal-seal burgundy (highlight) */
  --text:    #26201a;   /* warm near-black (ink on paper) */
  --muted:   #6b6155;   /* warm grey-brown */
  --border:  #e4dccb;   /* warm hairline */
  --bg-soft: #f6f1e7;   /* warm ivory / paper */
  --white:   #ffffff;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(20, 38, 30, 0.10);
  --shadow-lg: 0 14px 48px rgba(20, 38, 30, 0.16);
  /* new heritage tokens */
  --ink-deep: #0d2620;  /* deepest green — gradient ends */
  --brass-li: #cda35a;  /* light brass — headline accent */
  --paper-2:  #efe7d6;  /* deeper paper */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.teg-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}
.teg-navbar.scrolled {
  background: rgba(20, 48, 42, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.teg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dk));
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}
.logo-accent { color: var(--teal); }

.teg-nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.teg-nav-links a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.teg-nav-links a:hover { color: var(--teal); }

.teg-nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-nav-login {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s;
}
.btn-nav-login:hover { color: white; }

.btn-nav-start {
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav-start:hover {
  background: var(--teal-dk);
  color: white;
  transform: translateY(-1px);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  background: var(--navy);
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.mobile-menu ul li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-menu ul a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .teg-nav-links, .teg-nav-cta { display: none; }
  .mobile-toggle { display: flex; }
}


/* ── HERO ────────────────────────────────────────────────── */
.teg-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 58%, var(--ink-deep) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Ruled-ledger hairlines (horizontal only) — accounting-paper motif */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(205,163,90,0.07) 1px, transparent 1px);
  background-size: 100% 40px;
  pointer-events: none;
}

.hero-content { padding: 80px 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(176,133,66,0.15);
  color: var(--teal);
  border: 1px solid rgba(176,133,66,0.3);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 600;
  color: #f3ecde;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.headline-accent {
  color: var(--brass-li);
  -webkit-text-fill-color: var(--brass-li);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn-hero-primary {
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(176,133,66,0.35);
}
.btn-hero-primary:hover {
  background: var(--teal-dk);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176,133,66,0.45);
}
.btn-hero-ghost {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.btn-hero-ghost:hover {
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.hero-note {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
}

/* Dashboard card mockup */
.hero-visual {
  align-items: center;
  justify-content: center;
  padding: 60px 0 60px 40px;
}
.dashboard-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
  position: relative;
}
.dash-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red   { background: #c9bfa8; }
.dot.amber { background: #b9ad90; }
.dot.green { background: #9f9477; }
.dash-title {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.dash-stat {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px 12px;
}
.dash-stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
}
.dash-stat-value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.dash-files { margin-bottom: 20px; }
.dash-file-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.dash-file-row:last-child { border-bottom: none; }
.file-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.file-name {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.file-bal {
  font-size: 13px;
  font-weight: 600;
}
.file-bal.positive { color: var(--green); }

.dash-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}
.dash-badge.balanced {
  background: #d1fae5;
  color: #065f46;
}
.dash-badge.compliant {
  background: rgba(176,133,66,0.16);
  color: #946d2e;
}

/* =============================================================
   Phase 2: Stats Bar + Features Grid
============================================================= */

/* ── STATS BAR ───────────────────────────────────────────── */
.teg-stats {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 0;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 12px 24px;
}
.stat-number {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--brass-li);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .stat-divider { display: none; }
  .stat-item { min-width: 50%; }
}


/* ── SECTION SHARED STYLES ───────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  background: rgba(176,133,66,0.1);
  color: var(--teal-dk);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}


/* ── FEATURES GRID ───────────────────────────────────────── */
.teg-features {
  padding: 100px 0;
  background: var(--bg-soft);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feat-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}
.feat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feat-card--highlight {
  border-color: rgba(122,46,57,0.28);
  background: linear-gradient(160deg, #fbf2ef 0%, white 60%);
}
.feat-card-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(122,46,57,0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 100px;
}
.feat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--ibg);
  color: var(--ic);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.feat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.feat-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-list li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.feat-list li i {
  color: var(--green);
  font-size: 12px;
  flex-shrink: 0;
}

/* =============================================================
   Phase 3: LPC Compliance + How it works
============================================================= */

/* ── LPC COMPLIANCE ─────────────────────────────────────── */
.teg-compliance {
  padding: 100px 0;
  background: white;
}

.compliance-checklist {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.comp-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.comp-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #d1fae5;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.comp-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}
.comp-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Reconciliation card */
.comp-card {
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.comp-card-header {
  background: rgba(176,133,66,0.18);
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.comp-card-body {
  padding: 24px;
}
.recon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.recon-label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.recon-value {
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.recon-value.recon-sub { color: rgba(255,255,255,0.5); }
.recon-bold .recon-label,
.recon-bold .recon-value {
  font-weight: 700;
  color: white;
}
.recon-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 10px 0;
}
.recon-result {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.recon-result.balanced {
  background: rgba(26,147,111,0.25);
  color: #6ee7b7;
}
.recon-meta {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.comp-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.comp-badge-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-soft);
}
.comp-badge-item i { color: var(--teal-dk); }


/* ── HOW IT WORKS ────────────────────────────────────────── */
.teg-how {
  padding: 100px 0;
  background: var(--bg-soft);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
/* Vertical connector line */
.how-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--teal-dk), transparent);
  opacity: 0.25;
}

.how-step {
  display: grid;
  grid-template-columns: 60px 1fr 80px;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.how-step:last-child { border-bottom: none; }

.how-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.how-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.how-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.how-icon-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--teal-dk);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

@media (max-width: 576px) {
  .how-steps::before { display: none; }
  .how-step {
    grid-template-columns: 48px 1fr;
  }
  .how-icon-wrap { display: none; }
  .comp-card-header { font-size: 13px; }
}

/* =============================================================
   Phase 4: CTA Banner + Footer
============================================================= */

/* ── CTA BANNER ──────────────────────────────────────────── */
.teg-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, var(--ink-deep) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(205,163,90,0.08) 1px, transparent 1px);
  background-size: 100% 40px;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text { flex: 1; min-width: 280px; }
.cta-headline {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  color: #f3ecde;
  line-height: 1.18;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.btn-cta-primary {
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(176,133,66,0.4);
  white-space: nowrap;
}
.btn-cta-primary:hover {
  background: var(--teal-dk);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176,133,66,0.5);
}
.btn-cta-ghost {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-cta-ghost:hover {
  color: white;
  border-color: rgba(255,255,255,0.5);
}


/* ── FOOTER ──────────────────────────────────────────────── */
.teg-footer {
  background: #0a1f1a;
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin: 12px 0 18px;
  max-width: 280px;
}
.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-badges span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 12px;
  border-radius: 100px;
}
.footer-badges span i { color: var(--teal); }

.footer-links-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}
.footer-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-group ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-group ul li a:hover { color: var(--teal); }
.footer-muted {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy, .footer-legal {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 576px) {
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .btn-cta-primary, .btn-cta-ghost { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
