/* Six4Six Insights — shared stylesheet */

:root {
  --bg: #F8F6FC;
  --bg-alt: #F1EDFA;
  --surface: #FFFFFF;
  --text: #191423;
  --text-muted: #5B5568;
  --border: #E6E1F2;
  --brand: #4C2A85;
  --brand-hover: #3B2069;
  --brand-accent: #6D3FA6;
  --accent-bg: #EDE6F7;
  --shadow: 0 4px 20px rgba(25, 20, 35, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1100px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17131F;
    --bg-alt: #1F1A2B;
    --surface: #1D1828;
    --text: #F1EEF8;
    --text-muted: #B3ABC4;
    --border: #322A44;
    --brand: #8B6FD1;
    --brand-hover: #A78BE0;
    --brand-accent: #A78BE0;
    --accent-bg: #2B2340;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
  font-family: var(--font-serif);
  font-weight: 600;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-accent);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo .six { color: var(--brand-accent); }
.logo .four {
  color: var(--brand-accent);
  opacity: 0.55;
  margin: 0 1px;
}
.logo .insights {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-sans);
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
}
.nav-links a:hover { color: var(--brand-accent); text-decoration: none; }
.nav-links a.active { color: var(--brand-accent); }

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--brand-hover); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 12px; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 90px 0 70px;
  text-align: center;
}

.hero .kicker {
  color: var(--brand-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 22px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  text-align: left;
}
.about-hero .headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
@media (max-width: 620px) {
  .about-hero { flex-direction: column; text-align: center; }
}

.hero-story {
  max-width: 620px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-sans);
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

/* ---------- Sections ---------- */

section { padding: 70px 0; }
section.alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .kicker {
  color: var(--brand-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  font-family: var(--font-sans);
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}
a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.card:hover { text-decoration: none; }
.card.linked:hover { border-color: var(--brand-accent); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--brand-accent);
  margin-bottom: 14px;
}
.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
  font-family: var(--font-sans);
}

.img-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.img-placeholder svg { width: 32px; height: 32px; color: var(--brand-accent); opacity: 0.6; }

.card .fee {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--brand-accent);
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

/* ---------- Ladder ---------- */

.ladder {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}
.ladder-step {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.ladder-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--brand-accent);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 14px;
}
.ladder-step h4 { margin: 0 0 8px; font-size: 1.05rem; }
.ladder-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--font-sans);
}
th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; }
.table-scroll { overflow-x: auto; }

/* ---------- Pull quote / positioning block ---------- */

.positioning {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px;
}
.positioning blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  color: var(--text);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 70px 24px;
  border-radius: var(--radius-lg);
}
.cta-band h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.cta-band p {
  font-family: var(--font-sans);
  margin: 0 0 30px;
  opacity: 0.9;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: var(--bg-alt); }

/* ---------- Forms ---------- */

form.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  font-family: var(--font-sans);
}
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.92rem; }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 34px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.footer-tagline { max-width: 320px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links h5 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-sans);
  font-weight: 600;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--brand-accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Misc utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--text-muted); }
.pill {
  display: inline-block;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  color: var(--brand-accent);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}
