@font-face {
  font-family: "DM Sans";
  src: url("/5-stocks-2027/assets/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --navy: #1a2636;
  --gold: #d4a93c;
  --paper: #f5f3ee;
  --muted: #525b65;
  --line: #d5d1c8;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--navy);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
header { background: var(--navy); color: var(--paper); }
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 18px; }
.logo { display: block; width: min(226px, 68vw); height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(2.45rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 1.18rem; line-height: 1.22; }
p { line-height: 1.62; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.intro p + p, .intro h1 + p, .intro .eyebrow + h1 { margin-top: 18px; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 58ch; }
.signup { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 7vw, 100px); padding-block: clamp(46px, 9vw, 108px); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 38px); box-shadow: 0 14px 44px #1a26360d; }
.panel h2 { font-size: 1.65rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 6px; }
input, select, button { font: inherit; }
input, select { color: var(--navy); border: 1px solid #a5acb4; border-radius: 6px; background: #fff; padding: 0 11px; min-height: 48px; width: 100%; min-width: 0; }
.mobile-row { display: grid; grid-template-columns: minmax(98px, 38%) minmax(0, 1fr); gap: 8px; }
.button { display: inline-flex; text-align: center; min-height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 6px; padding: 10px 20px; color: var(--gold); background: var(--navy); font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #293d55; }
.panel .button { width: 100%; margin-top: 7px; }
.button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #856418; outline-offset: 3px; }
header :focus-visible, .closing :focus-visible { outline-color: var(--gold); }
.fine { color: var(--muted); font-size: .85rem; margin-top: 12px; }
.status { color: #872a24; font-size: .9rem; }
.status:empty { display: none; }
.status:not(:empty) { margin-top: 12px; }
.success p { margin-bottom: 15px; }
.read-intro { padding-block: clamp(42px, 7vw, 85px) 36px; }
.read-intro h1 { max-width: 16ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 24px; }
.jump { font-weight: 700; padding: 10px 3px; text-underline-offset: 4px; }
.method { background: var(--navy); color: var(--paper); padding-block: 30px; }
.method h2 { color: var(--gold); font-size: 1.5rem; margin-bottom: 8px; }
.method p { max-width: 74ch; }
.analysis { padding-block: clamp(34px, 6vw, 72px); }
.analysis + .analysis { border-top: 1px solid var(--line); }
.analysis > p { margin-top: 12px; max-width: 75ch; color: var(--muted); }
.chart { border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; overflow: hidden; }
.analysis-header .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.analysis-header .logo { width: 100%; max-width: 226px; }
.analysis-header .button { min-height: 44px; padding-inline: 14px; white-space: nowrap; }
.analysis-header .button, .method .button { background: var(--gold); color: var(--navy); }
.analysis-header .button:hover, .method .button:hover { background: #e1bc5d; }
.method p + p { margin-top: 12px; }
.method .button { margin-top: 18px; }
.method :focus-visible { outline-color: var(--gold); }
.charts { display: grid; gap: 24px; margin-top: 27px; }
.chart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.chart.current { grid-template-columns: minmax(0, 1fr); }
.chart figcaption { padding: clamp(18px, 4vw, 32px); }
.chart figcaption p + p { margin-top: 10px; }
.chart-link { display: block; background: #e9e8e3; text-decoration: none; }
.chart-link:focus-visible { outline-offset: -4px; }
.chart img { display: block; width: 100%; height: auto; }
.chart h3 + p { margin-top: 8px; }
.chart figcaption p { color: var(--muted); }
.zoom { display: block; padding: 7px 14px; color: var(--navy); background: #edeae1; text-align: right; text-decoration: underline; text-underline-offset: 3px; font-size: .85rem; font-weight: 600; }
.closing { background: var(--navy); color: var(--paper); padding-block: 38px; }
.closing h2 { color: var(--gold); }
.closing p { margin-block: 10px 18px; max-width: 60ch; }
.closing .button { background: var(--gold); color: var(--navy); }
.closing .button:hover { background: #e1bc5d; }
footer { border-top: 1px solid var(--line); padding-block: 19px; color: var(--muted); font-size: .85rem; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .signup, .chart { grid-template-columns: minmax(0, 1fr); }
  .signup { align-items: start; }
}
