:root {
  color-scheme: light;

  --page: #eef1f6;
  --surface: #ffffff;
  --surface-soft: #f8f9fd;
  --text: #172238;
  --muted: #5f6b80;
  --line: #e5e9f2;

  --primary: #3157d5;
  --primary-dark: #2445b6;
  --student: #17855b;
  --student-dark: #106b48;

  --success: #228b58;
  --radius-shell: 30px;
  --radius-card: 24px;

  font-family:
    "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 34px 20px;
  color: var(--text);
  background:
    radial-gradient(
      circle at 12% -10%,
      rgba(49, 87, 213, 0.1),
      transparent 34%
    ),
    radial-gradient(
      circle at 92% 108%,
      rgba(23, 133, 91, 0.07),
      transparent 32%
    ),
    var(--page);
}

button,
summary {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: #ffffff;
  background: var(--primary);
}

.page {
  width: 100%;
  max-width: 1030px;
}

.shell {
  position: relative;
  overflow: hidden;
  padding: 34px 40px 27px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-shell);
  box-shadow:
    0 30px 80px -38px rgba(23, 34, 56, 0.32),
    0 3px 8px -4px rgba(23, 34, 56, 0.08);
}

.shell::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(49, 87, 213, 0.2),
    transparent
  );
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.identity-mark {
  display: grid;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  color: var(--primary);
  background: linear-gradient(145deg, #f4f7ff, #edf2ff);
  border: 1px solid #e2e9ff;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px -14px rgba(49, 87, 213, 0.55);
  place-items: center;
}

.identity-mark svg {
  width: 33px;
  height: 33px;
}

.identity-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.identity-name {
  overflow: hidden;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.school-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  padding: 9px 13px;
  color: #43506a;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.2;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.school-dot {
  width: 7px;
  height: 7px;
  background: #2aa36a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(42, 163, 106, 0.1);
}

.hero {
  max-width: 650px;
  margin: 45px auto 38px;
  text-align: center;
}

.hero-icon {
  display: grid;
  width: 142px;
  height: 142px;
  margin: 0 auto 29px;
  color: var(--primary);
  background: linear-gradient(145deg, #f0f4ff, #e6edff);
  border: 1px solid #e4eaff;
  border-radius: 34px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 35px -28px rgba(49, 87, 213, 0.65);
  place-items: center;
}

.hero-icon img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 15px;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.lede {
  max-width: 565px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  text-wrap: balance;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent 45%),
    var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.download-card::before {
  position: absolute;
  top: -1px;
  right: 31px;
  left: 31px;
  height: 2px;
  content: "";
  border-radius: 0 0 2px 2px;
}

.download-card--teacher::before {
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.download-card--student::before {
  background: linear-gradient(90deg, transparent, var(--student), transparent);
}

.download-card:hover {
  border-color: #d9e0ee;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 35px -30px rgba(23, 34, 56, 0.4);
  transform: translateY(-2px);
}

.app-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: #68758c;
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1;
}

.meta-separator {
  width: 3px;
  height: 3px;
  background: #b8c1d1;
  border-radius: 50%;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin-top: auto;
  padding: 12px 18px;
  color: #ffffff;
  text-decoration: none;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.download-button:visited {
  color: #ffffff;
}

.download-button svg {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
}

.button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.button-label {
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.15;
}

.button-sub {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.7rem;
  font-weight: 550;
  line-height: 1.2;
}

.download-button--teacher {
  background: linear-gradient(135deg, #3760df, var(--primary-dark));
  box-shadow: 0 12px 24px -16px rgba(49, 87, 213, 0.9);
}

.download-button--teacher:hover {
  background: linear-gradient(135deg, #4269e7, #2747b8);
  box-shadow: 0 16px 28px -16px rgba(49, 87, 213, 0.95);
  transform: translateY(-1px);
}

.download-button--student {
  background: linear-gradient(135deg, #1b9466, var(--student-dark));
  box-shadow: 0 12px 24px -16px rgba(23, 133, 91, 0.8);
}

.download-button--student:hover {
  background: linear-gradient(135deg, #20a371, #0d6241);
  box-shadow: 0 16px 28px -16px rgba(23, 133, 91, 0.85);
  transform: translateY(-1px);
}

.download-button:active {
  transform: translateY(1px);
}

.download-button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.32);
  outline-offset: 3px;
}

.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 25px;
  padding: 17px 19px;
  background: #f7fbf8;
  border: 1px solid #e0f0e6;
  border-radius: 16px;
}

.trust-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: var(--success);
  background: #e8f7ee;
  border-radius: 50%;
  place-items: center;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-note strong {
  display: block;
  margin: 1px 0 3px;
  color: #1d6e47;
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.35;
}

.trust-note p {
  margin-bottom: 0;
  color: #607566;
  font-size: 0.82rem;
  line-height: 1.5;
}

.install-guide {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.install-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px 2px;
  color: #455269;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.install-guide summary::-webkit-details-marker {
  display: none;
}

.install-guide summary svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.install-guide[open] summary svg {
  transform: rotate(180deg);
}

.install-guide ol {
  margin: 12px 0 2px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.install-guide li + li {
  margin-top: 5px;
}

.footer {
  margin-top: 22px;
  padding-top: 21px;
  color: #7a8598;
  font-size: 0.79rem;
  line-height: 1.5;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer strong {
  color: #4b5870;
  font-weight: 650;
}

@media (max-width: 760px) {
  body {
    padding: 18px 12px;
  }

  .shell {
    padding: 24px 20px 22px;
    border-radius: 25px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .identity-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .identity-mark svg {
    width: 28px;
    height: 28px;
  }

  .identity-name {
    font-size: 1.18rem;
  }

  .hero {
    margin: 36px auto 30px;
  }

  .hero-icon {
    width: 112px;
    height: 112px;
    margin-bottom: 23px;
    border-radius: 28px;
  }

  .hero-icon img {
    width: 100px;
    height: 100px;
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
  }

  .downloads {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: 21px;
  }

  .trust-note {
    margin-top: 18px;
  }
}

@media (max-width: 420px) {
  .shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .school-badge {
    font-size: 0.7rem;
  }

  .download-card {
    padding: 19px;
    border-radius: 20px;
  }

  .download-button {
    min-height: 59px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
