:root {
  --sand: #fbf6ee;
  --sand-2: #f4eadb;
  --card: #ffffff;
  --ink: #3a2216;
  --ink-soft: #6b5446;
  --line: #eadfce;
  --orange: #ff7530;
  --orange-deep: #e85f1c;
  --gold: #ffce59;
  --camel: #d4a265;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(58, 34, 22, .06), 0 12px 32px -12px rgba(58, 34, 22, .18);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.65 "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.script { font-family: "Caveat", cursive; color: var(--orange); font-weight: 700; letter-spacing: 0; font-size: 1.18em; padding-right: .12em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 117, 48, .7); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: .65em 1.25em; font-size: 15px; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav .btn { margin-top: 16px; justify-content: center; font-size: 16px; }
}

/* Hero */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; }
.hero-lead { margin-top: 22px; font-size: 19px; color: var(--ink-soft); max-width: 34ch; }
.hero-lead strong { color: var(--ink); }
.hero .actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%;
  background: var(--gold); border-radius: 40px; transform: rotate(4deg); z-index: -1;
}
.hero-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 36px; box-shadow: var(--shadow); }

@media (max-width: 860px) {
  .hero { padding: 32px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 480px; margin-inline: auto 12px; }
}

/* Intro statement */
.intro { padding: 24px 0 96px; }
.intro p {
  font-size: clamp(22px, 2.8vw, 32px); font-weight: 500; line-height: 1.45;
  max-width: 30em; margin-inline: auto; text-align: center; letter-spacing: -.01em;
}
.intro p::first-letter { color: var(--orange); }

/* Section heading */
.section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; }

/* Why — feature cards */
.why { background: var(--card); border-radius: 48px 48px 0 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--sand); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.feature-body { padding: 24px 26px 30px; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* Levels */
.levels-section { background: var(--card); padding-top: 24px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.level {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 30px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--sand); text-decoration: none; min-height: 220px;
}
.level h3 { font-size: 26px; }
.level-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.level-steps i { width: 26px; height: 8px; border-radius: 4px; background: var(--line); }
.level-steps i.on { background: var(--orange); }
.level .tag {
  align-self: flex-start; font-size: 14px; font-weight: 700;
  padding: .45em 1em; border-radius: 999px; background: var(--sand-2); color: var(--ink-soft);
}
.level.active { background: var(--ink); border-color: var(--ink); color: #fff; transition: transform .2s; }
.level.active:hover { transform: translateY(-4px); }
.level.active .level-steps i { background: rgba(255, 255, 255, .2); }
.level.active .level-steps i.on { background: var(--orange); }
.level.active .tag { background: var(--orange); color: #fff; display: inline-flex; gap: .4em; align-items: center; }
.level.active .tag svg { width: 15px; height: 15px; transition: transform .2s; }
.level.active:hover .tag svg { transform: translateX(3px); }
.level.soon { opacity: .75; }

@media (max-width: 900px) {
  .levels { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .level { min-height: 0; gap: 28px; }
}

/* CTA band */
.cta-wrap { background: var(--card); padding-bottom: 96px; }
.cta {
  position: relative; overflow: hidden;
  background: var(--orange); color: #fff; border-radius: 36px;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.cta::before { width: 340px; height: 340px; left: -120px; top: -160px; }
.cta::after { width: 260px; height: 260px; right: -80px; bottom: -140px; background: rgba(255, 206, 89, .35); }
.cta h2 { position: relative; font-size: clamp(32px, 4.6vw, 52px); }
.cta p { position: relative; margin: 16px auto 32px; max-width: 34em; font-size: 18px; opacity: .95; }
.cta .btn { position: relative; background: #fff; color: var(--ink); box-shadow: none; }
.cta .btn:hover { background: var(--ink); color: #fff; }

/* Community + testimonials */
.community .section-head { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.avatars { display: flex; }
.avatars img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--sand); margin-left: -16px; box-shadow: var(--shadow);
}
.avatars img:first-child { margin-left: 0; }
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote {
  background: var(--card); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 28px; margin: 0;
}
.quote svg { width: 36px; height: 36px; color: var(--orange); flex: none; }
.quote blockquote { margin: 0; font-size: 18px; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote .initial {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand-2); font-weight: 700; color: var(--ink);
}
.quote .who strong { display: block; }
.quote .who span { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 860px) {
  .testimonials { grid-template-columns: 1fr; }
  .quote { padding: 28px 24px; }
}

/* Footer */
.footer { background: var(--ink); color: #e9ddd1; padding: 72px 0 36px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { height: 38px; width: auto; }
.footer h4 { margin: 0 0 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: #e9ddd1; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px; color: #b9a596;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Legal pages */
.legal-hero { padding: 64px 0 40px; text-align: center; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.legal-hero p { margin-top: 12px; color: var(--ink-soft); }
.legal-tabs { display: inline-flex; gap: 6px; margin-top: 28px; padding: 6px; border-radius: 999px; background: var(--sand-2); }
.legal-tabs a { padding: .55em 1.2em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.legal-tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.legal { padding-bottom: 96px; }
.legal .wrap { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; }
.toc a { display: block; padding: 6px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-soft); border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: var(--sand-2); }
.toc a.active { color: var(--ink); border-left-color: var(--orange); background: var(--sand-2); }
.legal-body { background: var(--card); border-radius: 28px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); max-width: 780px; }
.legal-body section { scroll-margin-top: 96px; }
.legal-body section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: 24px; margin-bottom: 14px; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 14px; }
.legal-body p, .legal-body li { color: #4d372b; }
.legal-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--orange); }

@media (max-width: 900px) {
  .legal .wrap { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

/* Inner pages (About us, FAQs, Contact) */
.page-hero { padding: 72px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); }
.page-hero p { margin: 18px auto 0; max-width: 36em; font-size: 19px; color: var(--ink-soft); }
.page-section { padding-bottom: 96px; }

.about-story { padding-bottom: 32px; }
.about-story .wrap {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center;
  background: var(--card); border-radius: 36px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow);
}
.about-story img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 26px; }
.about-story h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; }
.about-story p { color: var(--ink-soft); font-size: 18px; }
.about-story p + p { margin-top: 14px; }
.cta-plain { background: transparent; }
@media (max-width: 860px) {
  .about-story .wrap { grid-template-columns: 1fr; gap: 28px; }
}

.faq-list { max-width: 780px; display: grid; gap: 12px; }
.faq {
  background: var(--card); border-radius: 18px; border: 1.5px solid transparent;
  box-shadow: var(--shadow); transition: border-color .2s;
}
.faq[open] { border-color: var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sand-2);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon { background: var(--orange); }
.faq[open] .faq-icon::before, .faq[open] .faq-icon::after { background: #fff; }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq p { padding: 0 26px 24px; color: var(--ink-soft); }
.faq a, .legal-body a { color: var(--orange-deep); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card h2 { font-size: 22px; }
.contact-card p { color: var(--ink-soft); overflow-wrap: anywhere; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sand-2); color: var(--orange); margin-bottom: 8px;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-card.primary { background: var(--ink); color: #fff; }
.contact-card.primary p { color: #e9ddd1; font-weight: 600; }
.contact-card.primary .contact-icon { background: var(--orange); color: #fff; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.soon-badge {
  display: inline-block; margin-left: 6px; padding: .1em .6em; border-radius: 999px;
  background: rgba(255, 206, 89, .18); color: var(--gold); font-size: 12px; font-weight: 600; vertical-align: 1px;
}
.empty-state {
  max-width: 620px; margin-inline: auto; text-align: center; background: var(--card);
  border-radius: 28px; padding: clamp(32px, 6vw, 56px); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-state h2 { font-size: 26px; }
.empty-state p { color: var(--ink-soft); }
.empty-state a { color: var(--orange-deep); font-weight: 600; }

/* Homepage testimonials: 3 columns, swipeable row on phones */
.testimonials-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) {
  .testimonials-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .testimonials-6 {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 4px 16px 24px; scrollbar-width: none;
  }
  .testimonials-6::-webkit-scrollbar { display: none; }
  .testimonials-6 .quote { flex: 0 0 86%; scroll-snap-align: center; }
}
