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

:root {
  --bg:        #F0F0F0;
  --tile:      #C0C0B0;
  --accent:    #D0C0B0;
  --highlight: #F0E0D0;
  --icon:      #B0B0B0;
  --heading:   #3A3A3A;
  --surface:   #ffffff;
  --border:    #D8D8D0;
  --muted:     #7A7A72;
  --radius:    10px;
  --shadow:    0 2px 12px rgba(58,58,58,0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: #000;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--surface);
  
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(58,58,58,0.06);
}
.logo-wrap { display: flex; align-items: center; }
.logo { font-size: 1.25rem; font-weight: 700; color: #000; letter-spacing: -0.3px; }
.logo span { color: var(--muted); }
.tagline {
  font-size: 0.71rem;
  color: #000;
  margin-left: 14px;
  border-left: 1px solid var(--border);
  padding-left: 14px;
}
.header-right { display: flex; gap: 10px; align-items: center; }

.btn-ghost {
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-ghost:hover { background: var(--bg); }

.btn-primary {
  padding: 7px 20px;
  background: var(--heading);
  border: 1px solid var(--heading);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-primary:hover { background: #222; }

/* ── Hero ── */
.hero {
  background-color: #fff;
  background-image: url(https://plasticademy.org/core/resource/img/plasticademy_hero.jpg);
  background-position: center 60%;
  background-size: 110%;
  background-repeat: no-repeat;
  
  padding: 76px 40px 55px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--tile);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  line-height: 1.22;
  max-width: 660px;
  margin: 0 auto 18px;
}
.hero h1 em { color: var(--highlight); font-style: normal; }
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--heading);
  color: #fff;
  padding: 13px 32px;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-hero-primary:hover { background: #222; }
.btn-hero-secondary {
  background: none;
  border: none;
  color: var(--muted);
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 162px;
  padding-top: 36px;
  
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 700; color: #000; }
.stat-label { font-size: 0.9rem; color: #000; margin-top: 3px; }

/* ── Section Layout ── */
.section {
  padding: 56px 40px;
  max-width: 1140px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(58,58,58,0.05);
}
.section-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.section-header h2 { font-size: 1.35rem; font-weight: 700; color: #000; }
.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--accent);
  border: 1px solid var(--tile);
  padding: 3px 10px;
  border-radius: 20px;
}
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(58,58,58,0.11); }

.card-img {
  width: 100%;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: var(--highlight);
  position: relative;
}
.card-type {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--tile);
  color: #000;
  padding: 3px 9px;
  border-radius: 4px;
}
.card-type.video { background: var(--accent); }

.card-body { padding: 18px 20px; }
.card-title { font-size: 0.94rem; font-weight: 600; color: #000; margin-bottom: 7px; line-height: 1.45; }
.card-excerpt { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  padding-top: 12px;
}
.card-meta { font-size: 0.71rem; color: #000; display: flex; gap: 12px; }
.free-tag {
  font-size: 0.67rem;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 10px;
  border: 1px solid var(--tile);
}

/* ── Locked Library ── */
.locked-wrap { position: relative; }

.locked-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}
.locked-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 240px;
}
.locked-img { height: 120px; background: var(--highlight); }
.locked-body { padding: 18px; }
.locked-bar { height: 11px; background: var(--bg); border-radius: 6px; margin-bottom: 9px; }
.locked-bar.short { width: 58%; }
.locked-bar.medium { width: 78%; }

.paywall-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(240,240,240,0) 0%,
    rgba(240,240,240,0.7) 30%,
    rgba(240,240,240,1) 56%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
}
.paywall-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px 44px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(58,58,58,0.10);
  max-width: 460px;
  width: 100%;
}
.lock-icon {
  width: 50px;
  height: 50px;
  background: var(--highlight);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 18px;
}
.paywall-box h3 { font-size: 1.15rem; font-weight: 700; color: #000; margin-bottom: 9px; }
.paywall-box p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.paywall-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-join {
  display: block;
  width: 100%;
  background: var(--heading);
  color: #fff;
  padding: 13px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-join:hover { background: #222; }
.btn-signin {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #000;
  padding: 12px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--tile);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-signin:hover { background: var(--tile); }
.paywall-note { font-size: 0.72rem; color: #000; margin-top: 13px; }

/* ── Footer ── */
footer {
  
  background: #fff;
  padding: 24px 40px;
  text-align: center;
  font-size: 0.78rem;
  color: #000;
  margin-top: 20px;
  box-shadow: 0 -2px 18px rgba(58,58,58,0.05);
}

/* ── Modals ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(58,58,58,0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 14px;
  padding: 40px 44px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 16px 60px rgba(58,58,58,0.18);
  position: relative;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #000;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: #000; }
.modal-logo { font-size: 1.1rem; font-weight: 700; color: #000; margin-bottom: 20px; }
.modal-logo span { color: var(--muted); }
.modal h2 { font-size: 1.25rem; font-weight: 700; color: #000; margin-bottom: 6px; }
.modal-sub { font-size: 0.83rem; color: var(--muted); margin-bottom: 26px; }

.form-group { text-align: left; margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: #000; margin-bottom: 5px; }
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.88rem;
  color: #000;
  background: var(--bg);
  font-family: inherit;
  outline: none;
}
.form-group input:focus {
  border-color: var(--tile);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(58,58,58,0.12);
}

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #b94a4a;
  background: #fdf0f0;
  border: 1px solid #e8c4c4;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 14px;
  text-align: left;
}
.form-error.visible { display: block; }

.btn-modal-submit {
  width: 100%;
  background: var(--heading);
  color: #fff;
  padding: 12px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: 2px;
  transition: background 0.15s;
}
.btn-modal-submit:hover { background: #222; }

.modal-footer-note { font-size: 0.78rem; color: var(--muted); margin-top: 20px; }
.link-btn {
  background: none;
  border: none;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}

.checkout-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 92%;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(28, 28, 28, 0.94);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.16);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.checkout-toast-info { background: rgba(52, 58, 64, 0.94); }
.checkout-toast-warning { background: rgba(209, 121, 42, 0.94); }
.checkout-toast-error { background: rgba(168, 54, 54, 0.94); }

.btn-loading {
  opacity: 0.78;
  cursor: progress;
}

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ffffff;
  border-top: 1px solid #D8D8D0;
  box-shadow: 0 -4px 24px rgba(58,58,58,0.10);
  z-index: 9999;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
#cookie-banner p { font-size: 0.83rem; color: #7A7A72; line-height: 1.6; max-width: 680px; margin: 0; }
#cookie-banner a { color: #3A3A3A; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn-cookie-accept { background: #3A3A3A; color: #fff; padding: 10px 22px; border-radius: 6px; font-size: 0.83rem; font-weight: 600; border: none; cursor: pointer; font-family: inherit; }
.btn-cookie-accept:hover { background: #222; }
.btn-cookie-necessary { background: transparent; color: #3A3A3A; padding: 10px 22px; border-radius: 6px; font-size: 0.83rem; font-weight: 500; border: 1px solid #D8D8D0; cursor: pointer; font-family: inherit; }
.btn-cookie-necessary:hover { background: #F0F0F0; }

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  header {
    padding: 0 18px;
    flex-wrap: wrap;
    height: auto;
    align-items: center;
    gap: 14px;
  }
  .logo-wrap { width: 100%; justify-content: space-between; }
  .tagline { display: none; }
  .hero { padding: 56px 18px 45px; }
  .section { padding: 44px 18px; }
  .hero h1 { font-size: 2rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; margin-top: 120px; }
  .paywall-box { padding: 28px 24px; }
  footer { padding: 24px 18px; }
}

