/* AI Gym — nick-butcher.com
   Design system: trustworthy, practical, conversion-oriented
   No frameworks. System fonts. Mobile-first. */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1a2744;
  --orange:  #e05a1e;
  --orange-h:#c44e17;
  --green:   #16a34a;
  --bg:      #ffffff;
  --bg-alt:  #f5f7fa;
  --bg-dark: #0f1a2e;
  --text:    #1a2744;
  --muted:   #64748b;
  --border:  #d1d5db;
  --radius:  6px;
  --shadow:  0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --max:     1080px;
  --font:    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "SF Mono", "Fira Mono", "Consolas", monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Typography ────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 600; }
p  { max-width: 68ch; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 5rem 0; }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--bg-dark); color: #e2e8f0; }
section.dark p, section.dark li { color: #94a3b8; }
section.dark h2, section.dark h3 { color: #f1f5f9; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-align: center;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(224,90,30,.35);
}
.btn-primary:hover { background: var(--orange-h); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }

/* ─── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-brand .product { font-size: 1.1rem; font-weight: 800; color: #fff; }
.nav-brand .host    { font-size: .7rem; color: #94a3b8; letter-spacing: .04em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: #cbd5e1; font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links .nav-cta { margin-left: .5rem; }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2847 60%, #1a3a5c 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 em { color: var(--orange); font-style: normal; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #94a3b8;
  margin: 0 auto 1.5rem;
  max-width: 60ch;
}


.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-offer-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: .875rem;
  color: #94a3b8;
}

.hero-offer-strip span {
  white-space: nowrap;
}

.hero-tag {
  display: inline-block;
  background: rgba(224,90,30,.15);
  color: #fca57d;
  border: 1px solid rgba(224,90,30,.3);
  border-radius: 999px;
  padding: .25rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ─── Stats strip ────────────────────────────────────────────── */
.stats-strip {
  background: var(--orange);
  padding: 1.25rem 0;
  color: #fff;
}

.stats-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: center;
  align-items: center;
}

.stat-item { text-align: center; }
.stat-item .num { font-size: 1.6rem; font-weight: 800; display: block; line-height: 1; }
.stat-item .lbl { font-size: .78rem; opacity: .85; }

/* ─── Section headers ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header p {
  margin: .75rem auto 0;
  color: var(--muted);
  max-width: 58ch;
}
.section-header.light p { color: #94a3b8; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .5rem;
}

/* ─── Problem ────────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.problem-card .stat-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: .4rem;
}

.problem-card p { font-size: .95rem; color: var(--muted); max-width: none; }
.problem-card .source { font-size: .75rem; color: #9ca3af; margin-top: .5rem; }

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

.contrast-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.contrast-card h3 {
  margin-bottom: .75rem;
  color: var(--navy);
}

.contrast-line {
  color: #475569;
  font-weight: 600;
  margin-bottom: .75rem;
}

/* ─── Timetable ──────────────────────────────────────────────── */
.timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  margin-top: 1.5rem;
}

.timetable th {
  background: var(--navy);
  color: #e2e8f0;
  text-align: left;
  padding: .75rem 1rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.timetable td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.timetable tr:last-child td { border-bottom: none; }
.timetable tr:nth-child(even) td { background: var(--bg-alt); }
.timetable .day { font-weight: 700; white-space: nowrap; }
.timetable .session-name { font-weight: 600; color: var(--navy); }
.timetable .session-desc { color: var(--muted); font-size: .9rem; }
.timetable .led-by { color: var(--orange); font-weight: 600; font-size: .85rem; white-space: nowrap; }

@media (max-width: 600px) {
  .timetable .session-desc { display: none; }
}

/* ─── Offer list ─────────────────────────────────────────────── */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.offer-item {
  display: flex;
  gap: .9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.offer-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(224,90,30,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.offer-item h4 { margin-bottom: .2rem; }
.offer-item p  { font-size: .875rem; color: var(--muted); max-width: none; }

/* ─── Who it's for ───────────────────────────────────────────── */
.audience-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) { .audience-cols { grid-template-columns: 1fr; } }

.yes-list, .no-list { list-style: none; }
.yes-list li, .no-list li { padding: .4rem 0; font-size: .95rem; }
.yes-list li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.no-list li::before  { content: "✗ "; color: #dc2626; font-weight: 700; }

/* ─── About ──────────────────────────────────────────────────── */
.about-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-creds { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.cred-badge {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .2rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 640px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-avatar { margin: 0 auto; }
}

/* ─── Pricing ────────────────────────────────────────────────── */
.pricing-card {
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.price-amount span { font-size: 1.5rem; vertical-align: top; padding-top: .5rem; display: inline-block; }
.price-period { color: var(--muted); font-size: .95rem; margin-top: .25rem; }

.pricing-features {
  list-style: none;
  margin: 1.75rem 0;
  text-align: left;
}
.pricing-features li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  display: flex;
  gap: .6rem;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

.pricing-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.founding-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: .25rem .85rem;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  background: #fff;
}

details summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

details summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--orange);
  flex-shrink: 0;
}

details[open] summary::after { content: "−"; }

details .answer {
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: .95rem;
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 3rem 0 2rem;
  font-size: .875rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .product { font-size: 1.15rem; font-weight: 800; color: #fff; }
.footer-brand .host    { font-size: .75rem; color: #64748b; letter-spacing: .04em; }
.footer-brand p        { margin-top: .75rem; font-size: .85rem; max-width: none; }

.footer-links h4 { color: #e2e8f0; margin-bottom: .75rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a  { color: #64748b; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── Callout / banner ───────────────────────────────────────── */
.callout {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.callout h2 { color: #fff; margin-bottom: .75rem; }
.callout p  { color: #94a3b8; margin: 0 auto 2rem; max-width: 52ch; }

/* ─── Calculator page specific ───────────────────────────────── */
.calc-wrapper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.calc-step {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.calc-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.calc-step h3 { margin-bottom: .75rem; }
.calc-step p  { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
}

select, input[type="number"], input[type="email"], input[type="text"] {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
}

select:focus, input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224,90,30,.1);
}

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

.checkbox-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  cursor: pointer;
  font-size: .9rem;
  transition: border-color .15s, background .15s;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-item:has(input:checked) {
  border-color: var(--orange);
  background: rgba(224,90,30,.06);
}

.calc-results {
  display: none;
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 2rem;
  margin-top: 2rem;
  color: #e2e8f0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.result-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.result-card .result-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
  line-height: 1;
  margin-bottom: .3rem;
}

.result-card .result-lbl {
  font-size: .8rem;
  color: #94a3b8;
}

.tools-list {
  list-style: none;
  margin: 1rem 0;
}
.tools-list li {
  display: flex;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .9rem;
}
.tools-list li:last-child { border-bottom: none; }
.tools-list .tool-name { font-weight: 600; color: #f1f5f9; }
.tools-list .tool-why  { color: #94a3b8; }

.saving-highlight {
  background: linear-gradient(135deg, rgba(224,90,30,.2), rgba(224,90,30,.05));
  border: 1px solid rgba(224,90,30,.4);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.saving-highlight .big-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
  line-height: 1;
}
.saving-highlight p { color: #94a3b8; font-size: .9rem; max-width: none; margin-top: .35rem; }

.email-gate {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.email-gate h4 { color: #f1f5f9; margin-bottom: .4rem; }
.email-gate p  { font-size: .875rem; color: #94a3b8; margin-bottom: 1rem; max-width: none; }
.email-row {
  display: flex;
  gap: .6rem;
}
.email-row input { flex: 1; }
@media (max-width: 500px) { .email-row { flex-direction: column; } }

/* ─── Members page ───────────────────────────────────────────── */
.member-login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  max-width: 440px;
  margin: 3rem auto;
  box-shadow: var(--shadow-lg);
}

.member-login-card h2 { margin-bottom: .5rem; }
.member-login-card p { color: var(--muted); font-size: .9rem; margin-bottom: 1.75rem; }

.form-group + .form-group { margin-top: 1rem; }

.login-btn { width: 100%; margin-top: 1.25rem; }

.members-notice {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .875rem;
  color: #78350f;
  margin-top: 1.25rem;
}

/* ─── Legal pages ────────────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h1 { font-size: 2rem; margin-bottom: .5rem; }
.legal-content .updated { color: var(--muted); font-size: .85rem; margin-bottom: 2.5rem; }
.legal-content h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.legal-content p, .legal-content li { font-size: .95rem; color: #374151; margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content a  { color: var(--orange); }

/* ─── Utilities ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.hidden { display: none; }

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .9rem;
  color: #1e40af;
}
