:root {
  --bg: #0e1117;
  --panel: #161b22;
  --panel-2: #1c2430;
  --grid: #21262d;
  --text: #e6edf3;
  --muted: #8b949e;
  --x: #2ea043;
  --o: #da3633;
  --accent: #58a6ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--grid);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-word { font-size: 20px; font-weight: 700; color: var(--text); }
.brand .accent { color: var(--accent); }
.brand-mark { flex-shrink: 0; }
.brand-pulse-ring {
  transform-origin: 31.5px 9px;
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.6); opacity: 0.6; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.site-header nav { display: flex; align-items: center; gap: 18px; }
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.cta, .cta-small {
  display: inline-block;
  background: var(--accent);
  color: #06111f;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none !important;
}
.cta-small { padding: 8px 16px; font-size: 14px; }
.cta:hover, .cta-small:hover { filter: brightness(1.08); }

main { max-width: 1040px; margin: 0 auto; padding: 48px 24px 80px; }

.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 36px; line-height: 1.25; margin: 0 0 18px; }
.hero-sub { color: var(--muted); max-width: 640px; margin: 0 auto 28px; font-size: 16px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-price { color: var(--muted); font-size: 14px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}
.feature h3 { margin: 0; font-size: 15px; font-weight: 600; }

.disclosure {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--grid);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.auth-box {
  max-width: 380px;
  margin: 40px auto;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: 12px;
  padding: 32px;
}
.auth-box h2 { margin-top: 0; }
.auth-box form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.auth-box label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.auth-box input {
  background: var(--bg);
  border: 1px solid var(--grid);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
}
.auth-switch { margin-top: 18px; font-size: 14px; color: var(--muted); }
.form-error { color: var(--o); font-size: 14px; }

.dash-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.dash-count { color: var(--muted); font-size: 14px; }

.add-form { display: flex; gap: 10px; margin-bottom: 20px; }
.add-form input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
}

.empty-state { color: var(--muted); }

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.ticker-card {
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: 10px;
  padding: 16px;
}
.ticker-card-head { display: flex; justify-content: space-between; align-items: center; }
.ticker-symbol { font-size: 18px; font-weight: 700; }
.remove-form { margin: 0; }
.remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.remove-btn:hover { color: var(--o); }
.chart-placeholder {
  margin-top: 14px;
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--panel-2);
  border-radius: 8px;
  border: 1px dashed var(--grid);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px;
  border-top: 1px solid var(--grid);
}

/* compact header on phones */
@media (max-width: 520px) {
  .site-header { padding: 12px 16px; }
  .brand-word { white-space: nowrap; }
  .site-header nav { gap: 12px; }
  .site-header nav a { white-space: nowrap; font-size: 14px; }
  .site-header .cta-small { padding: 7px 12px; }
  .hide-sm { display: none; }
}

/* header tagline: beside the name on wide screens, under it on phones */
.brand-text { display: flex; align-items: baseline; gap: 12px; }
.brand-tag {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding-left: 12px; border-left: 1px solid var(--grid); white-space: nowrap;
}
@media (max-width: 720px) {
  .brand-text { flex-direction: column; gap: 0; line-height: 1.15; }
  .brand-tag { font-size: 11px; padding-left: 0; border-left: 0; }
}
@media (max-width: 420px) {
  header.site-header { gap: 8px; padding: 12px 12px; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 18px; }
  .site-header nav { gap: 8px; }
  .site-header nav a { font-size: 13px; }
  .site-header .cta-small { padding: 6px 10px; }
}
