/* AGM Action - Captive Portal
   Aesthetic: corporate / financial publication
   Palette: Santos-adjacent (deep indigo + bright blue) with red accent
   Notes: Santos uses #006aff primary + #000082 secondary + Gotham typeface.
          We deliberately use system sans (not Gotham), and shift indigo slightly,
          to evoke their look without being a clone of their brand assets. */

:root {
  --indigo:       #000A6E;     /* deep, slightly shifted from #000082 */
  --indigo-dark:  #000548;
  --blue:         #006aff;     /* Santos primary blue, used as accent */
  --blue-dark:    #0052CC;
  --red:          #C8102E;
  --red-dark:     #9C0C24;
  --ink:          #1A1A1A;
  --ink-soft:     #3A3A3A;
  --muted:        #717174;     /* matches Santos body grey */
  --line:         #E6E6EA;
  --bg:           #FFFFFF;
  --panel:        #F4F6FB;
  --max:          680px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero header */
.hero {
  width: 100%;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--blue) 100%);
  color: #FFFFFF;
  padding: 28px 24px 32px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--red);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.hero .kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}
.hero .title {
  font-size: 38px;
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}
.hero .subtitle {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 520px;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 48px;
}

/* Briefing */
.brief {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 28px 0 24px;
}
.brief-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.brief-headline {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brief-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

/* Stats - always 3 columns, scales down on narrow screens */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}
.stat {
  background: var(--panel);
  padding: 14px 12px;
  border-left: 3px solid var(--indigo);
  min-width: 0;
}
.stat:first-child { border-left-color: var(--red); }
.stat:last-child { border-left-color: var(--red); }
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat:first-child .stat-num { color: var(--red); }
.stat:last-child .stat-num { color: var(--red); }
.stat-label {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
}
.stat-source {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Chart */
.chart-section { margin: 0 0 28px; }
.chart-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}
.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 3px;
}
.legend-swatch.sto { background: var(--red); }
.legend-swatch.asx { background: var(--indigo); }
.legend-note { color: var(--muted); font-style: italic; }
.chart {
  width: 100%;
  height: auto;
  display: block;
  background: var(--panel);
}
.chart-caption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  font-style: italic;
}

/* Moral section */
.moral {
  background: #FAF6EF;
  color: var(--ink);
  padding: 22px 22px 24px;
  margin: 0 0 24px;
  border-left: 3px solid var(--red);
}
.moral-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}
.moral p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.moral p:last-child { margin-bottom: 0; }
.moral a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Quote */
.quote {
  border-left: 3px solid var(--indigo);
  padding: 12px 16px;
  margin: 0 0 32px;
  background: var(--panel);
}
.quote p {
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 8px;
  font-style: italic;
}
.quote cite {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}
.quote a { color: var(--muted); text-decoration: underline; }

/* CTA */
.cta {
  text-align: center;
  margin: 8px 0 24px;
}
.accept-btn {
  display: inline-block;
  width: 100%;
  max-width: 360px;
  padding: 16px 24px;
  background: var(--indigo);
  color: #FFFFFF;
  border: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.accept-btn:hover,
.accept-btn:focus { background: var(--indigo-dark); outline: none; }
.accept-btn:active { transform: translateY(1px); }
.cta-fineprint {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}

/* Learn more */
.learn-more {
  text-align: center;
  margin: 0 0 28px;
  color: var(--muted);
}
.learn-more-intro {
  font-size: 12px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.learn-more-links {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 10px;
}
.learn-more-links a {
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid var(--indigo);
  white-space: nowrap;
}
.learn-more-disclaimer {
  font-size: 10px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 12px 0 24px;
}

/* Disclaimer */
.disclaimer {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.disclaimer h3 {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ink);
  margin: 18px 0 6px;
  text-transform: uppercase;
}
.disclaimer h3:first-child { margin-top: 0; }
.disclaimer p { margin: 0 0 10px; }
.disclaimer strong { color: var(--ink); }

/* Footer */
.footer {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.04em;
}

/* ============== MOBILE OPTIMIZATIONS ============== */
@media (max-width: 560px) {
  /* Hero: tighter padding, slightly smaller heading */
  .hero {
    padding: 22px 18px 26px;
  }
  .hero .title {
    font-size: 32px;
  }
  .hero .subtitle {
    font-size: 14px;
  }

  /* Page: tighter side padding */
  .page {
    padding: 24px 18px 36px;
  }

  /* Briefing: smaller headline so it doesn't dominate */
  .brief {
    margin: 20px 0 20px;
    padding: 14px 0;
  }
  .brief-headline {
    font-size: 21px;
    line-height: 1.22;
  }
  .brief-sub {
    font-size: 13px;
  }

  /* Stats: 3-column on mobile, big readable numbers */
  .stats {
    gap: 7px;
    margin: 0 0 22px;
  }
  .stat {
    padding: 13px 10px 12px;
    border-left-width: 2px;
  }
  .stat-num {
    font-size: 25px;
    margin-bottom: 11px;
    word-break: keep-all;
    letter-spacing: -0.025em;
  }
  .stat-label {
    font-size: 10.5px;
    line-height: 1.3;
    margin-bottom: 5px;
  }
  .stat-source {
    font-size: 8.5px;
    line-height: 1.25;
  }

  /* Chart: smaller height feels right on narrow screens */
  .chart {
    min-height: 140px;
  }

  /* Moral: tighter padding, smaller text */
  .moral {
    padding: 18px 18px 20px;
  }
  .moral p {
    font-size: 14px;
  }

  /* Quote: smaller font */
  .quote p {
    font-size: 15px;
  }

  /* Accept button: full-width feel */
  .accept-btn {
    padding: 18px 24px;
    font-size: 17px;
    /* iOS minimum tap target is 44px tall */
  }

  /* Disclaimer: tighter line-height */
  .disclaimer {
    font-size: 11.5px;
  }
  .disclaimer h3 {
    margin: 14px 0 5px;
  }
}
