/* ============================================================
   swatted — games, groupchats, and big servers
   ============================================================ */

:root {
  --brand: #5d86cf;
  --brand-hi: #7ba0e6;
  --brand-lo: #4a6fb8;
  --brand-soft: rgba(93, 134, 207, 0.12);
  --bg: #0a0a0a;
  --fg: #ededed;
  --muted: rgba(237, 237, 237, 0.56);
  --subtle: rgba(237, 237, 237, 0.38);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.11);
  --card: #0d0e11;
  --card-2: #101116;
  --font-head: "Plus Jakarta Sans", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(93, 134, 207, 0.35);
  color: #fff;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  vertical-align: -0.125em;
}

[hidden] {
  display: none !important;
}

.num {
  font-family: var(--font-head);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.good {
  color: #6fce9b !important;
}
.warn {
  color: #e6b46c !important;
}
.bad {
  color: #f08a8e !important;
}
.muted {
  color: var(--subtle) !important;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 36px;
  pointer-events: none;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  height: 56px;
  padding: 0 8px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px 0 6px;
  border-radius: 9999px;
  color: #fff;
  pointer-events: auto;
  transition: background-color 0.3s ease;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}

.nav-pill {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  background: rgba(10, 11, 14, 0.32);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  pointer-events: auto;
  transition: background-color 0.3s ease;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-more {
  position: relative;
  display: flex;
}

.nav-more-btn {
  gap: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chevron {
  transition: transform 0.2s var(--ease);
}
[aria-expanded="true"] > .chevron {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 288px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #101115;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: dropIn 0.18s var(--ease);
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}

.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown a span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
}

.dropdown a small {
  font-size: 11.5px;
  color: var(--subtle);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  background: rgba(10, 11, 14, 0.32);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  pointer-events: auto;
  transition: background-color 0.3s ease;
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  background: #fff;
  color: #0a0a0a;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-portal .ico {
  font-size: 16px;
}

.btn-portal:hover {
  background: #e9eef8;
}
.btn-portal:active {
  transform: scale(0.97);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.site-header.is-scrolled .nav-pill,
.site-header.is-scrolled .header-actions {
  background: rgba(14, 15, 19, 0.78);
}

.site-header.is-scrolled .brand {
  background: rgba(14, 15, 19, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ============================================================
   Hero
   ============================================================ */

.hero-shell {
  padding: 12px 12px 0;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: calc(100svh - 24px);
  margin: 0;
  padding: 160px 16px 136px;
  border-radius: var(--r-xl);
  isolation: isolate;
  overflow: hidden;
  background-color: #4a6fb8;
  background-image: url("assets/hero-chrome.jpg");
  background-size: cover;
  background-position: 50%;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.34), rgba(8, 10, 15, 0.06) 34%, rgba(8, 10, 15, 0.12) 62%, rgba(8, 10, 15, 0.62)),
    radial-gradient(70% 60% at 50% 28%, rgba(10, 14, 22, 0.28), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 240px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32));
}

.hero-glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 12%;
  width: min(900px, 80%);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(159, 192, 255, 0.28), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: heroPulse 9s ease-in-out infinite;
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.06);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
  max-width: 1200px;
  width: 100%;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-sub {
  max-width: 46em;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: #fff;
  text-wrap: balance;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.cta-split {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
  border-radius: 9999px;
  background: #0a0a0a;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
}

.cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px 0 20px;
  border-radius: 9999px 0 0 9999px;
  transition: background-color 0.18s ease;
}

.cta-main .ico {
  font-size: 18px;
}

.cta-sep {
  flex: none;
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2) 35%, rgba(255, 255, 255, 0.2) 65%, transparent);
  transition: opacity 0.18s ease;
}

.cta-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 100%;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 0 9999px 9999px 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.cta-main:hover,
.cta-more:hover,
.cta-more[aria-expanded="true"] {
  background: #1a1a1c;
}

.cta-more:hover,
.cta-more[aria-expanded="true"] {
  color: #fff;
}

.cta-split:has(.cta-main:hover, .cta-more:hover, .cta-more[aria-expanded="true"]) .cta-sep {
  opacity: 0;
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 12px;
  border-radius: 9999px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.cta-ghost:hover {
  opacity: 0.8;
}

.cta-ghost .ico {
  font-size: 17px;
  transition: transform 0.18s ease;
}

.cta-ghost:hover .ico {
  transform: translateX(3px);
}

.cta-ghost:active {
  transform: scale(0.97);
}

.portal-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 226px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #101115;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: dropIn 0.18s var(--ease);
}

.portal-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.portal-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.portal-menu span {
  font-size: 13.5px;
  font-weight: 500;
}

.portal-menu small {
  font-size: 11.5px;
  color: var(--subtle);
}

.hero-stats {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 32px;
  margin-top: 42px;
  color: #fff;
}

.hero-numbers p {
  padding: 0 16px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  text-wrap: balance;
}

.hero-numbers .num {
  color: #fff;
  font-size: 1.15em;
}

.school-marquee {
  width: min(1080px, 100%);
  overflow: hidden;
  contain: inline-size;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  padding: 0.25rem 0;
  will-change: transform;
  backface-visibility: hidden;
  animation: marquee 48s linear infinite;
}

.marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3.25rem;
  padding-right: 3.25rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.school {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.school-logo {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: rgba(8, 12, 20, 0.82);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.school-info {
  margin-left: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.15rem;
  white-space: nowrap;
}

.school-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 240px;
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

.verified {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  color: #9fc0ff;
}

.school-meta {
  font-size: 0.85rem;
  font-weight: 500;
  color: #a1a1aa;
}

/* ============================================================
   Shared section chrome
   ============================================================ */

.section {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 3rem;
  width: 100%;
  padding: 5rem 24px 6rem;
}

main [id] {
  scroll-margin-top: 104px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 42rem;
  padding: 0 0.5rem;
  text-align: center;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  margin-bottom: 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(237, 237, 237, 0.12);
  background: rgba(93, 134, 207, 0.12);
  color: #8fb4f0;
  font-size: 2rem;
}

.section-icon.small {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  text-wrap: balance;
}

.section-title span {
  font-weight: 700;
  color: var(--brand-hi);
}

.section-sub {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(237, 237, 237, 0.55);
  text-wrap: balance;
}

.section-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: -1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(237, 237, 237, 0.55);
  text-align: center;
}

.section-note a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg);
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.section-note a:hover {
  opacity: 0.8;
}

/* ============================================================
   Assistant
   ============================================================ */

.assistant {
  background: radial-gradient(60% 45% at 50% 24%, rgba(93, 134, 207, 0.08), transparent 70%);
}

.assistant-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(816px, 100%);
  height: 810px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  background: #0b0c0f;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #34578f, #17233a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.chat-avatar img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.chat-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--subtle);
}

.chat-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ec48b;
  box-shadow: 0 0 8px rgba(94, 196, 139, 0.6);
}

.chat-window-dots {
  display: flex;
  gap: 6px;
}

.chat-window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.chat-body {
  flex: 1;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 44px);
  mask-image: linear-gradient(180deg, transparent, #000 44px);
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
}

.chat-user {
  display: flex;
  justify-content: flex-end;
}

.chat-user p {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #e7e8ec;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.chat-bot {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 2px 8px;
  color: var(--subtle);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.worked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.worked .ico {
  font-size: 13px;
}

.chat-text {
  padding: 12px 4px 0;
  color: #d3d5dc;
  font-size: 14px;
  line-height: 1.65;
}

.mention {
  display: inline-block;
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(93, 134, 207, 0.18);
  color: #bcd3f5;
  font-weight: 500;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: opacity 0.25s ease;
}

.plan[data-status="cancelled"] {
  opacity: 0.55;
}

.plan-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-title {
  flex: 1;
  min-width: 0;
  color: #ededed;
  font-size: 13.5px;
  font-weight: 600;
}

.status-chip {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.status-chip[data-status="approved"] {
  background: rgba(94, 196, 139, 0.12);
  color: #6fce9b;
}

.status-chip[data-status="cancelled"] {
  background: rgba(229, 72, 77, 0.12);
  color: #f08a8e;
}

.plan-steps {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
}

.plan-steps li {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.25s ease;
}

.step-num {
  flex-shrink: 0;
  width: 18px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e4e5e9;
  font-size: 13.5px;
  line-height: 20px;
}

.step-title b {
  color: #fff;
  font-weight: 600;
}

.step-ico {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--subtle);
  transition: color 0.25s ease;
}

.step-desc {
  color: var(--subtle);
  font-size: 12.5px;
}

.plan[data-status="approved"] .plan-steps li {
  background: rgba(94, 196, 139, 0.05);
}

.plan[data-status="approved"] .step-ico {
  color: #6fce9b;
}

.composer-wrap {
  flex-shrink: 0;
  padding: 0 24px 16px;
}

.approval {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 12px -14px;
  padding: 10px 14px 24px;
  border-radius: 16px 16px 0 0;
  background: #15161a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: riseIn 0.35s var(--ease) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.approval.hide {
  display: none;
}

.approval-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: -6px;
}

.approval-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.progress-bars {
  display: flex;
  gap: 4px;
}

.progress-bars i {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-bars i.active {
  background: #ededed;
}

.approval-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.approval-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.approval-title {
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
}

.approval-title b {
  color: #fff;
  font-weight: 600;
}

.approval-sub {
  max-width: 34rem;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.approval-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
}

.btn-cancel,
.btn-approve {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.btn-cancel {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--fg);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-approve {
  background: #ededed;
  color: #0a0a0a;
}

.btn-approve:hover {
  background: #fff;
}

.btn-approve .ico {
  font-size: 12px;
}

.btn-approve:disabled {
  opacity: 0.45;
  cursor: default;
}

.composer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 12px 16px;
  border-radius: 24px;
  background: #141415;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.25s ease;
}

.composer:focus-within {
  box-shadow: inset 0 0 0 1px rgba(93, 134, 207, 0.55), 0 0 0 4px rgba(93, 134, 207, 0.12);
}

.composer-input {
  width: 100%;
  min-height: 44px;
  max-height: 200px;
  padding: 4px 0 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
  resize: none;
}

.composer-input::placeholder {
  color: var(--subtle);
}

.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.composer-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--subtle);
  font-size: 12.5px;
}

.composer-hint .ico {
  font-size: 13px;
}

.send-btn {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ededed;
  color: #0a0a0a;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.2s ease, scale 0.12s ease;
}

.send-btn.ready {
  opacity: 1;
}

.send-btn:active {
  scale: 0.94;
}

.send-btn .ico {
  font-size: 15px;
}

.chat-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: -16px 12px 0;
  padding: 22px 8px 6px;
  border-radius: 0 0 16px 16px;
  background: #0f0f10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: var(--subtle);
  font-size: 12px;
}

.chat-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 26px;
  padding-inline: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-foot .ico {
  font-size: 12px;
}

.foot-sep {
  flex: none;
  width: 1px;
  height: 14px;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.08);
}

.new-chat {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 26px;
  margin-left: auto;
  padding-inline: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.new-chat:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}

/* ============================================================
   Integrations
   ============================================================ */

.integrations {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 3rem;
  width: 100%;
  padding: 2.5rem 0 4rem;
  overflow: hidden;
}

.int-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.int-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.int-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  animation: marquee 68s linear infinite;
}

.int-track.reverse {
  animation-direction: reverse;
}

.int-group {
  display: flex;
  flex: 0 0 auto;
  gap: 1.35rem;
  padding-right: 1.35rem;
}

.int-card {
  position: relative;
  flex: 0 0 auto;
  width: min(80vw, 30rem);
  min-height: 13.5rem;
  display: flex;
  flex-direction: column;
  padding: 1.875rem;
  border-radius: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.int-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(38% 46% at 20% 12%, var(--accent), transparent 62%),
    radial-gradient(42% 50% at 86% 96%, var(--accent), transparent 66%);
  opacity: 0.16;
  filter: blur(40px) saturate(1.35);
  mix-blend-mode: screen;
}

.int-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 38%, transparent 68%, color-mix(in srgb, var(--accent) 12%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.28;
  padding: 1px;
}

.int-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}

.int-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.int-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.int-card h3 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.int-card p {
  margin: 1.5rem 0 0;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 500;
  line-height: 1.75;
  color: rgba(237, 237, 237, 0.55);
}

.int-card p strong {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   Bento
   ============================================================ */

.bento-section {
  padding-top: 4rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  height: 440px;
  padding: 28px 0 0 28px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--card);
  text-align: left;
}

.bento-card.wide {
  grid-column: span 2;
}

.bento-head {
  max-width: 30rem;
  padding-right: 28px;
}

.bento-head h3 {
  font-family: var(--font-head);
  color: var(--fg);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bento-head p {
  margin: 10px 0 0;
  color: rgba(237, 237, 237, 0.55);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.bento-head p span {
  color: var(--fg);
  font-weight: 600;
}

.bento-visual {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}

.mock-panel {
  height: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 0;
  border-bottom: 0;
  border-radius: 16px 0 0 0;
  background: #0a0b0e;
}

.mock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mock-kicker {
  color: rgba(237, 237, 237, 0.38);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mock-head h4 {
  margin: 3px 0 0;
  color: rgba(237, 237, 237, 0.9);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.switch.on {
  background: var(--brand);
}

.switch.on i {
  transform: translateX(14px);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(237, 237, 237, 0.6);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mock-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.mock-stat span {
  color: rgba(237, 237, 237, 0.42);
  font-size: 10.5px;
}

.mock-stat strong {
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mock-stat em {
  font-size: 10.5px;
  font-style: normal;
}

.mock-table {
  margin-top: 12px;
}

.mock-tr {
  display: grid;
  grid-template-columns: 1.7fr 0.5fr 1fr 0.9fr;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(237, 237, 237, 0.68);
  font-size: 11.5px;
}

.mock-tr.mock-th {
  color: rgba(237, 237, 237, 0.32);
  font-size: 10.5px;
  border-top: 0;
  padding-top: 0;
}

.mock-student {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: rgba(8, 12, 20, 0.8);
  font-family: var(--font-head);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(237, 237, 237, 0.6);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.pill.good {
  background: rgba(76, 175, 120, 0.12);
  color: #6fce9b;
}
.pill.warn {
  background: rgba(230, 168, 88, 0.12);
  color: #e6b46c;
}
.pill.bad {
  background: rgba(229, 72, 77, 0.12);
  color: #f08a8e;
}

.mock-foot {
  margin-top: 10px;
  color: rgba(237, 237, 237, 0.32);
  font-size: 10.5px;
}

.grade-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 4px;
}

.grade-row {
  display: grid;
  grid-template-columns: 1fr 64px 36px;
  align-items: center;
  gap: 10px;
  color: rgba(237, 237, 237, 0.62);
  font-size: 11.5px;
}

.grade-row b {
  color: rgba(237, 237, 237, 0.85);
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 5px;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-lo), var(--brand-hi));
}

.bar.warn i {
  background: linear-gradient(90deg, #b88745, #e6b46c);
}

.class-average {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(237, 237, 237, 0.45);
  font-size: 11.5px;
}

.class-average strong {
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 34px 8px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
}

.schedule-row.active {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.schedule-row .time {
  color: rgba(237, 237, 237, 0.35);
  font-family: var(--font-mono);
  font-size: 10px;
}

.schedule-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot);
}

.schedule-row b {
  display: block;
  color: rgba(237, 237, 237, 0.82);
  font-size: 12px;
  font-weight: 500;
}

.schedule-row small {
  color: rgba(237, 237, 237, 0.38);
  font-size: 10.5px;
}

.mock-messages {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  height: 100%;
  min-height: 300px;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.thread-list .mock-kicker {
  margin-bottom: 6px;
}

.thread {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.thread.active {
  background: rgba(255, 255, 255, 0.04);
}

.thread > div {
  min-width: 0;
}

.thread b {
  display: block;
  overflow: hidden;
  color: rgba(237, 237, 237, 0.8);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.thread small {
  color: rgba(237, 237, 237, 0.38);
  font-size: 10px;
}

.thread i {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--brand-hi);
}

.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 14px;
}

.conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.conversation-head b {
  display: block;
  color: rgba(237, 237, 237, 0.85);
  font-size: 12px;
  font-weight: 600;
}

.conversation-head small {
  color: rgba(237, 237, 237, 0.38);
  font-size: 10.5px;
}

.bubbles {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}

.bubble {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 10.8px;
  line-height: 1.5;
}

.bubble.them {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(237, 237, 237, 0.7);
  border-bottom-left-radius: 3px;
}

.bubble.us {
  align-self: flex-end;
  background: rgba(93, 134, 207, 0.16);
  color: #cfdfff;
  border-bottom-right-radius: 3px;
}

.bubble-name {
  display: block;
  margin-bottom: 2px;
  color: var(--brand-hi);
  font-size: 9.5px;
  font-weight: 700;
}

.bubble-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: rgba(237, 237, 237, 0.35);
  font-size: 10.5px;
}

.bubble-composer .ico {
  font-size: 13px;
}

.chart {
  margin-top: 14px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
}

.chart-bars span {
  flex: 1;
  min-width: 4px;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--brand-hi), var(--brand-lo));
  opacity: 0.9;
}

.chart-labels {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.chart-labels span {
  flex: 1;
  color: rgba(237, 237, 237, 0.3);
  font-size: 9px;
  text-align: center;
}

.chart.big .chart-bars {
  height: 150px;
}

.report-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(237, 237, 237, 0.5);
  font-size: 11px;
}

.report-foot b {
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}

.pay-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pay-row:first-child {
  border-top: 0;
}

.pay-row b {
  display: block;
  color: rgba(237, 237, 237, 0.78);
  font-size: 11.5px;
  font-weight: 500;
}

.pay-row small {
  color: rgba(237, 237, 237, 0.35);
  font-size: 10px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.file-row:first-child {
  border-top: 0;
}

.file-ico {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--brand-hi);
}

.file-ico .ico {
  font-size: 14px;
}

.file-row > div {
  min-width: 0;
}

.file-row b {
  display: block;
  color: rgba(237, 237, 237, 0.78);
  font-size: 11.5px;
  font-weight: 500;
}

.file-row small {
  color: rgba(237, 237, 237, 0.35);
  font-size: 10px;
}

.file-row > .muted {
  margin-left: auto;
  font-size: 10px;
}

/* ============================================================
   Feature grid
   ============================================================ */

.more-features {
  padding-top: 2.5rem;
}

.more-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 42rem;
  text-align: center;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--brand-hi);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1120px, 100%);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 134, 207, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.feature-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: rgba(93, 134, 207, 0.12);
  color: #8fb4f0;
}

.feature-ico .ico {
  font-size: 20px;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature-card p {
  color: rgba(237, 237, 237, 0.5);
  font-size: 0.8rem;
  line-height: 1.55;
}

.more-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 1rem;
}

.and-more {
  display: flex;
  align-items: center;
  gap: 14px;
}

.and-more span {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16));
}

.and-more span:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent);
}

.and-more em {
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
}

.all-features {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(237, 237, 237, 0.9);
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.all-features:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.all-features .ico {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.all-features:hover .ico {
  transform: translateX(3px);
}

/* ============================================================
   Insights
   ============================================================ */

.insights {
  position: relative;
  z-index: 1;
  padding: 6rem 24px;
  overflow: hidden;
  background: radial-gradient(45% 50% at 28% 52%, rgba(93, 134, 207, 0.09), transparent 70%);
}

.insights-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.insights-visual {
  position: relative;
}

.dashboard {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: #0c0d10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-head p {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}

.dash-head > div > span {
  color: var(--subtle);
  font-size: 11px;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-user .mini-avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
}

.dash-user b {
  display: block;
  color: rgba(237, 237, 237, 0.8);
  font-size: 11.5px;
  font-weight: 500;
}

.dash-user small {
  display: block;
  color: var(--subtle);
  font-size: 10px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.dash-stats > div {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.dash-stats span {
  display: block;
  color: rgba(237, 237, 237, 0.42);
  font-size: 10.5px;
}

.dash-stats strong {
  display: block;
  margin-top: 2px;
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dash-stats em {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  font-style: normal;
}

.dash-chart {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.dash-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(237, 237, 237, 0.7);
  font-size: 11.5px;
}

.dash-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ring-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) 0 94%, rgba(255, 255, 255, 0.06) 94%);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #0c0d10;
}

.ring span {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
}

.ring-wrap b {
  display: block;
  color: rgba(237, 237, 237, 0.8);
  font-size: 11.5px;
  font-weight: 600;
}

.ring-wrap small {
  display: block;
  color: var(--subtle);
  font-size: 10px;
}

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: rgba(237, 237, 237, 0.5);
  font-size: 10.5px;
}

.dash-list span {
  display: flex;
  align-items: center;
}

.dash-list i {
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
}

.dot-good {
  background: #6fce9b;
}
.dot-warn {
  background: #e6b46c;
}

.float-card {
  position: absolute;
  right: -18px;
  bottom: -64px;
  z-index: 2;
  display: flex;
  gap: 10px;
  width: 290px;
  padding: 14px;
  border: 1px solid rgba(93, 134, 207, 0.25);
  border-radius: 16px;
  background: #13161c;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.float-ico {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(93, 134, 207, 0.15);
  color: #9fc0ff;
}

.float-ico .ico {
  font-size: 16px;
}

.float-card b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
}

.float-card small {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 10.5px;
  line-height: 1.5;
}

.insights-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.insights-copy h2 span {
  color: var(--brand-hi);
  font-weight: 700;
}

.insights-copy p {
  margin-top: 0.9rem;
  max-width: 32rem;
  color: rgba(237, 237, 237, 0.55);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.6;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.35rem;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(237, 237, 237, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.check-list .ico {
  margin-top: 2px;
  color: var(--brand-hi);
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 1.5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  transition: opacity 0.15s ease;
}

.text-link:hover {
  opacity: 0.8;
}

.text-link .ico {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.text-link:hover .ico {
  transform: translateX(3px);
}

/* ============================================================
   Stories
   ============================================================ */

.stories {
  padding-top: 4rem;
}

.stories-head {
  max-width: 42rem;
  text-align: center;
}

.stories-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.shimmer {
  background: linear-gradient(110deg, #8fb4f0 0%, #fff 42%, #cfe0ff 58%, #8fb4f0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
}

.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 26px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.quote::before {
  content: "";
  position: absolute;
  inset: -40% 40% 45% -20%;
  z-index: -1;
  background: radial-gradient(50% 60% at 30% 20%, rgba(93, 134, 207, 0.22), transparent 70%);
  filter: blur(30px);
  opacity: 0.7;
}

.quote:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 134, 207, 0.28);
}

.quote.featured {
  grid-column: span 2;
  min-height: 280px;
  padding: 34px;
  background: linear-gradient(160deg, rgba(93, 134, 207, 0.13), #0d0e11 58%);
}

.quote-mark {
  height: 0.55em;
  color: var(--brand-hi);
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 800;
  line-height: 0.55;
  opacity: 0.55;
}

.quote-mark.small {
  font-size: 42px;
}

.quote-text {
  margin-top: 10px;
  color: rgba(237, 237, 237, 0.72);
  font-size: 13.5px;
  line-height: 1.65;
}

.quote.featured .quote-text {
  max-width: 38rem;
  margin-top: 14px;
  color: rgba(237, 237, 237, 0.86);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.quote-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.quote-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: rgba(8, 12, 20, 0.8);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.quote-foot b {
  display: block;
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 600;
}

.quote-foot small {
  display: block;
  color: var(--subtle);
  font-size: 10.5px;
}

.quote-school {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
}

.stories-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--subtle);
  font-size: 12.5px;
}

.stories-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg);
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.stories-cta a:hover {
  opacity: 0.8;
}

.stories-cta .ico {
  font-size: 13px;
}

/* ============================================================
   CTA
   ============================================================ */

.cta-section {
  position: relative;
  z-index: 1;
  padding: 2rem 24px 6rem;
}

.cta-card {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  background: #0a0b0f;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cta-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 70%);
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  left: 50%;
  bottom: -55%;
  z-index: 0;
  width: 70%;
  height: 120%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(93, 134, 207, 0.38), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-eyebrow {
  position: relative;
  z-index: 1;
  margin-top: -10px;
  background: linear-gradient(180deg, #8fb4f0, #dce9ff 55%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-head);
  font-size: clamp(16px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.cta-title {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(20px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-wrap: balance;
}

.cta-title img {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin: -0.12em 0.18em 0;
  vertical-align: middle;
  border-radius: 0.28em;
}

.cta-wordmark {
  letter-spacing: -0.04em;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px;
  border-radius: 9999px;
  background: #ededed;
  color: #0a0a0a;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.btn-white:hover {
  transform: translateY(-1px);
  background: #fff;
}

.btn-white .ico {
  font-size: 18px;
}

.cta-actions .cta-ghost {
  color: rgba(255, 255, 255, 0.78);
}

.cta-actions .cta-ghost:hover {
  color: #fff;
  opacity: 1;
}

.cta-rule {
  position: relative;
  z-index: 1;
  width: 240px;
  max-width: 60%;
  height: 1px;
  margin: 2.25rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(123, 160, 230, 0.55), transparent);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  position: relative;
  width: 100%;
  margin-top: 4rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(0, 1fr));
  gap: 2.25rem;
  align-items: start;
  width: min(64rem, 100%);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 0.6rem;
}

.footer-brand span {
  color: var(--subtle);
  font-size: 11.5px;
  line-height: 1.5;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-head {
  margin-bottom: 0.1rem;
  color: rgba(237, 237, 237, 0.4);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-col a {
  color: rgba(237, 237, 237, 0.6);
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
  letter-spacing: 0.15px;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  width: min(64rem, 100%);
  margin: 3rem auto 0;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  max-width: 46rem;
  color: rgba(237, 237, 237, 0.3);
  font-size: 10.5px;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  color: rgba(237, 237, 237, 0.3);
  font-size: 10.5px;
}

.footer-legal a {
  transition: color 0.15s ease;
}

.footer-legal a:hover {
  color: var(--fg);
}

/* ============================================================
   Mobile menu
   ============================================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: rgba(8, 9, 12, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: fadeIn 0.22s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
}

.mobile-links a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  margin-top: 2rem;
  padding: 0 18px;
  border-radius: 14px;
  background: #ededed;
  color: #0a0a0a;
  font-weight: 600;
}

.mobile-note {
  margin-top: auto;
  color: var(--subtle);
  font-size: 12px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }

  .footer-brand {
    grid-column: span 3;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-pill {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .brand {
    padding-left: 0;
  }

  .hero {
    padding: 148px 16px 96px;
  }

  .hero-title span {
    white-space: normal;
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-card.wide {
    grid-column: span 2;
  }

  .insights-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .insights-copy {
    order: -1;
  }

  .float-card {
    right: 12px;
  }

  .assistant-window {
    height: auto;
  }
}

@media (max-width: 720px) {
  .hero-shell {
    padding: 8px 8px 0;
  }

  .hero {
    min-height: calc(100svh - 16px);
    padding: 128px 16px 80px;
    border-radius: 24px;
  }

  .hero-content {
    gap: 18px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .hero-stats {
    margin-top: 34px;
    gap: 24px;
  }

  .section {
    gap: 2.5rem;
    padding: 3.5rem 16px 4rem;
  }

  .integrations {
    padding: 2rem 0 3rem;
  }

  .bento-section,
  .stories,
  .more-features {
    padding-top: 2.5rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-window {
    height: auto;
  }

  .chat-body {
    padding: 16px;
  }

  .composer-wrap {
    padding: 0 12px 12px;
  }

  .approval {
    margin: 0 6px -14px;
    padding: 10px 12px 24px;
  }

  .approval-main {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .approval-actions {
    width: 100%;
  }

  .approval-actions button {
    flex: 1;
    justify-content: center;
  }

  .chat-foot > span:not(:first-of-type),
  .chat-foot .foot-sep {
    display: none;
  }

  .section-note {
    margin-top: -0.5rem;
    font-size: 0.85rem;
  }

  .insights {
    padding: 4rem 16px;
  }

  .cta-section {
    padding: 1.5rem 16px 4rem;
  }

  .cta-card {
    padding: 3.5rem 1.25rem 3rem;
    border-radius: 24px;
  }

  .footer {
    margin-top: 2rem;
  }

  .footer-inner {
    padding-top: 2.5rem;
  }
}

@media (max-width: 380px) {
  .header-actions .btn-portal {
    display: none;
  }

  .chat-foot > span {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 16px;
    padding: 0 16px;
  }

  .btn-portal {
    padding: 0 13px;
  }

  .hero-title {
    font-size: clamp(2.15rem, 10vw, 2.9rem);
  }

  .cta-split {
    align-self: center;
  }

  .hero-numbers p {
    font-size: 0.95rem;
  }

  .marquee-group {
    gap: 2.25rem;
    padding-right: 2.25rem;
  }

  .school-logo {
    width: 3rem;
    height: 3rem;
    font-size: 0.85rem;
  }

  .school-name {
    max-width: 180px;
    font-size: 0.95rem;
  }

  .school-info {
    margin-left: 0.85rem;
  }

  .int-card {
    width: min(84vw, 20rem);
    min-height: 12.5rem;
    padding: 1.4rem;
    border-radius: 1.8rem;
  }

  .int-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    font-size: 0.85rem;
  }

  .int-card p {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

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

  .bento-card,
  .bento-card.wide {
    grid-column: span 1;
    height: 520px;
  }

  .mock-messages {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .thread-list {
    padding-right: 8px;
  }

  .thread span.mini-avatar {
    display: none;
  }

  .conversation {
    padding-left: 10px;
  }

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

  .dash-stats {
    gap: 6px;
  }

  .dash-stats > div {
    padding: 8px 9px;
  }

  .dash-stats strong {
    font-size: 16px;
  }

  .dash-head {
    align-items: flex-start;
  }

  .dash-user b,
  .dash-user small {
    display: none;
  }

  .dash-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .float-card {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

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

  .quote.featured {
    grid-column: span 1;
    padding: 26px;
  }

  .quote.featured .quote-text {
    font-size: 15.5px;
  }

  .stories-title {
    font-size: 1.9rem;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    padding: 2.5rem 1.25rem 0;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    padding: 1.25rem;
    font-size: 10px;
  }

  .footer-legal {
    flex-wrap: wrap;
  }

  .cta-title {
    font-size: 22px;
  }

  .cta-eyebrow {
    font-size: 17px;
  }

  .btn-white {
    height: 46px;
    font-size: 15px;
  }

  .mobile-links a {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .bento-card.wide .mock-tr {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .bento-card.wide .mock-tr > *:nth-child(2),
  .bento-card.wide .mock-tr > *:nth-child(4) {
    display: none;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Assistant chat: generated plans, thinking state, mini actions
   ============================================================ */

.plan-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.btn-mini.primary {
  background: var(--brand);
  color: #fff;
}

.btn-mini.primary:hover {
  background: var(--brand-hi);
}

.btn-mini.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(237, 237, 237, 0.72);
}

.btn-mini.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-mini:disabled {
  opacity: 0.5;
  cursor: default;
}

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

.plan-steps li.is-done {
  background: rgba(94, 196, 139, 0.06);
}

.plan-steps li.is-done .step-num {
  color: #6fce9b;
  font-weight: 700;
}

.chat-thinking {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--subtle);
  font-size: 13px;
}

.chat-thinking i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: chatDot 1s ease-in-out infinite;
}

.chat-thinking i:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-thinking i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatDot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-thinking i {
    animation: none;
    opacity: 0.7;
  }
}
