/* StraightToPro global visual system. Loaded last to unify every product surface. */

:root {
  --stp-bg: #f3f4f0;
  --stp-paper: #ffffff;
  --stp-paper-soft: #f8f9f6;
  --stp-ink: #19211d;
  --stp-muted: #667169;
  --stp-faint: #8b948e;
  --stp-line: #dfe4df;
  --stp-line-strong: #cfd7d1;
  --stp-dark: #121815;
  --stp-dark-soft: #1a221e;
  --stp-green: #159665;
  --stp-green-dark: #08764f;
  --stp-green-soft: #e8f5ed;
  --stp-red: #b84a43;
  --stp-amber: #a97421;
  --stp-radius: 6px;
}

html {
  background: var(--stp-bg);
}

body {
  background: var(--stp-bg);
  color: var(--stp-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
[role='button'] {
  -webkit-tap-highlight-color: transparent;
}

.card {
  border: 1px solid var(--stp-line);
  border-radius: var(--stp-radius);
  background: var(--stp-paper);
  box-shadow: none;
}

/* Global navigation */
.top-nav {
  background: rgba(18, 24, 21, 0.98);
  border-bottom: 1px solid #29332e;
  box-shadow: none;
}

.nav-inner {
  min-height: 64px;
}

.brand-mark {
  color: #ffffff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px !important;
  font-weight: 600 !important;
}

.brand-mark .text-blue-400 {
  color: #8fe0b4 !important;
}

.search-bar {
  min-height: 40px;
  border: 1px solid #38443e;
  border-radius: var(--stp-radius);
  background: #171e1a;
  color: #ffffff;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

.search-bar::placeholder {
  color: #839089;
}

.search-bar:focus {
  border-color: #70bd94;
  background: #171e1a;
  box-shadow: 0 0 0 2px rgba(112, 189, 148, 0.16);
}

.search-btn,
.nav-action,
.nav-account-button {
  min-height: 40px;
  border-radius: var(--stp-radius);
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

.search-btn,
.nav-account-button {
  border: 1px solid var(--stp-green);
  background: var(--stp-green);
  color: #ffffff;
}

.search-btn:hover,
.nav-account-button:hover {
  border-color: var(--stp-green-dark);
  background: var(--stp-green-dark);
}

.nav-action,
.nav-home-button {
  border: 1px solid #3a463f;
  background: transparent;
  color: #dce5df;
}

.nav-action:hover,
.nav-home-button:hover {
  border-color: #66766e;
  background: #202923;
}

.home-button-icon {
  width: 11px;
  height: 9px;
  border-width: 1.5px;
}

.home-button-icon::before {
  width: 8px;
  height: 8px;
  border-width: 1.5px 0 0 1.5px;
}

.search-suggestions,
.account-menu {
  border-color: var(--stp-line-strong);
  border-radius: var(--stp-radius);
  box-shadow: 0 14px 36px rgba(17, 26, 22, 0.15);
}

.suggestion-item {
  padding: 12px 14px;
}

.suggestion-symbol,
.account-menu button {
  font-weight: 500;
}

.suggestion-type {
  border-radius: 4px;
  font-weight: 600;
}

/* Homepage hero */
#homepage > section:first-child {
  padding-top: 30px;
}

.hero-shell {
  position: relative;
  border: 1px solid #2a3731;
  border-radius: var(--stp-radius);
  background: var(--stp-dark);
  box-shadow: none;
}

.hero-main {
  min-height: 342px;
}

.hero-copy {
  padding: 48px 52px 42px;
}

.hero-kicker {
  color: #8fe0b4;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-title {
  max-width: 850px;
  color: #ffffff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 500;
}

.hero-subtitle {
  max-width: 720px;
  margin-top: 20px;
  color: #b8c4bd;
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  gap: 7px;
}

.hero-pill {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #3a463f;
  border-radius: var(--stp-radius);
  background: transparent;
  color: #d9e3dd;
  font-size: 11px;
  font-weight: 400;
}

/* Homepage sections and market directory */
.page-section-label {
  margin-bottom: 16px;
}

.page-section-label h2 {
  color: var(--stp-ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 500;
}

.page-section-label p {
  color: var(--stp-muted);
  font-size: 12px;
  line-height: 1.65;
}

.homepage-grid {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--stp-line);
  border-radius: var(--stp-radius);
  background: var(--stp-paper);
}

.homepage-grid .market-card {
  padding: 24px !important;
  border: 0;
  border-right: 1px solid var(--stp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.homepage-grid .market-card:last-child {
  border-right: 0;
}

.homepage-grid .market-card:hover {
  border-color: var(--stp-line);
  background: var(--stp-paper-soft);
  box-shadow: none;
  transform: none;
}

.homepage-card-header {
  min-height: 106px;
  align-items: flex-start !important;
}

.homepage-card-header h3 {
  color: var(--stp-ink) !important;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px !important;
  line-height: 1.15;
  font-weight: 500 !important;
  text-transform: none !important;
}

.homepage-card-header p {
  max-width: 250px;
  color: var(--stp-muted) !important;
  font-size: 11px !important;
  line-height: 1.55;
}

.market-open-hint {
  margin-top: 11px;
  color: var(--stp-green-dark);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.asset-chip {
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
}

.stock-row {
  min-height: 52px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #ebeeeb;
  border-radius: 0;
  background: transparent;
  transform: none;
}

.stock-row:hover {
  border-color: #dfe5e0;
  background: transparent;
  transform: none;
}

.asset-row-logo {
  width: 32px;
  height: 32px;
  border-radius: 5px;
}

.asset-row-symbol {
  color: var(--stp-ink);
  font-size: 12px;
  font-weight: 600;
}

.asset-row-name {
  color: var(--stp-muted);
  font-size: 12px;
}

/* Heatmap */
.heatmap-section {
  height: min(760px, calc(100vh - 64px));
  border-top: 0;
  background: var(--stp-dark);
}

.heatmap-header {
  padding-top: 24px;
  padding-bottom: 17px;
}

.heatmap-title {
  color: #ffffff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: none;
}

.heatmap-subtitle {
  margin-top: 5px;
  color: #94a49b;
  font-size: 11px;
}

.heatmap-legend {
  color: #aab7b0;
  font-size: 10px;
  font-weight: 500;
}

.legend-swatch {
  width: 52px;
  height: 6px;
  border-radius: 2px;
}

/* Industry and market detail */
#industryDetail {
  padding-top: 30px;
}

#industryDetail > .card,
#industryDetail > .grid .card {
  border-radius: var(--stp-radius);
  box-shadow: none;
}

#industryDetail > .card:first-child {
  padding: 24px !important;
  background: var(--stp-dark);
  border-color: #2a3731;
  color: #ffffff;
}

#industryDetail > .card:first-child h2 {
  color: #ffffff !important;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 30px !important;
  font-weight: 500 !important;
}

#industryDetail > .card:first-child #backFromIndustry {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #3a463f;
  border-radius: var(--stp-radius);
  background: transparent;
  color: #dce5df;
  font-size: 11px;
  font-weight: 500;
}

#industryDetail > .card:first-child .text-gray-300 {
  display: none;
}

#industryDetail > .card:first-child .text-gray-500 {
  color: #9eaca4 !important;
}

#industryDetail .tf-btn {
  min-height: 36px;
  border-radius: var(--stp-radius);
  font-size: 11px;
  font-weight: 500;
}

#industryDetail .tf-btn.active {
  border-color: #80d7a8;
  background: #80d7a8;
  color: #102019;
}

#industryDetail h3 {
  font-weight: 500 !important;
}

#industryDetail > .grid .card {
  padding: 22px !important;
}

.industry-table-header {
  min-height: 39px;
  background: var(--stp-paper-soft) !important;
  color: #7b867f !important;
  font-size: 9px !important;
  font-weight: 600 !important;
}

.industry-stock-row {
  min-height: 60px;
  border-top: 1px solid #edf0ed;
}

.industry-stock-row:hover {
  background: var(--stp-paper-soft);
}

/* Watchlist */
#watchlistView {
  padding-top: 14px;
}

.watchlist-header {
  padding: 30px 0 21px;
  border-bottom: 1px solid var(--stp-line);
}

.watchlist-title {
  color: var(--stp-ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 500;
}

.watchlist-subtitle {
  color: var(--stp-muted);
  font-size: 12px;
}

.watchlist-filters,
.auth-tabs {
  gap: 0;
  padding: 0;
  border: 1px solid var(--stp-line-strong);
  border-radius: var(--stp-radius);
  background: var(--stp-paper);
}

.watchlist-filter,
.auth-tab {
  min-height: 38px;
  padding: 8px 13px;
  border-right: 1px solid var(--stp-line);
  border-radius: 0;
  color: var(--stp-muted);
  font-size: 11px;
  font-weight: 500;
}

.watchlist-filter:last-child,
.auth-tab:last-child {
  border-right: 0;
}

.watchlist-filter.active,
.auth-tab.active {
  background: var(--stp-dark);
  color: #ffffff;
  box-shadow: none;
}

.watchlist-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin: 20px 0 38px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--stp-line);
  border-radius: var(--stp-radius);
  background: var(--stp-paper);
}

.watchlist-item {
  min-height: 72px;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid var(--stp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.watchlist-item:last-child {
  border-bottom: 0;
}

.watchlist-item:hover {
  background: var(--stp-paper-soft);
}

.watchlist-item-symbol {
  font-size: 14px;
  font-weight: 600;
}

.watchlist-item-type {
  color: var(--stp-green-dark);
  font-size: 9px;
  font-weight: 600;
}

.watchlist-remove,
.auth-close {
  border-radius: var(--stp-radius);
  box-shadow: none;
}

.watchlist-empty {
  border: 0;
  background: var(--stp-paper);
}

.watchlist-empty strong {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}

/* Authentication */
.auth-overlay {
  background: rgba(8, 12, 10, 0.72);
  backdrop-filter: blur(8px);
}

.auth-dialog {
  width: min(100%, 448px);
  border-color: var(--stp-line-strong);
  border-radius: var(--stp-radius);
  box-shadow: 0 28px 80px rgba(6, 10, 8, 0.28);
}

.auth-dialog-header {
  padding: 26px 26px 16px;
}

.auth-dialog-title {
  color: var(--stp-ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 500;
}

.auth-dialog-copy {
  margin-top: 7px;
  font-size: 12px;
}

.auth-close {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.auth-tabs {
  margin: 0 26px;
}

.auth-form {
  padding: 21px 26px 27px;
}

.auth-field {
  margin-bottom: 15px;
}

.auth-field span {
  margin-bottom: 7px;
  color: #4d5851;
  font-size: 11px;
  font-weight: 500;
}

.auth-field input {
  min-height: 44px;
  border-color: var(--stp-line-strong);
  border-radius: var(--stp-radius);
  padding: 10px 12px;
  font-size: 14px;
  box-shadow: none;
}

.auth-field input:focus {
  border-color: #65b68a;
  box-shadow: 0 0 0 2px rgba(101, 182, 138, 0.14);
}

.auth-submit {
  min-height: 44px;
  border-radius: var(--stp-radius);
  background: var(--stp-dark);
  font-size: 13px;
  font-weight: 500;
}

.auth-submit:hover {
  background: #28312d;
}

.auth-secondary {
  color: var(--stp-green-dark);
  font-size: 11px;
  font-weight: 500;
}

/* Footer */
.site-footer-inner {
  padding-top: 35px;
  padding-bottom: 34px;
}

.site-footer-brand {
  margin-bottom: 24px;
  color: #ffffff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 25px;
  font-weight: 600;
}

.site-footer-brand span {
  color: #8fe0b4;
}

.site-footer-links {
  padding-bottom: 17px;
}

.site-footer-link {
  color: #d4ddd8;
  font-size: 11px;
  font-weight: 500;
}

.site-footer-note,
.site-footer-copy {
  color: #8f9d96;
  font-size: 10px;
}

@media (max-width: 900px) {
  .homepage-grid {
    grid-template-columns: 1fr !important;
  }

  .homepage-grid .market-card {
    border-right: 0;
    border-bottom: 1px solid var(--stp-line);
  }

  .homepage-grid .market-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 767px) {
  body {
    background: var(--stp-bg);
  }

  .nav-inner {
    min-height: 170px !important;
  }

  .brand-mark {
    font-size: 23px !important;
  }

  #homepage > section:first-child {
    padding-top: 16px;
  }

  .hero-main {
    min-height: 0;
  }

  .hero-copy {
    padding: 30px 24px 25px;
  }

  .hero-title {
    font-size: 42px;
    line-height: 1.02;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .page-section-label h2 {
    font-size: 27px;
  }

  .homepage-grid .market-card {
    padding: 20px !important;
  }

  .homepage-card-header {
    min-height: auto;
  }

  .heatmap-title {
    font-size: 21px;
  }

  #industryDetail > .card:first-child h2 {
    font-size: 26px !important;
  }

  .watchlist-title {
    font-size: 31px;
  }

  .watchlist-grid {
    margin-top: 16px;
  }

  .auth-dialog {
    border-radius: var(--stp-radius) var(--stp-radius) 0 0;
  }
}
