/* Kyrios Edu — Brex-derived design tokens */
: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;
  --logo-gray: #a5a9b1;
  --success: #138a43;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --max-width: 1280px;
  --nav-height: 72px;
  --section-pad: clamp(64px, 10vw, 120px);
  --gutter: clamp(20px, 4vw, 32px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

.announcement a {
  color: var(--on-dark);
  font-weight: 600;
}

.announcement a span {
  margin-left: 4px;
}

/* Nav */
.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 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary);
  display: grid;
  place-items: center;
}

.logo-mark svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  top: calc(var(--nav-height) + 36px);
  background: var(--surface);
  z-index: 99;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-panel li {
  border-bottom: 1px solid var(--border);
}

.mobile-panel a {
  display: block;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
}

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

.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);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

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

.btn-link-arrow::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.15s ease;
}

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

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

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

.headline-lg {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 16px;
}

.title-md {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

.title-sm {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
}

.body-lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--body);
  margin: 0 0 24px;
  max-width: 54ch;
}

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 80px) 0 var(--section-pad);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

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

.hero-title {
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 16px;
}

.hero-title .brand {
  color: var(--primary);
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--body);
  margin: 0 0 28px;
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-trust {
  font-size: 14px;
  color: var(--muted);
}

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

.dashboard-mock {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock-dot:nth-child(1) { background: #e88; }
.mock-dot:nth-child(2) { background: #eb5; }
.mock-dot:nth-child(3) { background: #8c8; }

.mock-body {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mock-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--soft-orange);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 18px;
}

.mock-text {
  flex: 1;
  min-width: 0;
}

.mock-text strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.mock-text span {
  font-size: 12px;
  color: var(--muted);
}

.mock-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

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

.mock-progress span {
  display: block;
  height: 100%;
  width: 72%;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

/* Feature cards */
.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Split sections */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

.split-reverse .split-copy {
  order: 2;
}

.metric-panel {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}

.metric-value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 8px;
}

.metric-panel p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.metric-trio {
  display: grid;
  gap: 24px;
}

/* Comparison */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-alt);
}

.compare-table td {
  color: var(--body);
}

.compare-table .highlight {
  background: var(--soft-orange);
  font-weight: 600;
}

.check {
  color: var(--success);
  font-weight: 600;
}

.dash {
  color: var(--logo-gray);
}

/* Logo strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  padding: 32px 0;
}

.logo-strip span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--logo-gray);
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 24px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-display {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 4px;
}

.pricing-card ul {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--body);
  border-bottom: 1px solid var(--border);
  padding-left: 24px;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 80px) 32px;
  margin: 0 var(--gutter);
  max-width: calc(var(--max-width) - 64px);
  margin-left: auto;
  margin-right: auto;
}

.cta-band .headline-lg {
  color: var(--on-dark);
}

.cta-band p {
  color: rgba(252, 252, 253, 0.85);
  max-width: 48ch;
  margin: 0 auto 28px;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--on-dark);
  padding: 80px var(--gutter) 40px;
  margin-top: var(--section-pad);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

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

.footer p {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.7);
  margin: 0;
  max-width: 36ch;
}

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

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(252, 252, 253, 0.85);
  font-size: 14px;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(252, 252, 253, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .split-reverse .split-copy {
    order: 0;
  }
}