:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f7ff;
  color: #1e3b63;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  border-bottom: 1px solid #dbe7fb;
  padding: 0.5rem 1rem;
}

.brand img {
  display: block;
  height: 44px;
  width: auto;
}

.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.topnav a {
  text-decoration: none;
  color: #1f4e88;
  padding: 0.3rem 0;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.topnav a:hover {
  color: #123e74;
  border-bottom-color: #7faaf2;
}

.topnav .login-link {
  margin-left: 0.3rem;
  border: 1px solid #7faaf2;
  border-radius: 7px;
  padding: 0.45rem 0.7rem;
  background: #f9fbff;
}

.topnav .login-link:hover {
  background: #7faaf2;
  color: #fff;
  border-bottom-color: #7faaf2;
}

.page {
  max-width: 1040px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.logo-card {
  min-width: 220px;
  text-align: center;
  padding: 0.9rem;
  border: 1px solid #d7e4fb;
  border-radius: 14px;
  background: #fff;
}

.logo-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo-card-link:hover {
  border-color: #b7cdf2;
  box-shadow: 0 0 0 2px rgba(127, 170, 242, 0.15);
}

.logo-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.logo-real {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.logo-autonotes {
  max-width: 250px;
}

.logo-pronotes {
  max-width: 220px;
}

.logo-card p {
  margin: 0.55rem 0 0.2rem;
  font-weight: 600;
}

.logo-card strong {
  font-size: 1.5rem;
  color: #173b71;
}

.transition {
  flex: 0 0 210px;
  width: 210px;
  max-width: 100%;
  text-align: center;
}

.transition span {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  transform: scaleX(1.75);
  letter-spacing: -0.06em;
  line-height: 1;
}

.transition small {
  display: block;
  width: 100%;
  min-width: 0;
  color: #406aa5;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0.28rem;
  overflow-wrap: anywhere;
  opacity: 0.65;
  transition: opacity 0.24s ease;
}

.transition small.visible {
  opacity: 1;
}

.card {
  background: #fff;
  border: 1px solid #deeafb;
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
  margin-bottom: 0.9rem;
}

.intro {
  text-align: center;
}

.actions {
  margin-top: 0.7rem;
}

.notice {
  margin-top: 0.8rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #d7e7ff;
  background: #f6faff;
}

.cta-group {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 7px;
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.btn-primary {
  border: 1px solid #7faaf2;
  color: #2d5ea1;
}

.btn-primary:hover {
  background: #7faaf2;
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.menu-grid a {
  text-decoration: none;
  color: #204a80;
  border: 1px solid #d0e1f9;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  background: #fcfeff;
}

.menu-grid a:hover {
  background: #eef5ff;
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.articles article {
  border: 1px solid #e8effb;
  border-radius: 10px;
  padding: 0.75rem;
}

.articles h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.articles p {
  margin: 0;
  color: #3a5678;
}

.feature-list {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-list li {
  margin: 0.45rem 0;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.keyword-cloud a {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #edf4ff;
  border: 1px solid #dae8ff;
  font-size: 0.86rem;
  color: #2a4b77;
  text-decoration: none;
}

.keyword-cloud a:hover {
  background: #dfeeff;
  border-color: #bfd7ff;
}
