/* MrktBuddy web app — converted from designs/MrktBuddy Web App.dc.html
   (Claude Design project "MrktBuddy earnings intelligence UI").
   Inline styles in templates carry the one-off values; this file holds the
   keyframes, hover states and responsive rules the design expressed via
   style-hover attributes and its isMobile (max-width:880px) style objects. */

html, body { margin: 0; padding: 0; background: #F4F6F9; }
* { box-sizing: border-box; }
body { font-family: Inter, system-ui, sans-serif; color: #0D1B2E; }
button { font-family: Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }

@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { 0% { background-position: -500px 0; } 100% { background-position: 500px 0; } }
@keyframes breathe { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes bellRing { 0% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-11deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
@keyframes qrIn { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes chipPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-primary {
  background: #0E9E78; border: none; color: #FFFFFF; box-shadow: 0 1px 2px rgba(13,27,46,.08);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, background .15s ease;
}
.btn-primary:hover { transform: translateY(-1.5px); box-shadow: 0 6px 14px rgba(14,158,120,.30); background: #0FAF85; }
.btn-ghost {
  background: #FFFFFF; border: 1px solid #E2E7ED; color: #0D1B2E;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, border-color .15s ease;
}
.btn-ghost:hover { transform: translateY(-1.5px); box-shadow: 0 5px 12px rgba(13,27,46,.10); border-color: #C6D0DA; }
.btn-ghost-muted { color: #5A6B7F; transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, color .15s ease; }
.btn-ghost-muted:hover { transform: translateY(-1.5px); box-shadow: 0 5px 12px rgba(13,27,46,.08); color: #0D1B2E; border-color: #E2E7ED; }
.btn-gold {
  background: #FFFFFF; border: 1px solid #E6DDBE; color: #A8841C;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
}
.btn-gold:hover { transform: translateY(-1.5px); box-shadow: 0 6px 14px rgba(201,162,39,.18); }
/* Text links use the darker accent: #0E9E78 is 3.4:1 on white (AA-large
   only) — #0B7F60 reads 5.0:1 and stays inside the brand family. */
.lnk { font-weight: 600; color: #0B7F60; cursor: pointer; transition: color .15s ease; }
.lnk:hover { color: #096B51; }

/* Keyboard focus — visible ring on everything interactive, mouse unaffected */
a:focus-visible, button:focus-visible, input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #0E9E78; outline-offset: 2px; border-radius: 6px;
}
.land-link { font-size: 14px; font-weight: 500; color: #5A6B7F; cursor: pointer; transition: color .15s ease; }
.land-link:hover { color: #0D1B2E; }

/* ---------- App shell ---------- */
.shell { display: flex; align-items: stretch; min-height: 100vh; background: #F4F6F9; animation: screenIn .28s ease-out both; }
.side {
  width: 242px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px;
  background: #FFFFFF; border-right: 1px solid #E2E7ED; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-logo { display: flex; align-items: center; gap: 9px; padding: 2px 10px 18px; cursor: pointer; }
.side-wordmark { font-weight: 800; font-size: 13px; letter-spacing: .14em; }
.navitem {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; min-height: 44px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #5A6B7F; background: transparent; cursor: pointer;
  white-space: nowrap; flex: none; transition: background .15s ease, color .15s ease;
}
.navitem:hover { background: #F1F4F8; }
.navitem.active { font-weight: 600; color: #0D1B2E; background: #E7F5F0; }
.group-label { font-weight: 600; font-size: 10px; letter-spacing: .14em; color: #8A97A6; padding: 18px 12px 8px; }
.side-spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-top: 1px solid #EDF1F5; margin-top: 10px; }
.shell-main { flex: 1; min-width: 0; }
.pad { padding: 36px 44px 40px; max-width: 1140px; margin: 0 auto; }

@media (max-width: 880px) {
  .shell { display: block; }
  .side {
    width: auto; height: auto; flex-direction: row; align-items: center; padding: 8px 12px;
    border-right: none; border-bottom: 1px solid #E2E7ED; overflow-x: auto; overflow-y: hidden; z-index: 40;
  }
  .side-logo { padding: 0 10px 0 0; flex: none; }
  .side-wordmark, .group-label, .side-spacer, .user-chip { display: none; }
  .navitem { padding: 10px 12px; }
  .pad { padding: 20px 16px 32px; max-width: none; }
}

/* ---------- Grids (desktop → mobile) ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 0 auto; }
.cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.dash-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: start; margin-top: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; }
.charts-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; align-items: stretch; margin-top: 22px; }
.bill-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: start; margin-top: 26px; }
.fund-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 14px; }

/* Hover explainer bubbles on the fundamentals widgets */
.fund-card { position: relative; transition: box-shadow .16s ease; }
.fund-card:hover { box-shadow: 0 4px 14px rgba(13, 27, 46, .07); }
.fund-tip {
  position: absolute; left: 50%; bottom: calc(100% + 11px);
  transform: translate(-50%, 5px); width: max-content; max-width: 252px;
  background: #0D1B2E; color: #E8EDF3; font-size: 12px; line-height: 1.55;
  font-weight: 500; letter-spacing: 0; text-transform: none;
  padding: 10px 13px; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(13, 27, 46, .26);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 40;
}
.fund-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #0D1B2E;
}
.fund-card:hover .fund-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.fund-tip--left { left: 10px; transform: translate(0, 5px); }
.fund-card:hover .fund-tip--left { transform: translate(0, 0); }
.fund-tip--left::after { left: 30px; transform: none; }
.land-links { display: flex; gap: 26px; align-items: center; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .feat-grid { grid-template-columns: 1fr; gap: 30px; }
  .price-grid { grid-template-columns: 1fr; }
  .cal-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .charts-grid, .bill-grid { grid-template-columns: 1fr; }
  .stat-grid, .fund-grid { grid-template-columns: repeat(2, 1fr); }
  .land-links { display: none; }
  /* Collapses for inline-styled grids — !important outranks inline styles */
  .m-grid-1 { grid-template-columns: 1fr !important; }
  .m-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .wl-cols { min-width: 540px; }
  .wl-cols-lg { min-width: 640px; }
  .eps-cols { gap: 12px !important; padding-left: 4px !important; padding-right: 4px !important; }
  .eps-cols .tnum { font-size: 10px !important; white-space: normal; }
  .land-head { padding: 0 18px !important; }
  .land-nav { display: none; }
  .land-hero { grid-template-columns: 1fr !important; padding: 30px 20px 44px !important; gap: 32px !important; }
}

/* Horizontal-scroll shell for data tables too wide for small screens */
.scroll-x { overflow-x: auto; }

/* ---------- Mobile menu on the marketing pages ----------
   <details>-based hamburger: no JS, Enter/Space toggles natively. Hidden on
   desktop where .land-nav shows; on phones it replaces both the nav links
   and the header CTAs (which move inside the panel). */
.land-menu { display: none; position: relative; flex: none; }
.land-menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border: 1px solid #E2E7ED; border-radius: 8px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.land-menu summary::-webkit-details-marker { display: none; }
.land-menu[open] summary { background: #F1F4F8; border-color: #C6D0DA; }
.menu-panel { position: absolute; right: 0; top: 50px; width: 224px; background: #FFFFFF; border: 1px solid #E2E7ED; border-radius: 12px; box-shadow: 0 18px 44px -12px rgba(13, 27, 46, .20); padding: 8px; z-index: 60; }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #0D1B2E; }
.menu-panel a:hover { background: #F1F4F8; }
.menu-panel .menu-split { height: 1px; background: #EDF1F5; margin: 8px 6px; }
.menu-panel .menu-cta { background: #0E9E78; color: #FFFFFF; justify-content: center; margin-top: 4px; }
.menu-panel .menu-cta:hover { background: #0B8567; }
@media (max-width: 880px) {
  .land-menu { display: block; }
  .land-cta { display: none !important; }
}

/* ---------- Rows, chips, cards ---------- */
.rowhover { transition: background .15s ease; }
.rowhover:hover { background: #F7F9FB; }
.wl-remove { transition: color .15s ease; }
.wl-remove:hover { color: #C0392B !important; }
.cal-chip {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px;
  background: #FFFFFF; border: 1px solid #E2E7ED; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, border-color .15s ease;
}
.cal-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(13,27,46,.10); border-color: #BFD9CF; }
.card-hover { transition: border-color .15s ease, box-shadow .18s ease; }
.card-hover:hover { border-color: #C6D0DA; box-shadow: 0 5px 14px rgba(13,27,46,.07); }
.price-card { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease; }
.price-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(13,27,46,.08); }
.price-card-pro:hover { box-shadow: 0 12px 30px rgba(13,27,46,.10); }
.back-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: #5A6B7F;
  cursor: pointer; padding: 8px 10px; margin: -8px 0 8px -10px; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.back-link:hover { background: #EDF1F5; color: #0D1B2E; }
.tab-btn {
  width: 108px; text-align: center; padding: 13px 0; min-height: 44px; font-size: 14px;
  font-weight: 500; color: #5A6B7F; cursor: pointer; transition: color .15s ease;
}
.tab-btn:hover { color: #0D1B2E; }
.tab-btn.active { font-weight: 600; color: #0D1B2E; }
.tab-underline {
  position: absolute; bottom: -1px; left: 0; width: 108px; height: 2px; background: #0E9E78;
  transition: transform .24s cubic-bezier(.22,.61,.36,1);
}

/* ---------- Bits ---------- */
.shim { background: linear-gradient(90deg, #EEF1F5 25%, #F7F9FB 37%, #EEF1F5 63%); background-size: 800px 100%; animation: shimmer 1.2s linear infinite; }
.label-caps { font-weight: 600; font-size: 10.5px; letter-spacing: .16em; color: #8A97A6; }
.foot-note { margin-top: 44px; padding-top: 16px; border-top: 1px solid #E2E7ED; font-size: 12.5px; color: #8A97A6; }
.serif { font-family: Spectral, Georgia, serif; }
.tnum { font-variant-numeric: tabular-nums; }
.toggle-track { width: 42px; height: 25px; border-radius: 999px; background: #D5DCE4; position: relative; flex: none; transition: background .2s ease; }
.toggle-track.on { background: #0E9E78; }
.toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 999px; background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(13,27,46,.25); transform: translateX(0); transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.toggle-track.on .toggle-knob { transform: translateX(17px); }
.flip-wrap { position: relative; height: 540px; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.35,.15,.25,1); }
.flip-wrap.linked { transform: rotateY(180deg); }
@media (max-width: 880px) { .flip-wrap { height: 560px; } }

/* ---------- Global search ----------
   Topbar: a slim white strip fused to the app chrome (same surface + hairline
   as the sidebar), sticky, with the page's own 1140px/44px gutters so the
   field sits exactly on the content grid. The field itself is a quiet pill on
   the page-background grey; it brightens to white with the brand focus ring
   only when engaged. In-content instances (forms) keep a bordered field. */
.topbar {
  position: sticky; top: 0; z-index: 70;
  background: #FFFFFF; border-bottom: 1px solid #E2E7ED;
}
.topbar-in {
  max-width: 1140px; margin: 0 auto; padding: 0 44px;
  height: 56px; display: flex; align-items: center;
}
.gsearch { position: relative; display: flex; align-items: center; gap: 9px; }
.topbar .gsearch {
  width: min(400px, 100%); background: #F4F6F9; border: 1px solid transparent;
  border-radius: 999px; padding: 8px 16px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.topbar .gsearch:hover { background: #EEF1F5; }
.topbar .gsearch:focus-within {
  background: #FFFFFF; border-color: #0E9E78; box-shadow: 0 0 0 3px rgba(14,158,120,.10);
}
.gsearch-in { flex: 1; border: none; outline: none; background: none;
  font: 500 13.5px Inter, system-ui, sans-serif; color: #0D1B2E; min-width: 0; }
.gsearch-in::placeholder { color: #9AA7B4; }
/* in-content variant (e.g. the watchlist add form): bordered white field */
form .gsearch, .pad .gsearch {
  background: #FFFFFF; border: 1px solid #E2E7ED; border-radius: 8px;
  padding: 10px 13px; min-height: 44px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
form .gsearch:focus-within, .pad .gsearch:focus-within {
  border-color: #0E9E78; box-shadow: 0 0 0 3px rgba(14,158,120,.10);
}
.gsearch-drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 100%; width: max(100%, 360px);
  z-index: 80; background: #FFFFFF; border: 1px solid #E2E7ED; border-radius: 14px;
  overflow: hidden; box-shadow: 0 18px 44px rgba(13,27,46,.16);
  animation: chipPop .16s ease-out both;
}
.gsearch-item { display: flex; align-items: baseline; gap: 11px; padding: 11px 16px;
  cursor: pointer; border-bottom: 1px solid #F1F4F7; transition: background .1s ease; }
.gsearch-item:last-child { border-bottom: none; }
.gsearch-item.active, .gsearch-item:hover { background: #F2F8F6; }
.gs-sym { font: 700 13px Inter, system-ui, sans-serif; color: #0D1B2E;
  min-width: 56px; font-variant-numeric: tabular-nums; }
.gs-name { flex: 1; font: 500 13px Inter, system-ui, sans-serif; color: #5A6B7F;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-type { flex: none; font: 600 9.5px Inter, system-ui, sans-serif; letter-spacing: .1em;
  color: #8A97A6; text-transform: uppercase; }
.gsearch-empty { padding: 13px 16px; font: 500 13px Inter, system-ui, sans-serif; color: #8A97A6; }
@media (max-width: 880px) {
  .topbar-in { padding: 0 18px; height: 52px; }
  .topbar .gsearch { width: 100%; }
}

/* ---------- Public landing + login (Home.dc.html screens 2a/3a) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gridMove { from { background-position: 0 0, 0 0; } to { background-position: 0 54px, 0 0; } }
@keyframes sheetA { 0%, 100% { transform: perspective(1200px) rotateX(56deg) rotateZ(-9deg) translateY(0); } 50% { transform: perspective(1200px) rotateX(56deg) rotateZ(-9deg) translateY(-16px); } }
@keyframes sheetB { 0%, 100% { transform: perspective(1200px) rotateX(-34deg) rotateY(18deg) translateY(0); } 50% { transform: perspective(1200px) rotateX(-34deg) rotateY(18deg) translateY(13px); } }
@keyframes tickerPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.land-input { width: 100%; min-height: 46px; padding: 0 14px; background: #FFFFFF; border: 1px solid #E2E7ED;
  border-radius: 8px; font-family: Inter, system-ui, sans-serif; font-size: 14px; color: #0D1B2E; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease; }
.land-input:focus { border-color: #0E9E78; box-shadow: 0 0 0 3px rgba(14,158,120,.12); }
.land-err { margin-top: 16px; background: #FBEDEA; border: 1px solid #F0CFC9; border-radius: 10px;
  padding: 11px 14px; font-size: 13px; font-weight: 600; color: #C0392B; }
@media (max-width: 980px) {
  .land-hero { grid-template-columns: 1fr !important; padding: 40px 24px !important; gap: 48px !important; }
  .land-head { padding: 0 20px !important; }
  .land-nav { display: none !important; }
  .land-proof { flex-direction: column; align-items: flex-start !important; gap: 12px !important; margin: 0 20px !important; }
  .land-proof > div { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }
}
.tg-btn { transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, background .15s ease; }
.tg-btn:hover { transform: translateY(-1.5px); box-shadow: 0 8px 18px rgba(13,27,46,.28); background: #13263D !important; }
