:root {
  --bg: #f8f2ed;
  --bg-alt: #fdf7f2;
  --ink: #3a2c27;
  --muted: #6a5a52;
  --accent: #c58c74;
  --accent-2: #e7c2b2;
  --cream: #f3e3d8;
  --shadow: rgba(58, 44, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Quicksand", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(248, 242, 237, 0.95) 0%, rgba(253, 247, 242, 0.95) 100%);
  position: relative;
}

.bg-watermark {
  position: fixed;
  inset: 0;
  background: url("assets/pattern.svg") center center / 1200px no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
footer,
.float-wa,
.to-top {
  position: relative;
  z-index: 2;
}

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

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 16px;
  letter-spacing: 0.2px;
}

p {
  line-height: 1.7;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.container.narrow {
  width: min(860px, 92vw);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 247, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(197, 140, 116, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand img {
  height: 56px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

.nav a {
  padding: 6px 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 12px 24px -16px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px var(--shadow);
  background: #b57b63;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(197, 140, 116, 0.4);
  box-shadow: none;
}

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.hero-text {
  max-width: 680px;
}

.hero-text h1 {
  max-width: 600px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 3.5vw, 3.5rem);
  color: var(--ink);
}

.lead {
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-note {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.65);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(197, 140, 116, 0.2);
}

.hero-media {
  display: none;
}

.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: 0 24px 60px -36px var(--shadow);
  width: 100%;
}

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

.hero-card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(58, 44, 39, 0) 0%, rgba(58, 44, 39, 0.9) 100%);
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-card-text p {
  font-size: 0.9rem;
  margin: 6px 0 0;
}

.hero-card-text p,
.hero-card-text strong {
  color: #fff;
}

.hero-mini {
  display: flex;
  gap: 16px;
  align-items: center;
  background: white;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 18px 36px -28px var(--shadow);
}

.hero-mini img {
  width: 90px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

.mini-title {
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(197, 140, 116, 0.2);
  border-bottom: 1px solid rgba(197, 140, 116, 0.2);
}

.section-head {
  max-width: 640px;
  margin-bottom: 18px;
}

.about-text {
  max-width: 760px;
  margin: 0;
}

.image-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 980px;
  margin: 18px auto 0;
  justify-items: center;
}

.image-stack img {
  border-radius: 18px;
  box-shadow: 0 20px 40px -30px var(--shadow);
}

.image-stack .banner-card {
  width: 100%;
  max-width: 300px;
}

.highlight {
  background: var(--cream);
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(197, 140, 116, 0.25);
  margin-top: 14px;
  margin-bottom: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 20px 40px -30px var(--shadow);
  border: 1px solid rgba(197, 140, 116, 0.2);
}

.card h3 {
  margin-bottom: 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step {
  background: white;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(197, 140, 116, 0.2);
  box-shadow: 0 16px 32px -28px var(--shadow);
}

.step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  background: white;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(197, 140, 116, 0.2);
  box-shadow: 0 20px 40px -30px var(--shadow);
}

.cta-inline {
  font-weight: 600;
  color: var(--accent);
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: var(--cream);
  border-radius: 22px;
  border: 1px solid rgba(197, 140, 116, 0.3);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 30px -24px var(--shadow);
}

.banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 40px -30px var(--shadow);
  border: 1px solid rgba(197, 140, 116, 0.15);
}

.gallery .banner-card {
  cursor: zoom-in;
}

.gallery .banner-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery .banner-card {
  padding: 0;
  border: none;
}

.gallery .banner-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.banner-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: white;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(197, 140, 116, 0.2);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.contact-card {
  background: white;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(197, 140, 116, 0.2);
  box-shadow: 0 16px 32px -28px var(--shadow);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.site-footer {
  padding: 30px 0 50px;
  border-top: 1px solid rgba(197, 140, 116, 0.25);
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner img {
  height: 56px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #25d366;
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.35);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 76px;
  background: var(--accent);
  color: #fff;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 18, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: min(900px, 90vw);
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: min(420px, 100%);
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-stack {
    max-width: 100%;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn,
  .btn.ghost {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .card-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {

  .card-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Landing Page Styles */
.hero-learning {
  background-color: var(--bg-soft);
  text-align: center;
  padding: 6rem 1rem;
}

.hero-learning h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-learning .lead {
  font-size: 1.25rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.waitlist-section {
  background: white;
  padding: 4rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-width: 500px;
  margin: -3rem auto 0;
  position: relative;
  z-index: 10;
  text-align: center;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
}

.btn-submit {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: var(--primary-dark);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid white;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 2fr;
    text-align: left;
  }
}

/* Toast Notification */
.toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1001;
  left: 50%;
  bottom: 30px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

.toast.success {
  background-color: #4CAF50;
}

.toast.error,
.toast.exists {
  background-color: #f44336;
}