/* ChartMentor AI — styles.css */

:root {
  --bg: #090d18;
  --bg-soft: #0d1322;
  --panel: #101626;
  --panel-2: #141c2e;
  --line: #273149;
  --text: #f4f6fc;
  --muted: #98a3b9;
  --mint: #70f0c0;
  --mint-dark: #173c34;
  --violet: #a99bff;
  --red: #ff718b;
  --amber: #ffd58a;
  --font: 'DM Sans', sans-serif;
  --display: 'Space Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 82% 5%, rgba(88, 79, 177, .17), transparent 34%),
    radial-gradient(ellipse at 4% 48%, rgba(32, 145, 117, .07), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font);
}

button,
input,
select,
textarea {
  font-size: inherit;
}

button {
  cursor: pointer;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

main {
  width: 100%;
  margin: 0 auto;
}

.section-wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* HEADER */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(152, 163, 185, .14);
  background: rgba(9, 13, 24, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(112, 240, 192, .42);
  border-radius: 13px;
  background: rgba(112, 240, 192, .09);
  color: var(--mint);
  font-size: 21px;
  font-weight: 700;
}

.brand-ai {
  color: var(--mint);
}

.topbar nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 30px);
}

.topbar nav a {
  color: #c1c9d9;
  font-size: 13px;
  font-weight: 600;
  transition: color .18s ease, background .18s ease;
}

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

.topbar nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(112, 240, 192, .3);
  border-radius: 11px;
  background: rgba(112, 240, 192, .07);
  color: var(--mint);
}

.nav-cta span {
  font-size: 17px;
}

/* TYPOGRAPHY */

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-family: var(--display);
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.12;
}

h2 span,
h1 span {
  color: var(--mint);
}

p {
  margin-top: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.5;
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(112, 240, 192, .7);
}

/* BUTTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: transform .18s ease, filter .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.button.primary {
  background: var(--mint);
  color: #07130f;
  box-shadow: 0 8px 28px rgba(112, 240, 192, .12);
}

.button.secondary {
  border-color: #35405a;
  background: #171e30;
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #c0c9da;
  font-size: 14px;
  text-align: left;
}

.text-link:hover {
  color: var(--mint);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  padding-top: clamp(66px, 9vw, 112px);
  padding-bottom: clamp(62px, 8vw, 98px);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: 1.035;
}

.hero-text {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.hero-actions .button {
  min-height: 49px;
  padding-inline: 20px;
}

.hero-actions .text-link {
  min-height: 44px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
  margin-top: 25px;
  color: #aab5c9;
  font-size: 11px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* HERO CHART */

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 22px 0 28px;
}

.visual-glow {
  position: absolute;
  inset: 5% -8% 8% 8%;
  border-radius: 50%;
  background: rgba(112, 240, 192, .08);
  filter: blur(55px);
  pointer-events: none;
}

.chart-window {
  position: relative;
  overflow: hidden;
  border: 1px solid #2b3650;
  border-radius: 18px;
  background: rgba(12, 18, 32, .96);
  box-shadow: 0 28px 75px rgba(0, 0, 0, .3);
}

.window-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(152, 163, 185, .14);
  color: #aeb8cc;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.window-dots {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff718b;
}

.window-dots i:nth-child(2) {
  background: #ffd58a;
}

.window-dots i:nth-child(3) {
  background: #70f0c0;
}

.market-pill {
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid rgba(112, 240, 192, .22);
  border-radius: 6px;
  color: var(--mint);
  font-size: 8px;
  white-space: nowrap;
}

.chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 8px;
}

.chart-meta > div {
  display: grid;
  gap: 3px;
}

.chart-meta small {
  color: #8794ac;
  font-size: 9px;
  letter-spacing: .08em;
}

.chart-meta strong {
  font-size: 14px;
  font-weight: 600;
}

.mini-tag {
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(169, 155, 255, .1);
  color: #c1b7ff;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-chart {
  width: 100%;
  height: auto;
  padding: 7px 13px 0;
}

.visual-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 15px;
  padding: 11px 18px 16px;
  color: #aab5c9;
  font-size: 10px;
}

.visual-foot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mint-dot,
.violet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.violet-dot {
  background: var(--violet);
}

.floating-note {
  position: absolute;
  right: -17px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: calc(100% - 18px);
  padding: 13px 16px;
  border: 1px solid #303b55;
  border-radius: 13px;
  background: #151d30;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .28);
}

.note-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(112, 240, 192, .1);
  color: var(--mint);
}

.floating-note strong {
  display: block;
  font-size: 11px;
}

.floating-note small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

/* PROCESS STRIP */

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.4vw, 44px);
  padding: 22px 24px;
  border-top: 1px solid rgba(152, 163, 185, .13);
  border-bottom: 1px solid rgba(152, 163, 185, .13);
  background: rgba(255, 255, 255, .018);
}

.trust-strip > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.trust-strip strong {
  color: var(--mint);
  font-family: var(--display);
  font-size: 12px;
}

.trust-strip span {
  color: #c2cbda;
  font-size: 12px;
}

.trust-strip > b {
  color: #58647b;
  font-weight: 400;
}

/* ANALYZER SECTION */

.analyzer-section {
  padding-top: 104px;
  padding-bottom: 100px;
}

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

.section-heading > div {
  min-width: 0;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading > p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: stretch;
  gap: 20px;
}

.panel {
  min-width: 0;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(20, 28, 46, .94), rgba(13, 19, 33, .97));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .13);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
}

.step-number {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border: 1px solid rgba(112, 240, 192, .25);
  border-radius: 12px;
  background: rgba(112, 240, 192, .08);
  color: var(--mint);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.panel-heading h3,
.result-top h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.035em;
}

.panel-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 8px;
  color: #dbe2f1;
  font-size: 12px;
  font-weight: 600;
}

.field-label:first-child {
  margin-top: 0;
}

.field-label span {
  color: #7f8ba3;
  font-size: 10px;
  font-weight: 400;
  text-align: right;
}

input:not([type="file"]),
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid #303b55;
  border-radius: 10px;
  background: #0b1120;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #66738c;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(112, 240, 192, .7);
  box-shadow: 0 0 0 3px rgba(112, 240, 192, .06);
}

select {
  color-scheme: dark;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

#analysis-form {
  min-width: 0;
}

/* IMAGE UPLOAD */

.dropzone {
  position: relative;
  display: flex;
  min-height: 176px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 19px;
  border: 1px dashed #465575;
  border-radius: 13px;
  background: rgba(9, 13, 24, .5);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--mint);
  background: rgba(112, 240, 192, .045);
}

.dropzone input[type="file"] {
  display: none;
}

.upload-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(112, 240, 192, .28);
  border-radius: 11px;
  background: rgba(112, 240, 192, .08);
  color: var(--mint);
  font-size: 24px;
  line-height: 1;
}

.dropzone strong {
  max-width: 100%;
  font-size: 12px;
  font-weight: 600;
}

.dropzone small {
  color: var(--muted);
  font-size: 10px;
}

.file-name {
  max-width: 100%;
  color: var(--mint);
  font-size: 10px;
  overflow-wrap: anywhere;
}

#image-preview {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 9px;
}

.analyze-button {
  width: 100%;
  margin-top: 20px;
}

.button-arrow {
  margin-left: auto;
  font-size: 18px;
}

.form-note {
  margin: 11px 0 0;
  color: #7f8ba3;
  font-size: 10px;
  text-align: center;
}

/* REPORT PANEL */

.result-panel {
  display: flex;
  flex-direction: column;
}

.result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(152, 163, 185, .14);
}

.result-top .eyebrow {
  margin-bottom: 6px;
  font-size: 9px;
}

.status-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(112, 240, 192, .24);
  border-radius: 7px;
  background: rgba(112, 240, 192, .07);
  color: var(--mint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}

.result-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 10px 25px;
  text-align: center;
}

.empty-orbit {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(112, 240, 192, .25);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 240, 192, .11), transparent 72%);
  color: var(--mint);
  font-size: 27px;
  box-shadow: 0 0 35px rgba(112, 240, 192, .05);
}

.result-empty h4,
.result-loading h4,
.result-error h4 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.025em;
}

.result-empty > p,
.result-loading > p,
.result-error > p {
  max-width: 360px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.empty-checks {
  display: grid;
  gap: 9px;
  width: 100%;
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px solid rgba(152, 163, 185, .13);
  text-align: left;
}

.empty-checks span {
  color: #bac5d7;
  font-size: 11px;
}

.result-loading,
.result-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 10px;
  text-align: center;
}

.loader-ring {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 3px solid #2a3550;
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: cm-spin .8s linear infinite;
}

@keyframes cm-spin {
  to {
    transform: rotate(360deg);
  }
}

.error-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 113, 139, .3);
  border-radius: 50%;
  background: rgba(255, 113, 139, .08);
  color: var(--red);
  font-size: 22px;
}

.result-error .button {
  margin-top: 20px;
}

/* SIGNAL */

.signal-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #2e3a53;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(112, 240, 192, .07), rgba(169, 155, 255, .035));
}

.signal-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signal-main > div:first-child {
  min-width: 0;
}

.signal-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.signal-word {
  margin-top: 4px;
  color: var(--mint);
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}

#signal-rationale {
  margin: 6px 0 0;
  color: #b5c0d2;
  font-size: 12px;
  line-height: 1.7;
}

.score-ring {
  display: flex;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(112, 240, 192, .55);
  border-radius: 50%;
  background: rgba(112, 240, 192, .055);
}

.score-ring strong {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
}

.score-ring span {
  color: var(--muted);
  font-size: 9px;
}

.signal-bottom {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(152, 163, 185, .15);
}

.signal-bottom > div {
  display: grid;
  align-content: start;
  gap: 5px;
}

.signal-bottom span,
.level-box > span {
  color: #8996ad;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}

.signal-bottom strong {
  font-size: 12px;
  line-height: 1.5;
}

.levels-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 12px;
}

.levels-heading h4,
.rationale-box h4 {
  margin: 0;
  font-size: 14px;
}

.levels-heading > span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.level-box {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #2c3851;
  border-radius: 10px;
  background: rgba(8, 12, 22, .45);
}

.level-box strong {
  font-family: var(--display);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.level-box.stop {
  border-color: rgba(255, 113, 139, .22);
}

.level-box.target {
  border-color: rgba(112, 240, 192, .2);
}

.rr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  background: rgba(169, 155, 255, .07);
  color: #c4cce0;
  font-size: 11px;
}

.rr-row strong {
  color: #d5ccff;
  font-size: 13px;
}

.rationale-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(152, 163, 185, .15);
  border-radius: 11px;
  background: rgba(8, 12, 22, .35);
}

.rationale-box h4:not(:first-child) {
  margin-top: 8px;
}

.rationale-box p {
  margin: 0;
  color: #b2bed1;
  font-size: 12px;
  line-height: 1.75;
}

.analysis-body {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.analysis-body h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.analysis-body p,
.analysis-body li {
  color: #b6c1d3;
  font-size: 12px;
  line-height: 1.75;
}

.analysis-body p {
  margin: 0;
}

.analysis-body ul,
.analysis-body ol {
  margin: 7px 0 0;
  padding-left: 20px;
}

.result-disclaimer {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 213, 138, .18);
  border-radius: 9px;
  background: rgba(255, 213, 138, .045);
  color: #c6bda9;
  font-size: 10px;
  line-height: 1.7;
}

.reset-button {
  width: 100%;
  margin-top: 15px;
}

/* HOW IT WORKS */

.how-section {
  padding-top: 60px;
  padding-bottom: 90px;
}

.how-section > .eyebrow {
  margin-bottom: 13px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.step-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20, 28, 46, .7), rgba(13, 19, 33, .7));
}

.step-card > span {
  color: #8592aa;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.step-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  margin: 20px 0 15px;
  border: 1px solid rgba(112, 240, 192, .23);
  border-radius: 12px;
  background: rgba(112, 240, 192, .07);
  color: var(--mint);
  font-size: 21px;
}

.step-icon.violet {
  border-color: rgba(169, 155, 255, .25);
  background: rgba(169, 155, 255, .08);
  color: var(--violet);
}

.step-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  letter-spacing: -.03em;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* LEARNING SECTION */

.learn-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 7vw, 86px);
  padding-top: 45px;
  padding-bottom: 100px;
}

.learn-copy > .eyebrow {
  margin-bottom: 14px;
}

.learn-copy > p {
  max-width: 490px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.learn-list {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.learn-list > div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.learn-list > div > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(112, 240, 192, .25);
  border-radius: 7px;
  color: var(--mint);
  font-size: 12px;
}

.learn-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.learn-list strong {
  color: #e7ebf5;
  font-size: 13px;
  font-weight: 600;
}

/* QUIZ — równe przyciski, bez rozciągania tekstu */

.quiz-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #303a55;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(169, 155, 255, .1), transparent 45%),
    linear-gradient(145deg, #141c2e, #0f1524);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8592aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.quiz-tag {
  padding: 6px 9px;
  border: 1px solid rgba(112, 240, 192, .24);
  border-radius: 7px;
  background: rgba(112, 240, 192, .07);
  color: var(--mint);
}

.quiz-card h3 {
  margin: 22px 0 20px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.45;
}

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

.quiz-options button {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #303b55;
  border-radius: 11px;
  background: rgba(8, 12, 22, .55);
  color: #dfe5f1;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.quiz-options button:hover {
  border-color: rgba(112, 240, 192, .55);
  background: rgba(112, 240, 192, .045);
}

.quiz-options button:active {
  transform: scale(.995);
}

.quiz-options button.correct {
  border-color: rgba(112, 240, 192, .6);
  background: rgba(112, 240, 192, .1);
  color: var(--mint);
}

.quiz-options button.incorrect {
  border-color: rgba(255, 113, 139, .55);
  background: rgba(255, 113, 139, .08);
  color: #ffb0bf;
}

#quiz-feedback {
  min-height: 0;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

#quiz-feedback:empty {
  display: none;
}

#quiz-feedback.success {
  color: var(--mint);
}

#quiz-feedback.error {
  color: #ff9bad;
}

#quiz-reset {
  margin-top: 12px;
}

/* RISK NOTICE */

.risk-banner {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 17px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 85px;
  padding: 25px 28px;
  border: 1px solid rgba(255, 213, 138, .2);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(255, 213, 138, .055), rgba(20, 28, 46, .55));
}

.risk-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 213, 138, .3);
  border-radius: 12px;
  background: rgba(255, 213, 138, .07);
  color: var(--amber);
  font-size: 23px;
  font-weight: 700;
}

.risk-banner h3 {
  margin: 0 0 7px;
  font-size: 17px;
  letter-spacing: -.03em;
}

.risk-banner p {
  max-width: 950px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(152, 163, 185, .14);
  color: var(--muted);
  font-size: 11px;
}

.footer .brand {
  font-size: 15px;
}

.footer .brand-mark {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 10px;
  font-size: 17px;
}

.footer > span {
  text-align: center;
}

/* TABLET */

@media (max-width: 960px) {
  .topbar {
    padding-inline: 22px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(40px, 5.5vw, 58px);
  }

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

  .result-panel {
    min-height: 430px;
  }

  .learn-section {
    gap: 32px;
  }

  .section-heading {
    align-items: flex-start;
  }
}

/* MOBILE */

@media (max-width: 680px) {
  html {
    scroll-padding-top: 74px;
  }

  .section-wrap {
    width: calc(100% - 36px);
  }

  .topbar {
    position: sticky;
    min-height: 68px;
    gap: 12px;
    padding: 11px 18px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    border-radius: 11px;
    font-size: 18px;
  }

  .topbar nav {
    gap: 13px;
  }

  .topbar nav a {
    font-size: 11px;
  }

  .topbar nav .nav-cta {
    padding: 8px 10px;
  }

  .topbar nav .nav-cta span {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
    padding-top: 52px;
    padding-bottom: 50px;
  }

  .hero .eyebrow {
    margin-bottom: 15px;
    font-size: 9px;
    letter-spacing: .12em;
  }

  .hero h1 {
    font-size: clamp(43px, 10.5vw, 62px);
    letter-spacing: -.07em;
  }

  .hero-text {
    margin-top: 19px;
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-actions {
    align-items: stretch;
    gap: 10px;
    margin-top: 23px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 49px;
  }

  .hero-actions .text-link {
    justify-content: flex-start;
  }

  .hero-points {
    gap: 9px 14px;
    margin-top: 19px;
    font-size: 10px;
  }

  .hero-visual {
    width: 100%;
    padding: 7px 0 23px;
  }

  .floating-note {
    right: 8px;
    bottom: 0;
    padding: 10px 12px;
  }

  .chart-window {
    border-radius: 14px;
  }

  .window-top {
    gap: 8px;
    padding-inline: 10px;
    font-size: 8px;
  }

  .market-pill {
    padding: 4px 5px;
    font-size: 7px;
  }

  .chart-meta {
    padding: 13px 13px 6px;
  }

  .hero-chart {
    padding-inline: 7px;
  }

  .visual-foot {
    padding: 9px 13px 13px;
    font-size: 9px;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 17px 22px;
  }

  .trust-strip > div {
    gap: 12px;
  }

  .trust-strip > b {
    display: none;
  }

  .trust-strip span {
    font-size: 11px;
  }

  .analyzer-section {
    padding-top: 67px;
    padding-bottom: 65px;
  }

  .section-heading {
    display: grid;
    gap: 15px;
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .section-heading > p {
    font-size: 13px;
  }

  .workspace {
    gap: 15px;
  }

  .panel {
    padding: 18px;
    border-radius: 15px;
  }

  .panel-heading {
    gap: 10px;
    margin-bottom: 21px;
  }

  .panel-heading h3,
  .result-top h3 {
    font-size: 18px;
  }

  .field-label {
    align-items: flex-start;
    font-size: 11px;
  }

  .field-label span {
    max-width: 55%;
    font-size: 9px;
  }

  input:not([type="file"]),
  select,
  textarea {
    font-size: 14px;
  }

  .dropzone {
    min-height: 155px;
    padding: 16px 12px;
  }

  .dropzone strong {
    font-size: 11px;
  }

  .result-empty {
    padding: 30px 3px 20px;
  }

  .result-top {
    padding-bottom: 16px;
  }

  .signal-card {
    padding: 15px;
  }

  .signal-main {
    align-items: flex-start;
    gap: 10px;
  }

  .score-ring {
    width: 65px;
    height: 65px;
    flex-basis: 65px;
  }

  .score-ring strong {
    font-size: 19px;
  }

  .signal-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .levels-heading {
    align-items: flex-start;
  }

  .levels-heading h4 {
    font-size: 13px;
  }

  .levels-heading > span {
    max-width: 48%;
    font-size: 9px;
  }

  .level-box {
    padding: 11px;
  }

  .level-box > span {
    font-size: 8px;
  }

  .level-box strong {
    font-size: 15px;
  }

  .rr-row {
    align-items: flex-start;
    font-size: 10px;
  }

  .rr-row strong {
    text-align: right;
  }

  .how-section {
    padding-top: 45px;
    padding-bottom: 65px;
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    margin-top: 22px;
  }

  .step-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 13px;
    padding: 17px;
  }

  .step-card > span {
    grid-column: 1 / -1;
  }

  .step-icon {
    grid-column: 1;
    grid-row: 2 / span 2;
    margin: 12px 0 0;
  }

  .step-card h3 {
    align-self: end;
    margin: 12px 0 5px;
    font-size: 15px;
  }

  .step-card p {
    grid-column: 2;
    font-size: 11px;
  }

  .learn-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 29px;
    padding-top: 25px;
    padding-bottom: 65px;
  }

  .learn-copy > p {
    font-size: 13px;
  }

  .learn-list {
    gap: 17px;
    margin-top: 22px;
  }

  .quiz-card {
    padding: 20px;
    border-radius: 16px;
  }

  .quiz-card h3 {
    margin: 19px 0 17px;
    font-size: 19px;
    line-height: 1.4;
  }

  .quiz-options {
    gap: 9px;
  }

  .quiz-options button {
    padding: 12px 13px;
    font-size: 12px;
    line-height: 1.55;
    border-radius: 10px;
  }

  #quiz-reset {
    margin-top: 9px;
  }

  .risk-banner {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    width: calc(100% - 36px);
    margin-bottom: 55px;
    padding: 18px;
    border-radius: 14px;
  }

  .risk-symbol {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 19px;
  }

  .risk-banner h3 {
    font-size: 15px;
  }

  .risk-banner p {
    font-size: 11px;
  }

  .footer {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 18px;
  }

  .footer > span {
    order: 3;
    width: 100%;
    text-align: left;
  }

  .footer .brand {
    font-size: 14px;
  }
}

/* SMALL PHONES */

@media (max-width: 390px) {
  .section-wrap {
    width: calc(100% - 28px);
  }

  .topbar {
    padding-inline: 14px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .topbar nav {
    gap: 9px;
  }

  .topbar nav a {
    font-size: 10px;
  }

  .topbar nav .nav-cta {
    padding: 7px 8px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero .eyebrow {
    font-size: 8px;
  }

  .window-top {
    gap: 6px;
    font-size: 7px;
  }

  .window-dots {
    gap: 3px;
  }

  .window-dots i {
    width: 6px;
    height: 6px;
  }

  .market-pill {
    font-size: 6px;
  }

  .chart-meta strong {
    font-size: 12px;
  }

  .mini-tag {
    font-size: 7px;
  }

  .panel {
    padding: 15px;
  }

  .quiz-card {
    padding: 17px;
  }

  .quiz-card h3 {
    font-size: 18px;
  }

  .quiz-options button {
    font-size: 11px;
  }

  .risk-banner {
    width: calc(100% - 28px);
    padding: 15px;
  }

  .footer {
    padding-inline: 14px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* SEO learning pages and shared navigation */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--mint); color: #07110e; font-weight: 700; }
.skip-link:focus { top: 12px; }
.topbar nav { flex-wrap: wrap; }
.site-footer { flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--mint); }
.page-main { min-height: 65vh; padding: 42px 24px 88px; }
.page-wrap { width: min(1120px, 100%); margin: 0 auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(152,163,185,.5); text-underline-offset: 3px; }
.breadcrumbs span[aria-current="page"] { color: var(--mint); }
.page-hero { max-width: 850px; margin: 0 0 40px; }
.page-label { margin: 0 0 10px; color: var(--mint); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.page-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(36px, 6vw, 62px); line-height: 1.06; letter-spacing: -.055em; }
.page-hero .lede { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.75; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 36px; }
.prose { min-width: 0; color: #dce2ef; font-size: 16px; line-height: 1.82; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 42px 0 12px; color: var(--text); font-family: var(--display); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
.prose h3 { margin: 28px 0 9px; color: var(--text); font-family: var(--display); font-size: 21px; line-height: 1.3; }
.prose p { margin: 0 0 17px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 20px; }
.prose li { margin: 0 0 8px; padding-left: 3px; }
.prose a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; }
.page-aside { position: sticky; top: 100px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,22,38,.8); }
.page-aside h2 { margin: 0 0 12px; font: 700 15px var(--display); }
.page-aside nav { display: grid; gap: 10px; }
.page-aside a { color: var(--muted); font-size: 13px; line-height: 1.45; }
.page-aside a:hover { color: var(--mint); }
.page-aside .aside-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--mint); color: #06130f; font-weight: 700; text-align: center; }
.callout { margin: 24px 0; padding: 20px 22px; border: 1px solid rgba(112,240,192,.28); border-radius: 16px; background: rgba(112,240,192,.07); }
.callout p:last-child { margin-bottom: 0; }
.callout.warning { border-color: rgba(255,213,138,.3); background: rgba(255,213,138,.06); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0 30px; }
.content-card, .resource-card { display: flex; flex-direction: column; gap: 9px; min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(20,28,46,.9), rgba(16,22,38,.9)); transition: border-color .2s, transform .2s; }
.content-card:hover, .resource-card:hover { border-color: rgba(112,240,192,.55); transform: translateY(-2px); }
.content-card span, .resource-card span { color: var(--mint); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.content-card strong, .resource-card strong { color: var(--text); font: 700 19px/1.3 var(--display); }
.content-card small, .resource-card small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.resource-strip { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; padding-top: 54px; padding-bottom: 54px; }
.resource-intro h2 { margin: 8px 0 12px; font: 700 clamp(25px,3vw,36px)/1.16 var(--display); letter-spacing: -.04em; }
.resource-intro p { color: var(--muted); line-height: 1.7; }
.resource-cards { display: grid; gap: 12px; }
.resource-card { min-height: 0; }
.topic-list { display: grid; gap: 12px; }
.topic-row { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.topic-row > span { color: var(--mint); font: 700 13px var(--display); }
.topic-row h3 { margin: 0 0 5px; }
.topic-row p { margin: 0; color: var(--muted); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(16,22,38,.7); }
.faq-list summary { color: var(--text); font: 700 16px/1.4 var(--display); cursor: pointer; }
.faq-list details p { margin: 12px 0 0; color: var(--muted); }
.price-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 24px 0; }
.plan-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,22,38,.76); }
.plan-card.featured { border-color: rgba(112,240,192,.45); box-shadow: 0 0 40px rgba(112,240,192,.06); }
.plan-card h2 { margin: 4px 0 8px; font: 700 25px var(--display); }
.plan-card .plan-status { display: inline-flex; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--mint); font-size: 11px; font-weight: 700; }
.plan-card ul { padding-left: 20px; color: var(--muted); }
.plan-card li { margin: 9px 0; }
.plan-card .plan-price { margin: 12px 0; color: var(--text); font: 700 30px var(--display); }
.premium-panel { padding: 25px; border: 1px solid rgba(169,155,255,.32); border-radius: 18px; background: linear-gradient(130deg, rgba(169,155,255,.1), rgba(16,22,38,.75)); }
.premium-panel h2 { margin-top: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 20px 0; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 14px; }
.comparison-table th, .comparison-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--text); background: rgba(20,28,46,.9); }
.comparison-table td { color: var(--muted); }
.article-meta { margin: 14px 0 24px; color: var(--muted); font-size: 12px; }
.text-link { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
.site-footer { align-items: center; }
.site-footer > span { flex-basis: 100%; text-align: center; }
@media (max-width: 760px) {
  .page-layout { grid-template-columns: minmax(0,1fr); }
  .page-aside { position: static; order: -1; }
  .resource-strip { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topbar { position: static; flex-wrap: wrap; justify-content: center; gap: 9px 18px; padding: 12px 16px; }
  .topbar nav { width: 100%; justify-content: center; gap: 8px 16px; }
  .topbar nav a { font-size: 12px; }
  .topbar nav .nav-cta { padding: 8px 10px; }
  .page-main { padding: 26px 18px 62px; }
  .page-hero { margin-bottom: 28px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 50px); }
  .prose { font-size: 15px; }
  .card-grid, .price-grid { grid-template-columns: 1fr; }
  .resource-strip { width: calc(100% - 36px); }
  .footer-links { gap: 8px 14px; font-size: 11px; }
}
@media (max-width: 390px) {
  .topbar nav { gap: 8px 11px; }
  .topbar nav a { font-size: 11px; }
}
