/* ── Variables — Light Theme ─────────────────── */
:root {
  --primary:        #8B6330;
  --primary-light:  #C5A580;
  --primary-glow:   rgba(139,99,48,.2);
  --bg-body:        #F5F0E8;
  --bg-image:       linear-gradient(rgba(245,240,232,.82), rgba(245,240,232,.82)),
                    url('bg.webp');
  --card-bg:        rgba(255,255,255,.88);
  --card-border:    rgba(139,99,48,.12);
  --card-shadow:    0 4px 32px rgba(100,70,30,.1);
  --card-shadow-hover: 0 12px 48px rgba(100,70,30,.18);
  --text-main:      #1C1410;
  --text-muted:     #6B5B4A;
  --text-soft:      #9C8878;
  --radius:         28px;
  --divider:        rgba(139,99,48,.1);
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--primary-light) transparent; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::selection { background: var(--primary-glow); color: var(--text-main); }

/* ── Body ────────────────────────────────────── */
body {
  background-color: var(--bg-body);
  background-image: var(--bg-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Brand Header ────────────────────────────── */
.brand-header {
  text-align: center;
  font-weight: 800;
  font-size: clamp(1rem, 3vw, 1.8rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 52px 24px 36px;
  position: relative;
  z-index: 2;
  cursor: default;
}

/* ── Container ───────────────────────────────── */
.container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow .3s ease, transform .3s ease;
}

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

.card--hero {
  border-color: rgba(139,99,48,.18);
  background: rgba(255,255,255,.94);
}
.card--hero:hover { transform: none; }

.card--cta {
  text-align: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,252,245,.96), rgba(255,248,236,.96));
  border-color: rgba(139,99,48,.25);
}

/* ── Label ───────────────────────────────────── */
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ── Hero ────────────────────────────────────── */
.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}
.hero-title em {
  font-style: italic;
  color: var(--primary);
}

.hero-desc {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── Pain list ───────────────────────────────── */
.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pain-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: .97rem;
  color: var(--text-main);
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(245,240,232,.6);
  transition: background .2s, border-color .2s;
}
.pain-list li:hover {
  background: rgba(139,99,48,.06);
  border-color: rgba(139,99,48,.15);
}

.pain-icon {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Typography ──────────────────────────────── */
.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.body-text {
  font-size: .97rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.body-text strong { color: var(--text-main); font-weight: 600; }

.highlight-box {
  background: linear-gradient(135deg, rgba(197,165,128,.12), rgba(197,165,128,.06));
  border: 1px solid rgba(139,99,48,.2);
  border-left: 3px solid var(--primary);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: .95rem;
  color: var(--text-main);
  line-height: 1.8;
  font-style: italic;
}

.note {
  font-size: .88rem;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.7;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

/* ── Semesters ───────────────────────────────── */
.semester-list { display: flex; flex-direction: column; }

.semester-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
}
.semester-item:last-child { border-bottom: none; }

.semester-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: .25;
  min-width: 36px;
  line-height: 1;
  padding-top: 3px;
  flex-shrink: 0;
}

.semester-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.semester-text {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Results ─────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(245,240,232,.7);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  transition: background .2s, border-color .2s, transform .2s;
}
.result-item:hover {
  background: rgba(197,165,128,.1);
  border-color: rgba(139,99,48,.25);
  transform: translateY(-1px);
}

.result-icon {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.result-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.result-text {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Principles ──────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.principle-item {
  padding: 20px;
  background: rgba(245,240,232,.7);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  transition: border-color .3s, background .3s;
}
.principle-item:hover {
  border-color: rgba(139,99,48,.3);
  background: rgba(197,165,128,.08);
}

.principle-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.principle-text {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FAQ ─────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(245,240,232,.5);
  transition: border-color .3s, background .3s;
}
.faq-item:hover { border-color: rgba(139,99,48,.25); }
.faq-item.open {
  border-color: rgba(139,99,48,.3);
  background: rgba(255,255,255,.8);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-main);
  user-select: none;
  transition: color .2s;
}
.faq-q:hover { color: var(--primary); }

.faq-arrow {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform .3s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 16px 20px 18px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--divider);
}
.faq-item.open .faq-a { display: block; }

/* ── CTA ─────────────────────────────────────── */
.cta-title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.cta-sub {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}

/* ── Buttons ─────────────────────────────────── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, background .25s;
  letter-spacing: .02em;
  align-self: flex-start;
}
.btn-primary:hover {
  background: #7a5525;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--primary-glow);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 32px;
  border-radius: 18px;
  border: 1.5px solid rgba(139,99,48,.35);
  cursor: pointer;
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s;
  letter-spacing: .02em;
}
.btn-secondary:hover {
  background: rgba(139,99,48,.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.card > .btn-primary { align-self: flex-start; }

/* ── Footer ──────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 0 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .25s;
}
.footer-links a:hover { color: var(--primary); }

.footer-copy {
  font-size: .76rem;
  color: var(--text-soft);
  opacity: .6;
  text-align: center;
}

/* ── Scroll reveal ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --bg-image: linear-gradient(rgba(245,240,232,.9), rgba(245,240,232,.9));
  }
}

@media (max-width: 600px) {
  .brand-header { font-size: .9rem; letter-spacing: .1em; padding: 36px 16px 24px; }
  .card { padding: 24px 20px; }
  .results-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-secondary { width: 100%; align-self: stretch; }
  .cta-buttons { max-width: 100%; }
  .card > .btn-primary { align-self: stretch; }
}
