/* Scandence marketing site — minimal, professional */

:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --ring: rgba(37, 99, 235, 0.25);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space: 1.5rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

/* Layout */
.site-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space);
}

.site-main {
  padding-top: 72px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.site-logo picture {
  display: flex;
  align-items: center;
}

.site-logo__mark--dark {
  display: none;
}

html.theme-dark .site-logo__mark--light {
  display: none;
}

html.theme-dark .site-logo__mark--dark {
  display: block;
}

.site-logo img {
  height: 32px;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

@media (min-width: 1080px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

.site-nav a.is-active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

/* Products dropdown (desktop) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: inherit;
}

.nav-dropdown__trigger:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

.nav-dropdown__chevron {
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__chevron,
.nav-dropdown:focus-within .nav-dropdown__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__panel {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 220px;
  padding: 0.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 60;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown__panel {
    display: block;
  }
}

.nav-dropdown:focus-within .nav-dropdown__panel {
  display: block;
}

.nav-dropdown__panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.nav-dropdown__panel a:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

.nav-dropdown__panel a.is-active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.nav-dropdown--current .nav-dropdown__trigger {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}

@media (min-width: 1080px) {
  .site-header__actions {
    display: flex;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.theme-toggle__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.theme-toggle__btn:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.08);
}

html.theme-dark .theme-toggle__btn:hover {
  background: rgba(96, 165, 250, 0.12);
}

.theme-toggle__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle__btn[aria-pressed="true"] {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.12);
}

html.theme-dark .theme-toggle__btn[aria-pressed="true"] {
  color: var(--accent-hover);
  background: rgba(96, 165, 250, 0.18);
}

.theme-toggle__btn svg {
  flex-shrink: 0;
}

.theme-toggle--full {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.25rem;
}

.theme-toggle--full .theme-toggle__btn {
  flex: 1;
  min-width: 0;
}

/* Mobile menu */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: #cbd5e1;
}

@media (min-width: 1080px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem var(--space) 1rem;
  box-shadow: var(--shadow-md);
  z-index: 45;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.65rem 0.5rem;
  color: var(--text);
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

.mobile-menu .btn {
  margin-top: 0.5rem;
  text-align: center;
  width: 100%;
}

.mobile-nav-group {
  padding: 0.35rem 0 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem;
}

.mobile-nav-group__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem 0.25rem;
}

.mobile-nav-group__link {
  display: block;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem !important;
  font-size: 0.9rem !important;
  color: var(--text);
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
}

.mobile-nav-group__link:hover,
.mobile-nav-group__link.is-active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

h1,
.h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text);
}

h2,
.h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

h3,
.h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section--border {
  border-top: 1px solid var(--border);
}

.section__intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__intro--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Device mock (CSS only) */
.mock {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  animation: mockFadeIn 0.85s ease 0.12s backwards;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__abstract-img {
  width: 100%;
  height: auto;
  max-height: min(240px, 42vw);
  object-fit: contain;
}

.mock__row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1rem;
}

@media (max-width: 599px) {
  .mock__row {
    grid-template-columns: 1fr;
  }
}

.mock__phone {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  min-height: 220px;
  padding: 1rem;
}

.mock__browser {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  min-height: 220px;
  overflow: hidden;
}

.mock__browser-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
}

.mock__body {
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mock__line {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  max-width: 100%;
}

.mock__line--short {
  max-width: 60%;
}

/* Grids */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card--link:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
}

/* Vertical stat row (single column stacks) */
.stat {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.stat:first-child {
  border-top: none;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* When .stat was combined with .card, padding collapsed horizontally — pillar cards fix that */
.card.stat,
.stat.card {
  padding: 1.75rem 1.5rem;
  border-top: none;
}

/* Showcase pillars (index): icons + comfortable padding */
.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem 1.5rem !important;
  min-height: 100%;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.pillar-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(99, 102, 241, 0.06));
  color: var(--accent);
}

.pillar-card__icon svg {
  width: 26px;
  height: 26px;
}

.pillar-card__title {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.pillar-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Feature mini-cards */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.6rem 1.5rem !important;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

/* Product tiles with visual strip */
.product-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0 !important;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-tile__visual {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-tile__visual--student {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.05));
}

.product-tile__visual--faculty {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.08), rgba(37, 99, 235, 0.05));
}

.product-tile__visual svg.art {
  max-height: 110px;
  width: auto;
}

/* Photo tiles (~1540×1020 assets): taller strip, anchor top so phone isn’t center-cut */
.product-tile__visual--photo {
  height: 150px;
  display: block;
  line-height: 0;
}

.product-tile__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Student tile: phone slightly right-of-center in asset */
.product-tile__visual--student.product-tile__visual--photo img {
  object-position: 54% 30%;
}

.product-tile__visual--faculty.product-tile__visual--photo img {
  object-position: 52% 40%;
}

.product-tile__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tile__body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Hero enhancement */
.hero__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: heroBlobFloat 14s ease-in-out infinite;
}

.hero__blob--a {
  width: 280px;
  height: 280px;
  background: rgba(37, 99, 235, 0.12);
  top: -80px;
  right: -40px;
  animation-delay: 0s;
}

.hero__blob--b {
  width: 220px;
  height: 220px;
  background: rgba(14, 165, 233, 0.1);
  bottom: -60px;
  left: 35%;
  animation-delay: -5s;
}

@keyframes heroBlobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-12px, 10px) scale(1.03);
  }
}

.hero__figure {
  position: relative;
  z-index: 1;
}

.hero__figure img {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: mockFadeIn 0.9s ease backwards;
}

@keyframes mockFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll / entrance reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--visible[data-reveal] {
  opacity: 1;
  transform: none;
}

/* Coming soon / roadmap (homepage) */
.coming-soon__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coming-soon__item {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  border-style: dashed;
  border-color: #cbd5e1;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, var(--bg-elevated) 100%);
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.coming-soon__item:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.coming-soon__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.coming-soon__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.coming-soon__desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .hero__blob {
    animation: none;
  }

  .mock,
  .hero__figure img {
    animation: none;
  }

  .coming-soon__item:hover {
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff !important;
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text) !important;
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn--ghost {
  background: transparent;
  color: var(--accent) !important;
}

.btn--ghost:hover {
  background: rgba(37, 99, 235, 0.08);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* CTA band */
.cta {
  background: var(--text);
  color: #e2e8f0;
  padding: 3.5rem 0;
  border-radius: var(--radius);
  margin: 0 var(--space);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.cta .site-container {
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: #94a3b8;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn--primary {
  background: #fff;
  color: var(--text) !important;
  border-color: #fff;
}

.cta .btn--primary:hover {
  background: #f1f5f9;
}

.cta .btn--secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
  background: transparent;
}

.cta .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 700px) {
  .cta {
    margin: 0 auto;
  }
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.35fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-brand .site-logo {
  margin-bottom: 0.75rem;
}

.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 700px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* FAQ */
#faq {
  scroll-margin-top: 5.5rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

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

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

.faq details p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.faq-grid {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 0.65rem;
  }
}

.faq--compact .section__intro {
  margin-bottom: 1.25rem;
}

.faq--compact .section__intro .lead {
  font-size: 1rem;
}

.faq--compact details {
  padding: 0.6rem 0.85rem;
  margin-bottom: 0;
}

.faq--compact summary {
  font-size: 0.875rem;
  line-height: 1.35;
}

.faq--compact details[open] summary {
  margin-bottom: 0.35rem;
}

.faq--compact details p {
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Timeline / steps */
.steps {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

/* Contact aside */
.aside-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-elevated);
  margin-bottom: 1rem;
}

.aside-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.aside-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-lg {
  margin-bottom: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.border-red {
  border-color: #ef4444 !important;
}

/* —— Dark appearance (OS + manual toggle via html.theme-dark) —— */
html.theme-dark {
  color-scheme: dark;
  --bg: #0c1016;
  --bg-elevated: #141b24;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #2a3544;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --ring: rgba(96, 165, 250, 0.35);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 44px rgba(0, 0, 0, 0.55);
}

html.theme-dark .skip-link {
  background: #f8fafc;
  color: #0f172a;
}

html.theme-dark .skip-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html.theme-dark .site-header {
  background: rgba(12, 16, 22, 0.94);
  border-bottom-color: var(--border);
}

html.theme-dark .site-nav a:hover,
html.theme-dark .site-nav a.is-active,
html.theme-dark .nav-dropdown__trigger:hover,
html.theme-dark .nav-dropdown__panel a:hover,
html.theme-dark .nav-dropdown__panel a.is-active,
html.theme-dark .nav-dropdown--current .nav-dropdown__trigger,
html.theme-dark .mobile-menu a:hover,
html.theme-dark .mobile-menu a.is-active,
html.theme-dark .mobile-nav-group__link:hover,
html.theme-dark .mobile-nav-group__link.is-active {
  background: rgba(96, 165, 250, 0.12);
}

html.theme-dark .menu-toggle:hover {
  border-color: #3d4f63;
}

html.theme-dark .btn--secondary:hover {
  border-color: #3d4f63;
  background: #1a2330;
}

html.theme-dark .btn--ghost:hover {
  background: rgba(96, 165, 250, 0.12);
}

html.theme-dark .card--link:hover,
html.theme-dark .pillar-card:hover {
  border-color: #3d4f63;
}

html.theme-dark .mock {
  background: var(--bg-elevated);
  border-color: var(--border);
}

html.theme-dark .mock__phone {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: var(--border);
}

html.theme-dark .mock__browser {
  background: #1a2330;
  border-color: var(--border);
}

html.theme-dark .mock__browser-top {
  border-color: var(--border);
}

html.theme-dark .mock__dot {
  background: #475569;
}

html.theme-dark .mock__line {
  background: #334155;
}

html.theme-dark .mock__body {
  color: var(--text-muted);
}

html.theme-dark .feature-card__icon {
  background: rgba(96, 165, 250, 0.12);
  color: var(--accent);
}

html.theme-dark .product-tile__visual {
  background: linear-gradient(135deg, #1a2330 0%, #141b24 100%);
  border-bottom-color: var(--border);
}

html.theme-dark .product-tile__visual--student {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.18), rgba(99, 102, 241, 0.1));
}

html.theme-dark .product-tile__visual--faculty {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.16), rgba(37, 99, 235, 0.1));
}

html.theme-dark .coming-soon__item {
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(20, 27, 36, 0.95) 0%, var(--bg-elevated) 100%);
}

html.theme-dark .coming-soon__item:hover {
  border-color: #3d4f63;
}

html.theme-dark .coming-soon__badge {
  background: rgba(96, 165, 250, 0.15);
  color: var(--accent-hover);
}

html.theme-dark .cta {
  background: linear-gradient(165deg, #0b1220 0%, #0f172a 55%, #0c1422 100%);
  border: 1px solid var(--border);
  color: #e2e8f0;
}

html.theme-dark .cta h2 {
  color: #f8fafc;
}

html.theme-dark .cta p {
  color: #94a3b8;
}

html.theme-dark .cta .btn--primary {
  background: #f8fafc;
  color: #0f172a !important;
  border-color: #f8fafc;
}

html.theme-dark .cta .btn--primary:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
}

html.theme-dark .field input:focus,
html.theme-dark .field select:focus,
html.theme-dark .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
