:root {
  --page: #f4f7fc;
  --surface: #ffffff;
  --surface-soft: #edf4ff;
  --ink: #0f172a;
  --muted: #56667e;
  --line: #d9e2ef;
  --blue: #2457df;
  --blue-dark: #123476;
  --navy: #0f2454;
  --green: #0a8660;
  --orange: #f47b2a;
  --shadow: 0 18px 48px rgba(15, 36, 84, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(217, 226, 239, 0.9);
  background: rgba(244, 247, 252, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.footer-inner,
.hero-inner,
.legal-document {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a,
.back-link {
  color: #34435a;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--blue);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(620px, calc(100svh - 120px));
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eaf1fb;
}

.hero::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background: #dce8f8;
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 72px;
}

.hero-inner > * {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.legal-document h1 {
  margin: 0;
  color: var(--navy);
  font-size: 4.7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  margin: 26px 0 0;
  color: #2d3c54;
  font-size: 1.3rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(36, 87, 223, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #1948c5;
}

.button-secondary {
  border-color: #b9c8dc;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  color: #42516a;
  font-size: 0.9rem;
  font-weight: 750;
  list-style: none;
}

.hero-signals li::before {
  margin-right: 8px;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: max(24px, calc((100vw - 1120px) / 2));
  width: min(38vw, 460px);
  height: 440px;
  transform: translateY(-50%);
}

.hero-product {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-product-pencils {
  top: 0;
  right: 0;
}

.hero-product-folder {
  right: 150px;
  bottom: 0;
}

.section {
  padding-block: 88px;
}

.section-intro,
.section-company {
  background: var(--surface);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 2.55rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.contact-layout p,
.privacy-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.process-grid li {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.step-number {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
}

.process-grid h3,
.audience-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.3;
}

.process-grid p,
.audience-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.compact-heading {
  max-width: 680px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.audience-panel {
  min-width: 0;
  padding: 34px;
  border-top: 5px solid var(--blue);
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 36, 84, 0.07);
}

.audience-panel-teachers {
  border-top-color: var(--orange);
}

.audience-panel .panel-label {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audience-panel-teachers .panel-label {
  color: #b94e0d;
}

.section-privacy {
  background: var(--navy);
  color: #ffffff;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.section-privacy h2 {
  color: #ffffff;
}

.eyebrow-light {
  color: #91c7ff;
}

.privacy-copy p {
  margin: 0;
  color: #c9d7ed;
}

.privacy-copy p + p {
  margin-top: 20px;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 72px;
  align-items: start;
}

.company-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-facts div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.company-facts dt {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.company-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 720;
}

.section-contact {
  padding-block: 70px;
  background: #e6eef9;
}

.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.contact-layout h2 {
  font-size: 2.1rem;
}

.contact-layout p {
  max-width: 620px;
  margin-bottom: 0;
}

.contact-link {
  display: grid;
  min-width: 300px;
  padding: 20px 24px;
  border: 1px solid #b9c8dc;
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 850;
  text-decoration: none;
}

.contact-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-links {
  display: grid;
  min-width: 300px;
  gap: 12px;
}

.contact-links .contact-link {
  min-width: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 24px;
}

.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--navy);
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.footer-nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.legal-main {
  padding: 72px 0 90px;
}

.legal-document {
  max-width: 820px;
  padding: 54px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(15, 36, 84, 0.08);
}

.legal-document h1 {
  font-size: 3.3rem;
}

.legal-intro {
  margin: 18px 0 46px;
  color: var(--muted);
  font-size: 1.1rem;
}

.legal-notice {
  margin: 22px 0 28px;
  padding: 18px 20px;
  border: 1px solid #cbd9ec;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #435169;
}

.legal-notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.legal-notice p {
  margin: 0;
}

.legal-notice p + p {
  margin-top: 12px;
}

.legal-document section {
  padding-block: 26px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.35;
}

.legal-document p,
.legal-document address,
.legal-document li {
  margin: 0;
  color: #435169;
  font-style: normal;
}

.legal-document ol,
.legal-document ul {
  margin: 12px 0 0;
  padding-left: 24px;
}

.legal-document p + p {
  margin-top: 14px;
}

.legal-document a {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.legal-updated {
  margin-top: 32px !important;
  color: #7b8799 !important;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero::after {
    width: 34%;
  }

  .hero-visual {
    right: -80px;
    width: 330px;
    opacity: 0.42;
  }

  .hero-inner > * {
    max-width: 610px;
  }

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

  .step-number {
    margin-bottom: 16px;
  }

  .company-layout,
  .privacy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .contact-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-link {
    min-width: 0;
  }

  .contact-links {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-inner,
  .legal-document {
    width: min(1120px, calc(100% - 32px));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    display: none;
  }

  .back-link {
    font-size: 0.82rem;
  }

  .hero {
    min-height: min(640px, calc(100svh - 100px));
    align-items: flex-start;
  }

  .hero::after {
    top: auto;
    width: 100%;
    height: 210px;
  }

  .hero-inner {
    padding-block: 54px 220px;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 1.08rem;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .button {
    width: 100%;
  }

  .hero-signals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px 12px;
    margin-top: 22px;
    font-size: 0.82rem;
  }

  .hero-signals li {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: center;
    text-align: center;
  }

  .hero-signals li:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .hero-visual {
    top: auto;
    right: 16px;
    bottom: 12px;
    width: 280px;
    height: 190px;
    transform: none;
    opacity: 1;
  }

  .hero-product {
    width: 156px;
    height: 156px;
  }

  .hero-product-folder {
    right: 110px;
  }

  .section {
    padding-block: 64px;
  }

  .section-heading h2,
  .section h2 {
    font-size: 2rem;
  }

  .process-grid {
    margin-top: 34px;
  }

  .process-grid li,
  .audience-panel {
    padding: 24px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .company-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .company-layout > *,
  .company-facts,
  .company-facts div,
  .company-facts dt,
  .company-facts dd {
    min-width: 0;
  }

  .company-layout h2,
  .company-facts dd {
    overflow-wrap: anywhere;
  }

  .section-contact {
    padding-block: 56px;
  }

  .footer-inner {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px));
  }

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

  .footer-nav a {
    min-height: 44px;
  }

  .legal-main {
    padding: 30px 0 60px;
  }

  .legal-document {
    padding: 34px 24px;
  }

  .legal-document h1 {
    font-size: 2.45rem;
    overflow-wrap: anywhere;
  }

  .legal-notice {
    margin-top: 18px;
    padding: 16px 17px;
  }
}

@media (max-width: 350px), (max-height: 640px) {
  .hero {
    min-height: calc(100svh - 94px);
  }

  .hero::after,
  .hero-visual {
    display: none;
  }

  .hero-inner {
    padding-block: 30px 28px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .button {
    min-height: 44px;
    padding: 9px 14px;
  }

  .hero-signals {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
