/* 0DTE Confluence: shared static site styles */
:root {
  --bg: #0a0e14;
  --bg-alt: #121820;
  --card: #161d27;
  --border: #2a3441;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent: #3d8bfd;
  --accent-dim: #2563b8;
  --green: #3dd68c;
  --yellow: #f0c14b;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --max: 960px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: #6ba8ff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 560px; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

nav a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
nav a:hover { color: var(--text); }

.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(61, 139, 253, 0.15), transparent);
}

/* Landing hero: stock ticker photo + readable overlay */
.hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(72vh, 720px);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
  background-color: var(--bg);
  background-image: url("pexels-pixabay-534216.jpg");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      105deg,
      rgba(10, 14, 20, 0.94) 0%,
      rgba(10, 14, 20, 0.88) 42%,
      rgba(10, 14, 20, 0.62) 72%,
      rgba(10, 14, 20, 0.45) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 14, 20, 0.35) 0%,
      rgba(10, 14, 20, 0.55) 55%,
      rgba(10, 14, 20, 0.82) 100%
    ),
    radial-gradient(
      ellipse 90% 70% at 15% 30%,
      rgba(61, 139, 253, 0.12),
      transparent 65%
    );
  pointer-events: none;
}

.hero--photo .hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero--photo h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero--photo .lead {
  color: #b8c5d9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero--photo .tagline {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero--photo .eyebrow,
.hero--photo .fine {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-compact { padding: 3rem 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.success-badge { color: var(--green); }

h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

.tagline {
  color: var(--yellow);
  font-style: italic;
  margin: 1rem 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.hero-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.hero-cta__note { margin: 0; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dim);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; margin-top: 0.5rem; }

.fine { font-size: 0.8rem; color: var(--muted); }

.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card-accent {
  border-color: rgba(61, 139, 253, 0.4);
  background: linear-gradient(135deg, rgba(61, 139, 253, 0.08), var(--card));
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.checklist li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
}

.alert-sample {
  background: #0d1117;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  color: #c9d4e3;
}

/* Sample alert card: Discord-style embed preview */
.alert-card {
  background: linear-gradient(145deg, #131a24 0%, #0d1117 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  max-width: 420px;
}

.alert-card__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(61, 139, 253, 0.06);
}

.alert-card__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.alert-card__title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.alert-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.alert-card__symbol {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.alert-card__grade {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.alert-card__grade--b {
  background: rgba(61, 139, 253, 0.2);
  color: #6ba8ff;
  border: 1px solid rgba(61, 139, 253, 0.45);
}

.alert-card__grade--aplus {
  background: rgba(61, 214, 140, 0.15);
  color: var(--green);
  border: 1px solid rgba(61, 214, 140, 0.4);
}

.alert-card__trade {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 1.15rem 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.alert-card__trade--put {
  background: rgba(248, 81, 73, 0.1);
  border-color: rgba(248, 81, 73, 0.25);
}

.alert-card__trade--call {
  background: rgba(61, 214, 140, 0.1);
  border-color: rgba(61, 214, 140, 0.25);
}

.alert-card__dir {
  font-size: 1.5rem;
  line-height: 1;
}

.alert-card__trade-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.alert-card__trade--put .alert-card__trade-label { color: #ff8a85; }
.alert-card__trade--call .alert-card__trade-label { color: var(--green); }

.alert-card__trade-at {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.alert-card__trade-at strong {
  color: var(--text);
  font-size: 1rem;
}

.alert-card__meta {
  padding: 0 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.alert-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.alert-card__row:last-child { border-bottom: none; }

.alert-card__key {
  color: var(--muted);
  font-weight: 500;
}

.alert-card__val {
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
}

.alert-card__val--confirm {
  color: var(--green);
}

.alert-card__stop {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0 1.15rem 1rem;
  padding: 0.75rem 0.85rem;
  background: rgba(240, 193, 75, 0.08);
  border: 1px solid rgba(240, 193, 75, 0.28);
  border-radius: 8px;
}

.alert-card__stop-icon {
  font-size: 1.1rem;
  line-height: 1.3;
}

.alert-card__stop-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.alert-card__stop-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.alert-card__footer {
  margin: 0;
  padding: 0.65rem 1.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: 0.65rem; }

.steps-card .btn { margin-top: 0.5rem; }

.subscribe-box {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.center { text-align: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0d1117;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.pricing-card h3 { margin: 0.5rem 0 0; }
.pricing-card .btn { width: 100%; margin-top: 1rem; }

.checklist-compact {
  text-align: left;
  font-size: 0.9rem;
  margin: 1rem 0;
  padding-left: 1.1rem;
}
.checklist-compact li { margin-bottom: 0.35rem; }

.sms-sample {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin: 0.75rem 0;
  overflow-x: auto;
}

.price { margin: 0.5rem 0 0.25rem; }
.price .amount { font-size: 2.5rem; font-weight: 700; }
.price .period { color: var(--muted); font-size: 1.1rem; }

.faq dt {
  font-weight: 600;
  margin-top: 1rem;
}
.faq dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 52em;
  line-height: 1.5;
}

.legal h2 { font-size: 1.1rem; margin-top: 1.75rem; }
.legal ul { color: var(--muted); padding-left: 1.25rem; }
.legal ul li { margin-bottom: 0.35rem; }
.legal p { color: var(--muted); }
.legal h2 + p { margin-top: 0.5rem; }

/* Stats page compatibility */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--border); }
.warn {
  background: rgba(240, 193, 75, 0.12);
  border: 1px solid rgba(240, 193, 75, 0.3);
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: 0.9rem;
}

.muted { color: var(--muted); }

/* ── Stats dashboard ── */
.stats-page .stats-hero {
  padding: 3rem 0 2rem;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(61, 139, 253, 0.12), transparent);
}

.stats-updated { margin: 0 0 1.5rem; font-size: 0.88rem; }

.stats-period {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.95rem;
  max-width: 42rem;
}

.stats-updated-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
}

.stats-updated-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(61, 214, 140, 0.35);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.dot--muted { background: rgba(139, 156, 179, 0.5); }

.journal-pnl-note {
  text-align: center;
  margin: 0.5rem 0 0.75rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.kpi-card--accent {
  border-color: rgba(61, 139, 253, 0.35);
  background: linear-gradient(135deg, rgba(61, 139, 253, 0.1), var(--card));
}

.kpi-card--green { border-color: rgba(61, 214, 140, 0.3); }
.kpi-card--blue { border-color: rgba(61, 139, 253, 0.3); }

.kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.kpi-card--green .kpi-value { color: var(--green); }
.kpi-card--blue .kpi-value { color: #6ba8ff; }

.kpi-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.stats-warn { margin-bottom: 2rem; }

.chart-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.chart-grid--1 { grid-template-columns: 1fr; }
.chart-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.35rem;
}

.chart-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.chart-desc {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.chart-wrap {
  position: relative;
  height: 220px;
}

.chart-wrap--donut {
  height: 200px;
  max-width: 220px;
  margin: 0 auto;
}

.chart-wrap--tall { height: 280px; }

.session-summary {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.session-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(22, 29, 39, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.session-summary__label {
  color: var(--muted);
  font-size: 0.92rem;
}

.session-summary__count {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.chart-wrap--thin { height: 100px; margin-top: 0.75rem; }

.chart-legend {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.chart-legend--inline {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.chart-legend li { display: flex; align-items: center; gap: 0.4rem; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--green { background: var(--green); }
.dot--blue { background: var(--accent); }
.dot--red { background: #f85149; }

.journal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.journal-stat {
  text-align: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.journal-stat__val {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.journal-stat__val--green { color: var(--green); }
.journal-stat__val--red { color: #f85149; }

.journal-stat__lbl {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.stats-back {
  margin: 2rem 0 0;
  text-align: center;
}

/* ── Mobile & tablet responsive ── */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img, canvas, svg, video { max-width: 100%; height: auto; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .wrap {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .header-inner {
    min-height: 3.25rem;
    gap: 0.75rem;
  }

  nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  nav a {
    margin-left: 0.75rem;
    font-size: 0.88rem;
  }

  nav a.btn-sm {
    margin-left: 0.5rem;
    padding: 0.45rem 0.75rem;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
  }

  .logo { font-size: 0.95rem; }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero--photo {
    min-height: min(68vh, 600px);
    padding: 3rem 0 2.5rem;
    background-position: left center;
  }

  .hero--photo::before {
    background:
      linear-gradient(
        180deg,
        rgba(10, 14, 20, 0.92) 0%,
        rgba(10, 14, 20, 0.85) 50%,
        rgba(10, 14, 20, 0.9) 100%
      ),
      radial-gradient(
        ellipse 100% 80% at 50% 20%,
        rgba(61, 139, 253, 0.1),
        transparent 70%
      );
  }

  .hero-compact {
    padding: 2rem 0 1.5rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-cta__buttons {
    flex-direction: column;
  }

  .hero-cta__buttons .btn {
    width: 100%;
    text-align: center;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .alert-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .alert-card__row {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }

  .alert-card__val {
    text-align: right;
    word-break: break-word;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .pricing-card {
    padding: 1.25rem 1rem 1.35rem;
  }

  .pricing-card--featured {
    margin-top: 0.5rem;
  }

  .pricing-card .btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .price .amount {
    font-size: 2.15rem;
  }

  .stats-page .stats-hero {
    padding: 2rem 0 1.5rem;
  }

  .stats-updated-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .kpi-card {
    padding: 0.9rem 0.85rem;
  }

  .kpi-value {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .kpi-sub {
    font-size: 0.72rem;
    line-height: 1.35;
  }

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

  .chart-card {
    padding: 1rem 1rem 1.15rem;
  }

  .chart-wrap {
    height: 200px;
  }

  .chart-wrap--tall {
    height: 240px;
  }

  .chart-wrap--donut {
    max-width: 100%;
    height: 190px;
  }

  .chart-legend--inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .journal-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .journal-stat__val {
    font-size: 1.25rem;
  }

  .site-footer {
    padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  }

  .site-footer .muted {
    line-height: 1.6;
    word-break: break-word;
  }

  .legal h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .steps-card .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 2.75rem;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }

  h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  h2 {
    font-size: 1.2rem;
  }

  .eyebrow {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .tagline {
    font-size: 0.95rem;
    margin: 0.75rem 0 1rem;
  }

  nav a {
    margin-left: 0.5rem;
    font-size: 0.82rem;
  }

  nav a.btn-sm {
    margin-left: 0.35rem;
    padding: 0.4rem 0.65rem;
  }

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

  .kpi-card--accent .kpi-value,
  .kpi-card--green .kpi-value {
    font-size: 1.75rem;
  }

  .alert-card__header {
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
  }

  .alert-card__grade {
    margin-left: auto;
  }

  .alert-card__trade-label {
    font-size: 1.05rem;
  }

  .checklist li {
    padding-left: 1.35rem;
    font-size: 0.92rem;
  }

  .faq dt {
    font-size: 0.95rem;
  }

  .warn {
    padding: 0.85rem;
    font-size: 0.85rem;
  }

  .sms-sample {
    font-size: 0.78rem;
    padding: 0.65rem 0.75rem;
  }
}

@media (min-width: 769px) {
  .hero-cta__buttons .btn-primary {
    min-width: 12rem;
  }
}
