:root {
  --ink: #111a23;
  --ink-soft: #1b2835;
  --paper: #f7f2e9;
  --white: #fffdf9;
  --red: #c62e2e;
  --red-dark: #9f2020;
  --gold: #f1b84b;
  --teal: #1c6b69;
  --muted: #66717b;
  --line: rgba(17, 26, 35, 0.15);
  --shadow: 0 20px 55px rgba(17, 26, 35, 0.16);
  --display: "Archivo Black", Impact, sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.04; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.035em; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: var(--white);
  color: var(--ink);
  padding: .75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 4rem);
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.12);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(-3deg); }
.brand-mark span { background: var(--red); }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: var(--gold); }
.brand-copy { line-height: 1.05; font-weight: 700; font-size: 16px; }
.brand-copy small { display: block; font-weight: 500; color: rgba(255,255,255,.68); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.header-actions { display: flex; gap: .6rem; align-items: center; }
.header-link { color: rgba(255,255,255,.84); text-decoration: none; padding: .55rem .7rem; font-weight: 600; }
.prototype-tag { border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.72); font-size: 13px; padding: .25rem .55rem; border-radius: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.05rem;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: white; }
.btn-outline { color: var(--ink); border: 1px solid var(--ink); background: transparent; }
.btn[disabled] { opacity: .42; cursor: not-allowed; transform: none; }
.text-link { font-weight: 700; text-underline-offset: 4px; }

.hero {
  min-height: calc(100svh - 74px);
  max-height: 880px;
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  overflow: hidden;
}
.hero-copy { padding: clamp(2rem, 6vw, 5.75rem) clamp(1.25rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font-weight: 700; letter-spacing: .11em; text-transform: uppercase; font-size: 13px; color: var(--red); margin-bottom: 1rem; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(3rem, 6.6vw, 6.8rem); max-width: 9ch; margin-bottom: 1rem; }
.hero h1 em { display: block; color: var(--gold); font-style: normal; }
.hero-lede { font-size: clamp(1.08rem, 1.65vw, 1.32rem); color: rgba(255,255,255,.8); max-width: 580px; margin-bottom: 1.6rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; margin-bottom: 1.7rem; color: rgba(255,255,255,.86); font-weight: 600; }
.hero-proof span { position: relative; }
.hero-proof span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--red); position: absolute; left: -.78rem; top: .7rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-visual { position: relative; background: #0a1117; min-height: 520px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 22%; opacity: .92; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, transparent 22%), linear-gradient(0deg, rgba(17,26,35,.46), transparent 45%); }
.view-count { position: absolute; z-index: 2; bottom: 2rem; right: 2rem; background: var(--paper); color: var(--ink); padding: 1rem 1.1rem; width: 205px; box-shadow: var(--shadow); }
.view-count strong { font-family: var(--display); display: block; font-size: 1.75rem; line-height: 1; }
.view-count span { font-size: 14px; color: var(--muted); }

.section { padding: clamp(4rem, 7vw, 6.8rem) clamp(1.25rem, 5vw, 5rem); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: clamp(2.3rem, 5vw, 4.5rem); margin-bottom: 1rem; }
.section-intro { max-width: 680px; color: var(--muted); font-size: 1.14rem; margin-bottom: 2rem; }

.talk-method { background: var(--white); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 4px solid var(--ink); border-bottom: 1px solid var(--line); }
.method-step { padding: 1.6rem 1.2rem 1.7rem 0; position: relative; }
.method-step + .method-step { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.method-letter { font-family: var(--display); color: var(--red); font-size: 3.3rem; line-height: 1; display: block; margin-bottom: .65rem; }
.method-step h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.method-step p { color: var(--muted); margin-bottom: 0; font-size: 16px; }

.proof-section { background: var(--gold); }
.proof-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.proof-layout h2 { max-width: 8ch; }
.quote-stack { border-top: 4px solid var(--ink); }
.quote { padding: 1.25rem 0; border-bottom: 1px solid rgba(17,26,35,.3); }
.quote blockquote { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; margin: 0 0 .5rem; line-height: 1.3; }
.quote cite { font-style: normal; font-size: 15px; }

.curriculum { background: var(--ink); color: white; }
.curriculum .section-intro { color: rgba(255,255,255,.68); }
.curriculum-list { border-top: 1px solid rgba(255,255,255,.25); }
.curriculum-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.18); align-items: center; }
.curriculum-row span:first-child { color: var(--gold); font-weight: 700; }
.curriculum-row span:last-child { color: rgba(255,255,255,.58); font-size: 15px; }

.offer { background: var(--paper); }
.offer-card { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; border-top: 5px solid var(--red); padding-top: 2rem; }
.offer-card h2 { max-width: 11ch; }
.offer-card ul { padding-left: 1.2rem; columns: 2; max-width: 690px; }
.offer-price { text-align: right; min-width: 220px; }
.offer-price strong { display: block; font-family: var(--display); font-size: 4rem; line-height: 1; }
.offer-price small { display: block; color: var(--muted); margin: .45rem 0 1rem; }

.site-footer { background: #0b1117; color: rgba(255,255,255,.72); padding: 2.2rem clamp(1.25rem, 5vw, 5rem); font-size: 15px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner a { color: white; }

.app-shell { min-height: 100vh; background: #eef0f1; }
.app-nav { position: sticky; top: 0; z-index: 20; height: 70px; background: var(--ink); color: white; padding: 0 clamp(1rem, 3vw, 2.5rem); display: flex; justify-content: space-between; align-items: center; }
.app-main { max-width: 1260px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem); }
.app-nav-actions { display: flex; align-items: center; gap: .7rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.app-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.app-heading h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: .3rem; }
.app-heading p { color: var(--muted); margin-bottom: 0; }
.progress-summary { min-width: 215px; }
.progress-line { height: 8px; background: #d6dadd; margin-top: .5rem; overflow: hidden; }
.progress-line span { display: block; height: 100%; background: var(--red); }
.course-feature { background: var(--ink); color: white; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 310px; box-shadow: var(--shadow); }
.course-feature-copy { padding: clamp(1.5rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.course-feature-copy h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: .7rem; }
.course-feature-copy p { color: rgba(255,255,255,.7); max-width: 540px; }
.course-feature-media { background: #081016; position: relative; overflow: hidden; }
.course-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 57% 20%; opacity: .75; }
.course-feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 40%); }
.dashboard-grid { margin-top: 1.4rem; display: grid; grid-template-columns: 1.4fr .6fr; gap: 1.4rem; }
.panel { background: white; padding: 1.5rem; }
.panel h3 { margin-bottom: 1rem; font-size: 1.35rem; }
.next-lesson { border-top: 4px solid var(--teal); }
.lesson-mini { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); }
.lesson-mini strong, .lesson-mini small { display: block; }
.lesson-mini small { color: var(--muted); }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--ink); }
.auth-story { color: white; padding: clamp(2rem, 7vw, 7rem); display: flex; flex-direction: column; justify-content: center; }
.auth-story h1 { font-size: clamp(3rem, 6vw, 6rem); max-width: 9ch; }
.auth-story p { max-width: 560px; color: rgba(255,255,255,.74); font-size: 1.15rem; }
.auth-panel { background: var(--paper); padding: clamp(1.5rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; }
.auth-panel h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.prototype-note { background: #fff3cd; border-left: 4px solid var(--gold); padding: .8rem 1rem; font-size: 15px; margin-bottom: 1.3rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .35rem; }
.form-group input { width: 100%; min-height: 50px; padding: .65rem .75rem; border: 1px solid #aab1b6; background: white; border-radius: 2px; }
.form-error { color: var(--red-dark); min-height: 1.4rem; font-size: 15px; }
.auth-switch { margin-top: 1rem; text-align: center; color: var(--muted); }
.text-button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.auth-switch .text-button { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }
.loading-screen { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: white; }

.lesson-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: calc(100vh - 70px); }
.lesson-sidebar { background: #f5f2ec; border-right: 1px solid var(--line); padding: 1.2rem; }
.lesson-sidebar h2 { font-family: var(--body); font-size: 1.25rem; letter-spacing: 0; margin: .6rem 0 1.3rem; }
.module-label { font-weight: 700; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 1.2rem 0 .5rem; }
.lesson-item { display: grid; grid-template-columns: 30px 1fr auto; gap: .6rem; align-items: center; width: 100%; padding: .7rem .55rem; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); cursor: pointer; }
.lesson-item.active { background: white; box-shadow: inset 4px 0 var(--red); }
.lesson-item.locked { color: #8c949a; cursor: not-allowed; }
.lesson-index { width: 25px; height: 25px; border: 1px solid currentColor; display: grid; place-items: center; font-size: 12px; }
.lesson-check { color: var(--teal); font-weight: 800; }
.lesson-content { padding: clamp(1.2rem, 4vw, 3rem); max-width: 1050px; }
.lesson-content h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); margin-bottom: .45rem; }
.lesson-meta { color: var(--muted); margin-bottom: 1.2rem; }
.video-wrap { aspect-ratio: 16/9; background: #05090c; position: relative; box-shadow: var(--shadow); }
.video-wrap iframe, .video-wrap mux-player { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: white; text-align: center; padding: 2rem; }
.watch-status { padding: .9rem 1rem; background: #e5ecec; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: 15px; }
.watch-meter { height: 7px; background: #c6cecf; flex: 1; max-width: 260px; }
.watch-meter span { display: block; height: 100%; background: var(--teal); }
.lesson-copy { padding: 2rem 0; display: grid; grid-template-columns: 1fr 240px; gap: 2rem; }
.lesson-copy p { color: #46515a; }
.lesson-actions { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.lesson-actions .btn { width: 100%; margin-bottom: .7rem; }

.certificate-page { min-height: 100vh; background: #d9dddf; padding: 2rem; }
.certificate-toolbar { max-width: 1050px; margin: 0 auto 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.certificate { max-width: 1050px; min-height: 710px; margin: 0 auto; background: var(--paper); padding: 3.5rem; border: 14px solid var(--ink); box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.certificate::before { content: ""; position: absolute; inset: 13px; border: 2px solid var(--gold); pointer-events: none; }
.certificate .brand-mark { width: 52px; height: 52px; margin-bottom: 1rem; }
.certificate h1 { font-size: clamp(3rem, 7vw, 6.2rem); margin: .2rem 0 1rem; }
.certificate-name { font-family: var(--display); font-size: clamp(2rem, 5vw, 4rem); color: var(--red); border-bottom: 2px solid var(--ink); padding: 0 1rem .35rem; margin: .4rem 0 1.2rem; }
.certificate-meta { margin-top: 2rem; display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; }
.certificate-meta strong, .certificate-meta span { display: block; }
.certificate-meta span { color: var(--muted); font-size: 14px; }
.seal { width: 100px; height: 100px; border-radius: 50%; border: 5px double var(--red); display: grid; place-items: center; font-family: var(--display); color: var(--red); transform: rotate(-7deg); margin-top: 1.6rem; }

.verify-page { min-height: 100vh; background: var(--ink); color: white; display: grid; place-items: center; padding: 1.5rem; }
.verify-card { background: var(--paper); color: var(--ink); width: min(650px, 100%); padding: clamp(1.5rem, 5vw, 3.5rem); border-top: 7px solid var(--red); }
.verify-card h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.verify-form { display: flex; gap: .6rem; margin: 1.3rem 0; }
.verify-form input { flex: 1; min-width: 0; min-height: 50px; padding: .7rem; border: 1px solid #959fa5; }
.verify-result { padding: 1rem; background: #dfeceb; border-left: 4px solid var(--teal); }
.verify-result.invalid { background: #f4dcdc; border-color: var(--red); }

.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: .8rem 1rem; z-index: 100; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr .75fr; }
  .hero-copy { padding: 2.5rem 1.5rem; }
  .hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .method-step:nth-child(4) { border-top: 1px solid var(--line); }
  .proof-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .proof-layout h2 { max-width: none; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { border-right: 0; border-bottom: 1px solid var(--line); max-height: 330px; overflow: auto; }
}

@media (max-width: 700px) {
  .site-header { height: 64px; padding: 0 1rem; }
  .brand-copy small, .prototype-tag, .header-link { display: none; }
  .hero { min-height: auto; max-height: none; grid-template-columns: 1fr; }
  .hero-copy { min-height: calc(100svh - 64px); padding: 2rem 1.2rem; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 4.2rem); }
  .hero-lede { font-size: 1.02rem; }
  .hero-visual { display: none; }
  .method-grid { grid-template-columns: 1fr; }
  .method-step, .method-step + .method-step, .method-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding: 1.15rem 0; }
  .curriculum-row { grid-template-columns: 70px 1fr; }
  .curriculum-row span:last-child { grid-column: 2; }
  .offer-card { grid-template-columns: 1fr; align-items: start; }
  .offer-card ul { columns: 1; }
  .offer-price { text-align: left; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-story { padding: 2rem 1.25rem; min-height: 42svh; }
  .auth-story h1 { font-size: clamp(2.7rem, 13vw, 4.5rem); margin-bottom: .8rem; }
  .auth-panel { padding: 2rem 1.25rem; }
  .app-heading { display: block; }
  .progress-summary { margin-top: 1rem; }
  .course-feature { grid-template-columns: 1fr; }
  .course-feature-media { min-height: 210px; order: -1; }
  .lesson-copy { grid-template-columns: 1fr; }
  .lesson-actions { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
  .watch-status { display: block; }
  .watch-meter { margin-top: .6rem; max-width: none; }
  .certificate-page { padding: .65rem; }
  .certificate { padding: 2.2rem 1rem; min-height: 650px; border-width: 8px; }
  .certificate-toolbar { flex-wrap: wrap; }
  .verify-form { display: block; }
  .verify-form .btn { width: 100%; margin-top: .6rem; }
}

@media (max-height: 820px) and (min-width: 901px) {
  .hero { height: calc(100svh - 74px); min-height: 0; }
  .hero-visual { min-height: 0; }
  .hero-copy { padding-top: 1.35rem; padding-bottom: 1.35rem; }
  .hero .eyebrow { margin-bottom: .6rem; }
  .hero h1 { font-size: clamp(2.85rem, 5vw, 4.25rem); margin-bottom: .65rem; }
  .hero-lede { font-size: 1.03rem; margin-bottom: .8rem; }
  .hero-proof { margin-bottom: .8rem; }
  .view-count { bottom: 1rem; right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .certificate-toolbar { display: none; }
  .certificate-page { padding: 0; background: white; }
  .certificate { box-shadow: none; min-height: 100vh; max-width: none; }
}
