.learn-home-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.learn-home-today-card,
.learn-home-spotlight {
  position: relative;
  min-width: 0;
  min-height: 286px;
  overflow: hidden;
  border: 1px solid rgba(76, 48, 28, 0.1);
  border-radius: calc(var(--radius) + 4px);
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(91, 53, 27, 0.08);
}

.learn-home-today-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 30px 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 125, 45, 0.12), transparent 38%),
    #ffffff;
}

.learn-home-today-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -72px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(222, 91, 20, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(255, 126, 45, 0.035),
    0 0 0 52px rgba(255, 126, 45, 0.025);
  pointer-events: none;
}

.learn-home-today-heading,
.learn-home-today-meta,
.learn-home-today-actions {
  position: relative;
  z-index: 1;
}

.learn-home-today-heading {
  display: grid;
  gap: 7px;
  max-width: 700px;
}

.learn-home-today-label,
.learn-home-spotlight-eyebrow {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.075em;
}

.learn-home-today-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.learn-home-today-course {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.4;
}

.learn-home-today-heading p,
.learn-home-today-access-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.learn-home-today-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.learn-home-today-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(76, 48, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.learn-home-today-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.learn-home-today-actions .button {
  flex: 0 0 auto;
  min-height: 46px;
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(222, 91, 20, 0.2);
}

.learn-home-today-actions .button:hover,
.learn-home-today-actions .button:focus-visible {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.learn-home-today-actions .button:active {
  transform: translateY(1px) scale(0.99);
}

.learn-home-today-actions [data-home-install-button][hidden] {
  display: none;
}

.learn-home-today-access-note {
  max-width: 36ch;
  font-size: 0.78rem;
}

.learn-home-spotlight {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.92), transparent 35%),
    #fff7f0;
}

.learn-home-spotlight-stage {
  position: relative;
  display: grid;
  min-height: 228px;
}

.learn-home-spotlight-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 24px 24px 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    visibility 260ms ease;
}

.learn-home-spotlight-slide[hidden] {
  display: none;
}

.learn-home-spotlight-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.learn-home-spotlight-visual {
  width: 142px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px 16px 5px 16px;
  background: #f2e6da;
  box-shadow: 0 18px 34px rgba(95, 58, 31, 0.13);
}

.learn-home-spotlight-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.learn-home-spotlight-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.learn-home-spotlight-copy strong {
  color: var(--ink);
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.learn-home-spotlight-copy p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.learn-home-spotlight-copy .button {
  width: fit-content;
  min-height: 38px;
  margin-top: 3px;
  padding: 0 14px;
  background: #ffffff;
}

.learn-home-referral-mark {
  width: 142px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px solid rgba(222, 91, 20, 0.18);
  border-radius: 50% 50% 18% 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.98), transparent 26%),
    #ffe8d7;
  color: var(--primary-dark);
  box-shadow: 0 18px 38px rgba(122, 65, 27, 0.12);
}

.learn-home-referral-mark span {
  font-size: 2.35rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}

.learn-home-referral-mark small {
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 760;
}

.learn-home-install-mark {
  width: 142px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(222, 91, 20, 0.18);
  border-radius: 24% 50% 50% 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.98), transparent 28%),
    #ffe8d7;
  color: var(--primary-dark);
  box-shadow: 0 18px 38px rgba(122, 65, 27, 0.12);
}

.learn-home-install-mark svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.learn-home-install-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 246, 236, 0.26), transparent 36%),
    rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(10px) saturate(116%);
}

.learn-home-install-backdrop[hidden] {
  display: none;
}

.learn-home-install-dialog {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 226, 203, 0.78);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 231, 211, 0.95), transparent 26%),
    linear-gradient(145deg, #fffefb 0%, #fff7ef 100%);
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.32);
  outline: none;
  text-align: left;
}

.learn-home-install-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 236, 220, 0.88);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 860;
  letter-spacing: 0.08em;
}

.learn-home-install-hero {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(222, 91, 20, 0.16);
  border-radius: 26px;
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 18px 42px rgba(222, 91, 20, 0.15);
}

.learn-home-install-hero svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.learn-home-install-dialog h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.85rem, 4.6vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.learn-home-install-lead,
.learn-home-install-mode,
.learn-home-install-footer {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.learn-home-install-mode {
  margin-top: 12px;
  color: var(--ink-soft);
  font-weight: 720;
}

.learn-home-install-dialog ol {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.learn-home-install-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
  margin-top: 24px;
}

.learn-home-install-actions .button {
  min-height: 50px;
  padding: 10px 16px;
  font-size: 0.94rem;
}

.learn-home-install-actions .button[disabled] {
  cursor: default;
  opacity: 0.66;
}

.learn-home-install-footer {
  margin-top: 16px;
  font-size: 0.78rem;
}

.learn-home-spotlight-controls {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px 12px 20px;
}

.learn-home-spotlight-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.learn-home-spotlight-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(76, 48, 28, 0.2);
  cursor: pointer;
  transition: width 220ms ease, border-radius 220ms ease, background-color 220ms ease;
}

.learn-home-spotlight-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--primary);
}

.learn-home-spotlight-dot:focus-visible,
.learn-home-spotlight-nav:focus-visible {
  outline: 3px solid rgba(222, 91, 20, 0.24);
  outline-offset: 3px;
}

.learn-home-spotlight-navs {
  display: flex;
  gap: 6px;
}

.learn-home-spotlight-nav {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(76, 48, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.learn-home-spotlight-nav:hover {
  border-color: rgba(222, 91, 20, 0.32);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.learn-home-spotlight-nav:active {
  transform: translateY(1px);
}

@media (max-width: 1040px) {
  .learn-home-focus-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }

  .learn-home-today-card {
    padding: 26px;
  }

  .learn-home-spotlight-slide {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 20px 16px;
  }

  .learn-home-spotlight-visual,
  .learn-home-referral-mark,
  .learn-home-install-mark {
    width: 112px;
  }
}

@media (max-width: 820px) {
  .learn-home-focus-grid {
    grid-template-columns: 1fr;
  }

  .learn-home-today-card,
  .learn-home-spotlight {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .learn-home-focus-grid {
    gap: 10px;
  }

  .learn-home-today-card {
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: none;
  }

  .learn-home-today-heading h2 {
    font-size: 1.55rem;
  }

  .learn-home-today-course {
    font-size: 0.98rem;
  }

  .learn-home-today-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .learn-home-today-actions .button {
    width: 100%;
    min-height: 48px;
  }

  .learn-home-today-access-note {
    max-width: none;
  }

  .learn-home-spotlight {
    border-radius: var(--radius);
    box-shadow: none;
  }

  .learn-home-spotlight-stage {
    min-height: 214px;
  }

  .learn-home-spotlight-slide {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 13px;
    padding: 18px 16px 12px;
  }

  .learn-home-spotlight-visual,
  .learn-home-referral-mark,
  .learn-home-install-mark {
    width: 88px;
    border-radius: 12px 12px 4px 12px;
  }

  .learn-home-referral-mark {
    border-radius: 50% 50% 18% 50%;
  }

  .learn-home-install-mark {
    border-radius: 18% 50% 50% 50%;
  }

  .learn-home-install-mark svg {
    width: 36px;
    height: 36px;
  }

  .learn-home-referral-mark span {
    font-size: 1.75rem;
  }

  .learn-home-spotlight-copy {
    gap: 5px;
  }

  .learn-home-spotlight-copy strong {
    font-size: 1rem;
  }

  .learn-home-spotlight-copy p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .learn-home-spotlight-copy .button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .learn-home-spotlight-controls {
    min-height: 46px;
    padding: 6px 12px 10px 16px;
  }

  .learn-home-install-dialog {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learn-home-spotlight-slide,
  .learn-home-spotlight-dot,
  .learn-home-spotlight-nav,
  .learn-home-today-actions .button {
    transition: none;
  }
}
