/* Andesyte — educational landing, Coursera-inspired navy/white */
:root {
  --navy-900: #0a1628;
  --navy-800: #0f2744;
  --navy-700: #1a3a5c;
  --blue-600: #0056d2;
  --blue-500: #0a6cff;
  --blue-100: #e8f1ff;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --accent: #0056d2;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

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

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

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--navy-900);
  color: var(--white);
}

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

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy-900);
}

.brand-link:hover {
  text-decoration: none;
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.nav-main a {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--blue-600);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #0047b3;
  text-decoration: none;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--white);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--blue-100);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--blue-100) 0%, var(--white) 55%, var(--gray-50) 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 36ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(10, 22, 40, 0.88);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 62ch;
  color: var(--gray-600);
}

/* Value cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.value-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--navy-800);
}

.value-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* Quiz */
.quiz-shell {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2rem);
  max-width: 720px;
  margin-inline: auto;
}

.quiz-progress {
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.quiz-question {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--navy-900);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.quiz-option:hover {
  border-color: var(--blue-100);
  background: var(--gray-50);
}

.quiz-option input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.quiz-option span {
  flex: 1;
  font-size: 0.975rem;
}

.quiz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.quiz-result {
  text-align: center;
  padding: 1rem 0;
}

.quiz-result h3 {
  margin: 0 0 0.5rem;
  color: var(--navy-900);
}

.quiz-result p {
  margin: 0 0 1rem;
  color: var(--gray-600);
}

.hidden {
  display: none !important;
}

/* Form */
.lead-panel {
  background: var(--navy-900);
  color: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 560px;
  margin-inline: auto;
}

.lead-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.lead-panel > p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
  font-size: 0.975rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-group input:focus {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-color: transparent;
}

.lead-panel .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.9rem;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  opacity: 0.75;
  line-height: 1.5;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(10, 22, 40, 0.05);
}

.testimonial-card figure {
  margin: 0;
}

.testimonial-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.testimonial-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.testimonial-body blockquote {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--gray-800);
  font-style: normal;
  line-height: 1.55;
}

.testimonial-meta {
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 1.1rem 0;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item button::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--blue-600);
  flex-shrink: 0;
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-panel {
  padding: 0 0 1.1rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  display: none;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* Trust strip */
.trust-bar {
  background: var(--navy-800);
  color: var(--white);
  padding: 1rem 0;
  font-size: 0.875rem;
  text-align: center;
}

.trust-bar p {
  margin: 0;
  opacity: 0.92;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col p,
.footer-col address {
  margin: 0;
  font-style: normal;
  line-height: 1.6;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 -8px 32px rgba(10, 22, 40, 0.12);
  padding: 1rem 0;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: min(100%, 320px);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.cookie-text a {
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-ghost {
  background: transparent;
  color: var(--gray-800);
  border: 1px solid var(--gray-100);
}

.btn-ghost:hover {
  background: var(--gray-50);
}

/* Legal pages shared */
.legal-page {
  padding: 2rem 0 4rem;
}

.legal-page h1 {
  color: var(--navy-900);
  margin-top: 0;
}

.legal-page h2 {
  color: var(--navy-800);
  margin-top: 2rem;
  font-size: 1.2rem;
}

.legal-page p,
.legal-page li {
  color: var(--gray-600);
  max-width: 70ch;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
