﻿:root {
  color-scheme: light;
  --ink: #101419;
  --muted: #64707d;
  --paper: #f4f0e8;
  --paper-strong: #fffbf2;
  --line: #1c232c;
  --line-soft: rgba(16, 20, 25, 0.14);
  --green: #087f5b;
  --green-soft: #dff4ea;
  --red: #b42318;
  --red-soft: #ffe4df;
  --gold: #d19722;
  --blue: #174ea6;
  --shadow: 0 24px 50px rgba(16, 20, 25, 0.11);
  --radius: 8px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(16, 20, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 25, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.ticker-tape {
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper-strong);
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 18px;
  align-items: center;
  padding: 9px 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  animation: tape 28s linear infinite;
}

.ticker-track span {
  color: #77e2af;
  font-weight: 900;
}

.ticker-track b {
  color: #f1d58c;
  font-weight: 700;
}

@keyframes tape {
  from { transform: translateX(0); }
  to { transform: translateX(-45%); }
}

.page-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-name,
.brand-tag {
  display: block;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 900;
}

.brand-tag {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  padding: 9px 12px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: var(--line);
  background: var(--paper-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  padding: 34px 0 28px;
  border-bottom: 4px double var(--line);
}

.hero-copy {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(8, 127, 91, 0.14), transparent 38%),
    linear-gradient(90deg, rgba(209, 151, 34, 0.2), transparent 52%),
    var(--paper-strong);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 940px;
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 6vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.55rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-text,
.section-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: #343d48;
  font-size: 1.06rem;
  line-height: 1.7;
}

.opening-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 26px;
  background: var(--ink);
  color: var(--paper-strong);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.desk-label {
  margin: 0;
  color: #f1d58c;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 900;
}

.opening-card strong {
  display: block;
  font-size: clamp(3.5rem, 7vw, 6.4rem);
  line-height: 0.9;
  font-weight: 900;
}

.opening-card span {
  color: #dbe5ef;
  line-height: 1.55;
}

.featured-section,
.market-panel,
.overview-panel,
.news-panel {
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}

.feature-story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}

.featured-stock {
  min-height: 280px;
  border: 2px solid var(--line);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.featured-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  height: 100%;
  padding: 26px;
}

.feature-badge {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  background: var(--green);
  color: white;
  border: 2px solid var(--line);
  font-size: 1.35rem;
  font-weight: 900;
}

.feature-main h3 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
  font-weight: 900;
}

.feature-main p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-price {
  text-align: right;
}

.feature-price strong {
  display: block;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.featured-placeholder {
  width: 100%;
  height: 280px;
  border-radius: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 18px;
}

.section-heading.compact {
  align-items: center;
}

.search-group {
  width: min(100%, 340px);
}

input[type="search"] {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--ink);
  outline: none;
  font-weight: 700;
  box-shadow: 5px 5px 0 rgba(16, 20, 25, 0.12);
}

input[type="search"]:focus {
  border-color: var(--blue);
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 15px;
  margin-bottom: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 251, 242, 0.72);
}

.status-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--line);
}

.button-secondary {
  color: var(--ink);
  background: var(--paper-strong);
}

.hidden {
  display: none !important;
}

.grid {
  display: grid;
  gap: 16px;
}

.stock-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.news-grid {
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
}

.stock-card,
.stat-card,
.news-card {
  border: 2px solid var(--line);
  background: var(--paper-strong);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 rgba(16, 20, 25, 0.13);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.stock-card:hover,
.news-card:hover,
.stat-card:hover,
.stock-card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 rgba(16, 20, 25, 0.18);
}

.stock-card {
  padding: 18px;
}

.stock-card.featured-rank {
  background: #fff8d9;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 18px;
}

.logo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.company-title {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 900;
}

.symbol {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.price-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.current-price {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.price-change {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  font-size: 0.86rem;
  font-weight: 900;
}

.price-change.positive {
  background: var(--green-soft);
  color: var(--green);
}

.price-change.negative {
  background: var(--red-soft);
  color: var(--red);
}

.sparkline {
  width: 100%;
  height: 68px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(23, 78, 166, 0.08), transparent);
  border-bottom: 1px solid var(--line-soft);
}

.metrics-grid {
  display: grid;
  gap: 8px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.metric-value {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.stat-card {
  padding: 18px;
}

.stat-label {
  margin: 0 0 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 900;
}

.stat-value {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.1;
  font-weight: 900;
}

.news-card {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 14px;
  padding: 14px;
}

.news-card:first-child {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.news-image {
  display: block;
  width: 100%;
  min-height: 118px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #e8edf0;
}

.news-card:first-child .news-image {
  min-height: 260px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.news-headline {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 900;
}

.news-card:first-child .news-headline {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 900;
}

.news-link:hover,
.news-link:focus-visible {
  text-decoration: underline;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer p {
  max-width: 560px;
  margin: 0;
}

.skeleton-card {
  animation: cardPulse 1.8s ease-in-out infinite;
}

.skeleton {
  border-radius: 0;
  background: linear-gradient(90deg, rgba(16, 20, 25, 0.07) 0%, rgba(16, 20, 25, 0.16) 50%, rgba(16, 20, 25, 0.07) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes cardPulse {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

.text-skeleton {
  height: 15px;
  margin-bottom: 9px;
}

.text-skeleton.long { width: 140px; }
.text-skeleton.short { width: 80px; }
.logo-skeleton { width: 46px; height: 46px; }
.price-skeleton { width: 150px; height: 32px; }
.percent-skeleton { width: 110px; height: 28px; }
.sparkline-skeleton { width: 100%; height: 72px; }
.metric-label { height: 14px; width: 42%; }
.metric-value { height: 14px; width: 32%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1220px) {
  .stock-grid,
  .overview-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .feature-price {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 22px, 1480px);
  }

  .topbar,
  .hero,
  .feature-story,
  .section-heading,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy,
  .opening-card {
    min-height: auto;
  }

  .hero-copy {
    padding: 24px;
  }

  .stock-grid,
  .overview-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card,
  .news-card:first-child {
    grid-template-columns: 1fr;
  }

  .news-image,
  .news-card:first-child .news-image {
    min-height: 190px;
  }
}

@media (max-width: 520px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .feature-badge {
    width: 72px;
    height: 72px;
  }

  .nav-link {
    padding: 8px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Polish pass */
.topbar {
  padding: 12px 0 16px;
}

.nav-links {
  gap: 8px;
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  background: rgba(255, 251, 242, 0.68);
  box-shadow: 3px 3px 0 rgba(16, 20, 25, 0.11);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--gold);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--line);
  outline: none;
}

.hero-copy {
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: min(34%, 280px);
  height: 74px;
  border-left: 3px solid rgba(8, 127, 91, 0.45);
  border-bottom: 3px solid rgba(8, 127, 91, 0.45);
  transform: skewX(-14deg);
  pointer-events: none;
}

.hero-briefs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-briefs span {
  border: 2px solid var(--line);
  background: var(--paper);
  padding: 9px 11px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 rgba(16, 20, 25, 0.12);
}

.opening-card {
  position: relative;
  overflow: hidden;
}

.opening-card::before {
  content: "";
  position: absolute;
  inset: auto 22px 22px auto;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(241, 213, 140, 0.45);
  transform: rotate(12deg);
}

.opening-card > * {
  position: relative;
  z-index: 1;
}

.feature-story > div:first-child {
  padding: 22px 24px 22px 0;
  border-top: 2px solid var(--line);
}

.featured-stock {
  position: relative;
}

.featured-stock::before {
  content: "Featured";
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 2;
  padding: 8px 12px;
  border: 2px solid var(--line);
  background: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-card {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(8, 127, 91, 0.08), transparent 58%),
    var(--paper-strong);
}

.feature-price span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-heading {
  padding-top: 4px;
}

.section-heading > div:first-child {
  position: relative;
  padding-left: 18px;
}

.section-heading > div:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 2px;
  width: 5px;
  background: var(--gold);
  border: 1px solid var(--line);
}

.stock-card,
.stat-card,
.news-card,
.featured-stock,
.hero-copy,
.opening-card {
  outline-offset: 4px;
}

.stock-card:focus-visible,
.news-link:focus-visible,
.news-image:focus-visible,
.button:focus-visible,
input[type="search"]:focus,
.brand:focus-visible {
  outline: 3px solid rgba(23, 78, 166, 0.35);
}

.stock-card.featured-rank {
  box-shadow: 7px 7px 0 rgba(209, 151, 34, 0.55);
}

.news-card:first-child {
  background: #fff8d9;
}

@media (max-width: 860px) {
  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-link {
    justify-content: center;
    padding: 9px 6px;
    font-size: 0.82rem;
  }

  .feature-story > div:first-child {
    padding-right: 0;
  }

  .hero-copy::after {
    width: 180px;
    opacity: 0.55;
  }
}

@media (max-width: 520px) {
  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-briefs span {
    width: 100%;
    text-align: center;
  }
}

/* Mobile responsive pass */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main,
section,
article,
.card-header > div,
.feature-main,
.news-copy {
  min-width: 0;
}

img,
svg {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .page-shell {
    width: min(100% - 28px, 1480px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .opening-card {
    min-height: 190px;
  }

  .opening-card strong {
    font-size: clamp(3rem, 13vw, 5.4rem);
  }

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

  .feature-story > div:first-child {
    padding: 20px 0 0;
  }

  .stock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  body {
    background-size: 22px 22px;
  }

  .ticker-track {
    gap: 14px;
    padding: 8px 12px;
    font-size: 0.72rem;
    animation-duration: 22s;
  }

  .page-shell {
    width: min(100% - 18px, 1480px);
    padding-top: 10px;
  }

  .topbar {
    position: static;
    gap: 12px;
    padding: 10px 0 14px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.86rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tag {
    font-size: 0.68rem;
  }

  .nav-links {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-link {
    min-height: 40px;
    padding: 8px 4px;
    font-size: 0.76rem;
    text-align: center;
    box-shadow: 2px 2px 0 rgba(16, 20, 25, 0.12);
  }

  .hero {
    padding: 18px 0 22px;
    gap: 12px;
  }

  .hero-copy,
  .opening-card,
  .featured-stock,
  .stock-card,
  .stat-card,
  .news-card {
    box-shadow: 4px 4px 0 rgba(16, 20, 25, 0.13);
  }

  .hero-copy {
    min-height: auto;
    padding: 22px 18px;
  }

  .hero-copy::after,
  .opening-card::before {
    display: none;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .hero-text,
  .section-copy {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero-briefs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 20px;
  }

  .hero-briefs span {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 8px 6px;
    font-size: 0.66rem;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .opening-card {
    min-height: 160px;
    padding: 20px;
  }

  .featured-section,
  .market-panel,
  .overview-panel,
  .news-panel {
    padding: 24px 0;
  }

  .featured-stock {
    min-height: auto;
  }

  .featured-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .feature-badge {
    width: fit-content;
    min-width: 74px;
    height: 54px;
    padding: 0 12px;
    font-size: 1.05rem;
  }

  .feature-main h3 {
    font-size: clamp(1.5rem, 8vw, 2.4rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .feature-price {
    text-align: left;
  }

  .feature-price strong {
    font-size: clamp(2rem, 13vw, 3.4rem);
  }

  .section-heading {
    display: grid;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 16px;
  }

  .section-heading > div:first-child {
    padding-left: 14px;
  }

  .search-group {
    width: 100%;
  }

  input[type="search"] {
    min-height: 48px;
    box-shadow: 3px 3px 0 rgba(16, 20, 25, 0.12);
  }

  .status-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .stock-grid,
  .overview-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stock-card {
    padding: 16px;
  }

  .card-header {
    align-items: flex-start;
    min-height: 0;
  }

  .company-title {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }

  .current-price {
    font-size: clamp(1.8rem, 10vw, 2.35rem);
  }

  .price-change {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .sparkline {
    height: 58px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  .metric-row {
    display: grid;
    gap: 3px;
  }

  .metric-value {
    text-align: left;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    padding: 16px;
  }

  .stat-label {
    margin-bottom: 10px;
    font-size: 0.66rem;
    overflow-wrap: anywhere;
  }

  .stat-value {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
    overflow-wrap: anywhere;
  }

  .news-card,
  .news-card:first-child {
    grid-template-columns: 112px 1fr;
  }

  .news-image,
  .news-card:first-child .news-image {
    min-height: 106px;
    height: 100%;
  }

  .news-card:first-child .news-headline {
    font-size: 1.1rem;
  }

  .news-headline {
    font-size: 0.95rem;
  }

  .news-meta {
    display: grid;
    gap: 4px;
    font-size: 0.68rem;
  }

  .footer {
    gap: 10px;
    padding-bottom: 8px;
  }
}

@media (max-width: 430px) {
  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-briefs,
  .overview-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero-briefs span {
    width: auto;
  }

  .opening-card strong {
    font-size: clamp(2.7rem, 18vw, 4rem);
  }

  .featured-stock::before {
    position: static;
    display: inline-block;
    margin: -2px -2px 0 auto;
  }

  .featured-card {
    padding: 18px;
  }

  .news-card,
  .news-card:first-child {
    grid-template-columns: 1fr;
  }

  .news-image,
  .news-card:first-child .news-image {
    min-height: 180px;
  }
}

@media (max-width: 360px) {
  .page-shell {
    width: min(100% - 14px, 1480px);
  }

  .hero-copy,
  .opening-card,
  .featured-card,
  .stock-card,
  .stat-card,
  .news-card {
    padding: 14px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .nav-link {
    font-size: 0.72rem;
  }
}

/* CPA cliffhanger section */
.cliffhanger-section {
  padding: 30px 0;
  border-bottom: 4px double var(--line);
}

.brief-lockup {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.brief-copy {
  padding: 26px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper-strong);
  box-shadow: var(--shadow);
}

.brief-copy .section-label {
  color: #f1d58c;
}

.brief-copy h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.96;
}

.brief-copy p {
  max-width: 680px;
  margin-bottom: 0;
  color: #dbe5ef;
  font-size: 1rem;
  line-height: 1.7;
}

.brief-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.brief-points span {
  border: 1px solid rgba(255, 251, 242, 0.35);
  background: rgba(255, 251, 242, 0.08);
  padding: 9px 11px;
  color: #f1d58c;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.locked-report {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
  overflow: hidden;
  border: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgba(209, 151, 34, 0.22), transparent 36%),
    var(--paper-strong);
  box-shadow: 9px 9px 0 rgba(16, 20, 25, 0.16);
}

.locked-report::after {
  content: "";
  position: absolute;
  inset: auto -40px -48px auto;
  width: 190px;
  height: 190px;
  border: 18px solid rgba(8, 127, 91, 0.09);
  transform: rotate(16deg);
  pointer-events: none;
}

.report-stamp {
  width: max-content;
  border: 2px solid var(--line);
  background: var(--gold);
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.locked-report h3 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 3rem);
  line-height: 1.02;
  font-weight: 900;
}

.blurred-lines {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.45);
  filter: blur(0.2px);
}

.blurred-lines span {
  display: block;
  height: 13px;
  background: linear-gradient(90deg, rgba(16, 20, 25, 0.28), rgba(16, 20, 25, 0.08));
}

.blurred-lines span:nth-child(2) {
  width: 78%;
}

.blurred-lines span:nth-child(3) {
  width: 54%;
}

.button-primary {
  position: relative;
  z-index: 1;
  min-height: 54px;
  width: max-content;
  max-width: 100%;
  color: var(--paper-strong);
  background: var(--green);
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--line);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #06694b;
}

.offer-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .brief-lockup {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cliffhanger-section {
    padding: 24px 0;
  }

  .brief-copy,
  .locked-report {
    padding: 20px;
    box-shadow: 4px 4px 0 rgba(16, 20, 25, 0.13);
  }

  .brief-copy h2 {
    font-size: clamp(1.85rem, 11vw, 3.2rem);
  }

  .brief-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .brief-points span {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.65rem;
    overflow-wrap: anywhere;
  }

  .button-primary {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .brief-points {
    grid-template-columns: 1fr;
  }

  .locked-report h3 {
    font-size: 1.38rem;
  }
}

/* Stronger conversion treatment */
.brief-copy h2 {
  max-width: 900px;
}

.locked-report {
  gap: 16px;
}

.report-stamp {
  background: var(--red);
  color: var(--paper-strong);
}

.report-kicker {
  color: var(--red);
}

.unlock-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.unlock-list li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 251, 242, 0.82);
  color: #26313c;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.unlock-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--green);
  border: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}

.offer-button {
  min-height: 60px;
  justify-self: start;
  padding-inline: 22px;
  background: var(--red);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offer-button:hover,
.offer-button:focus-visible {
  background: #8f1c13;
}

.offer-note {
  padding-top: 2px;
}

@media (max-width: 760px) {
  .unlock-list li {
    padding: 10px 10px 10px 32px;
    font-size: 0.86rem;
  }

  .offer-button {
    justify-self: stretch;
    min-height: 58px;
    padding-inline: 12px;
    font-size: 0.86rem;
    text-align: center;
  }
}

/* Unlocked full brief page */
.brief-page .topbar {
  margin-bottom: 0;
}

.brief-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.unlocked-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  padding: 34px 0 28px;
  border-bottom: 4px double var(--line);
}

.unlocked-hero > div,
.brief-scorecard,
.report-main,
.report-side,
.risk-copy,
.action-card {
  border: 2px solid var(--line);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.unlocked-hero > div {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(8, 127, 91, 0.14), transparent 42%),
    var(--paper-strong);
}

.brief-scorecard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 26px;
  background: var(--green);
  color: var(--paper-strong);
}

.brief-scorecard .desk-label {
  color: #fff8d9;
}

.brief-scorecard strong {
  display: block;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.9;
  font-weight: 900;
}

.brief-scorecard span {
  color: #e9fff4;
  line-height: 1.55;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}

.report-main,
.report-side,
.risk-copy,
.action-card {
  padding: 26px;
}

.report-main p,
.report-side li,
.risk-copy p,
.action-card li {
  color: #343d48;
  line-height: 1.65;
}

.signal-table {
  display: grid;
  margin-top: 24px;
  border: 2px solid var(--line);
}

.signal-table div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.signal-table div:last-child {
  border-bottom: 0;
}

.signal-table span {
  color: var(--muted);
  font-weight: 800;
}

.signal-table strong {
  text-align: right;
  font-weight: 900;
}

.research-list,
.action-card ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.risk-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}

.action-card {
  background: #fff8d9;
}

.action-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.45rem);
  line-height: 1.04;
}

@media (max-width: 1024px) {
  .unlocked-hero,
  .report-grid,
  .risk-section {
    grid-template-columns: 1fr;
  }

  .brief-scorecard {
    min-height: 190px;
  }
}

@media (max-width: 760px) {
  .unlocked-hero {
    padding: 18px 0 22px;
  }

  .unlocked-hero > div,
  .brief-scorecard,
  .report-main,
  .report-side,
  .risk-copy,
  .action-card {
    padding: 18px;
    box-shadow: 4px 4px 0 rgba(16, 20, 25, 0.13);
  }

  .brief-scorecard strong {
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }

  .report-grid,
  .risk-section {
    gap: 14px;
    padding: 24px 0;
  }

  .signal-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .signal-table strong {
    text-align: left;
  }
}
