@font-face {
  font-family: "Motiva Sans";
  src: local("PP Mori"), local("Arial");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --green: #00bf6f;
  --green-dark: #007a49;
  --green-pale: #e8fff4;
  --ink: #111111;
  --muted: #626962;
  --line: #dfe5e1;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; overflow-x: hidden; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Motiva Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.catalog { min-height: 100vh; }

.hero {
  position: relative;
  min-height: 480px;
  padding: 34px clamp(24px, 6vw, 96px) 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  background: var(--green);
  overflow: hidden;
}

.hero::after {
  content: "AI";
  position: absolute;
  right: -0.06em;
  bottom: -0.34em;
  color: rgba(255,255,255,.13);
  font-size: clamp(240px, 38vw, 560px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--ink); color: var(--white); font-size: 17px; }

.hero-copy { position: relative; z-index: 1; grid-column: 1 / -1; align-self: center; max-width: 900px; padding: 55px 0 35px; }
.eyebrow { margin: 0 0 14px; font-family: "Courier New", monospace; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(38px, 6vw, 78px); line-height: .98; letter-spacing: -.05em; }
.intro { max-width: 650px; margin: 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.45; }
.hero-meta { position: relative; z-index: 1; grid-column: 1 / -1; display: flex; gap: clamp(28px, 6vw, 80px); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 25px; }
.hero-meta span { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }

.course-section { padding: 76px clamp(24px, 6vw, 96px) 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; }
.section-heading > p { max-width: 350px; margin: 0; color: var(--muted); line-height: 1.5; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }

.course-card { min-width: 0; cursor: pointer; outline: 0; }
.course-card:focus-visible .thumbnail { outline: 4px solid var(--ink); outline-offset: 4px; }
.thumbnail { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--green-pale); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.course-card:hover .thumbnail { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0,0,0,.12); }
.thumb-number { position: absolute; left: 20px; top: 14px; font-size: clamp(58px, 7vw, 105px); font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.thumb-art { position: absolute; right: -11%; bottom: -32%; width: 68%; aspect-ratio: 1; border-radius: 50%; background: var(--green); }
.thumb-art::after { content: ""; position: absolute; width: 44%; aspect-ratio: 1; left: 21%; top: 18%; border: 2px solid var(--ink); border-radius: 50%; }
.play { position: absolute; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: 16px; }
.duration { position: absolute; left: 16px; bottom: 16px; padding: 7px 9px; background: var(--white); font-family: "Courier New", monospace; font-size: 11px; font-weight: 700; }
.card-copy { padding-top: 15px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; }
.card-index { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green); font-weight: 800; }
.card-copy h3 { margin: 1px 0 7px; font-size: 19px; line-height: 1.15; }
.card-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

footer { padding: 24px clamp(24px, 6vw, 96px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }

.deck { position: fixed; inset: 0; z-index: 10; display: none; height: 100dvh; width: 100vw; overflow: hidden; background: var(--white); }
.deck.open { display: block; }
.deck-header { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 74px; padding: 0 clamp(18px, 3vw, 46px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.icon-button { width: max-content; border: 0; background: transparent; padding: 10px 0; display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 700; }
.deck-title { display: flex; align-items: center; gap: 12px; }
.deck-title > span { color: var(--green-dark); font-family: "Courier New", monospace; font-weight: 700; }
.slide-count { justify-self: end; font-family: "Courier New", monospace; font-size: 12px; }
.slides { height: 100%; width: 100%; }
.slide { display: none; height: 100%; width: 100%; padding: 108px clamp(30px, 9vw, 145px) 104px; overflow-y: auto; overflow-x: hidden; }
.slide.active { display: grid; animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.slide.standard { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: center; gap: clamp(45px, 8vw, 125px); }
.slide-kicker { margin-bottom: 18px; color: var(--green-dark); font-family: "Courier New", monospace; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.slide h2 { max-width: 850px; margin-bottom: 26px; font-size: clamp(38px, 6vw, 76px); line-height: .98; letter-spacing: -.05em; }
.slide-lead { max-width: 760px; color: #2f342f; font-size: clamp(17px, 2vw, 23px); line-height: 1.5; }
.slide ul { padding: 0; margin: 26px 0 0; list-style: none; }
.slide li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); line-height: 1.45; }
.slide li::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; background: var(--green); }
.visual { position: relative; min-height: 360px; background: var(--green-pale); overflow: hidden; }
.visual::before { content: attr(data-number); position: absolute; left: 7%; top: -5%; font-size: clamp(160px, 23vw, 340px); line-height: 1; letter-spacing: -.1em; font-weight: 800; color: var(--green); }
.visual::after { content: ""; position: absolute; right: -13%; bottom: -24%; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); }
.quote-slide { place-items: center; text-align: center; background: var(--green); }
.quote-slide .slide-inner { max-width: 940px; }
.quote-slide h2 { max-width: 940px; }
.quote-slide .slide-lead { margin-inline: auto; }

.chat-slide { grid-template-columns: minmax(250px, .7fr) minmax(360px, 1.3fr); align-items: stretch; gap: clamp(30px, 6vw, 90px); background: var(--green-pale); }
.chat-intro { align-self: center; }
.chat-intro h2 { font-size: clamp(38px, 5vw, 68px); }
.chat-panel { min-height: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--ink); box-shadow: 12px 12px 0 var(--green); }
.chat-panel header { padding: 17px 20px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); font-weight: 700; }
.status { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.messages { flex: 1; min-height: 180px; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.message { max-width: 82%; padding: 12px 14px; line-height: 1.45; white-space: pre-wrap; }
.message.assistant { align-self: flex-start; background: #f1f3f1; }
.message.user { align-self: flex-end; background: var(--green); }
.message.error { color: #9e1b1b; border: 1px solid #e8b4b4; background: #fff4f4; }
.chat-form { padding: 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.chat-form textarea { flex: 1; min-height: 52px; max-height: 120px; resize: none; padding: 14px; border: 1px solid var(--line); outline: 0; }
.chat-form textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 2px var(--green); }
.send { width: 52px; border: 0; background: var(--ink); color: var(--white); cursor: pointer; font-size: 20px; }
.send:disabled { opacity: .45; cursor: wait; }

.deck-nav { position: absolute; z-index: 3; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; }
.nav-button { width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%; background: var(--white); cursor: pointer; font-size: 20px; }
.nav-button.next { background: var(--ink); color: var(--white); }
.nav-button:disabled { opacity: .25; cursor: default; }
.progress-dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: #bdc2be; cursor: pointer; transition: width .2s, background .2s; }
.dot.active { width: 28px; background: var(--green); }

@media (max-width: 900px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide.standard, .chat-slide { grid-template-columns: 1fr; }
  .visual { min-height: 220px; }
  .chat-slide { padding-top: 94px; padding-bottom: 90px; }
  .chat-intro { display: none; }
  .deck-title { display: none; }
  .deck-header { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: 580px; }
  .hero-meta { gap: 20px; justify-content: space-between; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .course-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
  .close span:last-child { display: none; }
  .slide { padding: 96px 24px 94px; }
  .slide.standard { align-content: center; gap: 30px; }
  .slide h2 { font-size: clamp(34px, 12vw, 54px); }
  .slide-lead { font-size: 16px; }
  .visual { min-height: 175px; }
  .chat-slide { padding-inline: 14px; }
  .chat-panel { box-shadow: 7px 7px 0 var(--green); }
  .messages { padding: 14px; }
  .message { max-width: 90%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
