@import url("assets/fonts.css");

:root {
  color-scheme: light;
  --ink: #111c39;
  --muted: #485570;
  --blue: #103ab6;
  --blue-dark: #102759;
  --line: #dce3ef;
  --pale: #f2f5fc;
  --lime: #e1fc7c;
  --body: "Rethink Sans", system-ui, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.6 var(--body);
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  font: inherit;
}
:focus-visible {
  outline: 3px solid #376cf4;
  outline-offset: 4px;
}
.hero :focus-visible,
.join :focus-visible {
  outline-color: var(--lime);
}
.wrap {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 7px 12px;
  transform: translateY(-160%);
  background: #fff;
}
.skip:focus {
  transform: none;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 75px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 7px;
  background: var(--blue);
}
.mark::before {
  content: "";
  width: 23px;
  height: 23px;
  background: var(--lime);
  clip-path: polygon(
    49% 0,
    65% 34%,
    100% 50%,
    65% 66%,
    50% 100%,
    34% 66%,
    0 50%,
    34% 34%
  );
}
nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}
nav a:hover,
.text-link:hover,
.hero-link:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  min-height: 45px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}
.button-header {
  background: var(--blue);
  color: white;
}
.button-header:hover {
  background: #092a93;
}
.button-primary {
  min-height: 68px;
  width: min(100%, 365px);
  padding-inline: 12px;
  font-size: 18px;
  background: var(--lime);
  color: #192a05;
}
.button-primary .plane {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
}
.button-primary:hover {
  background: #f1ffa9;
}
.plane {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background: currentColor;
  clip-path: polygon(
    0 42%,
    100% 0,
    79% 100%,
    52% 72%,
    39% 88%,
    38% 65%,
    79% 23%,
    29% 61%
  );
}
.hero {
  background: var(--blue);
  color: white;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 36px;
  min-height: 505px;
  padding-block: 47px;
}
.hero-copy {
  min-width: 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.105em;
}
.hero .eyebrow {
  color: #e1ecff;
}
h1 {
  margin-block: 13px 18px;
  font-size: clamp(58px, 6.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.041em;
  font-weight: 740;
}
h1 span {
  color: #c9dcff;
}
.lead {
  max-width: 460px;
  color: #f0f4ff;
  font-size: 19px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 17px;
  margin-top: 25px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  color: #f5f8ff;
  font-size: 14px;
  font-weight: 750;
}
.hero-image {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #748fe1;
  border-radius: 12px;
  background: #0b2158;
}
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.46;
  object-fit: cover;
}
.lessons {
  padding-block: 39px 48px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 17px;
}
h2 {
  font-size: clamp(32px, 4.1vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.lesson-grid article {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.lesson-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 5px;
  background: #e7eeff;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}
article h3 {
  margin-bottom: 4px;
  font-size: 22px;
  letter-spacing: -0.035em;
}
article p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 15px;
}
.text-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
article .text-link {
  margin-top: auto;
}
.practice {
  padding-block: 44px;
  background: var(--pale);
  border-block: 1px solid var(--line);
}
.practice-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 74px);
  align-items: center;
}
.practice .eyebrow {
  color: var(--blue);
}
.practice h2 {
  margin-block: 9px 12px;
}
.section-copy {
  max-width: 440px;
  margin-bottom: 16px;
  color: var(--muted);
}
.table-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
caption {
  padding: 10px 12px;
  text-align: left;
  background: var(--blue-dark);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
td,
th {
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  text-align: right;
}
th:first-child {
  text-align: left;
}
thead {
  color: var(--muted);
}
.quiz {
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
fieldset {
  min-width: 0;
  margin: 0 0 14px;
  padding: 0;
  border: none;
}
legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}
.quiz label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 8px;
  margin-bottom: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.quiz input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}
output:not(:empty) {
  display: block;
  margin-top: 12px;
  padding: 10px;
  border-left: 3px solid var(--blue);
  background: var(--pale);
  color: var(--ink);
  font-size: 14px;
}
.join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-block: 38px;
  border-radius: 9px;
  background: var(--blue-dark);
  color: white;
}
.join h2 {
  font-size: clamp(29px, 3.5vw, 43px);
}
.join p {
  margin-top: 7px;
  color: #e1e9fc;
}
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 19px 27px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer strong {
  color: var(--ink);
}
.footer-links {
  display: flex;
  align-items: start;
  gap: 15px;
  color: var(--blue);
  font-weight: 700;
}
dialog {
  max-width: min(430px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
dialog::backdrop {
  background: #091735bd;
}
dialog h2 {
  font-size: 30px;
}
dialog p {
  margin-block: 10px 17px;
  color: var(--muted);
}

@media (max-width: 1060px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .hero-layout {
    min-height: 0;
    gap: 24px;
  }
  h1 {
    font-size: clamp(48px, 7vw, 77px);
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header-row {
    min-height: 65px;
    gap: 8px;
  }
  .brand {
    font-size: 19px;
  }
  .mark {
    width: 29px;
    height: 29px;
  }
  .mark::before {
    width: 19px;
    height: 19px;
  }
  nav,
  .desktop-only {
    display: none;
  }
  .header-row .button {
    padding-inline: 10px;
    min-height: 44px;
  }
  .hero-layout,
  .practice-layout {
    grid-template-columns: 1fr;
  }
  .hero-layout {
    padding-block: 34px 24px;
    gap: 20px;
  }
  .hero-image img {
    aspect-ratio: 1.8;
  }
  h1 {
    font-size: clamp(49px, 11.1vw, 78px);
    margin-block: 10px 14px;
  }
  .lead {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 5px;
    margin-top: 18px;
  }
  .button-primary {
    width: min(100%, 380px);
  }
  .lesson-grid {
    grid-template-columns: 1fr;
  }
  .lessons,
  .practice {
    padding-block: 29px;
  }
  .join {
    flex-direction: column;
    align-items: start;
    gap: 14px;
    padding: 19px;
    margin-block: 25px;
  }
  .join .button-primary {
    align-self: center;
  }
  .quiz {
    padding: 15px;
  }
}
@media (max-width: 360px) {
  .button-primary {
    padding-inline: 11px;
  }
  .eyebrow {
    font-size: 10px;
  }
  h1 {
    font-size: 43px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
