/* ===== Tecnoderm Academy — Landing Page ===== */

:root {
  --wine-900: #3d1220;
  --wine-800: #4f1728;
  --wine-700: #6b2038;
  --wine-600: #832944;
  --wine-500: #9c3454;
  --gold-600: #b8863c;
  --gold-500: #d4a256;
  --gold-400: #e6c07f;
  --cream-50: #fbf5ee;
  --cream-100: #f5ebe0;
  --ink-900: #221016;
  --ink-700: #4a3038;
  --ink-500: #7a6169;
  --white: #ffffff;
  --green-cta: #25b562;
  --green-cta-dark: #1c9450;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 45px -15px rgba(61, 18, 32, 0.35);
  --shadow-card: 0 10px 30px -12px rgba(61, 18, 32, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}

.top-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--wine-800), var(--gold-500) 50%, var(--wine-800));
}

.grain { position: relative; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ===== Quote band ===== */
.quote-band {
  background: var(--cream-100);
  padding: 56px 0;
  text-align: center;
}
.quote-mark {
  width: 34px;
  height: 26px;
  fill: var(--gold-600);
  opacity: 0.55;
  margin-bottom: 10px;
}
.quote-band p {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--wine-800);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.4;
}
.quote-band em { color: var(--gold-600); font-style: italic; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
img { max-width: 100%; height: auto; display: block; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--wine-900); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; }

.section { padding: 88px 0; }
@media (max-width: 700px) { .section { padding: 56px 0; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--gold-600); }

.section-lead {
  max-width: 640px;
  font-size: 18px;
  color: var(--ink-500);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-cta), var(--green-cta-dark));
  color: var(--white);
  box-shadow: 0 14px 28px -10px rgba(28, 148, 80, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(28, 148, 80, 0.65); }
.btn-lg { padding: 19px 38px; font-size: 18px; }
.btn-header {
  background: var(--green-cta);
  color: var(--white);
  padding: 11px 20px;
  font-size: 14px;
  flex-shrink: 0;
}
.btn-header:hover { background: var(--green-cta-dark); }
.icon-wa { width: 18px; height: 18px; fill: currentColor; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(61, 18, 32, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo { height: 64px; width: auto; flex-shrink: 0; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(165deg, var(--wine-700) 0%, var(--wine-800) 45%, var(--wine-900) 100%);
  padding: 64px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-deco, .offer-deco {
  position: absolute;
  top: -8%;
  right: -2%;
  height: 130%;
  width: auto;
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
.hero-grid, .offer-box, .header-inner, .footer-inner { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-copy .eyebrow { color: var(--gold-400); }
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 4.2vw, 50px);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold-400); }
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  max-width: 520px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 34px;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
}
.hero-badges .icon { color: var(--gold-400); }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-price { color: var(--gold-400); font-weight: 700; font-size: 15px; margin: 0; }
.hero-price strong { font-size: 20px; }
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Slightly larger hero copy on desktop only */
@media (min-width: 981px) {
  .hero-sub { font-size: 19px; }
}

/* Compact hero on shorter screens (e.g. 17" laptops) so the CTA fits above the fold */
@media (min-width: 981px) and (max-height: 820px) {
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
  .brand-logo { height: 48px; }
  .hero { padding: 28px 0 36px; }
  .hero h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }
  .hero-sub { font-size: 16px; }
  .hero-badges { margin: 16px 0 20px; }
  .hero-badges li { padding: 7px 14px; font-size: 13px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn-lg { padding: 15px 30px; font-size: 16px; }
}

/* ===== Pain section ===== */
.section-pain { background: var(--cream-50); }
.section-pain h2 { font-size: clamp(28px, 3vw, 38px); }
.eligibility-note {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-500);
  font-style: italic;
}
.pain-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  margin-top: 44px;
}
.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid rgba(107,32,56,0.14);
}
.pain-index {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-600);
  letter-spacing: .04em;
  padding-top: 2px;
}
.pain-list .icon {
  width: 22px; height: 22px;
  color: var(--wine-600);
  stroke-width: 1.5;
  margin-top: 1px;
}
.pain-list p { margin: 0; color: var(--ink-700); font-size: 16px; flex: 1; }
.pain-list p strong { color: var(--wine-800); }

/* ===== Promise ===== */
.section-promise { background: var(--white); }
.promise-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.promise-grid h2 { font-size: clamp(28px, 3vw, 38px); }
.check-list { margin: 22px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  color: var(--ink-700);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background-color: var(--wine-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.promise-video { display: flex; justify-content: center; }

/* ===== Behind the scenes strip ===== */
.section-behind { padding: 24px 0; background: var(--white); }
.behind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.behind-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.behind-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

/* ===== Video thumbs ===== */
.video-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: var(--ratio, 16/9);
  box-shadow: var(--shadow-card);
  background: var(--ink-900);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .3s ease, opacity .3s ease; }
.video-thumb:hover img { transform: scale(1.04); opacity: 1; }
.play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: transform .2s ease;
}
.video-thumb:hover .play-btn { transform: scale(1.08); }
.play-btn svg { width: 24px; height: 24px; fill: var(--wine-700); margin-left: 3px; }

/* ===== Curriculum ===== */
.section-curriculum { background: var(--cream-50); }
.section-curriculum h2 { font-size: clamp(28px, 3vw, 38px); }
.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}
.curriculum-connector {
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.curriculum-connector svg {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.curriculum-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  border: 1px solid rgba(107,32,56,0.1);
  box-shadow: var(--shadow-card);
}
.curriculum-card--highlight {
  background: linear-gradient(160deg, var(--wine-700), var(--wine-800));
  border: none;
}
.curriculum-card--highlight .curriculum-tag { color: var(--gold-400); }
.curriculum-step {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-600);
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.curriculum-card--highlight .curriculum-step { color: rgba(255,255,255,0.55); }
.curriculum-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wine-600);
  margin-bottom: 18px;
}
.curriculum-card ul { display: flex; flex-direction: column; gap: 12px; }
.curriculum-card li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--ink-700);
}
.curriculum-card li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--wine-500);
}
.curriculum-card.curriculum-card--highlight li { color: rgba(255,255,255,0.9); }
.curriculum-card.curriculum-card--highlight li::before { background: var(--gold-500); }
.perks-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.perk {
  background: var(--white);
  border: 1px solid rgba(107,32,56,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--wine-800);
  display: flex; align-items: center; gap: 12px;
}
.perk .icon { width: 20px; height: 20px; color: var(--gold-600); stroke-width: 1.6; }

/* ===== Results gallery ===== */
.section-results { background: var(--white); }
.section-results h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 36px; }
.results-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
@media (min-width: 981px) {
  .results-grid .result-photo:nth-child(5) { display: none; }
}
.results-grid .result-photo {
  flex: 0 1 calc((100% - 16px * 3) / 4);
}
.result-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.results-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.result-photo:hover img { transform: scale(1.05); }

/* ===== Testimonials ===== */
.section-testimonials { background: var(--cream-50); }
.section-testimonials h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 36px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Offer ===== */
.section-offer {
  background: linear-gradient(200deg, var(--wine-700) 0%, var(--wine-800) 45%, var(--wine-900) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.offer-box { max-width: 640px; }
.section-offer .eyebrow { color: var(--gold-400); }
.section-offer h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); }
.offer-price {
  font-family: var(--font-sans);
  color: var(--gold-400);
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 16px 0 6px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}
.offer-price span { font-size: 24px; font-weight: 700; padding-top: 12px; }
.offer-price small { font-size: 24px; font-weight: 700; padding-top: 12px; }
.offer-note { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 30px; }
.offer-list {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin: 0 auto 34px;
}
.offer-list li {
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding-left: 30px;
}
.offer-list li::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background-color: var(--gold-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d1220' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}
.offer-help { color: rgba(255,255,255,0.65); font-size: 13.5px; margin-top: 14px; margin-bottom: 0; }

/* ===== FAQ ===== */
.section-faq { background: var(--white); }
.section-faq h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 34px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid rgba(107,32,56,0.14);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  background: var(--cream-50);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--wine-800);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--gold-600);
  font-weight: 400;
  margin-left: 12px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 14px 0 0; color: var(--ink-500); font-size: 15px; }

/* ===== Final CTA ===== */
.section-final-cta {
  background: var(--cream-100);
  text-align: center;
}
.section-final-cta h2 { font-size: clamp(26px, 3vw, 34px); }
.section-final-cta p { color: var(--ink-500); font-size: 16px; margin-bottom: 30px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--wine-900);
  color: rgba(255,255,255,0.65);
  padding: 40px 0 100px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-footer .brand { justify-content: center; }
.site-footer .brand-logo { height: 52px; width: auto; }
.site-footer p { margin: 0; font-size: 13.5px; }
.footer-credit { font-size: 11.5px; opacity: 0.6; margin-top: 4px !important; }
.footer-credit a { color: inherit; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ===== Sticky mobile CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--wine-900);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: none;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}
.sticky-cta a {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--green-cta), var(--green-cta-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 999px;
}

/* ===== Video lightbox ===== */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 6, 11, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-lightbox.is-open { display: flex; }
.video-lightbox-inner {
  width: 100%;
  max-width: 720px;
  position: relative;
}
.video-lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.video-lightbox-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-lightbox-close {
  position: absolute;
  top: -46px; right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-video { order: -1; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .curriculum-connector { transform: rotate(90deg); padding: 4px 0; }
  .perks-row { grid-template-columns: repeat(2, 1fr); }
  .results-grid .result-photo { flex-basis: calc((100% - 16px * 2) / 3); }
}
@media (max-width: 640px) {
  .behind-grid { gap: 8px; }
  .pain-list { grid-template-columns: 1fr; column-gap: 0; }
  .perks-row { grid-template-columns: 1fr; }
  .results-grid .result-photo { flex-basis: calc((100% - 16px) / 2); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .header-inner .btn-header span { display: none; }
  .header-inner .btn-header { padding: 11px; border-radius: 50%; }
  .header-inner .icon-wa { width: 20px; height: 20px; }
  .brand-logo { height: 42px; }
  .sticky-cta { display: block; }
  body { padding-bottom: 78px; }
  .offer-price { font-size: 52px; gap: 5px; }
  .offer-price span, .offer-price small { font-size: 18px; padding-top: 7px; }
}
