.learn-screen {
  --learn-blue: #17a8ff;
  --learn-lime: #bfff09;
  --learn-purple: #b52cff;
  --learn-panel: rgba(7, 18, 36, 0.9);
  --learn-line: rgba(91, 127, 207, 0.28);
  color: var(--ink);
}

.learn-hero {
  display: grid;
  grid-template-columns: 420px minmax(680px, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 18px;
}

.learn-hero h1 {
  margin: -32px 0 6px 58px;
  font-size: 34px;
}

.learn-hero p:not(.learn-hero__mark) {
  margin-left: 58px;
  color: #eef3ff;
  font-size: 17px;
}

.learn-hero__mark {
  margin: 0;
  width: 46px;
  color: var(--learn-purple);
  font-size: 37px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(181, 44, 255, 0.8);
}

.learn-context {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 16px 18px;
}

.learn-context label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.learn-context label span {
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.learn-context select {
  width: 100%;
  min-height: 30px;
  color: #bfcce2;
  border: 0;
  background: transparent;
  font-weight: 750;
}

.learn-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--learn-lime);
  background: rgba(75, 255, 74, 0.1);
  font-weight: 900;
}

.learn-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--learn-lime);
}

.learn-grid {
  display: grid;
  grid-template-columns: minmax(820px, 1fr) 315px;
  gap: 24px;
  align-items: start;
}

.learn-main,
.learn-side {
  display: grid;
  gap: 18px;
}

.learn-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) 250px;
  min-height: 132px;
  overflow: hidden;
}

.learn-kpis article {
  position: relative;
  min-width: 0;
  padding: 24px 26px 16px 74px;
  border-right: 1px solid rgba(91, 127, 207, 0.18);
}

.learn-kpis article:nth-child(1) {
  padding-top: 32px;
}

.learn-kpis article:last-child {
  border-right: 0;
}

.learn-kpis small,
.learn-kpis strong,
.learn-kpis b,
.learn-kpis em {
  display: block;
}

.learn-kpis small {
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.learn-kpis strong {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1;
}

.learn-kpis b {
  margin-top: 8px;
  color: white;
  font-size: 14px;
}

.learn-kpis em {
  margin-top: 3px;
  color: var(--learn-lime);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.learn-kpi__icon {
  position: absolute;
  left: 24px;
  top: 46px;
  color: var(--learn-blue);
  font-size: 24px;
  font-weight: 950;
}

.learn-kpi__icon--shield,
.learn-kpi__icon--blue {
  color: #19bdff;
}

.learn-kpi__icon--purple {
  color: #8f70ff;
}

.learn-winner-callout {
  align-self: center;
  justify-self: stretch;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  min-height: 96px;
  margin: 16px 14px 16px 18px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 192, 0, 0.7);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.2), rgba(55, 27, 7, 0.58));
  box-shadow: 0 0 30px rgba(255, 191, 0, 0.3);
}

.learn-winner-callout span {
  color: #ffc400;
  font-size: 38px;
  line-height: 1;
}

.learn-winner-callout strong {
  margin: 0;
  color: #fff8c6;
  font-size: 16px;
  line-height: 1.35;
}

.learn-compare {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 40px minmax(280px, 1.1fr) 292px;
  gap: 20px;
  align-items: stretch;
}

.version-card {
  min-height: 338px;
  padding: 22px;
}

.version-card header,
.version-card header > div,
.version-card dl,
.learn-why h2,
.next-move h2 {
  display: flex;
  align-items: center;
}

.version-card header {
  justify-content: space-between;
  margin-bottom: 18px;
}

.version-card header > div {
  gap: 12px;
}

.version-card h2,
.learn-why h2,
.timeline-card h2,
.flow-card h2,
.next-move h2,
.ideas-card h2 {
  margin: 0;
  font-size: 18px;
}

.version-card p {
  margin: 2px 0 0;
  color: #dbe5f4;
  font-size: 14px;
  font-weight: 750;
}

.version-card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #8eabff;
  border: 2px solid currentColor;
  border-radius: 10px;
  font-weight: 950;
}

.version-card__tag {
  padding: 8px 12px;
  border-radius: 8px;
  color: white;
  background: rgba(52, 142, 113, 0.42);
  font-size: 12px;
  font-weight: 900;
}

.version-card--winner {
  border-color: rgba(181, 44, 255, 0.9);
  box-shadow: 0 0 38px rgba(181, 44, 255, 0.42);
}

.version-card--winner .version-card__icon {
  color: #ffc15b;
  border-color: transparent;
  font-size: 32px;
}

.version-card__tag--winner {
  color: #06101f;
  text-transform: uppercase;
  background: var(--learn-lime);
  box-shadow: 0 0 22px rgba(191, 255, 9, 0.46);
}

.landing-preview {
  position: relative;
  min-height: 164px;
  margin: 0 0 18px;
  padding: 24px 18px;
  overflow: hidden;
  border-radius: 8px;
  color: #0d1320;
  background:
    radial-gradient(circle at 74% 57%, rgba(105, 167, 46, 0.36) 0 20px, transparent 21px),
    radial-gradient(circle at 83% 43%, rgba(74, 118, 38, 0.3) 0 31px, transparent 32px),
    linear-gradient(90deg, #f8fbff 0 58%, #e8eef6 100%);
}

.landing-preview::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 10px;
  width: 92px;
  height: 118px;
  border-radius: 40% 40% 10px 10px;
  background:
    linear-gradient(180deg, #231712 0 18%, #61402a 18% 30%, #f1f4f5 30% 100%);
  box-shadow: -44px 28px 0 -16px #f4f7f8, -66px 43px 0 -22px #dfe5e8;
}

.landing-preview figcaption {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: #33442a;
  font-size: 8px;
  font-weight: 850;
}

.landing-preview h3 {
  position: relative;
  z-index: 1;
  max-width: 210px;
  margin-bottom: 16px;
  color: #111722;
  font-size: 18px;
  line-height: 1.08;
}

.landing-preview h3 em {
  color: #499318;
  font-style: normal;
}

.landing-preview span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 16px;
  border-radius: 4px;
  color: white;
  background: #4d9428;
  font-size: 10px;
  font-weight: 900;
}

.version-card dl {
  justify-content: space-between;
  margin: 0 0 8px;
}

.version-card dt {
  color: white;
  font-size: 14px;
}

.version-card dd {
  margin: 0;
  color: white;
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
}

.version-card dl div:last-child {
  text-align: right;
}

.version-card dl div:last-child dd {
  color: var(--learn-lime);
  font-size: 21px;
}

.version-card dl small {
  color: white;
  font-size: 12px;
}

.meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(87, 115, 177, 0.35);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9a74ff, #c59aff);
  box-shadow: 0 0 14px rgba(154, 116, 255, 0.7);
}

.meter--winner span {
  background: linear-gradient(90deg, #8c44ff, #eb1fff);
  box-shadow: 0 0 18px rgba(235, 31, 255, 0.72);
}

.compare-arrow {
  align-self: center;
  color: #aa98ff;
  font-size: 64px;
  font-weight: 300;
  text-shadow: 0 0 20px rgba(170, 152, 255, 0.8);
}

.learn-why {
  min-height: 338px;
  padding: 22px;
}

.learn-why h2::before,
.ideas-card h2::before {
  content: "✣";
  margin-right: 8px;
  color: #16ff85;
}

.win-list,
.factor-list,
.ideas-card ul,
.flow-card ol {
  padding: 0;
  list-style: none;
}

.win-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 18px;
}

.win-list li {
  color: white;
  font-size: 14px;
}

.win-list li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--learn-lime);
  font-weight: 950;
}

.win-list strong {
  color: var(--learn-lime);
}

.factor-list {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
}

.factor-list li {
  display: flex;
  justify-content: space-between;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 7px;
  color: #ced8e9;
  font-size: 12px;
  background: rgba(13, 26, 51, 0.72);
}

.factor-list li:first-child {
  color: white;
  background: linear-gradient(90deg, rgba(126, 49, 255, 0.7), rgba(56, 24, 113, 0.72));
}

.factor-list strong {
  color: var(--learn-lime);
}

.learn-why .ghost-action,
.next-move .primary-action,
.next-move .secondary-action,
.next-move .ghost-action {
  width: 100%;
}

.learn-side {
  grid-template-rows: auto auto auto;
}

.next-move {
  min-height: 356px;
  padding: 28px 22px 22px;
}

.next-move h2 {
  gap: 12px;
  margin-bottom: 28px;
  font-size: 22px;
}

.next-move h2 span {
  color: #956eff;
  font-size: 34px;
}

.next-move p {
  margin-bottom: 24px;
  color: #edf3ff;
  font-size: 16px;
  line-height: 1.5;
}

.next-move button {
  margin-top: 12px;
}

.next-move .primary-action {
  min-height: 64px;
  font-size: 20px;
}

.ideas-card,
.learn-note {
  padding: 20px;
}

.ideas-card h2 {
  margin-bottom: 16px;
}

.ideas-card ul {
  display: grid;
  gap: 11px;
  margin: 0 0 16px;
}

.ideas-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(91, 127, 207, 0.24);
  border-radius: 8px;
  background: rgba(13, 28, 55, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.ideas-card li:first-child {
  border-color: rgba(191, 255, 9, 0.74);
}

.ideas-card li strong {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: var(--learn-lime);
  font-size: 10px;
  line-height: 1;
}

.ideas-card li:not(:first-child) strong {
  color: #ffdf00;
}

.ideas-card button {
  display: block;
  margin: 0 auto;
  color: var(--learn-blue);
  border: 0;
  background: transparent;
  font-weight: 850;
}

.learn-note {
  border-color: rgba(255, 176, 0, 0.42);
  background: rgba(32, 21, 5, 0.72);
}

.learn-note strong {
  color: #ffd56a;
}

.learn-note p {
  margin: 8px 0 0;
  color: #ffe8aa;
  font-size: 12px;
}

.learn-lower {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 405px;
  gap: 18px;
}

.timeline-card,
.flow-card {
  min-height: 146px;
  padding: 18px 22px;
}

.timeline-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.timeline-card h2 span {
  color: #b5c2d9;
  font-size: 14px;
  font-weight: 600;
}

.timeline-card p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: #e6ecf8;
  font-size: 12px;
}

.timeline-card p span,
.timeline-card p b {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #6795ff;
}

.timeline-card p b {
  background: var(--learn-purple);
}

.chart {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.chart__grid {
  position: absolute;
  inset: 4px 0 18px;
  background:
    linear-gradient(rgba(91, 127, 207, 0.13) 1px, transparent 1px) 0 0 / 100% 18px,
    linear-gradient(90deg, rgba(91, 127, 207, 0.12) 1px, transparent 1px) 0 0 / 20% 100%;
}

.chart__line {
  position: absolute;
  left: 12px;
  right: 28px;
  height: 3px;
  border-radius: 999px;
  transform-origin: left center;
}

.chart__line--control {
  bottom: 28px;
  background: linear-gradient(90deg, #6a80ff, #75b3ff);
  clip-path: polygon(0 74%, 22% 62%, 40% 58%, 61% 40%, 83% 30%, 100% 20%, 100% 44%, 83% 54%, 61% 64%, 40% 82%, 22% 86%, 0 98%);
}

.chart__line--winner {
  bottom: 31px;
  background: linear-gradient(90deg, #8f4dff, #dd29ff);
  clip-path: polygon(0 82%, 22% 66%, 44% 48%, 63% 28%, 82% 18%, 100% 10%, 100% 34%, 82% 42%, 63% 52%, 44% 72%, 22% 90%, 0 100%);
  box-shadow: 0 0 18px rgba(221, 41, 255, 0.62);
}

.chart__point {
  position: absolute;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 7px;
  color: white;
  background: rgba(20, 35, 64, 0.96);
  font-size: 11px;
  font-weight: 900;
}

.chart__point--start {
  left: 44px;
  top: 8px;
}

.chart__point--win {
  right: 12px;
  top: 0;
  color: var(--learn-lime);
  background: rgba(38, 80, 28, 0.92);
}

.chart small {
  position: absolute;
  bottom: 0;
  color: #8492aa;
  font-size: 11px;
}

.chart small:nth-of-type(1) { left: 0; }
.chart small:nth-of-type(2) { left: 24%; }
.chart small:nth-of-type(3) { left: 45%; }
.chart small:nth-of-type(4) { left: 69%; }
.chart small:nth-of-type(5) { right: 0; }

.flow-card {
  align-self: end;
}

.flow-card h2 {
  margin-bottom: 14px;
}

.flow-card ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 0;
}

.flow-card li {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 8px;
  background: rgba(28, 46, 89, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.flow-card li:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -10px;
  color: #6e88c7;
  font-size: 24px;
}

.flow-card li:last-child {
  background: linear-gradient(135deg, #6238ff, #b829ff);
  box-shadow: 0 0 22px rgba(181, 44, 255, 0.46);
}

.flow-card span {
  position: absolute;
  bottom: -22px;
  min-width: 52px;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--learn-lime);
  background: rgba(58, 116, 0, 0.55);
  font-size: 11px;
}

@media (max-width: 1279px) {
  .learn-hero,
  .learn-grid,
  .learn-lower {
    grid-template-columns: 1fr;
  }

  .learn-hero {
    align-items: start;
    gap: 16px;
  }

  .learn-hero h1,
  .learn-hero p:not(.learn-hero__mark) {
    margin-left: 58px;
  }

  .learn-context {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .learn-context label,
  .learn-context select,
  .learn-kpis article,
  .version-card,
  .learn-why,
  .timeline-card,
  .flow-card,
  .next-move,
  .ideas-card,
  .learn-note {
    min-width: 0;
  }

  .learn-status,
  .learn-context .secondary-action {
    width: 100%;
    justify-content: center;
  }

  .learn-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .learn-kpis article {
    border-bottom: 1px solid rgba(91, 127, 207, 0.18);
  }

  .learn-winner-callout {
    grid-column: 1 / -1;
  }

  .learn-compare {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  }

  .learn-why {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .learn-side {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .next-move {
    grid-row: span 2;
  }
}

@media (max-width: 720px) {
  .learn-hero h1 {
    margin: -30px 0 6px 46px;
    font-size: 28px;
  }

  .learn-hero p:not(.learn-hero__mark) {
    margin-left: 46px;
    font-size: 15px;
  }

  .learn-hero__mark {
    width: 38px;
    font-size: 31px;
  }

  .learn-context,
  .learn-kpis,
  .learn-compare,
  .learn-side {
    grid-template-columns: 1fr;
  }

  .learn-context {
    padding: 14px;
  }

  .learn-context select,
  .learn-status,
  .learn-context .secondary-action {
    min-height: 44px;
  }

  .learn-kpis article {
    min-height: 116px;
    padding: 22px 18px 16px 64px;
    border-right: 0;
  }

  .learn-kpi__icon {
    left: 22px;
    top: 40px;
  }

  .learn-winner-callout {
    grid-template-columns: 42px minmax(0, 1fr);
    margin: 0;
  }

  .learn-winner-callout span {
    font-size: 30px;
  }

  .compare-arrow {
    justify-self: center;
    transform: rotate(90deg);
    font-size: 44px;
  }

  .version-card,
  .learn-why,
  .next-move,
  .ideas-card,
  .learn-note,
  .timeline-card,
  .flow-card {
    min-height: 0;
    padding: 18px;
  }

  .landing-preview h3 {
    max-width: 190px;
    font-size: 17px;
  }

  .factor-list li,
  .ideas-card li {
    align-items: flex-start;
    min-width: 0;
    flex-wrap: wrap;
  }

  .timeline-card header {
    display: grid;
    gap: 8px;
  }

  .chart {
    height: 104px;
    overflow-x: auto;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
  }

  .chart__grid,
  .chart__line {
    left: 0;
    right: auto;
    width: 420px;
    min-width: 420px;
  }

  .chart small:nth-of-type(1) { left: 0; }
  .chart small:nth-of-type(2) { left: 102px; }
  .chart small:nth-of-type(3) { left: 190px; }
  .chart small:nth-of-type(4) { left: 288px; }
  .chart small:nth-of-type(5) { left: 374px; right: auto; }

  .chart__point--start {
    left: 18px;
  }

  .chart__point--win {
    right: auto;
    left: 282px;
  }

  .flow-card ol {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .flow-card li {
    min-height: 44px;
  }

  .flow-card li:not(:last-child)::after {
    right: auto;
    bottom: -27px;
    transform: rotate(90deg);
  }

  .flow-card span {
    position: static;
    margin-top: 4px;
  }

  .next-move .primary-action,
  .next-move .secondary-action,
  .next-move .ghost-action,
  .learn-why .ghost-action,
  .ideas-card button {
    min-height: 44px;
  }
}
