/* FREEDOM ACADEMY — Brex-inspired design system */

:root {
  --primary: #FF5900;
  --accent-hover: #E65000;
  --accent-pressed: #CC4700;
  --ink: #15191E;
  --body: #33383F;
  --muted: #60646C;
  --canvas: #FCFCFD;
  --surface: #FFFFFF;
  --surface-alt: #F6F7F9;
  --border: #E6E8EB;
  --border-strong: #C9CDD2;
  --soft-orange: #FFF3EC;
  --footer-bg: #15191E;
  --on-primary: #FFFFFF;
  --on-dark: #FCFCFD;
  --success: #138A43;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --max-width: 1280px;
  --section-padding: 120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--body);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}

/* Announcement bar */
.announcement-bar {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.announcement-bar a {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-bar a:hover {
  color: var(--primary);
}

/* Navigation */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-brand-mark {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand-mark svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  transition: background 0.15s ease;
}

.nav-links a:hover {
  background: var(--surface-alt);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.43;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  background: var(--accent-pressed);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-alt);
}

.btn-link-arrow {
  background: transparent;
  color: var(--ink);
  padding: 0;
  min-height: auto;
  font-weight: 600;
  gap: 6px;
}

.btn-link-arrow:hover {
  color: var(--primary);
}

.btn-link-arrow svg {
  transition: transform 0.15s ease;
}

.btn-link-arrow:hover svg {
  transform: translateX(3px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-headline {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subhead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.5;
}

/* Hero */
.hero {
  padding: 80px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-orange);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--body);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--body);
}

.hero-benefit-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-top: 2px;
}

.hero-media {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-panel {
  padding: 32px;
}

.quest-map {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quest-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.quest-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--border-strong);
}

.quest-item.active {
  border-color: var(--primary);
  background: var(--soft-orange);
}

.quest-number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.quest-item.active .quest-number {
  background: var(--primary);
  color: var(--on-primary);
}

.quest-info h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 2px;
}

.quest-info p {
  font-size: 13px;
  color: var(--muted);
}

.quest-progress {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 28%;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.15s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--soft-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* Journey section */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.journey-content h3 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}

.journey-content p {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 24px;
}

.journey-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.journey-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--body);
}

.journey-list li svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 3px;
}

.metric-panel {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border: 1px solid var(--border);
}

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

.metric-value {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--body);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.testimonial-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Instructor */
.instructor-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.instructor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.instructor-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--soft-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  font-weight: 600;
  color: var(--primary);
}

.instructor-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.instructor-card .instructor-tag {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.instructor-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.instructor-tag-pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  color: var(--body);
}

/* Final CTA */
.cta-section {
  background: var(--ink);
  color: var(--on-dark);
  padding: 100px 0;
  text-align: center;
}

.cta-section .section-headline {
  color: var(--on-dark);
  max-width: 640px;
  margin: 0 auto 16px;
}

.cta-section .section-subhead {
  color: rgba(252, 252, 253, 0.7);
  max-width: 520px;
  margin: 0 auto 40px;
  text-align: center;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(252, 252, 253, 0.5);
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--on-dark);
  padding: 64px 32px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.6);
  line-height: 1.5;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(252, 252, 253, 0.5);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.8);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(252, 252, 253, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(252, 252, 253, 0.4);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(252, 252, 253, 0.4);
}

.footer-legal a:hover {
  color: rgba(252, 252, 253, 0.7);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(21, 25, 30, 0.5);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.mobile-nav-panel a {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.mobile-nav-panel .btn {
  margin-top: 16px;
  width: 100%;
}

/* Responsive */
@media (max-width: 1023px) {
  .hero-grid,
  .journey-grid,
  .instructor-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-panel {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero-media {
    order: -1;
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: 80px;
  }

  .container {
    padding: 0 24px;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .section-headline {
    font-size: 32px;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .metric-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-section {
    padding: 80px 0;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: 36px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }
}
