/* LingoLugo · For Schools landing page */

:root {
  --c-ink:           #1a1a2e;
  --c-ink-soft:      #3a3d4a;
  --c-ink-muted:     #6b6e7c;
  --c-ink-faint:     #9b9ea8;
  --c-bg:            #fbfbfe;
  --c-surface:       #ffffff;
  --c-surface-2:     #f6f5fb;
  --c-border:        #ececf3;
  --c-divider:       #f0eff7;
  --c-hairline:      #e7e5f0;

  --c-brand:         #6564b6;
  --c-brand-strong:  #5353a6;
  --c-brand-deep:    rgb(97, 2, 121);
  --c-brand-soft:    #f1eff8;
  --c-brand-soft-2:  #ece9f5;
  --c-accent:        #8ea5f6;

  --brand-gradient:  linear-gradient(135deg, #8ea5f6 0%, #6564b6 100%);
  --brand-gradient-soft: linear-gradient(135deg, #f0eef9 0%, #e8e5f3 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-soft:    0 1px 2px rgba(20, 24, 40, 0.04), 0 4px 12px rgba(20, 24, 40, 0.05);
  --shadow-pop:     0 4px 12px rgba(20, 24, 40, 0.07), 0 24px 48px rgba(20, 24, 40, 0.10);
  --shadow-frame:   0 4px 12px rgba(101, 100, 182, 0.10),
                    0 24px 60px rgba(101, 100, 182, 0.18),
                    0 0 0 1px rgba(101, 100, 182, 0.08);

  --t-fast:   160ms;
  --t-normal: 280ms;
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.for-schools {
  font-family: "Lexend Deca", "Noto Sans", Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink-soft);
  background: var(--c-bg);
  /* basic.css sets `main { padding: 5% }` and global.css sets
     `main { padding: 2rem 0 5em 0 }`; both leak into this page via the
     shared head-meta partial. Reset so each section controls its own padding. */
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background-image:
    radial-gradient(ellipse 1200px 600px at 50% -200px,
      rgba(142, 165, 246, 0.16),
      rgba(142, 165, 246, 0) 70%),
    radial-gradient(ellipse 800px 600px at 90% 200px,
      rgba(101, 100, 182, 0.10),
      rgba(101, 100, 182, 0) 60%);
  background-repeat: no-repeat;
}

::selection { background: var(--c-brand); color: white; }

a {
  color: var(--c-brand);
  text-decoration: none;
}
a:hover { color: var(--c-brand-strong); }

p { margin: 0 0 1rem; max-width: 38em; }

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

/* ───────────────────────────────────────────────────────────────────────
   Reusable components
   ─────────────────────────────────────────────────────────────────────── */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(101, 100, 182, 0.22);
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 2px 6px rgba(101, 100, 182, 0.28),
              0 14px 32px rgba(101, 100, 182, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(101, 100, 182, 0.34),
              0 20px 44px rgba(101, 100, 182, 0.28);
  color: white;
}

.btn-link {
  background: transparent;
  color: var(--c-ink-soft);
  border: 1px solid var(--c-border);
}

.btn-link:hover {
  background: var(--c-surface);
  border-color: var(--c-brand);
  color: var(--c-brand-strong);
}

.btn-large {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

.btn .arrow,
.btn .arrow-down {
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow-down { transform: translateY(3px); }

/* ───────────────────────────────────────────────────────────────────────
   Hero — asymmetric. Title block left, tilted product preview right.
   ─────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  animation: rise 520ms var(--ease) both;
}

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

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  background: var(--c-brand-soft);
  border-radius: var(--radius-pill);
  color: var(--c-brand-strong);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 3px rgba(101, 100, 182, 0.12);
  flex-shrink: 0;
}

.hero h1 {
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.06;
  color: var(--c-brand-deep);
  margin: 0;
  /* 14ch forces "your teachers / will love." onto two lines so the title
     reads as a deliberate three-line cascade rather than wrapping arbitrarily. */
  max-width: 14ch;
}

.title-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 0.18em;
  background: var(--brand-gradient);
  border-radius: var(--radius-pill);
  opacity: 0.22;
  z-index: -1;
}

.hero-deck {
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: var(--c-ink-soft);
  max-width: 30em;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  font-size: 0.9rem;
  color: var(--c-ink-muted);
  margin-top: 0.5rem;
  max-width: 38em;
  line-height: 1.5;
}

.hero-trust strong { color: var(--c-ink); font-weight: 600; }
.trust-dim { color: var(--c-ink-faint); font-weight: 400; }

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a7f5f;
  box-shadow: 0 0 0 3px rgba(26, 127, 95, 0.16);
  flex-shrink: 0;
}

/* Feature shot frame — currently holds anonymised screenshots of the
   teacher-progress, homework-dashboard, and Teachers Panel review screens.
   When the marketing videos are recorded, swap the <img> children for
   <video> elements; the 16:9 aspect ratio is preserved by .video-aspect. */

.video-frame {
  margin: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
  border: 1px solid var(--c-hairline);
  position: relative;
}

.video-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-aspect img,
.video-aspect video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-aspect img {
  cursor: zoom-in;
  transition: filter var(--t-fast) var(--ease);
}

.video-aspect:hover img {
  filter: brightness(1.02);
}

/* Click-to-zoom lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(15, 12, 38, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
  animation: lightbox-fade 0.18s var(--ease);
}

.lightbox[open] {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) var(--ease);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.video-frame-tilt {
  transform: perspective(1800px) rotateY(-6deg) rotateX(2deg) translateZ(0);
  transform-origin: left center;
  transition: transform var(--t-normal) var(--ease);
}

.video-frame-tilt:hover {
  transform: perspective(1800px) rotateY(-3deg) rotateX(1deg) translateZ(0);
}

.hero-shot {
  position: relative;
}

.hero-shot::after {
  content: '';
  position: absolute;
  inset: 5% -10% 5% 0;
  background: radial-gradient(ellipse at center, rgba(142, 165, 246, 0.4), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* ───────────────────────────────────────────────────────────────────────
   Section primitives
   ─────────────────────────────────────────────────────────────────────── */

section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin: 0 0 0.85rem;
}

.section-title {
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--c-brand-deep);
  margin: 0 0 2.25rem;
  max-width: 32ch;
}

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

/* ───────────────────────────────────────────────────────────────────────
   Pain
   ─────────────────────────────────────────────────────────────────────── */

.pain {
  background: var(--c-surface);
  border-top: 1px solid var(--c-hairline);
  border-bottom: 1px solid var(--c-hairline);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pain-card {
  padding: 2rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-divider);
  border-radius: var(--radius-lg);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.pain-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-brand);
  box-shadow: var(--shadow-soft);
}

.pain-num {
  display: inline-block;
  font-family: "Lexend Deca", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-brand);
  background: var(--c-brand-soft);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.pain-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 0.5rem;
  color: var(--c-ink);
}

.pain-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--c-ink-muted);
}

/* ───────────────────────────────────────────────────────────────────────
   Features — alternating layout, real screenshots
   ─────────────────────────────────────────────────────────────────────── */

.features {
  background: var(--c-bg);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 7vw, 6rem);
}

.feature:last-child { margin-bottom: 0; }

.feature-reverse .feature-text { order: 2; }
.feature-reverse .feature-shot { order: 1; }

.feature-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin: 0 0 0.85rem;
}

.feature-text h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 1.2rem;
  color: var(--c-brand-deep);
}

.feature-text p {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-ink-soft);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-ink-soft);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1rem;
  height: 0.5rem;
  border-left: 2px solid var(--c-brand);
  border-bottom: 2px solid var(--c-brand);
  transform: rotate(-45deg);
  border-bottom-left-radius: 2px;
}

.feature-shot {
  position: relative;
}

/* ───────────────────────────────────────────────────────────────────────
   Trust — quote card + credentials
   ─────────────────────────────────────────────────────────────────────── */

.trust {
  background: var(--c-surface);
  border-top: 1px solid var(--c-hairline);
  border-bottom: 1px solid var(--c-hairline);
}

.trust-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.quote {
  margin: 0;
  position: relative;
}

.quote p {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--c-ink);
  margin: 0 0 1.5rem;
  max-width: none;
}

.quote-open, .quote-close {
  color: var(--c-brand);
  font-weight: 700;
}

.quote footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0 0 1.5rem;
  position: relative;
  /* footer.css styles bare <footer> with purple bg + white text site-wide. */
  background: transparent;
  color: inherit;
  font-family: inherit;
}

.quote footer::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1rem;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.quote-name { font-weight: 600; color: var(--c-ink); }
.quote-meta { font-size: 0.9rem; color: var(--c-ink-muted); }

.creds {
  list-style: none;
  padding: 2rem;
  margin: 0;
  background: var(--c-brand-soft);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.creds li { display: flex; flex-direction: column; gap: 0.25rem; }

.cred-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-brand-strong);
}

.cred-value {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.35;
}

/* ───────────────────────────────────────────────────────────────────────
   How it works
   ─────────────────────────────────────────────────────────────────────── */

.how { background: var(--c-bg); }

.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.how-steps li {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  border-radius: var(--radius-lg);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.how-steps li:hover {
  transform: translateY(-3px);
  border-color: var(--c-brand);
  box-shadow: var(--shadow-soft);
}

.step-num {
  position: absolute;
  top: -1rem;
  left: 2rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(101, 100, 182, 0.3);
}

.how-steps h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.014em;
  margin: 0.5rem 0 0.75rem;
  color: var(--c-ink);
}

.how-steps p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--c-ink-muted);
}

/* ───────────────────────────────────────────────────────────────────────
   Closing CTA
   ─────────────────────────────────────────────────────────────────────── */

.closing {
  position: relative;
  background: var(--brand-gradient);
  color: white;
  text-align: center;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 65%);
  pointer-events: none;
}

.closing::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.closing-title {
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: white;
  max-width: 18ch;
}

.closing-deck {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 36em;
}

.closing .btn-primary {
  background: white;
  color: var(--c-brand-strong);
  margin-top: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.closing .btn-primary:hover {
  background: var(--c-surface-2);
  color: var(--c-brand-strong);
  transform: translateY(-2px);
}

.closing-fineprint {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.closing-fineprint a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ───────────────────────────────────────────────────────────────────────
   Responsive
   ─────────────────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .video-frame-tilt { transform: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-reverse .feature-text,
  .feature-reverse .feature-shot { order: initial; }
  .trust-inner { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: 2rem; }
  .hero h1 { font-size: 2.25rem; }
  .section-title { font-size: 1.5rem; margin-bottom: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .video-play { width: 64px; height: 64px; }
  .video-meta { left: 0.85rem; right: 0.85rem; bottom: 0.85rem; }
  .pain-card, .how-steps li { padding: 1.5rem; }
  .creds { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner { animation: none; }
  * { transition-duration: 0.001ms !important; }
}
