/* =============================================================================
   Learn page. Loaded only on /learn — everything shared lives in site.css.
   ========================================================================== */

.learnpage { color: var(--ink); overflow-x: hidden; }
.learnpage section { padding-left: 32px; padding-right: 32px; }
.lrn-inner { max-width: 1180px; margin: 0 auto; }

/* section heading kit (page-local; home.css is not loaded here) */
.lrn-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lrn-eyebrow--center { display: inline-flex; justify-content: center; }
.lrn-eyebrow__rule { width: 26px; height: 2px; background: #05a558; flex: none; }
.lrn-eyebrow__text {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #05a558; font-weight: 600;
}
.lrn-eyebrow--accent .lrn-eyebrow__rule { background: var(--accent); }
.lrn-eyebrow--accent .lrn-eyebrow__text { color: var(--accent); }

.lrn-h2 {
  margin: 0; font-size: 42px; line-height: 1.12; padding-bottom: 3px;
  letter-spacing: -.03em; font-weight: 700; color: var(--ink);
}
.lrn-h2--on-dark { color: #f4f6f2; }

.lrn-head--center { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.lrn-grid { display: grid; gap: 18px; }
.lrn-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lrn-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* -------------------------------------------------------------- hero -- */
.lrn-hero { padding: 88px 32px 56px; text-align: center; }
.lrn-hero__inner { max-width: 780px; margin: 0 auto; }
.lrn-hero__title {
  margin: 0; font-size: 60px; line-height: 1.04; letter-spacing: -.04em;
  font-weight: 700; color: var(--ink);
}
.lrn-hero__lede {
  max-width: 560px; margin: 22px auto 0; font-size: 19px; line-height: 1.55; color: #565a4f;
}
.lrn-search {
  display: flex; align-items: center; gap: 10px; max-width: 480px; margin: 30px auto 0;
  background: #fff; border: 1px solid rgba(20,22,15,.12); border-radius: 12px;
  padding: 13px 16px; box-shadow: 0 14px 30px -22px rgba(18,40,28,.4);
}
.lrn-search svg { flex: none; }
.lrn-search__input {
  border: none; outline: none; flex: 1; font-family: inherit; font-size: 15px;
  color: var(--ink); background: transparent;
}

/* ---------------------------------------------------- getting started -- */
.lrn-start { padding: 20px 32px 84px; }
.lrn-start .lrn-eyebrow { margin-bottom: 26px; }
.lrn-step {
  text-decoration: none; color: inherit; display: block;
  background: #fff; border: 1px solid rgba(20,22,15,.09); border-radius: 16px; padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.lrn-step:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(18,40,28,.35); }
.lrn-step__num  { font-size: 13px; color: #00a15a; font-weight: 500; }
.lrn-step__title { font-size: 20px; font-weight: 700; margin-top: 12px; }
.lrn-step__desc { font-size: 14.5px; color: #6b6f63; margin-top: 8px; line-height: 1.5; }
.lrn-step__more { font-size: 14px; font-weight: 600; color: #05a558; margin-top: 18px; }

/* --------------------------------------------------------- documentation -- */
.lrn-docs { padding: 88px 32px; background: #e6ebf1; }
.lrn-doc {
  text-decoration: none; color: inherit; display: block;
  background: #fff; border: 1px solid rgba(20,22,15,.09); border-radius: 14px; padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.lrn-doc:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(18,40,28,.35); }
.lrn-doc__title { font-size: 16px; font-weight: 700; margin-top: 14px; }
.lrn-doc__desc  { font-size: 13.5px; color: #6b6f63; margin-top: 5px; line-height: 1.45; }

/* ------------------------------------------------------------- tutorials -- */
.lrn-tut { padding: 88px 32px; background: var(--foot-bg); color: #e8ebe6; }
.lrn-tut__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-bottom: 40px; flex-wrap: wrap;
}
.lrn-tut__lede { max-width: 340px; font-size: 16px; line-height: 1.55; color: #9aa39c; margin: 0; }

/* featured tutorial */
.lrn-feat {
  display: flex; gap: 28px; background: #171a17; border: 1px solid #232823;
  border-radius: 18px; overflow: hidden; margin-bottom: 22px;
}
.lrn-feat__media {
  position: relative; width: 56%; aspect-ratio: 16 / 9; flex: none;
  background: linear-gradient(135deg, #1c3550, #3f5a3e);
}
.lrn-feat__body {
  padding: 32px 34px 32px 6px; display: flex; flex-direction: column; justify-content: center;
}
.lrn-feat__kicker { font-size: 12px; color: var(--accent); margin-bottom: 10px; letter-spacing: .04em; }
.lrn-feat__title { font-size: 26px; font-weight: 700; color: #f4f6f2; line-height: 1.2; }
.lrn-feat__desc  { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: #9aa39c; }

/* the round play button, centred over any media box */
.lrn-playwrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lrn-play {
  width: 66px; height: 66px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0,214,119,.6);
}
.lrn-play__tri {
  width: 0; height: 0; margin-left: 5px;
  border-left: 20px solid #05130c; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.lrn-play--sm { width: 48px; height: 48px; background: rgba(0,214,119,.92); box-shadow: none; }
.lrn-play--sm .lrn-play__tri {
  margin-left: 4px;
  border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px;
}

.lrn-dur {
  position: absolute; bottom: 14px; right: 14px; font-size: 12px;
  background: rgba(0,0,0,.55); color: #fff; padding: 4px 9px; border-radius: 6px;
}
.lrn-dur--sm { bottom: 10px; right: 10px; font-size: 11px; padding: 3px 8px; border-radius: 5px; }
.lrn-badge {
  position: absolute; top: 14px; left: 14px; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; background: var(--accent); color: #05130c;
  padding: 5px 11px; border-radius: 100px;
}

/* tutorial cards */
.lrn-vid {
  text-decoration: none; color: inherit; display: block;
  background: #171a17; border: 1px solid #232823; border-radius: 16px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.lrn-vid:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(0,0,0,.5); }
.lrn-vid__media { position: relative; aspect-ratio: 16 / 9; }
.lrn-vid__media--a { background: linear-gradient(135deg, #22321f, #12211a); }
.lrn-vid__media--b { background: linear-gradient(135deg, #2f2440, #141a2b); }
.lrn-vid__media--c { background: linear-gradient(135deg, #3a2a1c, #1c1512); }
.lrn-vid__body { padding: 16px 18px; }
.lrn-vid__cat {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.lrn-vid__title { font-size: 16px; font-weight: 700; color: #f4f6f2; margin-top: 6px; line-height: 1.3; }

/* ------------------------------------------------------------- cta band -- */
.lrn-cta { padding: 84px 32px 100px; }
.lrn-cta__band {
  max-width: 1180px; margin: 0 auto; background: linear-gradient(120deg, #0f1210, #14201a);
  border-radius: 22px; padding: 60px; text-align: center; position: relative; overflow: hidden;
}
.lrn-cta__glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -220px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,214,119,.2), transparent 62%);
}
.lrn-cta__inner { position: relative; z-index: 2; }
.lrn-cta__title {
  margin: 0 0 14px; font-size: 38px; line-height: 1.08; letter-spacing: -.03em;
  font-weight: 700; color: #f4f6f2;
}
.lrn-cta__lede { margin: 0 auto 28px; max-width: 520px; font-size: 17px; line-height: 1.55; color: #9aa39c; }
.lrn-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lrn-btn { text-decoration: none; font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 12px; }
.lrn-btn--accent { background: var(--accent); color: #05130c; }
.lrn-btn--ghost {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #e8ebe6; font-weight: 600;
}

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 860px) {
  .lrn-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .lrn-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .lrn-feat { flex-direction: column; }
  .lrn-feat__media { width: 100%; }
  .lrn-feat__body { padding: 0 28px 28px; }
}
@media (max-width: 640px) {
  .learnpage section { padding-left: 20px; padding-right: 20px; }
  .lrn-hero__title { font-size: 42px; }
  .lrn-h2 { font-size: 28px; }
  .lrn-grid--3, .lrn-grid--4 { grid-template-columns: 1fr; }
}
