/*
 * BasisLine Transitions — Shared Design System v2.0
 *
 * Background: #F5F3EE  warm parchment (designer's choice)
 * Primary:    #1C2B45  deep navy
 * Accent:     #B8903C  restrained gold
 * Body font:  Inter
 * Heading:    DM Serif Display
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Backgrounds */
  --bg:          #F5F3EE;   /* warm parchment — main page background */
  --surface:     #FFFFFF;   /* cards, panels */
  --surface2:    #EDEBE4;   /* alternate section fill */

  /* Brand */
  --navy:        #1C2B45;
  --navy-mid:    #2D4270;
  --navy-pale:   #EAF0F8;

  /* Accent */
  --gold:        #B8903C;
  --gold-dark:   #9A7530;
  --gold-pale:   #F7EDD9;

  /* Text */
  --text:        #1A1A18;
  --muted:       #5A5854;
  --subtle:      #8C8A84;

  /* Semantic */
  --good:        #1D6B44;
  --good-bg:     #EBF7F0;
  --border:      #DDD9D1;
  --border-l:    #EDEAE3;

  /* Layout */
  --container:   1100px;
  --prose:       64ch;
  --radius:      10px;
  --radius-lg:   18px;
}

/* ── Base ─────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ───────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: 0.6rem; }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }

p { color: var(--muted); line-height: 1.75; }
a { color: var(--navy); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--navy-mid); }
strong { color: var(--text); font-weight: 600; }

/* ── Layout ───────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.section-surface { background: var(--surface); }
.section-warm    { background: var(--surface2); }

.section-head { max-width: 680px; margin-bottom: 2.8rem; }
.section-head p { margin-top: 0.6rem; font-size: 1.02rem; }

/* ── Kicker (section label) ───────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 0.8rem;
}
.kicker::before {
  content: ''; display: block;
  width: 22px; height: 1px; background: var(--gold);
}

/* ── Divider ──────────────────────────────────────── */
.divider { width: 100%; height: 1px; background: var(--border-l); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.72rem 1.65rem; border-radius: 7px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary   { background: var(--navy);  color: #FFFFFF; border-color: var(--navy); }
.btn-primary:hover  { background: var(--navy-mid); border-color: var(--navy-mid); color: #FFFFFF; }

.btn-outline   { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover  { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }

.btn-gold      { background: var(--gold); color: #FFFFFF; border-color: var(--gold); }
.btn-gold:hover     { background: var(--gold-dark); border-color: var(--gold-dark); color: #FFFFFF; }

.btn-lg { padding: 0.88rem 2.1rem; font-size: 0.97rem; }

/* ── Navigation ───────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,243,238,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 2rem; max-width: var(--container);
  margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.12rem; color: var(--navy);
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 1.8rem;
  flex: 1; justify-content: center;
}
.nav-links a {
  font-size: 0.87rem; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color 0.15s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta {
  font-size: 0.85rem; font-weight: 600;
  background: var(--navy); color: #FFFFFF;
  padding: 0.48rem 1.15rem; border-radius: 7px;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--navy-mid); color: #FFFFFF; }

@media (max-width: 768px) { .nav-links { display: none; } }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  padding: 6rem 1.5rem 5rem;
  background: var(--bg);
  text-align: center;
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero p.lead {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--muted); max-width: 58ch; margin: 0 auto; line-height: 1.75;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  justify-content: center; margin-top: 2.2rem;
}

/* Left-aligned hero variant (inner pages) */
.hero-left { text-align: left; }
.hero-left .hero-inner { max-width: var(--container); }
.hero-left .hero-actions { justify-content: flex-start; }
.hero-left p.lead { margin: 0; max-width: 56ch; }

/* ── Grid layouts ─────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Cards ────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p  { font-size: 0.93rem; }

/* Audience routing card (homepage) */
.audience-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.4rem;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.audience-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(28,43,69,0.09);
}
.audience-tag {
  font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 0.8rem;
}
.audience-card h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem; color: var(--navy); margin-bottom: 0.7rem;
}
.audience-card p { font-size: 0.93rem; line-height: 1.72; margin-bottom: 1.8rem; flex: 1; }
.card-link {
  font-size: 0.87rem; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.15s; text-decoration: none;
}
.card-link::after { content: '→'; }
.card-link:hover { color: var(--gold); }

/* ── Constraint / feature pills ──────────────────── */
.constraint-item {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
}
.constraint-item h4 {
  font-size: 0.88rem; font-weight: 600; color: var(--navy);
  margin-bottom: 0.3rem; font-family: 'Inter', sans-serif;
}
.constraint-item p { font-size: 0.83rem; line-height: 1.6; }

/* ── Steps ────────────────────────────────────────── */
.step-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.8rem; color: var(--gold); opacity: 0.35;
  line-height: 1; margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p  { font-size: 0.9rem; line-height: 1.7; }

/* ── Bullet list ──────────────────────────────────── */
.blt-list { list-style: none; display: grid; gap: 0.7rem; }
.blt-list li {
  position: relative; padding-left: 1.35rem;
  font-size: 0.93rem; color: var(--muted); line-height: 1.65;
}
.blt-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

/* ── Callouts ─────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--navy); padding: 1rem 1.4rem;
  background: var(--navy-pale); border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { font-size: 0.92rem; color: var(--navy); line-height: 1.7; }

.callout-gold {
  border-left: 3px solid var(--gold); padding: 1rem 1.4rem;
  background: var(--gold-pale); border-radius: 0 var(--radius) var(--radius) 0;
}
.callout-gold p { font-size: 0.92rem; color: var(--text); line-height: 1.7; }

/* ── Data metrics (RIA page) ──────────────────────── */
.data-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr));
  gap: 1.1rem;
}
.data-cell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem 1.4rem; text-align: center;
}
.data-value {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.5rem; line-height: 1; color: var(--good);
  margin-bottom: 0.5rem; font-variant-numeric: tabular-nums;
}
.data-label {
  font-size: 0.77rem; color: var(--muted); line-height: 1.45;
  text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600;
}

/* ── Results table ────────────────────────────────── */
.results-wrap {
  overflow-x: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
}
table { width: 100%; border-collapse: collapse; min-width: 540px; }
th, td { padding: 0.85rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border-l); }
th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--subtle); background: var(--surface2);
}
td { font-size: 0.9rem; color: var(--text); }
td.num  { text-align: right; font-variant-numeric: tabular-nums; }
td.good { color: var(--good); font-weight: 700; text-align: right; }
td.neg  { color: var(--navy); font-weight: 500; text-align: right; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
.table-note { font-size: 0.78rem; color: var(--subtle); margin-top: 0.75rem; line-height: 1.55; }

/* ── Deliverables list ────────────────────────────── */
.deliverables { display: grid; gap: 0.8rem; }
.deliverable {
  display: flex; align-items: flex-start; gap: 0.9rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.deliverable-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--navy-pale); border: 1px solid rgba(28,43,69,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0; color: var(--navy);
}
.deliverable h4 { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.deliverable p  { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* ── Process steps ────────────────────────────────── */
.process-steps { display: grid; gap: 0.9rem; }
.process-step {
  display: grid; grid-template-columns: 38px 1fr; gap: 1.2rem; align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
}
.process-step-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem; color: var(--gold); opacity: 0.55; line-height: 1;
}
.process-step h4 { font-size: 0.92rem; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.process-step p  { font-size: 0.87rem; color: var(--muted); line-height: 1.65; }

/* ── FAQ ──────────────────────────────────────────── */
.faq-list { display: grid; gap: 0.55rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; cursor: pointer; gap: 1rem;
  font-size: 0.95rem; font-weight: 500; color: var(--navy);
  user-select: none; transition: background 0.15s;
}
.faq-q:hover { background: var(--bg); }
.faq-chevron { font-size: 0.78rem; color: var(--subtle); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.32s ease, padding 0.2s;
  font-size: 0.9rem; color: var(--muted); padding: 0 1.4rem; line-height: 1.72;
}
.faq-item.open .faq-a { max-height: 280px; padding: 0 1.4rem 1.2rem; }

/* ── Contact section ──────────────────────────────── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: start;
}
.contact-info h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.contact-info p  { font-size: 0.95rem; line-height: 1.78; margin-bottom: 1.25rem; }
.contact-meta     { font-size: 0.88rem; color: var(--muted); }
.contact-meta a   { color: var(--navy); font-weight: 500; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.81rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.38rem; letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.68rem 0.9rem;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--navy); background: var(--surface);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-note { font-size: 0.78rem; color: var(--subtle); margin-top: 0.7rem; line-height: 1.55; }
.form-success {
  display: none; padding: 1rem 1.2rem;
  background: var(--good-bg); border: 1px solid #C3E6D4;
  border-radius: var(--radius); color: var(--good); font-size: 0.9rem;
}

@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr;
  gap: 4rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}
.footer-logo-mark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem; color: #FFFFFF; text-decoration: none;
}
.footer-logo-mark span { color: var(--gold); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 0.5rem; max-width: 28ch; line-height: 1.6; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem;
  justify-content: flex-end; align-items: flex-start;
}
.footer-links a {
  font-size: 0.87rem; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: #FFFFFF; }
.footer-legal {
  max-width: var(--container); margin: 1.5rem auto 0;
  font-size: 0.77rem; color: rgba(255,255,255,0.35); line-height: 1.65;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { justify-content: flex-start; }
}

/* ── Responsive tweaks ────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 4rem 1.5rem; }
  .hero   { padding: 5rem 1.5rem 4rem; }
}
@media (max-width: 640px) {
  section { padding: 3.5rem 1.25rem; }
  .hero   { padding: 4.5rem 1.25rem 3.5rem; }
}
