/*
 * Maja Kresnik – Detoks mini tečaj
 * Pisave: Playfair Display (naslovi), Roboto (besedila).
 * Barvna paleta: zelena #638154, krem/pesek toni.
 */

:root {
  --background:         #F5E8CF;
  --foreground:         #2C2C28;
  --card:               #F8EFE0;
  --card-foreground:    #383830;
  --primary:            #638154;
  --primary-foreground: #F8EFE0;
  --secondary:          #E5D2B8;
  --muted:              #D8CFC5;
  --muted-fg:           #5A6258;
  --border:             #D1C4B9;
  --radius:             0.5rem;
}

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

html, body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a1a18;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Utility */
.smallcaps {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
  font-size: 0.78rem;
}
.text-primary { color: var(--primary); }
.text-muted   { color: var(--muted-fg); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  border: none;
  transition: opacity .15s, background .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.btn-primary:hover { opacity: .9; }
.btn-outline {
  background: rgba(245,232,207,.6);
  color: var(--primary);
  border: 1px solid rgba(99,129,84,.4);
}
.btn-outline:hover { background: rgba(99,129,84,.1); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; font-family: 'Playfair Display', serif; }

/* ── Site header ── */
.site-header {
  border-bottom: 1px solid rgba(209,196,185,.6);
  background: rgba(245,232,207,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem 1.25rem;
  max-width: 1024px;
  margin: 0 auto;
}
.site-header .logo-link { display: flex; align-items: center; }
.site-header .logo-img  { height: 2.25rem; width: auto; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .875rem;
}
.site-header nav a { color: rgba(44,44,40,.7); transition: color .15s; }
.site-header nav a:hover { color: var(--primary); }

/* ── Site footer ── */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid rgba(209,196,185,.6);
  background: rgba(229,210,184,.4);
}
.site-footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .875rem;
  color: var(--muted-fg);
}
.site-footer .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: .25rem;
}
.site-footer a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .copyright { font-size: .75rem; padding-top: .5rem; }

/* ── Prose (lesson content) ── */
.prose-lesson {
  color: #1a1a18;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  font-size: 1.0625rem;
}
.prose-lesson h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: #1a1a18;
}
.prose-lesson h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 2.5rem 0 .9rem;
  color: var(--primary);
}
.prose-lesson h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 1.75rem 0 .6rem;
  color: #1a1a18;
}
.prose-lesson p    { margin: 0 0 1.1rem; }
.prose-lesson strong { font-weight: 600; color: #0f0f0e; }
.prose-lesson em   { font-style: italic; }
.prose-lesson ul,
.prose-lesson ol   { margin: 0 0 1.25rem 1.5rem; }
.prose-lesson li   { margin: .35rem 0; }
.prose-lesson ul li { list-style: disc; }
.prose-lesson ol li { list-style: decimal; }
.prose-lesson blockquote {
  border-left: 3px solid var(--primary);
  background: rgba(229,210,184,.55);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  border-radius: 0 .5rem .5rem 0;
}
.prose-lesson blockquote p { margin: .35rem 0; }
.prose-lesson a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-lesson a:hover { opacity: .8; }
.prose-lesson hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.prose-lesson code {
  background: var(--muted);
  padding: .1rem .35rem;
  border-radius: .25rem;
  font-size: .9em;
  font-family: monospace;
}

/* ── Lesson article layout ── */
.lesson-article {
  max-width: 768px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}
@media (min-width: 768px) { .lesson-article { padding: 4rem 1.25rem 6rem; } }

.lesson-breadcrumb { margin-bottom: 1.5rem; }
.lesson-breadcrumb a {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 300;
  font-size: .78rem;
  color: var(--primary);
}
.lesson-breadcrumb a:hover { opacity: .8; }
.lesson-number { margin-bottom: .75rem; }

/* ── Paywall ── */
.paywall-wrapper { position: relative; }
.paywall-content-locked {
  max-height: 420px;
  overflow: hidden;
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
.paywall-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(245,232,207,.6) 35%,
    var(--background) 100%);
}
.paywall-box {
  margin: 1.5rem;
  max-width: 32rem;
  border-radius: 1rem;
  background: rgba(248,239,224,.96);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  padding: 1.75rem;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.paywall-box h3 { font-size: 1.5rem; margin: .5rem 0 .75rem; }
.paywall-box p {
  color: var(--muted-fg);
  font-size: .875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.paywall-buttons {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
}
@media (min-width: 480px) { .paywall-buttons { flex-direction: row; } }

/* ── Lesson 6 CTA ── */
.lesson-cta {
  margin-top: 3.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(99,129,84,.3);
  background: rgba(99,129,84,.05);
  padding: 2rem;
  text-align: center;
}
@media (min-width: 768px) { .lesson-cta { padding: 2.5rem 3rem; } }
.lesson-cta h2 { font-size: 1.5rem; margin: .75rem 0 1rem; }
.lesson-cta > p {
  color: rgba(44,44,40,.8);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-note { margin-top: 1rem; font-size: .75rem; color: var(--muted-fg); }

/* ── Lesson nav (prev / next) ── */
.lesson-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) { .lesson-nav { flex-direction: row; } }
.nav-item {
  flex: 1;
  display: block;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
  transition: border-color .15s;
}
.nav-item:hover  { border-color: rgba(99,129,84,.4); }
.nav-item.right  { text-align: right; }
.nav-item .nav-label {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 300;
  font-size: .72rem;
  color: var(--muted-fg);
  margin-bottom: .2rem;
}
.nav-item .nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #1a1a18;
  transition: color .15s;
}
.nav-item:hover .nav-title { color: var(--primary); }
.nav-spacer { flex: 1; }

/* ──────────── LANDING PAGE ──────────── */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right,
    rgba(245,232,207,.96) 0%,
    rgba(245,232,207,.72) 55%,
    rgba(245,232,207,.25) 100%);
}
.hero-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 5rem 1.25rem 7rem;
}
@media (min-width: 768px) { .hero-inner { padding: 7rem 1.25rem 9rem; } }
.hero-inner .logo-img { height: 3rem; width: auto; margin-bottom: 2rem; }
.hero-eyebrow { margin-bottom: 1rem; }
.hero-inner h1 {
  font-size: 2.75rem;
  line-height: 1.06;
  max-width: 34rem;
}
@media (min-width: 768px) { .hero-inner h1 { font-size: 3.75rem; } }
.hero-inner h1 em { font-style: italic; color: var(--primary); }
.hero-desc {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.1rem;
  color: rgba(44,44,40,.8);
  line-height: 1.7;
}
.hero-buttons { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* Section intro */
.section-intro {
  max-width: 768px;
  margin: 0 auto;
  padding: 5rem 1.25rem;
  text-align: center;
}
.section-intro h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .section-intro h2 { font-size: 2.25rem; } }
.section-intro p {
  font-size: 1.1rem;
  color: rgba(44,44,40,.8);
  line-height: 1.75;
}

/* Section content (cards) */
.section-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 1.875rem; }
@media (min-width: 768px) { .section-header h2 { font-size: 2.25rem; } }

.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }

.lesson-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: box-shadow .15s, border-color .15s;
  text-decoration: none;
  color: inherit;
}
.lesson-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border-color: rgba(99,129,84,.4);
}
.lesson-card.bonus-card { background: rgba(229,210,184,.4); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.card-num {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 300;
  font-size: .78rem;
  color: var(--primary);
}
.card-badge { font-size: .75rem; color: var(--muted-fg); }
.lesson-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: .75rem;
  transition: color .15s;
}
.lesson-card:hover h3 { color: var(--primary); }
.lesson-card p {
  font-size: .875rem;
  color: rgba(44,44,40,.75);
  line-height: 1.6;
  flex: 1;
}
.card-link {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--primary);
  font-weight: 500;
}

/* Support section */
.section-support {
  max-width: 768px;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}
.support-box {
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
@media (min-width: 640px) { .support-box { padding: 3rem; } }
.support-box h2 { font-size: 1.875rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .support-box h2 { font-size: 2.25rem; } }
.support-box > p {
  color: rgba(44,44,40,.75);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.support-amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.support-amounts a {
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
  font-family: 'Playfair Display', serif;
  transition: opacity .15s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.support-amounts a:hover { opacity: .9; }
.support-custom { margin-top: .5rem; }
.support-custom a {
  font-size: .875rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.support-custom a:hover { opacity: .8; }
.support-note {
  margin-top: 2rem;
  font-size: .75rem;
  color: var(--muted-fg);
}

/* About section */
.section-about {
  max-width: 768px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  text-align: center;
}
.section-about h2 { font-size: 1.875rem; margin-bottom: 1rem; }
.section-about p { color: rgba(44,44,40,.75); line-height: 1.7; }
.section-about a {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* FAQ section */
.section-faq {
  max-width: 768px;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}
.section-faq .section-header { margin-bottom: 2.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
details.faq-item {
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  transition: box-shadow .15s;
}
details.faq-item[open] { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
details.faq-item summary {
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { color: var(--primary); font-size: 1.5rem; flex-shrink: 0; transition: transform .2s; }
details.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  margin-top: .75rem;
  color: rgba(44,44,40,.75);
  line-height: 1.65;
  font-size: .875rem;
}

/* ──────────── HVALA PAGE ──────────── */
.hvala-section {
  max-width: 672px;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
}
.hvala-header { text-align: center; margin-bottom: 2.5rem; }
.hvala-header h1 { font-size: 2.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .hvala-header h1 { font-size: 3.125rem; } }
.hvala-header p { color: rgba(44,44,40,.75); line-height: 1.7; }

.payment-box {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.payment-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(209,196,185,.5);
}
.payment-item:first-child { padding-top: 0; }
.payment-item:last-child  { border-bottom: none; padding-bottom: 0; }
.payment-item h2 { font-size: 1.25rem; color: var(--primary); margin-bottom: .4rem; }
.payment-item p, .payment-item a {
  font-size: .875rem;
  color: rgba(44,44,40,.75);
}
.payment-item a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.payment-note-row {
  padding: 1.25rem 0 .5rem;
  border-top: 1px solid rgba(209,196,185,.5);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: .875rem;
}
.payment-note-col .note-label {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 300;
  font-size: .72rem;
  color: var(--muted-fg);
  margin-bottom: .2rem;
}
.payment-note-col p { color: var(--foreground); }

.unlock-area { margin-top: 2.5rem; text-align: center; }
.unlocked-msg {
  display: none;
  border-radius: 1rem;
  background: rgba(99,129,84,.1);
  border: 1px solid rgba(99,129,84,.3);
  padding: 1.5rem;
}
.unlocked-msg p { font-family: 'Playfair Display', serif; font-size: 1.125rem; margin-bottom: .75rem; }
.unlock-note { margin-top: 1rem; font-size: .75rem; color: var(--muted-fg); }

/* ──────────── PRIVACY NOTICE ──────────── */
.privacy-notice {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: rgba(216,207,197,.3);
  font-size: .8rem;
  color: var(--muted-fg);
  line-height: 1.6;
}
.privacy-notice strong { font-weight: 500; color: var(--foreground); }
