/* ===== Tokens ===== */
:root {
  --espresso: #2e2018;
  --brown-900: #3b2a20;
  --brown-700: #5c4030;
  --brown-500: #8a6347;
  --caramel: #b07d52;
  --caramel-light: #d4ab82;
  --beige-300: #e6d6c2;
  --beige-200: #efe4d6;
  --cream: #f8f3ec;
  --white: #ffffff;
  --text: #3b2a20;
  --muted: #6f5a4b;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(59, 42, 32, .35);
  --shadow-sm: 0 6px 18px -8px rgba(59, 42, 32, .25);
  --header-h: 76px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--brown-900); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { color: var(--caramel); font-style: italic; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 120px) 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-head.left { text-align: left; margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brown-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brown-900); }
.btn-ghost { border-color: var(--brown-700); color: var(--brown-700); background: transparent; }
.btn-ghost:hover { background: var(--brown-700); color: var(--white); }
.btn-light { background: var(--cream); color: var(--brown-900); }
.btn-light:hover { background: var(--white); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 236, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px -10px rgba(59, 42, 32, .3); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brown-700); color: var(--cream);
  font-size: 1.3rem; font-family: serif;
}
.brand-text { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--brown-900); line-height: 1.1; }
.brand-text small { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--caramel); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--brown-700); position: relative; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--caramel); transition: width .25s;
}
.main-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--brown-900); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 171, 130, .35), transparent 45%),
    linear-gradient(180deg, var(--cream), var(--beige-200));
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.hero-points { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 32px; font-weight: 600; color: var(--brown-700); }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--caramel); color: var(--white);
  font-size: .75rem; display: grid; place-items: center;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; width: 100%; max-width: 440px; justify-self: end; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.hero-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 2px solid var(--caramel-light);
  border-radius: 200px 200px var(--radius) var(--radius);
  z-index: -1;
}
.hero-badge {
  position: absolute; left: -30px; bottom: 40px;
  background: var(--white); padding: 18px 22px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); max-width: 230px;
}
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--brown-900); }
.hero-badge span { font-size: .88rem; color: var(--muted); }

/* ===== Trust ===== */

/* ===== Why ===== */
.why { background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: var(--cream); border-radius: var(--radius); padding: 32px 26px;
  transition: transform .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }
.icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 20px;
  background: var(--beige-300); display: grid; place-items: center;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brown-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Courses ===== */
.courses { background: var(--beige-200); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.course {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-featured { outline: 3px solid var(--caramel); }
.course-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.course:hover .course-img img { transform: scale(1.05); }
.tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--brown-900); color: var(--cream);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.course-body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.course-hook { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--caramel); }
.course-body > p:not(.course-hook):not(.best-for) { color: var(--muted); font-size: .96rem; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; font-size: .95rem; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--caramel); font-weight: 700; }
.best-for { background: var(--cream); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; color: var(--brown-700); }
.course-body .btn { margin-top: auto; }

/* ===== About ===== */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.about-media { position: relative; padding-bottom: 70px; }
.about-main { width: 88%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-sub {
  position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; object-position: center 30%;
  border-radius: var(--radius); border: 6px solid var(--cream); box-shadow: var(--shadow);
}
.about-copy p { color: var(--muted); }
.about-copy .lead { color: var(--brown-700); }
.about-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.about-list li { padding: 16px 20px; background: var(--white); border-left: 4px solid var(--caramel); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.about-list strong { color: var(--brown-900); }

/* ===== How ===== */
.how { background: var(--white); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding: 36px 30px; border: 1px solid var(--beige-300); border-radius: var(--radius); background: var(--cream); }
.step-num { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--caramel-light); line-height: 1; display: block; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

/* ===== Gallery ===== */
.gallery { background: var(--white); padding-bottom: 20px; overflow: hidden; }
.gallery-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 0 12px; }
.gallery-track img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius-sm); filter: sepia(.15); transition: filter .4s; }
.gallery-track img:hover { filter: none; }

/* ===== Testimonials ===== */
.testimonials { background: var(--beige-200); }
.t-slider { position: relative; }
.t-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 20px; scrollbar-width: none;
}
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  scroll-snap-align: start; margin: 0;
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.stars { color: var(--caramel); letter-spacing: 3px; margin-bottom: 14px; }
.t-card blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; color: var(--brown-900); flex: 1; }
.t-card figcaption strong { display: block; color: var(--brown-900); }
.t-card figcaption span { font-size: .88rem; color: var(--muted); }
.t-controls { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.t-controls button {
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--brown-700);
  background: transparent; color: var(--brown-700); font-size: 1.2rem; cursor: pointer; transition: background .2s, color .2s;
}
.t-controls button:hover { background: var(--brown-700); color: var(--white); }

/* ===== CTA band ===== */
.cta-band {
  padding: 90px 0; text-align: center; color: var(--beige-200);
  background:
    linear-gradient(rgba(46, 32, 24, .82), rgba(46, 32, 24, .88)),
    url("images/pipa-closeup.jpg") center 40% / cover;
}
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: 1.1rem; margin-bottom: 30px; }

/* ===== FAQ ===== */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq .section-head.left { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-list details { border-bottom: 1px solid var(--beige-300); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 1.05rem; color: var(--brown-900);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--beige-200);
  display: grid; place-items: center; font-size: 1.2rem; color: var(--brown-700); transition: transform .3s, background .3s;
}
.faq-list details[open] summary::after { content: "–"; background: var(--caramel); color: var(--white); }
.faq-list details p { color: var(--muted); padding-right: 44px; margin: 0 0 22px; }

/* ===== Contact ===== */
.contact { background: var(--beige-200); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list strong { display: block; color: var(--brown-900); }
.contact-list a, .contact-list span:not(.ci-icon) { color: var(--muted); text-decoration: none; }
.contact-list a:hover { color: var(--caramel); }
.ci-icon { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.ci-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brown-700); stroke-width: 1.8; stroke-linejoin: round; }
.ci-icon svg path:first-child:only-child { fill: var(--brown-700); stroke: none; }

.contact-form { background: var(--white); padding: 40px 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 22px; }
.field { margin-bottom: 18px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--brown-700); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: .98rem; color: var(--text);
  background: var(--cream); border: 1.5px solid var(--beige-300); border-radius: var(--radius-sm);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--caramel); background: var(--white); }
.field .invalid { border-color: #b4472e; }
.level-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.level-group legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--brown-700); padding: 0; }
.level-options { display: flex; flex-wrap: wrap; gap: 10px; }
.level-options label { flex: 1 1 140px; cursor: pointer; position: relative; }
.level-options input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.level-options span {
  display: block; text-align: center; padding: 12px 14px; font-weight: 600; font-size: .92rem;
  background: var(--cream); border: 1.5px solid var(--beige-300); border-radius: var(--radius-sm);
  color: var(--brown-700); transition: background .2s, border-color .2s, color .2s;
}
.level-options label:hover span { border-color: var(--caramel); }
.level-options input:checked + span { background: var(--brown-700); border-color: var(--brown-700); color: var(--white); }
.level-options input:focus-visible + span { outline: 2px solid var(--caramel); outline-offset: 2px; }
.level-group.invalid .level-options span { border-color: #b4472e; }
.form-success { color: #3d6b3a; background: #edf5ea; font-size: .9rem; font-weight: 600; padding: 12px 14px; border-radius: var(--radius-sm); }
.form-error { color: #b4472e; font-size: .9rem; font-weight: 600; }
.form-note { text-align: center; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* ===== Footer ===== */
.site-footer { background: var(--espresso); color: var(--beige-300); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-grid p { font-size: .94rem; opacity: .8; max-width: 340px; margin-top: 18px; }
.footer-grid h4 { color: var(--caramel-light); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a:not(.brand) { display: block; text-decoration: none; font-size: .94rem; opacity: .85; margin-bottom: 10px; }
.footer-grid a:not(.brand):hover { opacity: 1; color: var(--caramel-light); }
.brand-light .brand-text { color: var(--cream); }
.brand-light .brand-mark { background: var(--caramel); }
.footer-bottom { border-top: 1px solid rgba(230, 214, 194, .15); padding: 22px 0; font-size: .85rem; opacity: .7; }
.footer-bottom p { margin: 0; }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ===== Reveal ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .t-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .gallery-track { grid-template-columns: repeat(3, 1fr); }
  .gallery-track img:nth-child(n+4) { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 10px 20px 24px;
    box-shadow: 0 20px 30px -20px rgba(59, 42, 32, .4);
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .main-nav.open { transform: none; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--beige-300); }
  .main-nav .btn { margin-top: 18px; }

  .hero-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-media { max-width: 440px; margin-inline: auto; width: 100%; }
  .hero-badge { left: 0; }
  .about-media { max-width: 520px; margin-inline: auto; width: 100%; }
  .faq .section-head.left { position: static; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .feature-grid { grid-template-columns: 1fr; }
  .t-track { grid-auto-columns: 88%; }
  .field-row { flex-direction: column; gap: 0; }
  .contact-form { padding: 30px 22px; }
  .hero-cta .btn { width: 100%; }
  .hero-media::before { inset: 16px -10px -16px 16px; }
  .gallery-track { grid-template-columns: repeat(2, 1fr); }
  .gallery-track img { height: 200px; }
  .gallery-track img:nth-child(n+3) { display: none; }
  .brand-text { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Student login & portal ===== */
.nav-login { white-space: nowrap; }
.back-link { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--brown-700); }
.back-link:hover { color: var(--caramel); }

.auth-page { background: linear-gradient(180deg, var(--cream), var(--beige-200)); min-height: 100vh; }
.auth-main { display: grid; place-items: center; padding: 60px 16px 90px; }
.auth-card {
  width: min(460px, 100%); background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 44px 38px;
}
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 999px; padding: 5px; margin-bottom: 26px; }
.auth-tabs button {
  border: 0; background: transparent; padding: 11px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--brown-700); transition: background .2s, color .2s;
}
.auth-tabs button.active { background: var(--brown-700); color: var(--white); }
.hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.auth-msg { font-size: .9rem; font-weight: 600; padding: 12px 14px; border-radius: var(--radius-sm); }
.auth-msg.error { color: #b4472e; background: #fbeee9; }
.auth-msg.success { color: #3d6b3a; background: #edf5ea; }
.auth-foot { text-align: center; margin: 22px 0 0; font-size: .92rem; color: var(--muted); }
.auth-foot a { color: var(--caramel); font-weight: 700; }
#auth-submit:disabled { opacity: .7; cursor: wait; transform: none; }

.portal-page { background: var(--cream); min-height: 100vh; }
.portal-main { padding: 50px 0 100px; }
.portal-hero { margin-bottom: 44px; }
.portal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.portal-status { color: var(--muted); }
.portal-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.portal-course, .portal-empty { background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.portal-empty { grid-column: 1 / -1; text-align: center; max-width: 560px; margin: 0 auto; }
.portal-empty p { color: var(--muted); }
.portal-desc { color: var(--muted); font-size: .96rem; }
.portal-meta { font-size: .88rem; font-weight: 600; color: var(--caramel); }
.lesson-list { list-style: none; counter-reset: lesson; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--beige-300); }
.lesson-list li { counter-increment: lesson; border-bottom: 1px solid var(--beige-300); }
.lesson-list summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--brown-900); list-style: none; }
.lesson-list summary::-webkit-details-marker { display: none; }
.lesson-list summary::before { content: counter(lesson, decimal-leading-zero) "  "; color: var(--caramel-light); font-family: var(--serif); font-weight: 700; }
.lesson-list details p { color: var(--muted); font-size: .95rem; white-space: pre-line; }
.lesson-list details .btn { margin-bottom: 16px; }

@media (max-width: 560px) {
  .auth-card { padding: 34px 22px; }
  .back-link { font-size: .85rem; }
  .portal-courses { grid-template-columns: 1fr; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.thanks-card { text-align: center; }
.thanks-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--caramel); color: var(--white); font-size: 1.8rem; display: grid; place-items: center;
}
.thanks-card .btn { margin-top: 10px; }

/* =====================================================
   Premium finish
   ===================================================== */
:root {
  --gold: #c29a5b;
  --gold-light: #e6cc98;
  --gold-deep: #9c7436;
  --hairline: rgba(156, 116, 54, .22);
  --shadow: 0 30px 60px -30px rgba(46, 32, 24, .38);
  --shadow-sm: 0 10px 30px -14px rgba(46, 32, 24, .22);
}

body { color: #3a2a20; letter-spacing: .005em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.012em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); line-height: 1.08; }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.12; }
h1 em, h2 em { color: var(--gold-deep); }
::selection { background: var(--gold-light); color: var(--espresso); }

/* Eyebrow labels with a fine gold rule */
.eyebrow { color: var(--gold-deep); letter-spacing: .24em; font-size: .74rem; display: inline-flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.section-head:not(.left) .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }

/* Buttons */
.btn { letter-spacing: .03em; padding: 16px 32px; }
.btn-primary {
  background: linear-gradient(135deg, #5c4030 0%, #3b2a20 100%);
  box-shadow: 0 12px 26px -12px rgba(46, 32, 24, .55), inset 0 0 0 1px rgba(230, 204, 152, .18);
}
.btn-primary:hover { background: linear-gradient(135deg, #3b2a20 0%, #2e2018 100%); box-shadow: 0 16px 32px -12px rgba(46, 32, 24, .6), inset 0 0 0 1px rgba(230, 204, 152, .45); }
.btn-ghost { border-width: 1.5px; }
.btn-light { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--espresso); }
.btn-light:hover { background: linear-gradient(135deg, #f0dcb2, var(--gold-light)); }
.btn-sm { padding: 11px 22px; }

/* Header */
.site-header { border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--hairline); box-shadow: 0 10px 30px -20px rgba(46, 32, 24, .35); }
.brand-mark { background: linear-gradient(145deg, #5c4030, #2e2018); color: var(--gold-light); box-shadow: inset 0 0 0 1px rgba(230, 204, 152, .35); }
.brand-text small { color: var(--gold-deep); letter-spacing: .16em; }
.main-nav a:not(.btn)::after { background: var(--gold); height: 1px; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 15%, rgba(230, 204, 152, .4), transparent 45%), linear-gradient(180deg, var(--cream), var(--beige-200)); }
.hero .lead { font-size: 1.2rem; max-width: 34em; }
.hero-points li::before { background: none; border: 1px solid var(--gold); color: var(--gold-deep); }
.hero-media::before { border: 1px solid var(--gold); }
.hero-badge { border-top: 2px solid var(--gold); }

/* Numbers: big, gold, impossible to miss */
.trust {
  position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 90px) 0;
  background:
    radial-gradient(ellipse at 50% -40%, rgba(194, 154, 91, .28), transparent 65%),
    linear-gradient(180deg, #2e2018, #241911);
  color: var(--beige-200);
  border-top: 1px solid rgba(230, 204, 152, .25);
  border-bottom: 1px solid rgba(230, 204, 152, .25);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 10px 18px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(230, 204, 152, .45), transparent);
}
.stat strong {
  display: flex; justify-content: center; align-items: baseline; gap: 4px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(180deg, #f6e4bd 0%, #e6cc98 40%, #b88c4a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
}
.stat .unit { font-size: .55em; }
.stat .unit-word { font-size: .32em; letter-spacing: .08em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; }
.stat-label {
  display: block; margin-top: 16px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(239, 228, 214, .85);
}

/* Cards: fine gold hairlines, soft depth */
.feature, .course, .step, .t-card, .contact-form, .portal-course, .portal-empty, .auth-card { border: 1px solid var(--hairline); }
.feature { background: var(--white); box-shadow: var(--shadow-sm); }
.why { background: var(--cream); }
.icon { background: none; border: 1px solid var(--gold); border-radius: 50%; }
.icon svg { stroke: var(--gold-deep); stroke-width: 1.5; }
.course-featured { outline: none; border: 1px solid var(--gold); box-shadow: 0 30px 60px -30px rgba(156, 116, 54, .55); }
.tag { background: rgba(46, 32, 24, .85); color: var(--gold-light); letter-spacing: .16em; backdrop-filter: blur(4px); }
.course-hook { color: var(--gold-deep); }
.checks li::before { color: var(--gold); }
.best-for { background: var(--cream); border-left: 2px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.about-list li { border-left: 2px solid var(--gold); }
.about-main, .about-sub { border-radius: 4px; }
.about-sub { border-color: var(--cream); }
.step-num { color: var(--gold); font-weight: 500; }
.stars { color: var(--gold); }
.t-card blockquote { font-style: italic; }
.t-controls button { border-width: 1.5px; }
.faq-list details[open] summary::after { background: var(--gold); }
.level-options input:checked + span { background: linear-gradient(135deg, #5c4030, #3b2a20); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 154, 91, .15); }
.ci-icon { border: 1px solid var(--hairline); }

/* Dark bands */
.cta-band { border-top: 1px solid rgba(230, 204, 152, .25); }
.cta-band h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.site-footer { border-top: 1px solid rgba(230, 204, 152, .25); }
.brand-light .brand-mark { background: linear-gradient(145deg, var(--gold-light), var(--gold)); color: var(--espresso); }
.footer-grid h4 { color: var(--gold-light); }

@media (max-width: 860px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .stat { padding: 6px 8px; }
  .stat strong { font-size: clamp(3rem, 15vw, 3.8rem); }
  .stat-label { font-size: .68rem; letter-spacing: .14em; }
  .eyebrow::before, .section-head:not(.left) .eyebrow::after { width: 22px; }
}

/* ===== Gradients ===== */
:root {
  --grad-gold: linear-gradient(135deg, #f3dfb4 0%, #d9b677 45%, #a77b3c 100%);
  --grad-gold-text: linear-gradient(120deg, #b88a45 0%, #8f6630 50%, #c29a5b 100%);
  --grad-espresso: linear-gradient(160deg, #3b2a20 0%, #2e2018 55%, #1f1510 100%);
}

/* Gold gradient on the italic highlight words in headings */
h1 em, h2 em {
  background: var(--grad-gold-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.cta-band h2 em, .trust h2 em { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; }

/* Soft cream-to-beige section backgrounds */
.why { background: linear-gradient(180deg, #faf6f0 0%, #f3ebdf 100%); }
.courses { background: linear-gradient(180deg, #efe4d6 0%, #f7f0e6 100%); }
.about { background: radial-gradient(ellipse at 0% 50%, rgba(230, 204, 152, .28), transparent 55%), linear-gradient(180deg, #f8f3ec, #f3ebdf); }
.how { background: linear-gradient(180deg, #ffffff 0%, #faf6f0 100%); }
.testimonials { background: radial-gradient(ellipse at 100% 0%, rgba(230, 204, 152, .3), transparent 50%), linear-gradient(180deg, #efe4d6, #f5ede2); }
.faq { background: linear-gradient(180deg, #ffffff 0%, #faf6f0 100%); }
.contact { background: radial-gradient(ellipse at 100% 100%, rgba(230, 204, 152, .32), transparent 55%), linear-gradient(180deg, #f3ebdf, #ecdfcd); }

/* Fine gold gradient line across the top of cards */
.feature, .course, .step, .t-card, .contact-form, .auth-card, .portal-course { position: relative; }
.feature::after, .step::after, .t-card::after, .contact-form::after, .auth-card::after, .portal-course::after {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, #d9b677, transparent);
  opacity: .9; pointer-events: none;
}
.course-body { position: relative; }
.course-body::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-gold);
}

/* Gradient gold details */
.step-num, .stars { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { background: linear-gradient(145deg, #fffaf2, #f1e4cf); }
.hero-points li::before { background: linear-gradient(145deg, #fffaf2, #f1e4cf); }
.tag { background: linear-gradient(135deg, rgba(59, 42, 32, .92), rgba(31, 21, 16, .92)); }
.faq-list details[open] summary::after, .thanks-icon { background: var(--grad-gold); color: var(--espresso); }
.about-list li { background: linear-gradient(90deg, #ffffff, #fbf7f1); }
.best-for { background: linear-gradient(90deg, #f8f1e6, #fbf7f1); }
.ci-icon { background: linear-gradient(145deg, #ffffff, #f4e9d8); }
.auth-tabs button.active { background: linear-gradient(135deg, #5c4030, #3b2a20); }
.btn-ghost:hover { background: linear-gradient(135deg, #5c4030, #3b2a20); border-color: #3b2a20; }

/* Dark bands */
.cta-band {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(194, 154, 91, .35), transparent 60%),
    linear-gradient(rgba(46, 32, 24, .84), rgba(31, 21, 16, .92)),
    url("images/pipa-closeup.jpg") center 40% / cover;
}
.site-footer { background: radial-gradient(ellipse at 0% 0%, rgba(194, 154, 91, .14), transparent 50%), var(--grad-espresso); }
.footer-bottom { border-top-color: transparent; border-image: linear-gradient(90deg, transparent, rgba(230, 204, 152, .35), transparent) 1; border-top-width: 1px; border-top-style: solid; }
