@font-face {
  font-family: Manrope;
  src: url("assets/home/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

body.public-home {
  --home-paper: #fbfaf6;
  --home-ink: #172957;
  --home-subtle: #46546a;
  --home-blue: #3153d6;
  --home-gutter: clamp(18px, 5vw, 74px);
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: Manrope, Arial, sans-serif;
}
.public-home > header { display: none; }
.public-home #app { max-width: none; padding: 0; }
.public-home :focus-visible { outline: 3px solid #4466dc; outline-offset: 5px; }
.home-shell { width: min(100% - var(--home-gutter) * 2, 1280px); margin-inline: auto; }
.home-topbar { background: #fff; border-bottom: 1px solid #e8e9e7; }
.home-topbar-inner { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.home-brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: 1.15rem; font-weight: 800; letter-spacing: .07em; }
.home-brand .skolink-mark { width: 41px; height: 41px; }
.home-menu { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: .95rem; font-weight: 750; white-space: nowrap; }
.home-menu a:hover, .home-menu summary:hover, .home-footer a:hover { color: var(--home-blue); }
.home-signin { justify-self: end; border: 1px solid #cbd2e2; border-radius: 8px; padding: 10px 20px; font-weight: 800; font-size: .94rem; white-space: nowrap; }
.home-signin:hover, .home-button-secondary:hover { background: #edf1fd; border-color: #9daee5; }

.home-hero { display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(30px, 4.6vw, 72px); align-items: center; padding-block: clamp(40px, 5.2vw, 78px); }
.home-kicker { color: #324da8; font-size: .88rem; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; margin: 0 0 20px; }
.home-hero h1 { font-size: clamp(3.2rem, 6.2vw, 6rem); line-height: .99; font-weight: 800; letter-spacing: -.074em; margin: 0; }
.home-hero h1 em { font-style: normal; color: var(--home-blue); display: block; }
.home-summary { font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.65; color: var(--home-subtle); max-width: 40ch; margin: 25px 0 29px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 50px; padding: 11px 20px; border-radius: 8px; border: 1px solid transparent; font-weight: 800; white-space: nowrap; }
.home-button svg { width: 19px; height: 19px; }
.home-button-primary { color: white; background: var(--home-blue); }
.home-button-primary:hover { background: #2543b8; }
.home-button-secondary { border-color: #cbd2e2; }
.home-hero-photo { width: 100%; height: auto; aspect-ratio: 1.18; object-fit: cover; object-position: 56% center; display: block; background: #dbd7cf; border-radius: 14px 14px 75px 14px; }

.home-feature-band { background: var(--home-ink); color: white; }
.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 26px; }
.home-feature { display: flex; gap: 15px; align-items: center; padding-inline: clamp(12px, 2.8vw, 40px); border-left: 1px solid #ffffff26; }
.home-feature:first-child { padding-left: 0; border-left: 0; }
.home-feature:last-child { padding-right: 0; }
.home-feature > span { width: 47px; height: 47px; border-radius: 9px; color: #f9d87d; background: #ffffff10; display: grid; place-items: center; flex: none; }
.home-feature h2 { font-size: 1rem; letter-spacing: -.015em; margin: 0 0 3px; font-weight: 800; }
.home-feature p { font-size: .9rem; margin: 0; color: #d6dff2; }

.home-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px; border-top: 1px solid #e1e5eb; }
.home-footer > div { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .875rem; font-weight: 700; }
.home-footer .skolink-mark { width: 32px; height: 32px; }
.auth-form .return-to-public { display: inline-block; margin-top: 12px; }

@media (max-width: 960px) {
  .home-feature { align-items: flex-start; gap: 10px; }
  .home-feature > span { width: 38px; height: 38px; }
  .home-feature > span svg { width: 20px; height: 20px; }
}
@media (max-width: 820px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: clamp(3.2rem, 10vw, 5rem); }
  .home-hero-photo { aspect-ratio: 1.6; border-bottom-right-radius: 44px; }
}
@media (max-width: 600px) {
  .home-kicker { margin-bottom: 14px; }
  .home-summary { margin-block: 19px 22px; }
  .home-button { padding-inline: 14px; font-size: .95rem; }
  .home-features { grid-template-columns: 1fr; }
  .home-features { padding-block: 11px; }
  .home-feature, .home-feature:first-child { border-left: 0; padding: 13px 0; align-items: center; }
  .home-feature + .home-feature { border-top: 1px solid #ffffff26; }
  .home-footer { flex-direction: column; align-items: flex-start; }
}

.home-topbar { position: sticky; top: 0; z-index: 2; }
.home-header-actions { display: flex; align-items: center; justify-self: end; gap: 10px; }
.home-topbar details { position: relative; }
.home-topbar summary { display: flex; align-items: center; gap: 5px; list-style: none; cursor: pointer; }
.home-topbar summary::-webkit-details-marker { display: none; }
.home-topbar summary svg { width: 18px; height: 18px; }
.home-menu-panel {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 13px) 0 auto auto;
  min-width: 220px;
  padding: 7px;
  background: white;
  border: 1px solid #dce1ee;
  border-radius: 11px;
  box-shadow: 0 12px 35px #17295716;
}
.home-menu-panel a { display: block; padding: 11px 12px; border-radius: 6px; font-size: .95rem; font-weight: 750; white-space: nowrap; }
.home-menu-panel a:hover { background: #eff3ff; color: var(--home-blue); }
.home-mobile-menu { display: none; }
.home-mobile-menu summary { min-height: 42px; padding: 7px 10px; border: 1px solid #cbd2e2; border-radius: 8px; font-size: .9rem; font-weight: 800; }

.home-section { padding-block: clamp(56px, 7vw, 100px); }
.home-section-heading { margin-bottom: clamp(24px, 3.6vw, 42px); }
.home-section-heading .home-kicker { margin-bottom: 10px; }
.home-section-heading h2, .home-product h2 { font-size: clamp(2rem, 4.3vw, 3.75rem); line-height: 1.06; letter-spacing: -.058em; font-weight: 800; margin: 0; }
.public-home section[id], .home-role[id] { scroll-margin-top: 100px; }
.home-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-tool { padding: clamp(18px, 2.1vw, 30px); border: 1px solid #e1e5ed; border-radius: 13px; background: white; }
.home-tool > span, .home-app-row > span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 9px; background: #eaf0ff; color: #3153c4; }
.home-tool:nth-child(3n + 2) > span { background: #e4f1ed; color: #176958; }
.home-tool:nth-child(3n) > span { background: #f9edd0; color: #735415; }
.home-tool h3 { margin: 16px 0 6px; font-size: 1.18rem; font-weight: 800; letter-spacing: -.028em; }
.home-tool p, .home-product-copy > p:not(.home-kicker), .home-role-copy > p:not(.home-kicker), .home-plan p { margin: 0; color: var(--home-subtle); line-height: 1.65; }

.home-product-band { padding-block: clamp(48px, 6vw, 84px); background: #edf1fa; }
.home-product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px, 5.6vw, 80px); align-items: center; }
.home-product + .home-product { margin-top: clamp(48px, 7vw, 92px); padding-top: clamp(48px, 7vw, 92px); border-top: 1px solid #d3dcee; }
.home-product > img { display: block; width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; border-radius: 12px 12px 54px 12px; }
.home-product h2 { font-size: clamp(1.95rem, 3.7vw, 3.25rem); margin-bottom: 16px; }
.home-product-copy > p:not(.home-kicker) + p { margin-top: 10px; }
.home-product-copy > .home-button { margin-top: 22px; }
.home-start-steps { margin: 20px 0 0; padding-left: 24px; color: var(--home-subtle); }
.home-start-steps li { padding: 5px 0 5px 4px; }
.home-start-steps li::marker { color: var(--home-blue); font-weight: 800; }
.home-app-example {
  width: min(100%, 490px);
  justify-self: center;
  padding: clamp(14px, 2.5vw, 26px);
  display: grid;
  gap: 10px;
  border: 1px solid #dce4f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px #1e3b6a14;
}
.home-app-photo { display: block; width: 100%; height: clamp(110px, 13vw, 164px); object-fit: cover; object-position: center 43%; border-radius: 10px; }
.home-app-title, .home-app-row { display: flex; align-items: center; gap: 13px; }
.home-app-title { padding: 7px 7px 13px; }
.home-app-title .skolink-mark { width: 43px; height: 43px; }
.home-app-title strong { font-size: 1.15rem; }
.home-app-example small { display: block; font-size: .88rem; color: var(--home-subtle); }
.home-app-row { padding: 9px 12px; background: #f3f6fd; border-radius: 10px; }
.home-app-row > span { flex-shrink: 0; }
.home-app-row svg { width: 21px; height: 21px; }

.home-role-grid, .home-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); }
.home-role { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0e5ed; background: #fff; border-radius: 14px; }
.home-role > img { display: block; width: 100%; height: auto; aspect-ratio: 1.93; object-fit: cover; object-position: center 42%; background: #e4dfd8; }
.home-role-copy, .home-plan { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(20px, 3.1vw, 34px); }
.home-role-copy .home-kicker { margin: 0 0 8px; }
.home-role-copy h3, .home-plan h3 { margin: 0 0 10px; font-size: clamp(1.45rem, 2.6vw, 2.15rem); line-height: 1.12; letter-spacing: -.04em; }
.home-role-copy ul, .home-plan ul { color: var(--home-subtle); margin: 15px 0 22px; padding-left: 21px; line-height: 1.65; }
.home-role-copy li + li, .home-plan li + li { margin-top: 5px; }
.home-role-copy li::marker, .home-plan li::marker { color: var(--home-blue); }
.home-role-copy > .home-button, .home-plan > .home-button { margin-top: auto; }

.home-pricing-band { background: var(--home-ink); color: white; }
.home-pricing-band .home-kicker { color: #ffdd83; }
.home-plan { border-radius: 14px; background: white; color: var(--home-ink); }
.home-plan-school { background: #ebf0ff; }
.home-plan h3 { font-size: 1.25rem; margin-bottom: 9px; }
.home-plan strong { font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.1; color: var(--home-blue); letter-spacing: -.05em; margin-bottom: 14px; }
.home-faq { display: grid; grid-template-columns: .63fr 1fr; gap: clamp(12px, 5vw, 75px); padding-bottom: clamp(28px, 4vw, 60px); }
.home-faq > div > details { border-bottom: 1px solid #d8dfea; }
.home-faq > div > details:first-child { border-top: 1px solid #d8dfea; }
.home-faq summary { cursor: pointer; padding: 16px 0; font-weight: 800; }
.home-faq details p { margin: 0 0 17px; color: var(--home-subtle); line-height: 1.65; }
.home-faq details p a { text-decoration: underline; text-underline-offset: 3px; color: var(--home-blue); }


@media (max-width: 1050px) {
  .home-topbar-inner { grid-template-columns: 1fr auto; min-height: 72px; }
  .home-menu { display: none; }
  .home-mobile-menu { display: block; }
}
@media (max-width: 820px) {
  .home-product { grid-template-columns: 1fr; }
  .home-product > img { aspect-ratio: 1.65; }
  .home-app-example { justify-self: start; width: 100%; }
  .home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-topbar-inner { min-height: 66px; gap: 8px; }
  .home-topbar .home-brand { gap: 6px; font-size: 1rem; }
  .home-topbar .home-brand .skolink-mark { width: 34px; height: 34px; }
  .home-header-actions { gap: 6px; }
  .home-signin { padding: 8px 11px; font-size: .9rem; }
  .home-role-grid, .home-pricing-grid, .home-faq { grid-template-columns: 1fr; }
  .home-faq { gap: 0; }
}
@media (max-width: 390px) {
  .home-tool-grid { grid-template-columns: 1fr; }
}
