:root {
  --ink: #151719;
  --muted: #59626f;
  --line: #d9dee5;
  --paper: #f6f4ee;
  --surface: #ffffff;
  --charcoal: #20252b;
  --green: #0e8f68;
  --red: #b23b3b;
  --gold: #d99b24;
  --blue: #275f8f;
  --shadow: 0 18px 45px rgba(20, 24, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(217, 222, 229, 0.85);
  background: rgba(246, 244, 238, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.header-action,
.button,
.signup-form button {
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.header-action {
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 38px;
  align-items: center;
  max-width: 1220px;
  min-height: 680px;
  margin: 0 auto;
  padding: 72px 32px 46px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text,
.section-heading p,
.feature-list p,
.article-grid p,
.plan p,
.site-footer p,
.join-section p {
  color: var(--muted);
}

.hero-text {
  max-width: 640px;
  margin-bottom: 28px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
}

.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.button.secondary {
  background: transparent;
}

.terminal {
  overflow: hidden;
  border: 1px solid #2e3640;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  color: #d9e2ea;
  border-bottom: 1px solid #3e4854;
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.market-time {
  margin-left: auto;
  color: #9fb0bf;
}

#heroChart {
  display: block;
  width: 100%;
  height: auto;
  background:
    linear-gradient(#303946 1px, transparent 1px),
    linear-gradient(90deg, #303946 1px, transparent 1px);
  background-size: 80px 56px;
}

.ticker-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #3e4854;
}

.ticker-strip span {
  padding: 12px 14px;
  color: #dde8ef;
  border-right: 1px solid #3e4854;
  font-size: 13px;
}

.ticker-strip span:last-child {
  border-right: 0;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1180px;
  margin: 0 auto 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stats-band div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band span {
  color: var(--muted);
  font-size: 14px;
}

.section,
.split-section,
.join-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 32px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.desk-grid,
.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.panel,
.plan,
.article-grid article,
.feature-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header h3 {
  margin: 0;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  background: #fafafa;
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.positive {
  color: var(--green);
  font-weight: 800;
}

.negative {
  color: var(--red);
  font-weight: 800;
}

.risk {
  display: inline-flex;
  align-items: center;
  min-width: 72px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.risk.low {
  color: #07563e;
  background: #dff4ec;
}

.risk.medium {
  color: #7a4b00;
  background: #fff1cf;
}

.risk.high {
  color: #842121;
  background: #f8dddd;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 20px 22px 24px;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article {
  padding: 22px;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 800;
}

.surface {
  max-width: none;
  background: #ebe7dc;
}

.surface .section-heading,
.surface .pricing-grid,
.surface .tool-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid,
.article-grid,
.tool-grid,
.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan,
.article-grid article,
.tool-grid article,
.widget-panel {
  padding: 24px;
}

.tool-grid article,
.widget-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tool-grid a,
.symbol-cloud a,
.symbol-cloud span {
  color: var(--blue);
  font-weight: 800;
}

.widget-grid {
  grid-template-columns: 1.1fr 0.9fr;
  margin-top: 18px;
}

.market-widget {
  display: grid;
  align-content: center;
  min-height: 220px;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid #2e3640;
  border-radius: 8px;
  color: #dce7ed;
  background:
    linear-gradient(#303946 1px, transparent 1px),
    linear-gradient(90deg, #303946 1px, transparent 1px),
    var(--charcoal);
  background-size: 70px 48px;
}

.market-widget span {
  color: #9fb0bf;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-widget strong {
  margin: 8px 0;
  font-size: 28px;
  line-height: 1.12;
}

.market-widget p {
  margin: 0;
  color: #b9c7cf;
}

.symbol-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.symbol-cloud a,
.symbol-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
}

.quote-search {
  max-width: 720px;
  margin: -8px auto 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quote-search label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.quote-search input {
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  text-transform: uppercase;
}

.quote-search button {
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.quote-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.quote-card[hidden] {
  display: none;
}

.quote-card div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.quote-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.plan strong {
  display: block;
  margin-top: 20px;
  font-size: 24px;
}

.plan.highlighted {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(14, 143, 104, 0.14);
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.join-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.signup-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.signup-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
}

.signup-form input {
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.signup-form button {
  min-height: 48px;
  color: #fff;
  background: var(--ink);
}

.form-note {
  margin: 10px 0 0;
  font-size: 13px;
}

.acknowledgment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.acknowledgment input {
  margin-top: 3px;
}

.site-footer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 32px;
  color: #dce4e9;
  background: var(--charcoal);
}

.site-footer p {
  margin-bottom: 0;
  color: #aebbc5;
}

.disclaimer {
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.legal-stack {
  display: grid;
  gap: 12px;
}

.legal-disclaimer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.site-footer .legal-disclaimer {
  border-color: #46515c;
  background: #252c33;
}

.legal-disclaimer summary {
  cursor: pointer;
  padding: 13px 15px;
  font-weight: 800;
  color: var(--ink);
}

.site-footer .legal-disclaimer summary {
  color: #ffffff;
}

.legal-disclaimer-content {
  padding: 0 15px 15px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer .legal-disclaimer-content {
  color: #c2ccd3;
}

.legal-disclaimer-content p {
  margin: 0 0 10px;
}

.inline-disclaimer {
  margin: 14px 0;
  background: #fbfdff;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 32px;
}

.legal-page section {
  margin: 28px 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-page ul {
  color: var(--muted);
}

.safety-checker {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.safety-checker textarea {
  width: 100%;
  min-height: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.safety-results {
  display: grid;
  gap: 10px;
}

.safety-alert,
.safety-ok {
  border-radius: 8px;
  padding: 12px;
}

.safety-alert {
  border: 1px solid #f0c6c6;
  background: #fff3f3;
}

.safety-ok {
  border: 1px solid #bfe0d2;
  background: #f0fff8;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 32px 72px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.page-hero h1 {
  font-size: 46px;
}

.updated-card,
.cta-box,
.daily-template,
.data-board,
.faq-block,
.link-hub,
.market-data-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.updated-card {
  padding: 18px;
}

.updated-card strong,
.daily-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.updated-card span {
  display: block;
  margin-top: 5px;
  font-weight: 800;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 28px;
}

.content-flow {
  display: grid;
  gap: 22px;
}

.content-section,
.data-board,
.daily-template,
.faq-block,
.cta-box,
.link-hub,
.market-data-panel {
  padding: 24px;
}

.content-section {
  border-bottom: 1px solid var(--line);
}

.content-section:last-child {
  border-bottom: 0;
}

.content-section h2 {
  font-size: 28px;
}

.content-section h3,
.daily-template h2,
.data-board h2,
.faq-block h2,
.link-hub h2,
.market-data-panel h2 {
  font-size: 22px;
}

.daily-template {
  background: #fbfcfd;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.template-grid div {
  min-height: 76px;
  padding: 12px;
  border: 1px dashed #b9c2cc;
  border-radius: 8px;
  background: #fff;
}

.data-board table {
  min-width: 700px;
}

.watch-tags,
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.watch-tags span,
.page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
  font-size: 13px;
  font-weight: 800;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 86px;
}

.daily-quote {
  display: grid;
  gap: 10px;
}

.daily-quote input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  text-transform: uppercase;
}

.daily-quote button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.daily-quote-result {
  min-height: 46px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.faq-item {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.faq-item:first-of-type {
  border-top: 0;
}

.faq-item h3 {
  font-size: 18px;
}

.cta-box {
  color: #fff;
  background: var(--charcoal);
}

.cta-box p {
  color: #d6e0e7;
}

.fine-print {
  color: var(--muted);
  font-size: 13px;
}

.market-auto-board {
  border-color: rgba(14, 143, 104, 0.34);
  box-shadow: 0 0 0 2px rgba(14, 143, 104, 0.08);
}

.auto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.auto-news {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auto-news li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.auto-news strong,
.auto-news span {
  display: block;
}

.auto-news span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .page-hero,
  .page-layout,
  .desk-grid,
  .market-grid,
  .split-section,
  .join-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .stats-band,
  .pricing-grid,
  .article-grid,
  .tool-grid,
  .widget-grid,
  .auto-grid {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-band div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .split-section,
  .join-section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 36px;
  }

  .header-action {
    width: 100%;
    text-align: center;
  }

  .ticker-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-card {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }
}
