/* ==========================================================================
   THREE DOTS FINITUDE - Design Tokens
   Palette sampled directly from the TDF logo: confident blue + deep navy
   on white. Serif display (Fraunces) + clean sans body (Inter) - a
   deliberately different pairing from AGM Wealth's sans-only system,
   fitting TDF's boutique HNI/UHNI positioning ("fearless, undoctored,
   heartcrafted"). Signature motif: the three dots themselves, used as a
   recurring "You · We · Wealth" progression marker throughout the site.
   ========================================================================== */
:root {
  --blue-700: #2874C0;      /* primary brand blue, from logo */
  --blue-900: #103E6F;      /* deep navy, from logo */
  --blue-100: #E5F3FC;      /* pale blue tint for section backgrounds */
  --blue-050: #F5FAFD;      /* near-white blue-tinted page background */
  --gray-500: #ACACAC;      /* logo's neutral gray */
  --ink-900: #131C2A;       /* near-black for body headings */
  --text-body: #3E4A5C;
  --text-muted: #6B7A8C;
  --line: #DCE6EF;
  --line-on-dark: rgba(229, 243, 252, 0.22);
  --white: #FFFFFF;
  --success: #2E8B57;
  --danger: #B14A3A;

  --font-display: 'Space Grotesk', 'IBM Plex Sans', -apple-system, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-w: 1200px;
  --radius: 4px;
  --shadow-card: 0 2px 20px rgba(16, 62, 111, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  font-weight: 500;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
em, .accent { font-style: normal; color: var(--blue-700); font-weight: 700; }
p { margin-bottom: 1rem; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}

/* --- Signature motif: the three dots (You · We · Wealth) --- */
.three-dots { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.three-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-700); display: inline-block; }
.three-dots span:nth-child(2) { background: var(--blue-900); }
.three-dots span:nth-child(3) { background: var(--gray-500); }
.dots-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }

/* --- Utility bar --- */
.utility-bar { background: var(--blue-900); color: #C9DEEF; font-size: 0.78rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 32px; max-width: var(--max-w); margin: 0 auto; }
.utility-tag { font-family: var(--font-mono); letter-spacing: 0.03em; font-size: 0.72rem; color: #9FCBEF; }
.utility-contact a { color: #C9DEEF; font-weight: 500; }
.utility-contact a:hover { color: #fff; }
.utility-contact .sep { margin: 0 8px; color: #3D6386; }

/* --- Header / Nav --- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; max-width: var(--max-w); margin: 0 auto; position: relative; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink-900); position: relative; }
.main-nav a:hover { color: var(--blue-700); }
.main-nav a.active { color: var(--blue-700); }
.main-nav a.active::after { content: ''; position: absolute; bottom: -20px; left: 0; right: 0; height: 2px; background: var(--blue-700); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.85rem; cursor: pointer; border: 1.5px solid transparent; transition: all 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-900); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-700); color: var(--white); }
.btn-outline-light { border-color: var(--line-on-dark); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(229,243,252,0.12); }
.btn-text { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--blue-900); display: inline-flex; align-items: center; gap: 6px; position: relative; }
.btn-text:hover { color: var(--blue-700); }
.btn-text::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1.5px; background: var(--blue-700); transition: right 0.25s ease; }
.btn-text:hover::after { right: 0; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink-900); padding: 4px 8px; }

/* --- Hero --- */
.hero { background: linear-gradient(180deg, var(--blue-050) 0%, var(--white) 100%); padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { font-size: 1.13rem; color: var(--text-muted); max-width: 48ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.journey-svg { width: 100%; max-width: 420px; height: auto; }

/* --- Sections --- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--blue-050); }
.section-dark { background: var(--blue-900); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: #C9DEEF; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .sub { color: var(--text-muted); font-size: 1.02rem; }
.section-dark .section-head .sub { color: #C9DEEF; }

/* --- Stats strip --- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-cell { padding: 30px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat-cell:first-child { border-left: none; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--blue-700); display: block; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

/* --- Hairline cards (products) --- */
.hairline-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.hairline-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.hairline-card { padding: 38px 34px; border-left: 1px solid var(--line); }
.hairline-card:first-child { border-left: none; }
.badge-ring {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid var(--blue-700); background: transparent; color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  margin-bottom: 20px; position: relative;
}
.hairline-card h3 { margin-bottom: 4px; }
.hairline-card .reg-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--blue-700); letter-spacing: 0.02em; display: block; margin-bottom: 16px; text-transform: uppercase; }
.hairline-card p { color: var(--text-muted); font-size: 0.94rem; }
.hairline-card .field-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-900); margin-bottom: 6px; margin-top: 18px; }
.hairline-card .field-label + p { font-size: 0.9rem; margin-bottom: 0; }
.hairline-card hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

/* --- Simple card grid --- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); padding: 32px 30px; }
.card .num-tag { font-family: var(--font-mono); color: var(--blue-700); font-size: 0.76rem; font-weight: 600; margin-bottom: 12px; display: block; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 0; }

/* --- Process list --- */
.process-list { display: flex; flex-direction: column; }
.process-item { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.process-item:first-child { border-top: 1px solid var(--line); }
.process-item .p-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--blue-700); font-weight: 600; padding-top: 6px; }
.process-item h3 { margin-bottom: 6px; font-size: 1.2rem; }
.process-item p { color: var(--text-muted); margin-bottom: 0; font-size: 0.94rem; }

/* --- Founder profile --- */
.founder-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; margin-bottom: 72px; }
.founder-grid:last-child { margin-bottom: 0; }
.founder-portrait { border: 1px solid var(--line); padding: 10px; background: var(--blue-050); }
.founder-portrait img { width: 100%; display: block; }
.founder-role { color: var(--blue-700); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 18px; display: block; }
.timeline-row { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); margin: 24px 0; }
.timeline-cell { flex: 1; min-width: 110px; padding: 16px 18px; border-left: 1px solid var(--line); }
.timeline-cell:first-child { border-left: none; }
.timeline-year { font-family: var(--font-display); font-size: 1.3rem; color: var(--blue-700); display: block; margin-bottom: 4px; }
.timeline-label { font-size: 0.74rem; color: var(--text-muted); line-height: 1.4; }
.pullquote { border-left: 3px solid var(--blue-700); padding: 4px 0 4px 22px; margin: 24px 0; }
.pullquote p { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink-900); margin-bottom: 0; }

/* --- Testimonials --- */
.testi-card { background: var(--blue-050); border-left: 3px solid var(--blue-700); padding: 28px 30px; }
.testi-card p { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--ink-900); }
.testi-name { font-weight: 600; color: var(--ink-900); font-size: 0.86rem; margin-top: 12px; font-family: var(--font-body); font-style: normal; }
.testi-meta { font-size: 0.76rem; color: var(--text-muted); }

/* --- Compliance strip / ledger rows --- */
.compliance-strip { background: var(--blue-900); color: #C9DEEF; padding: 26px 0; font-size: 0.82rem; }
.reg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; font-family: var(--font-mono); }
.ledger-row { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; padding: 4px 0; }
.ledger-row .lr-label { color: #9FCBEF; font-weight: 600; white-space: nowrap; }
.ledger-row .lr-value { color: #C9DEEF; white-space: nowrap; }

/* --- Footer --- */
.site-footer { background: var(--blue-900); color: #C9DEEF; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--line-on-dark); }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a { color: #C9DEEF; display: block; margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-legal { padding: 24px 0 32px; font-size: 0.78rem; color: #9FB4C7; line-height: 1.75; }
.footer-legal p { margin-bottom: 10px; }
.footer-legal .disclosure-highlight { background: rgba(229,243,252,0.08); border-left: 3px solid #9FCBEF; padding: 14px 18px; margin: 14px 0; }
.footer-bottom { border-top: 1px solid var(--line-on-dark); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #9FB4C7; flex-wrap: wrap; gap: 10px; }

/* --- WhatsApp float --- */
.wa-float { position: fixed; bottom: 22px; right: 22px; background: #25D366; color: white; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0,0,0,0.25); z-index: 200; font-size: 1.6rem; }

/* --- Legal pages --- */
.legal-page h2 { margin-top: 36px; margin-bottom: 14px; font-size: 1.5rem; }
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page h3 { font-size: 1.1rem; margin-top: 22px; margin-bottom: 10px; }
.legal-page p, .legal-page li { color: var(--text-body); }
.legal-page ul, .legal-page ol { padding-left: 22px; margin-bottom: 16px; }
.legal-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
table.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.92rem; }
table.data-table th, table.data-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
table.data-table th { background: var(--blue-900); color: var(--white); font-weight: 600; font-size: 0.8rem; }
table.data-table tr:nth-child(even) td { background: var(--blue-050); }
.callout { background: var(--blue-100); border-left: 4px solid var(--blue-700); padding: 16px 20px; font-size: 0.92rem; margin: 20px 0; color: var(--ink-900); }
.callout.warn { background: #F3E3DC; border-left-color: var(--danger); }

/* --- Breadcrumb --- */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--blue-700); }

/* --- FAQ accordion --- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink-900); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.2rem; color: var(--blue-700); margin-left: 16px; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 12px 0 0; color: var(--text-muted); font-size: 0.94rem; }

/* --- Calculators --- */
.calc-card { background: var(--blue-050); border: 1px solid var(--line); padding: 36px; }
.calc-input label { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.calc-input input { width: 100%; padding: 11px; border: 1px solid var(--line); background: var(--white); font-family: var(--font-mono); font-size: 0.95rem; }
.calc-result-num { font-family: var(--font-display); font-weight: 600; }
.ledger-rule { height: 1px; background: var(--line); border: none; margin: 40px 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto 24px; }
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .hairline-grid { grid-template-columns: 1fr; }
  .hairline-card { border-left: none; border-top: 1px solid var(--line); }
  .hairline-card:first-child { border-top: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .reg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .utility-bar { display: none; }
  .main-nav { display: none; }
  .main-nav.nav-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 14px 24px 22px; gap: 16px; box-shadow: var(--shadow-card); }
  .nav-toggle { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 40px 1fr; }
  .timeline-row { flex-direction: column; }
  .timeline-cell { border-left: none; border-top: 1px solid var(--line); }
  .timeline-cell:first-child { border-top: none; }
}
