/* ============================================================
   Stroke Recovery Community — Portal Shell
   ============================================================ */

:root {
  --slate-950: #0b1120;
  --slate-900: #0f172a;
  --slate-850: #141e33;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-100: #e2e8f0;

  --emerald: #10b981;
  --emerald-dim: rgba(16, 185, 129, 0.12);
  --emerald-line: rgba(16, 185, 129, 0.35);

  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --cyan-dim: rgba(6, 182, 212, 0.12);

  --gold: #eab308;
  --gold-dim: rgba(234, 179, 8, 0.12);
  --gold-line: rgba(234, 179, 8, 0.4);

  --text: #f1f5f9;
  --muted: #94a3b8;

  --radius: 16px;
  --radius-sm: 10px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);

  --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.8);
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--slate-900);
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 600px at 80% -5%, rgba(6, 182, 212, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(16, 185, 129, 0.08), transparent 55%),
    var(--slate-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
}

.section {
  padding-block: 72px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-top: 12px;
  text-wrap: balance;
}

.section-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #041016;
  box-shadow: 0 12px 30px -12px rgba(6, 182, 212, 0.7);
}
.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(6, 182, 212, 0.9); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border: 1px solid var(--slate-700);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-emerald {
  background: var(--emerald);
  color: #04120c;
  box-shadow: 0 12px 30px -14px rgba(16, 185, 129, 0.8);
}
.btn-emerald:hover { transform: translateY(-1px); }

.btn-block { width: 100%; }

.icon { width: 20px; height: 20px; stroke-width: 1.8; }
.icon-sm { width: 16px; height: 16px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: #041016;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand span small { display: block; font-size: 0.66rem; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }

.nav-links { display: none; gap: 26px; }
.nav-links a { color: var(--slate-300); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: 64px 40px;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  text-wrap: balance;
  margin-top: 18px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--slate-300);
  font-size: 1.12rem;
  margin-top: 20px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
}
.hero-stat span { font-size: 0.85rem; color: var(--muted); }

/* Free demo card */
.demo-card {
  border-radius: 22px;
  background: linear-gradient(180deg, var(--slate-850), var(--slate-900));
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.demo-card-top .dots { display: flex; gap: 6px; }
.demo-card-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-700); display: block; }
.demo-card-body { padding: 22px; }
.demo-screen {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(16,185,129,0.18), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(6,182,212,0.2), transparent 55%),
    var(--slate-950);
  border: 1px solid var(--slate-700);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.demo-orbit { position: relative; width: 130px; height: 130px; }
.demo-orbit .node {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
.demo-orbit .node:nth-child(1){ top:0; left:50%; transform:translateX(-50%); background:var(--emerald); box-shadow:0 0 18px var(--emerald); animation-delay:0s;}
.demo-orbit .node:nth-child(2){ top:50%; right:0; transform:translateY(-50%); animation-delay:.4s;}
.demo-orbit .node:nth-child(3){ bottom:0; left:50%; transform:translateX(-50%); background:var(--emerald); box-shadow:0 0 18px var(--emerald); animation-delay:.8s;}
.demo-orbit .node:nth-child(4){ top:50%; left:0; transform:translateY(-50%); animation-delay:1.2s;}
.demo-orbit .core{
  position:absolute; inset:0; margin:auto; width:46px; height:46px; border-radius:50%;
  background:linear-gradient(135deg,var(--emerald),var(--cyan)); display:grid; place-items:center; color:#041016;
}
@keyframes pulse { 0%,100%{ transform:scale(1) translateX(-50%);} 50%{ transform:scale(1.35) translateX(-50%);} }
.demo-meta { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.demo-meta h4 { font-size: 1.05rem; }
.demo-meta p { color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-free { background: var(--emerald-dim); color: var(--emerald); border: 1px solid var(--emerald-line); }
.badge-locked { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-line); }
.badge svg { width: 13px; height: 13px; }

/* ============================================================
   App Grid
   ============================================================ */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.tab {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-300);
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--slate-700);
  transition: all 0.15s ease;
}
.tab:hover { color: var(--text); border-color: var(--slate-600); }
.tab.active {
  color: #041016;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  border-color: transparent;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }

.app-card {
  position: relative;
  text-align: left;
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-850));
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 168px;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 22px 40px -26px rgba(6, 182, 212, 0.7);
}
.app-card.locked:hover { border-color: var(--gold-line); box-shadow: 0 22px 40px -26px rgba(234, 179, 8, 0.5); }

.app-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.app-thumb {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--slate-950);
  border: 1px solid var(--slate-700);
  color: var(--emerald);
}
.app-card.locked .app-thumb { color: var(--gold); }
.app-thumb svg { width: 26px; height: 26px; }

.app-card h3 { font-size: 1.05rem; }
.app-cat { font-size: 0.76rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.app-desc { font-size: 0.88rem; color: var(--slate-300); flex: 1; }
.app-card-foot { display: flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 0.85rem; font-weight: 600; }
.app-card.locked .app-card-foot { color: var(--gold); }

/* ============================================================
   Blog Hub
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate-800);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--emerald-line); }
.blog-cover {
  height: 130px;
  background:
    radial-gradient(circle at 25% 30%, rgba(16,185,129,0.3), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(6,182,212,0.3), transparent 55%),
    var(--slate-950);
  display: grid; place-items: center;
  color: rgba(226, 232, 240, 0.5);
}
.blog-cover svg { width: 34px; height: 34px; }
.blog-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-body .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.blog-body h3 { font-size: 1.08rem; text-wrap: balance; }
.blog-body p { font-size: 0.88rem; color: var(--muted); flex: 1; }
.blog-read { font-size: 0.8rem; color: var(--slate-400); display: flex; align-items: center; gap: 6px; }

.blog-banner {
  margin-top: 30px;
  border-radius: var(--radius);
  padding: 30px;
  background: linear-gradient(120deg, var(--emerald-dim), var(--cyan-dim));
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.blog-banner h3 { font-size: 1.3rem; }
.blog-banner p { color: var(--slate-300); font-size: 0.95rem; }

/* ============================================================
   Media (Audio / Video)
   ============================================================ */
.media-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .media-grid.audio { grid-template-columns: repeat(6, 1fr); } .media-grid.video { grid-template-columns: repeat(3, 1fr); } }

.audio-card { text-align: left; }
.audio-art {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  position: relative;
  background:
    radial-gradient(circle at 35% 30%, rgba(16,185,129,0.35), transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(6,182,212,0.35), transparent 55%),
    var(--slate-950);
  border: 1px solid var(--slate-700);
  display: grid; place-items: center;
  overflow: hidden;
  transition: transform 0.18s ease;
}
.audio-card:hover .audio-art { transform: translateY(-3px); }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.wave i {
  width: 4px; border-radius: 2px; background: var(--emerald);
  animation: wave 1.1s ease-in-out infinite;
}
.audio-card.locked .wave i { background: var(--gold); animation: none; opacity: 0.55; }
.wave i:nth-child(1){height:40%;animation-delay:0s;}
.wave i:nth-child(2){height:75%;animation-delay:.15s;}
.wave i:nth-child(3){height:100%;animation-delay:.3s;}
.wave i:nth-child(4){height:60%;animation-delay:.45s;}
.wave i:nth-child(5){height:85%;animation-delay:.6s;}
.wave i:nth-child(6){height:45%;animation-delay:.75s;}
@keyframes wave { 0%,100%{ transform:scaleY(0.6);} 50%{ transform:scaleY(1);} }
.media-lock {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(11, 17, 32, 0.75); color: var(--gold);
  border: 1px solid var(--gold-line);
}
.media-lock svg { width: 14px; height: 14px; }
.media-meta { margin-top: 10px; }
.media-meta h4 { font-size: 0.92rem; font-family: var(--font-body); font-weight: 600; }
.media-meta span { font-size: 0.78rem; color: var(--muted); }

.video-card { text-align: left; }
.video-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, rgba(6,182,212,0.3), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(16,185,129,0.25), transparent 55%),
    var(--slate-950);
  border: 1px solid var(--slate-700);
  display: grid; place-items: center;
  overflow: hidden;
  transition: transform 0.18s ease;
}
.video-card:hover .video-thumb { transform: translateY(-3px); }
.play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(6, 182, 212, 0.9); color: #041016;
  display: grid; place-items: center;
  box-shadow: 0 0 26px rgba(6,182,212,0.6);
}
.video-card.locked .play-btn { background: rgba(234, 179, 8, 0.9); box-shadow: 0 0 26px rgba(234,179,8,0.5); }
.play-btn svg { width: 22px; height: 22px; }

/* ============================================================
   Pricing strip
   ============================================================ */
.pricing {
  border-radius: 24px;
  padding: 44px 32px;
  background: linear-gradient(160deg, var(--slate-850), var(--slate-900));
  border: 1px solid rgba(6, 182, 212, 0.2);
  text-align: center;
}
.pricing h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pricing p { color: var(--muted); margin-top: 10px; }
.plan-toggle-row {
  display: inline-flex;
  gap: 24px;
  margin-top: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.plan {
  border-radius: 18px;
  padding: 26px 30px;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  min-width: 220px;
}
.plan.featured { border-color: var(--cyan); box-shadow: 0 22px 44px -26px rgba(6,182,212,0.6); }
.plan .price { font-family: var(--font-head); font-size: 2.4rem; margin: 8px 0; }
.plan .price small { font-size: 0.9rem; color: var(--muted); font-family: var(--font-body); }
.plan .tag { font-size: 0.78rem; color: var(--emerald); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.plan ul { list-style: none; text-align: left; margin: 18px 0; display: flex; flex-direction: column; gap: 9px; }
.plan li { font-size: 0.88rem; color: var(--slate-300); display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; color: var(--emerald); flex-shrink: 0; margin-top: 3px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-block: 40px;
  margin-top: 40px;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-grid p { color: var(--muted); font-size: 0.85rem; max-width: 320px; margin-top: 12px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-400); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--slate-300); font-size: 0.88rem; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: var(--cyan); }
.footer-note { margin-top: 30px; font-size: 0.78rem; color: var(--slate-600); text-align: center; }

/* ============================================================
   Modals
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 760px;
  border-radius: 20px;
  background: var(--slate-850);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.22s ease;
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.modal-head h3 { font-size: 1.1rem; }
.modal-close {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--slate-300);
  background: rgba(148, 163, 184, 0.1);
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text); background: rgba(148, 163, 184, 0.2); }
.modal-frame { aspect-ratio: 16 / 9; width: 100%; background: var(--slate-950); }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }

/* Paywall */
.paywall { max-width: 560px; }
.paywall-body { padding: 32px; text-align: center; }
.paywall-lock {
  width: 62px; height: 62px; border-radius: 16px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--gold-dim); color: var(--gold);
  border: 1px solid var(--gold-line);
}
.paywall-lock svg { width: 30px; height: 30px; }
.paywall-body h3 { font-size: 1.5rem; }
.paywall-body > p { color: var(--muted); margin-top: 10px; }
.paywall-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
@media (max-width: 480px) { .paywall-plans { grid-template-columns: 1fr; } }
.paywall-plan {
  border-radius: 14px; padding: 20px;
  background: var(--slate-800); border: 1px solid var(--slate-700);
  cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}
.paywall-plan:hover { transform: translateY(-2px); }
.paywall-plan.best { border-color: var(--cyan); position: relative; }
.paywall-plan.best::after {
  content: "Best value";
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: #041016; font-size: 0.66rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em;
}
.paywall-plan .amt { font-family: var(--font-head); font-size: 1.9rem; }
.paywall-plan .amt small { font-size: 0.82rem; color: var(--muted); font-family: var(--font-body); }
.paywall-plan .lbl { font-size: 0.84rem; color: var(--slate-300); margin-top: 4px; }

.hidden { display: none !important; }
