/* ==========================================================================
   EXPAND LEGAL — RECREATION STYLESHEET
   Recreation of the editorial retro-futuristic AI financial research platform
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (CSS VARIABLES)
   -------------------------------------------------------------------------- */
:root {
  /* ==========================================================================
     OFFICIAL EXPAND LEGAL COLOR PALETTE (From GEMINI.md)
     - #F4EFE6: Warm cream / soft parchment (predominant background tint, paper, soft highlights)
     - #B25329: Warm terracotta / burnt sienna (clothing, leather chairs, accent walls)
     - #B75A24: Rich copper / deep warm orange (primary backdrops, focal warm glow)
     - #524E38: Muted ochre / mustard yellow (ambient backdrops, secondary panels)
     - #BFC6B8: Desaturated olive-drab (retro mainframes, partitions, structural metal)
     - #7A765B: Muted sage / retro khaki (secondary control panels, soft shadows)
     - #A39A7E: Warm grayish tan (floors, neutral walls, tabletop surfaces)
     - #E7DEC8: Pale oat / light desaturated beige (shirts, soft fills, subtle trims)
     - #1D1713: Espresso dark charcoal (soft hair forms, muted cast shadows, framing)
     - #66877F: Retro muted teal / slate green (Card background behind the robot)
     Rule: Pure digital black (#000000), stark clinical white (#FFFFFF), and
     saturated modern neon dyes are strictly prohibited.
     ========================================================================== */
  --color-cream: #F4EFE6;
  /* Warm cream / soft parchment */
  --color-terracotta: #B25329;
  /* Warm terracotta / burnt sienna */
  --color-copper: #B75A24;
  /* Rich copper / deep warm orange */
  --color-ochre: #DC9E4A;
  /* Muted ochre / mustard yellow */
  --color-olive: #524E38;
  /* Desaturated olive-drab */
  --color-sage: #BFC6B8;
  /* Muted sage / retro khaki */
  --color-tan: #A39A7E;
  /* Warm grayish tan */
  --color-oat: #E7DEC8;
  /* Pale oat / light desaturated beige */
  --color-espresso: #1D1713;
  /* Espresso dark charcoal */
  --color-teal: #66877F;
  /* Teal */

  /* Semantic Aliases */
  --color-canvas: var(--color-cream);
  --color-ecru: var(--color-cream);
  --color-card-bg: var(--color-cream);
  --color-card-warm: var(--color-oat);
  --color-dark: var(--color-espresso);
  --color-gold: var(--color-ochre);
  --color-sand: var(--color-tan);
  --color-accent-hover: #964220;

  --color-border-subtle: rgba(91, 85, 61, 0.20);
  --color-border-warm: var(--color-tan);

  /* Text Colors strictly avoiding #000000 and #FFFFFF */
  --color-text-dark: var(--color-espresso);
  --color-text-muted: var(--color-olive);
  --color-text-light: var(--color-cream);
  --color-text-cream-subtle: var(--color-oat);

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout and Spacing */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Warm Espresso Shadows (no digital black) */
  --shadow-sm: 0 1px 3px rgba(28, 21, 15, 0.06), 0 1px 2px rgba(28, 21, 15, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(28, 21, 15, 0.12);
  --shadow-lg: 0 16px 36px -6px rgba(28, 21, 15, 0.18);

  /* Motion: confident natural deceleration for interactive feedback */
  --ease-confident: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. BASE & RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: pretty;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s var(--ease-confident);
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* Common Pill Buttons (Complying with no-white & no-black rules) */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-confident), background-color 0.25s var(--ease-confident),
    border-color 0.25s var(--ease-confident), box-shadow 0.25s var(--ease-confident);
}

.pill-btn-dark {
  background-color: var(--color-espresso);
  color: var(--color-cream);
}

.pill-btn-dark:hover {
  background-color: #352920;
  transform: translateY(-1px);
}

.pill-btn-terracotta {
  /* accent-hover as the resting color, not terracotta — cream-on-terracotta
     computed to 4.41:1, just under the 4.5:1 this button text needs.
     Cream-on-accent-hover clears it at 5.92:1. Hover now lightens toward
     the original terracotta instead of darkening further. */
  background-color: var(--color-accent-hover);
  color: var(--color-cream);
}

.pill-btn-terracotta:hover {
  background-color: var(--color-terracotta);
  transform: translateY(-1px);
}

.pill-btn-outline {
  background-color: transparent;
  color: var(--color-espresso);
  border: 1px solid var(--color-olive);
}

.pill-btn-outline:hover {
  background-color: rgba(91, 85, 61, 0.12);
  border-color: var(--color-espresso);
}

/* Not-yet-available links: no href, so they're inert by default;
   this only communicates the state visually and to assistive tech. */
[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* Skeleton Placeholder Utility */
.skeleton-box {
  background: linear-gradient(135deg, #CBC5AA 0%, #A39A7E 50%, #CBC5AA 100%);
  background-size: 200% 200%;
  animation: skeletonShimmer 3s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7A6F5F;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(122, 111, 95, 0.35);
}

.skeleton-box::before {
  content: "🖼️ " attr(data-asset);
  font-weight: 600;
  margin-bottom: 4px;
}

.skeleton-box::after {
  content: "Drop image file here";
  font-size: 11px;
  opacity: 0.75;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* --------------------------------------------------------------------------
   3. HERO SECTION (TERRACOTTA & FULL OG BACKGROUND IMAGE)
   -------------------------------------------------------------------------- */
.hero-wrapper {
  background-color: var(--color-terracotta);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
  min-height: clamp(750px, 95vh, 1080px);
  display: flex;
  flex-direction: column;
}

/* Full Hero Background Layer */
.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--color-copper);
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* Skeleton Placeholder Hint when image is not yet dropped */
.hero-bg-placeholder-hint {
  position: absolute;
  bottom: clamp(60px, 12vh, 130px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  border: 1px dashed var(--color-oat);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  background: rgba(28, 21, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-cream);
  max-width: 640px;
  width: 90%;
  z-index: 2;
  box-shadow: 0 16px 36px rgba(28, 21, 15, 0.4);
}

.hint-badge {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 6px;
}

.hint-path {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-ochre);
  margin-bottom: 8px;
}

.hint-path code {
  background: var(--color-espresso);
  color: var(--color-cream);
  padding: 3px 8px;
  border-radius: 4px;
}

.hint-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-oat);
  margin: 0;
}

/* Navbar */
.site-nav {
  position: relative;
  z-index: 10;
  padding-top: 24px;
  padding-bottom: 24px;
}

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-cream);
  line-height: 1;
  z-index: 2;
}

.brand-icon {
  width: 33px;
  height: 21px;
  display: block;
  background-color: var(--color-cream);
  -webkit-mask: url('assets/images/logo.svg') no-repeat center / contain;
  mask: url('assets/images/logo.svg') no-repeat center / contain;
  flex-shrink: 0;
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  z-index: 2;
}

.nav-menu-link {
  font-size: 14px;
  font-weight: 500;
  /* Cream, not oat — same flat-contrast gap as .hero-subhead (3.77:1 vs the
     4.5:1 this text size needs). */
  color: var(--color-cream);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu-link:hover {
  color: var(--color-cream);
}

.dropdown-arrow {
  font-size: 10px;
  opacity: 0.8;
}

/* Hamburger toggle — hidden until the mobile breakpoint (see Responsiveness).
   44px hit area regardless of the visual 3-bar glyph inside it. */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-cream);
  z-index: 2;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.3s var(--ease-confident), opacity 0.2s var(--ease-confident);
}

/* Morph into an X once the drawer is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Persistent sticky nav — hidden by default, revealed once the hero has
   scrolled past. Light bar (dark text) since it sits over the page's mostly
   cream/oat body from here on, unlike the hero's transparent cream-on-image bar. */
.site-nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
  padding-top: 14px;
  padding-bottom: 14px;
  transform: translateY(-100%);
  visibility: hidden;
  /* visibility flips to hidden only once the slide-up finishes, so it never
     cuts the exit animation short; it flips to visible immediately so the
     slide-in is never delayed. Off-screen links must not be reachable by
     Tab, and transform/opacity alone don't remove them from the tab order. */
  transition: transform 0.4s var(--ease-confident), visibility 0s linear 0.4s;
}

.site-nav-sticky.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.4s var(--ease-confident), visibility 0s linear 0s;
}

.site-nav-sticky .nav-brand,
.site-nav-sticky .nav-menu-link,
.site-nav-sticky .nav-toggle {
  color: var(--color-espresso);
}

.site-nav-sticky .nav-menu-link:hover {
  color: var(--color-terracotta);
}

.site-nav-sticky .brand-icon {
  background-color: var(--color-espresso);
}

.site-nav-sticky .nav-menu-link.active {
  color: var(--color-terracotta);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   3A. MOBILE NAV DRAWER (shared by both nav bars, see index.html for why)
   -------------------------------------------------------------------------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(29, 23, 19, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-confident), visibility 0s linear 0.35s;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-confident), visibility 0s linear 0s;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  width: min(82vw, 360px);
  display: flex;
  flex-direction: column;
  padding: 20px 28px max(32px, env(safe-area-inset-bottom)) 28px;
  background-color: var(--color-espresso);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease-confident), visibility 0s linear 0.4s;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.4s var(--ease-confident), visibility 0s linear 0s;
}

.mobile-nav-drawer .nav-toggle-close {
  display: flex;
  align-self: flex-end;
  color: var(--color-cream);
  margin-bottom: 24px;
}

.mobile-nav-drawer .nav-toggle-close .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-drawer .nav-toggle-close .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-drawer .nav-toggle-close .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-cream);
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
}

.mobile-nav-link:active {
  color: var(--color-ochre);
}

.mobile-nav-link.active {
  color: var(--color-ochre);
}

.mobile-nav-cta {
  margin-top: auto;
  width: 100%;
}

/* Sliding underline that tracks the active link; position/width are set
   directly via JS (not gsap.to — this indicator has to keep working even
   if the GSAP CDN is unreachable), so the slide itself is a CSS transition. */
.nav-active-indicator {
  position: absolute;
  bottom: -8px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--color-terracotta);
  opacity: 0;
  transition: opacity 0.2s var(--ease-confident), transform 0.4s var(--ease-confident),
    width 0.4s var(--ease-confident);
}

.nav-active-indicator.is-visible {
  opacity: 1;
}

/* Hero Content Overlaid on top (Right-positioned column, internally centered & aligned) */
.hero-intro {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 620px;
  margin: clamp(35px, 6vh, 65px) 0 24px auto;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-cream);
  margin-bottom: 20px;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(28, 21, 15, 0.35);
}

.hero-subhead {
  font-size: clamp(16px, 1.8vw, 19px);
  /* Cream, not oat — oat-on-terracotta computed to 3.77:1 against the flat
     fallback, under the 4.5:1 this normal-size text needs. Cream gets closer
     (4.41:1); the strengthened shadow below carries the rest against the
     actual photo, which the flat-color math can't account for. */
  color: var(--color-cream);
  max-width: 520px;
  margin: 0 auto 28px auto;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.38);
}

.hero-cta-btn {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
}

/* Spacer ensuring the lower part of the illustration (operator at console) has generous breathing room */
.hero-bottom-spacer {
  flex-grow: 1;
  min-height: clamp(260px, 40vh, 480px);
}

/* --------------------------------------------------------------------------
   3B. INBOX REALITY STATS (ESPRESSO)
   -------------------------------------------------------------------------- */
.stats-section {
  background-color: var(--color-espresso);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.stat-block {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.stat-approx {
  font-size: 0.55em;
  vertical-align: 0.3em;
  color: var(--color-tan);
}

.stat-label {
  font-size: 15px;
  color: var(--color-oat);
  line-height: 1.55;
  max-width: 300px;
  margin: 0 auto;
}

.stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-tan);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   4. FEATURE HIGHLIGHTS BAR (ECRU)
   -------------------------------------------------------------------------- */
.feature-highlights-section {
  background-color: var(--color-ecru);
  padding: 85px 0 95px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.feature-bar-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 60px;
}

.feature-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon-circle {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  color: var(--color-text-dark);
}

/* One-shot alert ring for the deadline-monitoring feature: expands and fades
   once on scroll-in to draw the eye to the page's most differentiated claim. */
.alert-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-terracotta);
  opacity: 0;
  pointer-events: none;
}

.feature-item h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 320px;
}

/* --------------------------------------------------------------------------
   5. SAGE GREEN COPILOT SECTION
   -------------------------------------------------------------------------- */
.copilot-section {
  background-color: var(--color-sage);
  padding: 95px 0;
}

.copilot-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}

.copilot-header-row h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  /* Espresso, not cream — cream-on-sage computed to 1.53:1, badly failing
     even the large-text 3:1 minimum. Espresso matches .copilot-details h3
     right beside it in the same section. */
  color: var(--color-espresso);
}

.copilot-card {
  background-color: var(--color-cream);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-tan);
}

.copilot-visual-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.copilot-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-md);
  display: block;
}

.copilot-skeleton {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
}

/* Floating Document Chips */
.floating-doc-chips {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.doc-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: var(--color-oat);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-espresso);
  border: 1px solid var(--color-tan);
  box-shadow: 0 4px 12px rgba(28, 21, 15, 0.12);
}

.doc-chip-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-olive);
}

/* Copilot Interactive List */
.copilot-details h3 {
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: 35px;
  line-height: 1.15;
}

.copilot-tabs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.copilot-tab-item {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: background-color 0.25s var(--ease-confident);
  cursor: pointer;
}

.copilot-tab-item.active {
  background-color: var(--color-oat);
}

.copilot-tab-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-espresso);
}

.copilot-tab-item:not(.active) .copilot-tab-head {
  color: var(--color-olive);
}

.copilot-tab-body {
  margin-top: 10px;
  margin-left: 26px;
  font-size: 14px;
  color: var(--color-olive);
  line-height: 1.5;
}

.copilot-learn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-terracotta);
}

/* --------------------------------------------------------------------------
   6. OPTIMIZED TO HANDLE FINANCIAL DATA (3 CARDS)
   -------------------------------------------------------------------------- */
.data-cards-section {
  background-color: var(--color-cream);
  padding: 110px 0;
}

.data-section-title {
  text-align: center;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: 60px;
}

.data-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.data-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-tan);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.data-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.data-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  display: block;
}

.data-card-skeleton {
  width: 100%;
  height: 210px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.data-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background-color: var(--color-oat);
  color: var(--color-olive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.data-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: 10px;
}

.data-card p {
  font-size: 14px;
  color: var(--color-olive);
  line-height: 1.5;
}

.data-section-cta {
  text-align: center;
}

/* --------------------------------------------------------------------------
   7. ANALYST SOLUTIONS SPLIT SECTION (WARM TAN)
   -------------------------------------------------------------------------- */
.analyst-section {
  background-color: var(--color-tan);
  padding: 110px 0;
}

.analyst-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.analyst-sticky-col {
  position: sticky;
  top: 100px;
}

.analyst-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  color: var(--color-espresso);
  line-height: 1.1;
  max-width: 440px;
}

.analyst-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analyst-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-oat);
  border-radius: var(--radius-md);
  padding: 30px;
  /* The "Socios Directores" copy runs a line longer than its siblings — without
     a floor here that card sits visibly taller than the other four in the
     stack. min-height (not a fixed height) keeps the row rhythm consistent
     while still letting any card grow if its copy is edited longer later. */
  min-height: 212px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.analyst-card:hover {
  transform: translateX(4px);
  border-color: var(--color-olive);
}

.analyst-icon-box {
  width: 36px;
  height: 36px;
  background-color: var(--color-oat);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-espresso);
  margin-bottom: 16px;
}

.analyst-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-espresso);
  margin-bottom: 10px;
}

.analyst-card p {
  font-size: 14px;
  color: var(--color-olive);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   8. "WHAT YOU CAN EXPECT" CALLOUT SECTION (COPPER BACKDROP)
   -------------------------------------------------------------------------- */
.callout-section {
  background-color: var(--color-copper);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.watermark-text-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.watermark-top,
.watermark-bottom {
  font-family: var(--font-serif);
  font-size: clamp(80px, 14vw, 190px);
  font-weight: 700;
  color: var(--color-terracotta);
  /* Subtle contrast on copper */
  line-height: 0.85;
  user-select: none;
  letter-spacing: -0.02em;
}

.callout-card {
  position: relative;
  z-index: 5;
  background-color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 40px 50px;
  max-width: 580px;
  margin: -40px auto;
  box-shadow: 0 25px 60px rgba(28, 21, 15, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.callout-icon {
  color: var(--color-espresso);
  margin-bottom: 14px;
}

.callout-card h3 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-espresso);
  margin-bottom: 6px;
}

.callout-card p {
  font-size: 14px;
  color: var(--color-olive);
}

/* --------------------------------------------------------------------------
   9. WE HAVE DONE IT BEFORE (WARM CREAM)
   -------------------------------------------------------------------------- */
.academy-section {
  background-color: var(--color-cream);
  padding: 100px 0;
}

.academy-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 45px;
}

.academy-header-row h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--color-espresso);
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.academy-card {
  display: flex;
  flex-direction: column;
}

.academy-thumb-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  display: block;
}

.academy-thumb-skeleton {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.academy-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-olive);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.academy-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-espresso);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   10. PRE-FOOTER BANNER (MUTED OCHRE WITH 21:9 FULL BACKGROUND IMAGE)
   -------------------------------------------------------------------------- */
.cta-banner-section {
  background-color: var(--color-ochre);
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: clamp(380px, 35vw, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Full 21:9 Background Media Layer */
.cta-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--color-ochre);
}

.cta-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Skeleton Placeholder Hint when image is pending (placed cleanly at the bottom) */
.cta-bg-placeholder-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  border: 1px dashed var(--color-olive);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-espresso);
  max-width: 580px;
  width: 90%;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(28, 21, 15, 0.16);
}

.cta-bg-placeholder-hint .hint-badge {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--color-espresso);
}

.cta-bg-placeholder-hint .hint-path {
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--color-olive);
}

.cta-bg-placeholder-hint .hint-desc {
  font-size: 11px;
  color: var(--color-espresso);
}

.cta-banner-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 720px;
  padding: 40px 20px;
  margin: 0 auto;
}

.cta-banner-content h2 {
  font-family: var(--font-sans);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  color: var(--color-espresso);
  line-height: 1.15;
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   11. FOOTER (DARK ESPRESSO)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-espresso);
  color: var(--color-oat);
  padding: 90px 0 40px 0;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 0 auto 90px auto;
  text-align: left;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-tan);
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 14px;
  color: var(--color-oat);
}

.footer-links-list a:hover {
  color: var(--color-cream);
}

/* Massive Wordmark */
.footer-giant-wordmark {
  text-align: center;
  margin-bottom: 60px;
}

.giant-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  font-family: var(--font-serif);
  font-size: clamp(40px, 9.5vw, 150px);
  font-weight: 700;
  color: var(--color-cream);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.25s ease;
}

.giant-logo-link:hover {
  color: var(--color-ochre);
}

.giant-triangle {
  height: 0.81em;
  aspect-ratio: 802 / 510;
  width: auto;
  display: block;
  background-color: currentColor;
  -webkit-mask: url('assets/images/logo.svg') no-repeat center / contain;
  mask: url('assets/images/logo.svg') no-repeat center / contain;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}

.footer-bottom-line {
  text-align: center;
  font-size: 12px;
  color: var(--color-sage);
  padding-top: 30px;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

/* --------------------------------------------------------------------------
   12. RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .copilot-card {
    grid-template-columns: 1fr;
  }

  .analyst-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .analyst-sticky-col {
    position: static;
  }

  .data-cards-grid,
  .academy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-intro {
    text-align: center;
    margin: 30px auto 20px auto;
  }

  .hero-subhead {
    margin: 0 auto 20px auto;
  }

  .hero-cta-btn {
    justify-content: center;
  }

  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Touch targets: 44px minimum height for every pill button once touch
     (not hover/mouse) is the primary input, per WCAG 2.5.5 / Apple HIG. */
  .pill-btn {
    min-height: 44px;
    padding: 12px 24px;
  }

  .feature-bar-grid,
  .data-cards-grid,
  .academy-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-content {
    margin: 0 auto;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
}