/* ============================================================
   Entrain AI Training — design system
   Dark, premium, self-contained. Brand: teal→blue→purple.
   ============================================================ */

:root {
  --bg: #060911;
  --bg-2: #0a0f1c;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #10162a;
  --panel-2: rgba(255, 255, 255, 0.06);
  --text: #eaf0fa;
  --muted: #98a6c0;
  --faint: #6b7793;
  --brand-1: #2ed3b7;
  --brand-2: #4e9bff;
  --brand-3: #9b6bff;
  --ok: #2fbf71;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --grad: linear-gradient(115deg, var(--brand-1), var(--brand-2) 48%, var(--brand-3));
  --grad-soft: linear-gradient(135deg, rgba(46,211,183,.16), rgba(78,155,255,.16), rgba(155,107,255,.16));
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --glow: 0 10px 40px -8px rgba(78, 155, 255, 0.55);
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Aurora background ---- */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}
body::before {
  width: 60vw; height: 60vw;
  top: -18vw; left: -10vw;
  background: radial-gradient(circle at 30% 30%, rgba(46,211,183,.55), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(78,155,255,.55), transparent 60%);
  animation: drift1 22s ease-in-out infinite alternate;
}
body::after {
  width: 55vw; height: 55vw;
  top: 20vh; right: -18vw;
  background: radial-gradient(circle at 60% 40%, rgba(155,107,255,.5), transparent 60%);
  animation: drift2 26s ease-in-out infinite alternate;
}
/* faint grid overlay */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}

@keyframes drift1 { to { transform: translate(6vw, 8vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-6vw, -6vh) scale(1.15); } }

a { color: var(--brand-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-1); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; }
section { position: relative; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 9, 17, 0.7);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--text); line-height: 1; }
.brand:hover { color: var(--text); }
.brand .brand-sub { color: var(--muted); font-weight: 500; }
.site-header nav { display: flex; align-items: center; gap: 0.5rem; }
.nav-link { color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0.7rem; border-radius: 8px; }
.nav-link:hover { color: var(--text); background: var(--panel-2); }

/* ---- Logo mark ---- */
.logo { display: inline-flex; width: 30px; height: 30px; flex: 0 0 auto; }
.logo svg { width: 100%; height: 100%; overflow: visible; }
.logo .r1 { animation: pulse 3.2s ease-in-out infinite; transform-origin: center; }
.logo .r2 { animation: pulse 3.2s ease-in-out infinite 0.6s; transform-origin: center; }
@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(0.94); }
  50% { opacity: .95; transform: scale(1.04); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.98rem; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s, filter .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn-primary { background: var(--grad); color: #06121f; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 50px -8px rgba(78,155,255,.7); color: #06121f; }
.btn-ghost { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--border-strong); transform: translateY(-1px); color: var(--text); }

/* ---- Hero ---- */
.hero { padding-block: 4.5rem 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text);
  margin-bottom: 1.4rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-1); box-shadow: 0 0 10px var(--brand-1); }
h1, h2, h3 { letter-spacing: -0.02em; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.05; margin: 0 0 1.2rem; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 40ch; margin: 0 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 1.8rem; color: var(--faint); font-size: 0.9rem; }
.trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust svg { width: 16px; height: 16px; color: var(--brand-1); }

/* price */
.price { display: inline-flex; align-items: baseline; gap: 0.3rem; }
.price .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.price .period { color: var(--muted); font-size: 1rem; font-weight: 500; }
.price-row { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.4rem; flex-wrap: wrap; }

/* hero orb visual */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.orb { position: relative; width: min(360px, 80vw); aspect-ratio: 1; }
.orb svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 40px rgba(78,155,255,.35)); }
.orb .ring { transform-origin: center; }
.orb .ring.a { animation: spin 26s linear infinite; }
.orb .ring.b { animation: spin 34s linear infinite reverse; }
.orb .ring.c { animation: spin 44s linear infinite; }
.orb .breathe { transform-origin: center; animation: breathe 5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { transform: scale(.9); opacity:.85 } 50% { transform: scale(1.06); opacity:1 } }

/* ---- Section header ---- */
.section { padding-block: 3.5rem; }
.section-head { text-align: center; max-width: 40ch; margin: 0 auto 2.5rem; }
.section-head .kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--brand-2); }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0.6rem 0 0.6rem; }
.section-head p { color: var(--muted); margin: 0; }

/* ---- Cards / feature grid ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, background .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--panel-2); }
.card h2, .card h3 { margin-top: 0; }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--grad-soft); border: 1px solid var(--border);
  font-size: 1.4rem;
}
.card p { color: var(--muted); margin-bottom: 0; }
.card p + p { margin-top: 0.7rem; }

/* stagger-in on load */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---- Steps (how it works) ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--grad); color: #06121f; font-weight: 800; margin-bottom: 0.8rem; }
.step h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 1.5rem;
  background: var(--grad-soft);
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.4rem; }
.cta-band p { color: var(--muted); margin: 0 0 1.6rem; }
.cta { text-align: center; }
.fine { color: var(--faint); font-size: 0.85rem; margin-top: 0.8rem; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(78,155,255,0.04));
}
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 1.5rem 2rem;
}
.footer-about { max-width: 34ch; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); line-height: 1; }
.footer-about p { color: var(--muted); font-size: 0.92rem; margin: 0.9rem 0 1.2rem; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin: 0.2rem 0 1rem; font-weight: 700; }
.footer-col a { display: block; color: var(--muted); font-size: 0.94rem; padding: 0.32rem 0; font-weight: 500; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem;
  padding: 1.3rem 1.5rem; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 0.85rem;
}
.footer-bottom a { color: var(--muted); font-weight: 600; }
.footer-secure { display: inline-flex; align-items: center; gap: 0.4rem; }
/* legacy simple footer (Start Here) */
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 1.6rem 1.5rem; }
.footer-note { color: var(--faint); font-size: 0.84rem; }
.footer-note a { color: var(--muted); font-weight: 600; }

/* ---- Legal / prose pages ---- */
.prose { max-width: 70ch; margin: 0 auto; padding: 1rem 0 2rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); }
.prose a { font-weight: 600; }
.prose .updated { color: var(--faint); font-size: 0.9rem; }
.prose .note { border: 1px dashed var(--border); border-radius: 12px; padding: 1rem; background: rgba(255,255,255,.02); font-size: 0.9rem; }

/* ============================================================
   Program page (beginner.html)
   ============================================================ */
.pill { display:inline-block; padding:.35rem .85rem; border-radius:999px; font-size:.8rem; font-weight:600; letter-spacing:.02em; background:var(--panel-2); border:1px solid var(--border); color:var(--muted); }
.pill-ok { color:var(--brand-1); border-color:rgba(46,211,183,.35); background:rgba(46,211,183,.08); }

.session { position:relative; overflow:hidden; }
.session::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--grad); opacity:.8; }
.session-head { display:flex; align-items:center; gap:1rem; margin-bottom:1rem; }
.week-badge { flex:0 0 auto; display:flex; flex-direction:column; align-items:center; justify-content:center; width:4.4rem; height:4.4rem; border-radius:16px; background:var(--grad); color:#06121f; font-weight:800; line-height:1; box-shadow: var(--glow); }
.week-badge small { font-size:.6rem; font-weight:700; letter-spacing:.12em; opacity:.8; margin-bottom:.25rem; }
.week-badge b { font-size:1.6rem; }
.session-head h3 { margin:0; font-size:1.4rem; }
.session-head .sub { color:var(--muted); font-size:.92rem; margin-top:.15rem; }

.block { margin-top:1.35rem; }
.block h4 { margin:0 0 .5rem; font-size:.76rem; text-transform:uppercase; letter-spacing:.09em; color:var(--brand-2); font-weight:700; }
.objectives { margin:0; padding-left:1.2rem; }
.objectives li { margin:.35rem 0; color: var(--text); }
.objectives em, .agenda em { color: var(--brand-1); font-style: normal; }

.agenda { list-style:none; margin:0; padding:0; }
.agenda li { display:flex; gap:.9rem; padding:.5rem 0; border-bottom:1px dashed var(--border); }
.agenda li:last-child { border-bottom:0; }
.agenda .mins { flex:0 0 3.6rem; color:var(--brand-2); font-weight:700; font-size:.9rem; }
.agenda span:last-child { color: var(--muted); }

.callout { border-radius:14px; padding:1.1rem 1.2rem; border:1px solid var(--border); background:var(--panel-2); }
.callout.homework { border-color:rgba(155,107,255,.35); background:rgba(155,107,255,.08); }
.callout h4 { margin-top:0; }
.callout p { color: var(--muted); }

.tool-tags { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.4rem; }
.tool-tags .pill { color:var(--text); }

.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }

/* ============================================================
   Pricing page
   ============================================================ */
.plans { display:grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap:1.3rem; align-items:stretch; }
.plan { display:flex; flex-direction:column; }
.plan h3 { font-size:1.25rem; }
.plan .amount { font-size:2.4rem; font-weight:800; letter-spacing:-.02em; }
.plan .per { color:var(--muted); font-size:1rem; font-weight:500; }
.plan-featured { border-color:var(--brand-2); box-shadow: var(--glow); }
.plan-featured:hover { border-color:var(--brand-2); }
.ribbon { position:absolute; top:1rem; right:1rem; }
.plan-note { color:var(--brand-1); font-size:.85rem; margin:.35rem 0 .2rem; font-weight:600; }
.plan-features { list-style:none; margin:1.1rem 0 1.4rem; padding:0; display:flex; flex-direction:column; gap:.55rem; }
.plan-features li { display:flex; gap:.55rem; align-items:flex-start; color:var(--text); font-size:.95rem; }
.plan-features svg { flex:0 0 auto; width:18px; height:18px; color:var(--brand-1); margin-top:.15rem; }
.plan .btn { width:100%; margin-top:auto; }
.card .amount + .per { margin-left:.1rem; }

/* ============================================================
   Start Here page
   ============================================================ */
.step-num { display:inline-flex; align-items:center; justify-content:center; width:2rem; height:2rem; border-radius:50%; background:var(--grad); color:#06121f; font-weight:800; margin-right:.6rem; font-size:.95rem; }
.placeholder { border:1px dashed var(--border); border-radius:12px; padding:1rem; color:var(--muted); font-size:.9rem; background:rgba(255,255,255,.02); }
.embed-wrap { position:relative; border-radius:14px; overflow:hidden; border:1px solid var(--border); }
.embed-wrap iframe { display:block; width:100%; border:0; }
.stack-cards > .card { margin-bottom: 1.25rem; }
.stack-cards > .session { margin-bottom: 1.5rem; }

/* ---- Utilities ---- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .orb { width: min(260px, 60vw); }
  .lede { max-width: none; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns:1fr; }
  .session-head { flex-direction:row; }
  .hero { padding-block: 3rem 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  *, body::before, body::after { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
