/* ShareFund — tenant theme showcase. Each .thm--* wrapper sets the theme
   tokens; the same mockup markup renders differently under each. The mockup is
   a stylised investor-app preview, never a live demo. */

/* ========== PAGE INTRO ========== */
.themes-intro { text-align: center; }
.themes-intro .lead { margin-left: auto; margin-right: auto; }
.themes-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.themes-legend a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}
.themes-legend a:hover {
  color: var(--c-ink);
  border-color: var(--c-ink);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ========== THEME BLOCK (full-width, alternating) ========== */
.theme-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  scroll-margin-top: 90px;
}
.theme-block + .theme-block { margin-top: clamp(56px, 9vw, 110px); }
.theme-block.flip .theme-block-preview { order: 2; }
@media (max-width: 920px) {
  .theme-block { grid-template-columns: 1fr; }
  .theme-block.flip .theme-block-preview { order: 0; }
}
.theme-block-copy .theme-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-amber-deep);
  margin-bottom: 14px;
}
.theme-block-copy h2 { margin-bottom: 8px; }
.theme-block-copy .theme-vibe {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-text-soft);
  margin-bottom: 16px;
}
.theme-block-copy p { color: var(--c-text-soft); }
.theme-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 22px 0 8px;
}
.theme-meta-row .tm {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.theme-meta-row .tm .k {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  font-weight: 600;
}
.theme-meta-row .tm .v {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--c-ink);
}
.swatch-row { display: flex; gap: 8px; margin: 4px 0 6px; }
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* ========== THE MOCKUP (theme-variable driven) ========== */
.thm {
  /* defaults; overridden per theme */
  --t-bg: #F8F4EC;
  --t-surface: #FFFFFF;
  --t-surface-2: #EFE8DA;
  --t-ink: #1A1410;
  --t-mute: #6E5F52;
  --t-accent: #0F7B4F;
  --t-accent-ink: #FFFFFF;
  --t-pos: #0A5B3A;
  --t-line: rgba(26,20,16,0.10);
  --t-radius: 16px;
  --t-radius-sm: 10px;
  --t-font-head: var(--font-serif);
  --t-font-body: var(--font-sans);
  --t-glow: none;

  border-radius: calc(var(--t-radius) + 8px);
  overflow: hidden;
  background: var(--t-bg);
  box-shadow: var(--shadow-lg), var(--t-glow);
  border: 1px solid var(--t-line);
  transform: perspective(1500px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.theme-block.flip .thm { transform: perspective(1500px) rotateY(3deg) rotateX(2deg); }
.thm:hover { transform: perspective(1500px) rotateY(0) rotateX(0) translateY(-4px); }

.thm-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--t-surface-2);
  border-bottom: 1px solid var(--t-line);
}
.thm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--t-mute); opacity: 0.4; }
.thm-addr {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--t-mute);
  background: var(--t-bg);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--t-line);
}
.thm-app {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--t-ink);
  font-family: var(--t-font-body);
}
.thm-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.thm-brandmark {
  width: 40px;
  height: 40px;
  border-radius: var(--t-radius-sm);
  background: var(--t-accent);
  color: var(--t-accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--t-font-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.thm-bal-k {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-mute);
  font-weight: 600;
}
.thm-bal-v {
  display: block;
  font-family: var(--t-font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--t-ink);
  line-height: 1.1;
}
.thm-pool {
  background: var(--t-surface);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.thm-pool-tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-accent);
  font-weight: 700;
}
.thm-pool-name {
  font-family: var(--t-font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: -8px;
}
.thm-pool-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.thm-pool-meta > div {
  background: var(--t-surface-2);
  border-radius: var(--t-radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.thm-pool-meta .k {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-mute);
  font-weight: 600;
}
.thm-pool-meta .v {
  font-family: var(--t-font-head);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--t-ink);
}
.thm-cta {
  border: 0;
  border-radius: var(--t-radius-sm);
  padding: 12px;
  background: var(--t-accent);
  color: var(--t-accent-ink);
  font-family: var(--t-font-body);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: default;
}
.thm-feed { display: flex; flex-direction: column; gap: 2px; }
.thm-feed-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 2px;
  border-bottom: 1px solid var(--t-line);
  font-size: 0.8rem;
  color: var(--t-mute);
  font-weight: 500;
}
.thm-feed-row:last-child { border-bottom: 0; }
.thm-feed-row .amt {
  font-family: var(--t-font-head);
  font-weight: 700;
  color: var(--t-pos);
  font-variant-numeric: tabular-nums;
}

/* ---------- Editorial Serif (the live theme) ---------- */
.thm--editorial {
  --t-bg: #F8F4EC;
  --t-surface: #FFFFFF;
  --t-surface-2: #EFE8DA;
  --t-ink: #1A1410;
  --t-mute: #6E5F52;
  --t-accent: #0F7B4F;
  --t-accent-ink: #FFFFFF;
  --t-pos: #0A5B3A;
  --t-line: rgba(26,20,16,0.10);
  --t-radius: 16px;
  --t-font-head: "Fraunces", Georgia, serif;
  --t-font-body: "Inter", system-ui, sans-serif;
}

/* ---------- Crypto Dark ---------- */
.thm--crypto {
  --t-bg: #0B0F14;
  --t-surface: #131A22;
  --t-surface-2: #1B2530;
  --t-ink: #EAF3F2;
  --t-mute: #7E93A3;
  --t-accent: #18E0C8;
  --t-accent-ink: #06110F;
  --t-pos: #45F0B0;
  --t-line: rgba(255,255,255,0.08);
  --t-radius: 14px;
  --t-radius-sm: 9px;
  --t-font-head: "Space Grotesk", "Inter", sans-serif;
  --t-font-body: "Inter", system-ui, sans-serif;
  --t-glow: 0 0 80px -20px rgba(24,224,200,0.45), 0 0 120px -40px rgba(150,90,255,0.35);
}
.thm--crypto .thm-brandmark {
  box-shadow: 0 0 18px -2px rgba(24,224,200,0.7);
}
.thm--crypto .thm-cta {
  box-shadow: 0 0 22px -4px rgba(24,224,200,0.6);
}
.thm--crypto .thm-pool {
  background: linear-gradient(160deg, #16202B 0%, #0F151C 100%);
}
.thm--crypto .thm-pool-tag { text-shadow: 0 0 12px rgba(24,224,200,0.55); }

/* ---------- Corporate Trust ---------- */
.thm--corporate {
  --t-bg: #FBFCFE;
  --t-surface: #FFFFFF;
  --t-surface-2: #EEF2F8;
  --t-ink: #0E2440;
  --t-mute: #5E6E84;
  --t-accent: #11315E;
  --t-accent-ink: #FFFFFF;
  --t-pos: #1B6E4B;
  --t-line: rgba(14,36,64,0.12);
  --t-radius: 6px;
  --t-radius-sm: 4px;
  --t-font-head: "Lora", Georgia, serif;
  --t-font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}
.thm--corporate .thm-brandmark { border-radius: 4px; }
.thm--corporate .thm-pool { border-left: 3px solid #C6A15B; }
.thm--corporate .thm-pool-tag { color: #B08A3E; }
.thm--corporate .thm-cta {
  border: 1px solid #11315E;
  letter-spacing: 0.02em;
}

/* ---------- Soft Fintech (coming soon) ---------- */
.thm--fintech {
  --t-bg: #FAF7FF;
  --t-surface: #FFFFFF;
  --t-surface-2: #F0EAFB;
  --t-ink: #241B33;
  --t-mute: #7A6F8C;
  --t-accent: #6C4CE0;
  --t-accent-ink: #FFFFFF;
  --t-pos: #E0734C;
  --t-line: rgba(36,27,51,0.10);
  --t-radius: 20px;
  --t-radius-sm: 14px;
  --t-font-head: "Inter", system-ui, sans-serif;
  --t-font-body: "Inter", system-ui, sans-serif;
}

/* ========== COMING-SOON CARDS ========== */
.theme-soon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 760px) { .theme-soon-grid { grid-template-columns: 1fr; } }
.theme-soon {
  position: relative;
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  background: var(--c-bg-elev);
  overflow: hidden;
}
.theme-soon .soon-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-amber-deep);
  background: rgba(232,159,76,0.14);
  border: 1px solid rgba(232,159,76,0.4);
  padding: 5px 11px;
  border-radius: 999px;
}
.theme-soon h3 { margin-bottom: 4px; }
.theme-soon .theme-vibe {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--c-text-mute);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.theme-soon p { font-size: 0.94rem; color: var(--c-text-soft); }

/* ========== CUSTOM TIER STRIP ========== */
.theme-custom {
  margin-top: clamp(56px, 9vw, 100px);
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 64px) clamp(28px, 5vw, 56px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.theme-custom::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(232,159,76,0.22), transparent 60%);
  pointer-events: none;
}
.theme-custom h2 { color: #fff; position: relative; z-index: 1; }
.theme-custom p { color: rgba(248,244,236,0.78); max-width: 52ch; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.theme-custom .btn { margin-top: 18px; position: relative; z-index: 1; }
.theme-custom .btn-primary { background: var(--c-amber); border-color: var(--c-amber); color: var(--c-ink); }
.theme-custom .btn-primary:hover { background: #fff; border-color: #fff; color: var(--c-ink); }

/* ========== HOMEPAGE 4-CARD TEASER ========== */
.theme-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
@media (max-width: 900px) { .theme-teaser-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .theme-teaser-grid { grid-template-columns: 1fr; } }
.theme-tile {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-bg-elev);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.theme-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.theme-tile-swatch {
  height: 96px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.theme-tile-swatch span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.tile-editorial { background: linear-gradient(135deg, #F8F4EC, #EFE8DA); }
.tile-editorial span { background: #0F7B4F; color: #fff; }
.tile-crypto { background: linear-gradient(135deg, #0B0F14, #1B2530); }
.tile-crypto span { background: #18E0C8; color: #06110F; box-shadow: 0 0 16px -2px rgba(24,224,200,0.7); }
.tile-corporate { background: linear-gradient(135deg, #11315E, #0E2440); }
.tile-corporate span { background: #C6A15B; color: #11315E; }
.tile-fintech { background: linear-gradient(135deg, #6C4CE0, #FAF7FF); }
.tile-fintech span { background: #fff; color: #6C4CE0; }
.theme-tile-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.theme-tile-body .nm {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--c-ink);
}
.theme-tile-body .au { font-size: 0.84rem; color: var(--c-text-mute); }
.theme-tile-body .soon {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-amber-deep);
  font-weight: 600;
}
.theme-teaser-foot { text-align: center; margin-top: 36px; }

@media (prefers-reduced-motion: reduce) {
  .thm, .theme-tile { transition: none; }
}
