/* JustRight — Know Your Rights
   Dark navy / charcoal + teal & amber accents. Mobile-first. */

:root {
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --bg-card: #151f33;
  --bg-soft: #1a2540;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef8;
  --text-muted: #9aa8c0;
  --text-dim: #70809a;
  --teal: #14b8a6;
  --teal-soft: rgba(20, 184, 166, 0.14);
  --teal-strong: #0d9488;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --danger: #f87171;
  --success: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1120px;
  --header-h: 72px;
  --focus: 0 0 0 3px rgba(20, 184, 166, 0.45);
}

*,
*::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.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #5eead4;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--teal);
  color: #042f2e;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand img,
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text small {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-soft);
}

.nav-cta {
  margin-left: 0.4rem !important;
  background: linear-gradient(135deg, var(--teal), var(--teal-strong)) !important;
  color: #042f2e !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-strong));
  color: #042f2e;
}

.btn-primary:hover {
  color: #042f2e;
  filter: brightness(1.06);
}

.btn-amber {
  background: linear-gradient(135deg, #fbbf24, var(--amber));
  color: #1c1403;
}

.btn-amber:hover {
  color: #1c1403;
}

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

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.btn-lg {
  padding: 1rem 1.45rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #5eead4;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero .lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.hero-meta strong {
  color: var(--text);
}

.hero-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0.5rem 0 1rem;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--amber);
}

.price-compare {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 1rem;
}

.savings-pill {
  display: inline-block;
  background: var(--amber-soft);
  color: #fcd34d;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.55rem 0;
  color: var(--text-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(21, 31, 51, 0.55), transparent);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  height: 100%;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.icon-dot {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

/* Course cards */
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  height: 100%;
}

.course-card.featured {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15), var(--shadow);
}

.course-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card .badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.badge-teal {
  background: var(--teal-soft);
  color: #5eead4;
}

.badge-amber {
  background: var(--amber-soft);
  color: #fcd34d;
}

.course-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.course-card .presenter {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.course-card .desc {
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.course-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Modules */
.module-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.module-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.module-item .mod-num {
  color: var(--teal);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.module-item h3 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.05rem;
}

.module-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.module-item ul {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Disclaimer */
.disclaimer {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fecaca;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  margin: 1.5rem 0;
}

.disclaimer strong {
  color: #fee2e2;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 1rem 1.15rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-q::after {
  content: "+";
  color: var(--teal);
  font-weight: 800;
}

.faq-item.is-open .faq-q::after {
  content: "–";
}

.faq-a {
  display: none;
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
}

.faq-item.is-open .faq-a {
  display: block;
}

/* Placeholder social proof */
.placeholder-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial {
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.testimonial p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.testimonial cite {
  color: var(--text-dim);
  font-style: normal;
  font-size: 0.88rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, rgba(20, 184, 166, 0.16), rgba(245, 158, 11, 0.1));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
  max-width: 36rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input,
textarea,
select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* Prose pages */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.prose {
  max-width: 720px;
  color: var(--text-muted);
}

.prose h2 {
  color: var(--text);
  margin-top: 2rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  color: var(--text);
}

.prose ul {
  padding-left: 1.2rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--teal);
}

/* Learn gated */
.gate-box {
  max-width: 480px;
  margin: 2rem auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}

.gate-box code {
  font-family: var(--mono);
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: #080e18;
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin: 0.35rem 0;
}

.site-footer a:hover {
  color: var(--teal);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.legal-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 36rem;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 0.75rem; }
