/* ══════════════════════════════════════════════════════════
   CLYA — Marketing landing page
   Mobile-first · Light · Playful · Rounded · Nunito
══════════════════════════════════════════════════════════ */

:root {
  --ink:        #1E1B4B;
  --ink-2:      #4C4880;
  --muted:      #7C7AAA;
  --bg:         #FDFAF5;
  --surface:    #FFF8F0;
  --surface-2:  #F5EFE6;
  --purple:     #8B5CF6;
  --purple-dark:#7C3AED;
  --amber:      #FBBF24;
  --green:      #34D399;
  --orange:     #FB923C;
  --r-md:  16px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 36px;
  --r-full: 9999px;
  --shadow-sm: 0 4px 16px rgba(100,80,220,0.12);
  --shadow-md: 0 8px 28px rgba(100,80,220,0.16);
  --font:         'Nunito', system-ui, sans-serif;
  --font-heading: 'Fredoka One', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a { color: inherit; }

.lp-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons & links ─────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-decoration: none;
  border-radius: var(--r-full);
  padding: 15px 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-btn-primary {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), 0 0 0 4px rgba(139,92,246,0.18); }

.lp-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-dark);
  text-decoration: none;
  border-bottom: 2px solid rgba(124,58,237,0.25);
  padding-bottom: 1px;
  cursor: pointer;
}
.lp-link:hover { border-bottom-color: var(--purple-dark); }

/* ── Nav ──────────────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253,250,245,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30,27,75,0.06);
}
.lp-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-logo {
  width: 96px;
  height: auto;
  border-radius: 10px;
}
.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lp-nav-signin {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  text-decoration: none;
}
.lp-btn-sm {
  font-size: 14px;
  padding: 9px 20px;
}
.lp-btn-lg { font-size: 19px; padding: 18px 36px; }

/* ── Pod invite banner (/join/CODE) ──────────────────────── */
.lp-invite {
  display: none;
}
.lp-invite--active {
  display: block;
  padding: 18px 0 0;
}
.lp-invite-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(124,58,237,0.18);
  padding: 24px 20px;
  text-align: center;
}
.lp-invite-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
}
.lp-invite-label {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}
.lp-invite-podname {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 24px;
  color: var(--purple-dark);
  margin-bottom: 16px;
}
.lp-invite-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}
.lp-invite-input {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid rgba(30,27,75,0.08);
  border-radius: var(--r-full);
  padding: 13px 18px;
  outline: none;
}
.lp-invite-input:focus {
  border-color: var(--purple);
}
.lp-invite-form .lp-btn { width: 100%; }

@media (min-width: 540px) {
  .lp-invite-form { flex-direction: row; max-width: 440px; }
  .lp-invite-form .lp-btn { width: auto; flex-shrink: 0; }
  .lp-invite-input { flex: 1; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.lp-hero {
  padding: 48px 0 56px;
}
.lp-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.lp-hero-text { text-align: center; }
.lp-hero h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--ink);
}
.lp-accent { color: var(--purple-dark); }
.lp-hero-sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 auto 26px;
}
.lp-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Hero visual: CSS mockup of pod study room ───────────── */
.lp-hero-visual {
  display: flex;
  justify-content: center;
}
.lp-mock-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
  padding: 20px;
  transform: rotate(-2deg);
}
.lp-mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-mock-pod-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-mock-pod-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
}
.lp-mock-pod-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.lp-mock-streak {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 14px;
  color: var(--orange);
}
.lp-mock-presence {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.lp-mock-avatars { display: flex; }
.lp-mock-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid var(--surface);
  margin-left: -8px;
}
.lp-mock-avatar:first-child { margin-left: 0; }
.lp-mock-presence-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}
.lp-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.lp-mock-card-inner {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 16px;
}
.lp-mock-q-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--purple-dark);
  margin-bottom: 6px;
}
.lp-mock-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.lp-mock-progress {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  overflow: hidden;
}
.lp-mock-progress-bar {
  height: 100%;
  width: 65%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--purple), var(--purple-dark));
}
.lp-mock-footer {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.lp-mock-pill {
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--r-full);
  padding: 7px 14px;
}
.lp-mock-pill--xp {
  background: rgba(251,191,36,0.18);
  color: #B45309;
}
.lp-mock-pill--battle {
  background: rgba(139,92,246,0.14);
  color: var(--purple-dark);
}

/* ── Section heading shared style ────────────────────────── */
.lp-section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(26px, 6vw, 36px);
  text-align: center;
  margin: 0 0 36px;
  color: var(--ink);
}

/* ── How it works ─────────────────────────────────────────── */
.lp-how { padding: 56px 0; }
.lp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.lp-step {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.lp-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.lp-step h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--ink);
}
.lp-step p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

/* ── Features ─────────────────────────────────────────────── */
.lp-features {
  padding: 56px 0;
  background: var(--surface);
}
.lp-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.lp-feature-card {
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.lp-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--purple-light, rgba(139,92,246,0.14));
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.lp-feature-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ink);
}
.lp-feature-card p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}
.lp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--purple-dark);
  background: rgba(139,92,246,0.12);
  border-radius: var(--r-full);
  padding: 4px 10px;
  margin-bottom: 10px;
}

/* ── Founder line ─────────────────────────────────────────── */
.lp-founder {
  padding: 56px 0;
  text-align: center;
}
.lp-founder p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 17px;
  font-style: italic;
  color: var(--ink-2);
}

/* ── Footer ───────────────────────────────────────────────── */
.lp-footer {
  border-top: 1px solid rgba(30,27,75,0.08);
  padding: 28px 0;
}
.lp-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.lp-footer-logo {
  width: 64px;
  border-radius: 8px;
}
.lp-footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.lp-footer-links a { text-decoration: none; color: var(--muted); }
.lp-footer-links a:hover { color: var(--ink); }

/* ── Desktop ──────────────────────────────────────────────── */
@media (min-width: 860px) {
  .lp-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .lp-hero-text { text-align: left; flex: 1; }
  .lp-hero-sub { margin: 0 0 28px; }
  .lp-cta-row { align-items: flex-start; }
  .lp-hero-visual { flex: 1; }
  .lp-mock-card { transform: rotate(-3deg); }

  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .lp-feature-grid { grid-template-columns: repeat(2, 1fr); }

  .lp-footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
