/* ==========================================================================
   Day2Day — Investing Subpage Styles
   ========================================================================== */

/* --- Custom Variables for Investing Page (Zinc / White Brand Accent) --- */
:root {
  --invest-accent: var(--color-investing);
  --invest-accent-rgb: var(--color-investing-rgb);
}

/* --- Hero Spotlight --- */
.invest-hero {
  padding-top: 118px;
  padding-bottom: var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.invest-hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--color-investing-rgb), 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* --- Differentiators Grid (12 Problems Solved) --- */
.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.diff-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.diff-card__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.diff-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.diff-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Tabbed Personas Section --- */
.personas-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3xl) 0;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.persona-tabs-container {
  display: grid;
  grid-template-columns: minmax(280px, max-content) 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.persona-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.persona-tab-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  transition: var(--transition-fast);
  border-left: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.persona-tab-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.persona-tab-btn.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-left-color: var(--text-primary);
}

.persona-tab-btn .tab-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}

.persona-tab-btn .tab-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.persona-tab-btn:hover .tab-subtitle,
.persona-tab-btn.active .tab-subtitle {
  color: var(--text-secondary);
}

.persona-content-pane {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.persona-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  width: 100%;
}

.persona-detail-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.persona-detail-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

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

.detail-icon {
  font-size: 1.5rem;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Interactive Strategy Sandbox (Deposit Calculator) --- */
.sandbox-card {
  max-width: 640px;
  margin: var(--space-2xl) auto 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.sandbox-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.sandbox-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.sandbox-control {
  margin-bottom: var(--space-lg);
}

.sandbox-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.sandbox-slider {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.sandbox-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sandbox-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.sandbox-output {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
}

.sandbox-allocation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.sandbox-allocation-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 0 16px;
  overflow: hidden;
}

.sandbox-allocation-fill {
  height: 100%;
  background: var(--text-primary);
  width: 0;
  transition: width 0.3s ease;
}

/* --- Coming Soon Section --- */
/* --- Coming Soon Section --- */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.cs-persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.cs-persona-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.cs-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-badge-wrapper {
  margin-bottom: 4px;
}

.cs-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  color: var(--brand-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.cs-persona-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cs-persona-tagline {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-secondary);
}

.cs-features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cs-feature-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.cs-feature-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-feature-icon {
  font-size: 1.25rem;
}

.cs-feature-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cs-feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .persona-tabs-container {
    grid-template-columns: 1fr;
  }
  .persona-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding: 4px 24px 12px;
    margin: 0 -24px;
    gap: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
  }
  .persona-tabs::-webkit-scrollbar {
    display: none;
  }
  .persona-tab-btn {
    flex-shrink: 0;
    padding: 8px 16px !important;
    border-radius: var(--radius-full) !important;
    background: var(--bg-card);
    border: 1px solid var(--border) !important;
    border-left: 1px solid var(--border) !important;
    white-space: nowrap;
    text-align: center;
  }
  .persona-tab-btn.active {
    background: var(--bg-card-hover) !important;
    border-color: var(--text-primary) !important;
    border-left-color: var(--text-primary) !important;
    color: var(--text-primary);
  }
  .persona-tab-btn .tab-subtitle {
    display: none;
  }
  .persona-content-pane {
    padding: var(--space-lg);
  }
  .persona-details-grid {
    grid-template-columns: 1fr;
  }
  .coming-soon-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.invest-hero .hero__title {
  color: #ffffff;
}

.invest-hero .hero__subtitle {
  font-weight: 500;
  line-height: 1.55;
  color: #ffffff;
}

.invest-hero__bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  display: block;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.invest-hero__bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: none;
}

.invest-hero__bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.55);
}

.light-mode .invest-hero__bg-overlay {
  background: rgba(248, 250, 252, 0.65);
}

/* Desktop Hero Images (min-width: 769px) */
@media (min-width: 769px) {
  /* Desktop defaults to dark mode spread */
  .desktop-dark-img {
    display: block;
  }
  /* Desktop overrides for light mode */
  .light-mode .desktop-light-img {
    display: block;
  }
  .light-mode .desktop-dark-img {
    display: none;
  }
  .invest-hero__bg-img {
    transform: translate(-50%, -50%);
  }
  .desktop-dark-img {
    transform: translate(-50%, -50%) scale(0.81);
  }

  .invest-hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 80px;
    box-sizing: border-box;
  }
  .invest-hero__card {
    margin-top: -100px;
  }
  .invest-hero .hero__subtitle {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    width: 90%;
    margin: 0;
    text-align: center;
    z-index: 10;
  }
  .invest-hero .hero__title {
    text-shadow:
      -2px -2px 0 #000000,
       2px -2px 0 #000000,
      -2px  2px 0 #000000,
       2px  2px 0 #000000,
      -2px  0px 0 #000000,
       2px  0px 0 #000000,
       0px -2px 0 #000000,
       0px  2px 0 #000000;
  }
  .light-mode .invest-hero .hero__title {
    color: #000000 !important;
    text-shadow:
      -2.5px -2.5px 0 #ffffff,
       2.5px -2.5px 0 #ffffff,
      -2.5px  2.5px 0 #ffffff,
       2.5px  2.5px 0 #ffffff,
      -2.5px  0px 0 #ffffff,
       2.5px  0px 0 #ffffff,
       0px -2.5px 0 #ffffff,
       0px  2.5px 0 #ffffff !important;
  }
  .light-mode .invest-hero .hero__subtitle {
    color: #000000;
    text-shadow: none;
    opacity: 1;
  }
  .personas-section {
    padding-top: var(--space-xl);
  }
}

/* Mobile Hero Images (max-width: 768px) */
@media (max-width: 768px) {
  /* Mobile defaults to dark mode spread */
  .mobile-dark-img {
    display: block;
  }
  /* Mobile overrides for light mode */
  .light-mode .mobile-light-img {
    display: block;
  }
  .light-mode .mobile-dark-img {
    display: none;
  }

  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
  .invest-hero {
    height: 100vh;
    height: 100dvh;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-top: 90px;
    padding-bottom: 24px;
    background: #0a090e;
    overflow: hidden;
  }
  .light-mode .invest-hero {
    background: #f4f8fb;
  }
  .invest-hero .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  .invest-hero .invest-hero__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
  }
  .invest-hero .hero__title {
    font-size: 2.25rem;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.25;
  }
  .invest-hero .invest-hero__bg-wrapper.mobile-only {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    flex: 1;
    min-height: 0;
    margin: 16px 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .invest-hero .invest-hero__bg-wrapper.mobile-only .invest-hero__bg-img {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .invest-hero .invest-hero__bg-overlay {
    display: none;
  }
  /* Make hero subheading text white in dark mode on mobile */
  .invest-hero .hero__subtitle {
    color: #ffffff;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.45;
    margin: 12px 0 20px 0;
    text-align: center;
  }
  .light-mode .invest-hero .hero__subtitle {
    color: #000000;
    opacity: 0.8;
    font-size: 1.1rem;
    line-height: 1.45;
    margin: 12px 0 20px 0;
    text-align: center;
  }
  .light-mode .invest-hero .hero__title {
    color: #000000;
    text-shadow: none;
  }
  .invest-hero .invest-hero__card > div:last-child {
    margin-top: 0;
  }
}

.personas-desktop-wrapper {
  display: block;
}

.personas-mobile-wrapper {
  display: none;
}

@media (max-width: 768px) {
  .personas-desktop-wrapper {
    display: none !important;
  }
  .personas-mobile-wrapper {
    display: block !important;
  }
}



