/* ===================================================================
   ALLENCREST GROUP — Design Tokens & Component Styles
   =================================================================== */

/* --- DESIGN TOKENS --- */
:root,
[data-theme='light'] {
  /* Type Scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* 4px Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  /* Surfaces — light gray / white per brand spec */
  --color-bg: #F8F9FA;
  --color-surface: #ffffff;
  --color-surface-2: #F1F3F5;
  --color-surface-offset: #E9ECEF;
  --color-surface-dynamic: #DEE2E6;
  --color-divider: #DEE2E6;
  --color-border: #CED4DA;

  /* Text — slate per brand spec */
  --color-text: #2b3a4e;
  --color-text-muted: #5a6a7e;
  --color-text-faint: #8e9bab;
  --color-text-inverse: #ffffff;

  /* Primary — deep teal */
  --color-primary: #01696F;
  --color-primary-hover: #015358;
  --color-primary-active: #013d41;
  --color-primary-highlight: #d0e8ea;

  /* Semantic */
  --color-success: #437a22;
  --color-warning: #964219;
  --color-error: #a12c44;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 240 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 240 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 240 / 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* --- DARK MODE --- */
[data-theme='dark'] {
  --color-bg: #151a20;
  --color-surface: #1c2229;
  --color-surface-2: #232a33;
  --color-surface-offset: #1e252d;
  --color-surface-dynamic: #2a323c;
  --color-divider: #2a323c;
  --color-border: #364050;

  --color-text: #cbd5e1;
  --color-text-muted: #8899ab;
  --color-text-faint: #56687a;
  --color-text-inverse: #1c2229;

  --color-primary: #4fa8af;
  --color-primary-hover: #3d959c;
  --color-primary-active: #2d7f86;
  --color-primary-highlight: #1e3538;

  --color-success: #6daa45;
  --color-warning: #bb653b;
  --color-error: #dd6974;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #151a20;
    --color-surface: #1c2229;
    --color-surface-2: #232a33;
    --color-surface-offset: #1e252d;
    --color-surface-dynamic: #2a323c;
    --color-divider: #2a323c;
    --color-border: #364050;
    --color-text: #cbd5e1;
    --color-text-muted: #8899ab;
    --color-text-faint: #56687a;
    --color-text-inverse: #1c2229;
    --color-primary: #4fa8af;
    --color-primary-hover: #3d959c;
    --color-primary-active: #2d7f86;
    --color-primary-highlight: #1e3538;
    --color-success: #6daa45;
    --color-warning: #bb653b;
    --color-error: #dd6974;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
  }
}

/* ===================================================================
   GLOBAL LAYOUT
   =================================================================== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}
.container--narrow {
  max-width: var(--content-default);
}

/* ===================================================================
   SKIP LINK
   =================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-2);
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: background var(--transition-slow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .header-inner { padding-inline: var(--space-8); }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.header-brand img {
  height: 36px;
  width: auto;
}
.header-brand .wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
}
.nav-desktop a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--space-1) 0;
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--color-text);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  width: 100%;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  border-radius: var(--radius-md);
}
@media (min-width: 900px) {
  .hamburger { display: none; }
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  z-index: 99;
}
.nav-mobile.is-open {
  display: block;
}
@media (min-width: 900px) {
  .nav-mobile { display: none !important; }
}
.nav-mobile a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-md);
}
.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0.15 0.02 240 / 0.75) 0%,
    oklch(0.12 0.02 240 / 0.85) 60%,
    oklch(0.1 0.02 240 / 0.92) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-4);
}
@media (min-width: 768px) {
  .hero-content {
    padding: var(--space-20) var(--space-8);
  }
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4fa8af;
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: #ffffff;
  margin-bottom: var(--space-4);
  max-width: 16ch;
  line-height: 1.05;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-4);
}
.hero-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}
.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--primary:active {
  background: var(--color-primary-active);
}
.btn--outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
}
.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn--outline-dark:hover {
  background: var(--color-primary-highlight);
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  padding-inline: var(--space-2);
}
.btn--ghost:hover {
  color: var(--color-primary-hover);
}
.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn-arrow {
  transition: transform var(--transition-interactive);
}
a:hover .btn-arrow,
button:hover .btn-arrow {
  transform: translateX(3px);
}

/* ===================================================================
   SECTIONS
   =================================================================== */
.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}
.section--alt {
  background: var(--color-surface);
}
.section-header {
  margin-bottom: var(--space-10);
}
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ===================================================================
   CARDS
   =================================================================== */
.card-grid {
  display: grid;
  gap: var(--space-6);
}
.card-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.card-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}
.card-grid--2 {
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.card p, .card li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.card ul {
  padding-left: var(--space-5);
  margin-top: var(--space-3);
}
.card li {
  margin-bottom: var(--space-2);
}

/* ===================================================================
   FUND SNAPSHOT TABLE
   =================================================================== */
.data-table {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table table {
  width: 100%;
}
.data-table th,
.data-table td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  font-size: var(--text-base);
}
.data-table th {
  font-weight: 600;
  color: var(--color-text);
  width: 45%;
  font-variant-numeric: tabular-nums;
}
.data-table td {
  color: var(--color-text-muted);
}
.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-4);
  }
  .data-table th {
    padding-top: var(--space-4);
    padding-bottom: 0;
  }
  .data-table tr {
    border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  }
  .data-table tr:last-child {
    border-bottom: none;
  }
}

/* ===================================================================
   STRATEGY STEPS
   =================================================================== */
.steps {
  display: grid;
  gap: var(--space-8);
  counter-reset: step-counter;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  counter-increment: step-counter;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  flex-shrink: 0;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.step-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===================================================================
   PROPERTY PROFILE TABLE
   =================================================================== */
.profile-table {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.profile-table th,
.profile-table td {
  padding: var(--space-3) var(--space-6);
  text-align: left;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  font-size: var(--text-base);
}
.profile-table th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface-2);
}
.profile-table td {
  color: var(--color-text-muted);
}
.profile-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-4);
  }
  .profile-table th {
    padding-top: var(--space-3);
    padding-bottom: 0;
  }
}

/* ===================================================================
   RISK FACTORS
   =================================================================== */
.risk-list {
  list-style: none;
  padding: 0;
}
.risk-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  color: var(--color-text-muted);
  max-width: 72ch;
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
}
.risk-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 0.6em;
}

/* ===================================================================
   CTA BANNER
   =================================================================== */
.cta-banner {
  background: var(--color-primary);
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-4);
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #ffffff;
  margin-bottom: var(--space-4);
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.cta-banner .btn {
  background: #ffffff;
  color: var(--color-primary);
}
.cta-banner .btn:hover {
  background: rgba(255,255,255,0.9);
}

/* ===================================================================
   INLINE LEGAL BAR
   =================================================================== */
.legal-bar {
  background: var(--color-surface-2);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-4);
  text-align: center;
}
.legal-bar p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 72ch;
  margin-inline: auto;
  line-height: 1.6;
}
.legal-bar a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ===================================================================
   DISCLAIMER BOX (invest page)
   =================================================================== */
.disclaimer-box {
  background: oklch(from var(--color-warning) l c h / 0.06);
  border: 1px solid oklch(from var(--color-warning) l c h / 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.disclaimer-box h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-warning);
  margin-bottom: var(--space-3);
}
.disclaimer-box p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===================================================================
   FORMS
   =================================================================== */
.form-grid {
  display: grid;
  gap: var(--space-5);
}
.form-grid--2 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-group label .required {
  color: var(--color-error);
  margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a6a7e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.checkbox-group {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
}
.checkbox-group label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.5;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12) var(--space-4);
}
.form-success.is-visible {
  display: block;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.form-success p {
  color: var(--color-text-muted);
  margin-inline: auto;
}

/* ===================================================================
   TEAM
   =================================================================== */
.team-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.team-card--featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .team-card--featured {
    grid-template-columns: auto 1fr;
  }
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  flex-shrink: 0;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}
.team-card .role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}
.team-card p {
  color: var(--color-text-muted);
  line-height: 1.75;
}

.team-placeholder {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.team-placeholder h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.team-placeholder p {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  margin-inline: auto;
}

/* ===================================================================
   MARKET CARDS (portfolio)
   =================================================================== */
.market-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.market-card-map {
  height: 160px;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}
.market-card-map svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}
.market-card-body {
  padding: var(--space-6);
}
.market-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.market-card ul {
  padding-left: var(--space-5);
}
.market-card li {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

/* ===================================================================
   STRATEGY PREVIEW (Home page)
   =================================================================== */
.strategy-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .strategy-flow {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
  }
}
.strategy-step {
  text-align: center;
  padding: var(--space-6);
}
.strategy-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.strategy-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.strategy-step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-inline: auto;
}
.strategy-arrow {
  display: none;
  color: var(--color-text-faint);
}
@media (min-width: 768px) {
  .strategy-arrow { display: flex; align-items: center; }
}

/* ===================================================================
   LEGAL PAGE
   =================================================================== */
.legal-content {
  max-width: var(--content-default);
  margin-inline: auto;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.legal-content h2:first-of-type {
  margin-top: 0;
}
.legal-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}
.legal-updated {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-style: italic;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.footer-main {
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 2fr 1fr 1fr;
    padding-inline: var(--space-8);
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-brand img {
  height: 32px;
  width: auto;
}
.footer-brand span {
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-4);
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.footer-social a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.footer-nav h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.footer-nav ul {
  list-style: none;
  padding: 0;
}
.footer-nav li {
  margin-bottom: var(--space-2);
}
.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--color-primary);
}

/* Footer Disclaimer */
.footer-disclaimer {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-8) var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .footer-disclaimer { padding-inline: var(--space-8); }
}
.footer-disclaimer h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.footer-disclaimer p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.footer-disclaimer p:last-child {
  margin-bottom: 0;
}
.footer-bottom {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  padding: var(--space-4);
  text-align: center;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-inline: auto;
}
.footer-bottom a {
  color: var(--color-primary);
  text-decoration: none;
}

/* ===================================================================
   PAGE HEADER (non-home pages)
   =================================================================== */
.page-header {
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
@media (min-width: 768px) {
  .page-header { padding-inline: var(--space-8); }
}
.page-header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}
.page-header p {
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* ===================================================================
   CONTENT PROSE
   =================================================================== */
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.prose p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}
.prose ul, .prose ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.prose li {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}
.prose strong {
  color: var(--color-text);
}

/* ===================================================================
   PLAYBOOK LIST
   =================================================================== */
.playbook-list {
  display: grid;
  gap: var(--space-4);
}
.playbook-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-md);
}
.playbook-icon {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.playbook-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.playbook-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===================================================================
   SCROLL ANIMATIONS
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   MISC
   =================================================================== */
a { color: var(--color-primary); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Accessible locked / access section */
.access-section {
  text-align: center;
  padding: var(--space-10);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}
.access-section svg {
  margin-inline: auto;
  margin-bottom: var(--space-4);
  color: var(--color-text-faint);
}
.access-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.access-section p {
  color: var(--color-text-muted);
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
