:root {
  --bg: #f4f4f0;
  --fg: #181918;
  --accent: #f2a900;
  --accent-soft: #ffe6b3;
  --card-bg: #ffffff;
  --muted: #70726f;
  --border: #deded8;
  --danger: #d9534f;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.06);
  --shadow-sheet: 0 -18px 40px rgba(0, 0, 0, 0.2);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

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

html, 
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top left, #fffaf0, #f4f4f0 55%, #ecebe4);
  color: var(--fg);
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 14px 24px;
}

/* Top bar */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #111;
  color: #f8f7f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-cta {
  border-radius: 999px;
  border: none;
  padding: 7px 14px;
  font-size: 14px;
  background: var(--fg);
  color: #f8f7f3;
  font-weight: 600;
}

/* Main layout */

.content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px 12px 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1c1c1b, #32322f);
  color: #f8f7f3;
  box-shadow: var(--shadow-soft);
}

.hero-text h1 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 4px;
}

.hero-text p {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  color: #ddd9cf;
}

.hero-highlight {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
  text-align: right;
}

.hero-number {
  font-size: 22px;
  font-weight: 700;
}

.hero-label {
  font-size: 11px;
  color: #e2dfd5;
}

/* Tabs */

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 4px;
}

.tab-btn {
  border-radius: 999px;
  border: none;
  padding: 6px 4px;
  font-size: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.tab-btn.active {
  background: #111;
  color: #f8f7f3;
}

/* Courses */

.courses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.course-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.course-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.course-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.course-pill {
  border-radius: 999px;
  padding: 2px 6px;
  background: #f2f2ec;
}

.course-price {
  font-size: 12px;
  font-weight: 600;
}

.course-price span {
  font-weight: 400;
  color: var(--muted);
}

.course-tagline {
  font-size: 11px;
  color: var(--muted);
}

.course-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.course-level {
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #5a3b00;
  font-weight: 600;
}

.course-button {
  border-radius: 999px;
  border: none;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: #1a1305;
}

/* Long-form sections */

.section {
  padding: 14px 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.section + .section {
  margin-top: 4px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.section-body {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.section-card {
  padding: 10px;
  border-radius: var(--radius-md);
  background: #f9f8f3;
}

.section-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.section-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.path-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.path-card {
  padding: 10px;
  border-radius: var(--radius-md);
  background: #f9f8f3;
}

.path-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.path-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.how-item {
  padding: 10px;
  border-radius: var(--radius-md);
  background: #f9f8f3;
}

.how-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.how-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.section-faq .faq-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.faq-item {
  padding: 10px;
  border-radius: var(--radius-md);
  background: #f9f8f3;
}

.faq-item h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.faq-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Bottom CTA */

.bottom-cta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  background: #141414;
  color: #f8f7f3;
}

.bottom-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bottom-title {
  font-size: 13px;
  font-weight: 600;
}

.bottom-sub {
  font-size: 11px;
  color: #d3d0c5;
}

.bottom-button {
  border-radius: 999px;
  padding: 8px 14px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  background: #f8f7f3;
  color: #141414;
}

/* Bottom sheet */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: opacity 0.2s ease-out;
}

.sheet-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  width: 100%;
  max-width: 480px;
  border-radius: 16px 16px 0 0;
  background: #121212;
  color: #f5f5f5;
  padding: 10px 16px 16px;
  transform: translateY(100%);
  transition: transform 0.22s ease-out;
  box-shadow: var(--shadow-sheet);
}

.sheet-backdrop.visible .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #2c2c2c;
  margin: 4px auto 8px;
}

.sheet h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.sheet-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: #c2c2bc;
}

.sheet-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.field span {
  color: #e5e5de;
}

.field input {
  border-radius: 10px;
  border: 1px solid #333;
  background: #181818;
  color: #f5f5f5;
  padding: 8px 10px;
  font-size: 13px;
}

.field input::placeholder {
  color: #777;
}

.sheet-submit {
  margin-top: 6px;
  border-radius: 999px;
  border: none;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #1b1507;
}

.sheet-close {
  margin-top: 10px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 8px 10px;
  font-size: 12px;
  background: transparent;
  color: #b1b1aa;
}

/* Small screens tweaks */

@media (max-width: 640px) {
  .app {
    max-width: 480px;
    padding: 14px 10px 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr);
  }
}

@media (max-height: 700px) {
  .hero {
    padding: 10px;
  }
  .bottom-cta {
    padding: 6px 10px;
  }
  .course-card {
    padding: 8px;
  }
}