/* Vocab Lab marketing site */

:root {
  /* Brand tokens (shared with the extension) */
  --ink: #1a1523;
  --brand: #6b1ee8;
  --cyan: #23cfe0;

  /* Derived palette */
  --ink-soft: #4a4358;
  --ink-mute: #6f6880;
  --bg: #ffffff;
  --bg-alt: #f6f3ff;
  --line: #e7e1f2;
  --brand-dark: #5717c0;
  --brand-tint: #f0e9ff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(26, 21, 35, 0.06),
    0 4px 16px rgba(26, 21, 35, 0.06);
  --shadow-md: 0 12px 40px rgba(107, 30, 232, 0.14);

  --maxw: 1140px;
  --pad: 24px;

  --font-head: "Sora", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 6px 12px;
  border-radius: 999px;
}

.grad-text {
  background: linear-gradient(100deg, var(--brand), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  --_bg: var(--brand);
  --_fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  --_bg: var(--brand);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  --_bg: var(--brand-dark);
}
.btn-ghost {
  --_bg: transparent;
  --_fg: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-invert {
  --_bg: #fff;
  --_fg: var(--brand);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 0.88rem;
}
.btn-lg {
  padding: 16px 28px;
  font-size: 1.02rem;
}
.btn-icon {
  width: 20px;
  height: 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-logo {
  border-radius: 8px;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
}
.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover {
  color: var(--brand);
}
.site-header .btn-primary {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px var(--pad) 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  padding: 8px 0;
}
.mobile-nav .btn {
  margin-top: 6px;
  justify-content: center;
}
.mobile-nav.open {
  display: flex;
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  background: radial-gradient(
      1200px 400px at 80% -10%,
      var(--brand-tint),
      transparent 60%
    ),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  margin: 18px 0 16px;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 14px;
}
.hero-note {
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.trust-row li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.trust-row li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 800;
}

/* Media placeholders */
.media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-tint), #e9fbfd);
  border: 1px dashed rgba(107, 30, 232, 0.35);
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
}
.placeholder-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.7;
}
.ratio-4-3 {
  aspect-ratio: 4 / 3;
}
.ratio-16-9 {
  aspect-ratio: 16 / 9;
}
.ratio-1-1 {
  aspect-ratio: 1 / 1;
}

/* Sections */
.section {
  padding: 76px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin: 14px 0 10px;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--ink-soft);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-tint);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--ink-soft);
}

/* Screenshots */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.shot {
  margin: 0;
}
.shot-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.shot figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.92rem;
}
.benefit-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff;
}
.cta-inner {
  text-align: center;
  padding: 66px var(--pad);
}
.cta-inner h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

/* FAQ */
.faq-container {
  max-width: 780px;
}
.faq-list {
  display: grid;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  color: var(--ink-soft);
  padding: 0 0 18px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cfc9db;
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer .brand-name {
  color: #fff;
}
.footer-tagline {
  margin-top: 10px;
  color: #a79fbb;
  max-width: 32ch;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: center;
}
.footer-links a {
  color: #cfc9db;
  font-weight: 500;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  padding-top: 22px;
  font-size: 0.88rem;
  color: #8b839e;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .steps,
  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
  }
  .site-header .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 901px) and (max-width: 1040px) {
  .feature-grid,
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
