/* ============================================================
   GONNA IS FINE — free course on working with AI agents
   Course front door (/gonna-is-fine/) and lessons (/gonna-is-fine/lesson-N/).
   Scoped under body.gf. Loads after /css/interior-shell.css and uses its tokens.
   Mike = warm amber (carbon). The agent = cyan (silicon).
   2026-11-05, gonna-is-fine-lead (Claude Opus 5.5).
   ============================================================ */

body.gf {
  --gf-mike: 255, 184, 76;
  --gf-agent: 0, 190, 255;
  --gf-ink: #f4f1ea;
  --gf-hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  --gf-read: clamp(1.06rem, 0.98rem + 0.32vw, 1.28rem);
  --gf-col: min(46rem, 100%);
  background: #060714;
  color: var(--text-body);
  overflow-x: hidden;
}
body.gf main { display: block; }
.gf-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Sky: starfield + two glows, behind every section ---------- */
.gf-sky { position: relative; isolation: isolate; }
.gf-sky::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 82% 8%, rgba(var(--gf-agent), 0.13), transparent 60%),
    radial-gradient(52rem 36rem at 10% 30%, rgba(var(--gf-mike), 0.10), transparent 62%),
    linear-gradient(180deg, #070818 0%, #060714 70%);
}
.gf-sky::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 72%, #cfe9ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #ffe9c4 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 82%, #cfe9ff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 90%, #fff 50%, transparent 51%);
  background-size: 640px 640px;
  animation: gfDrift 120s linear infinite;
}
@keyframes gfDrift { to { background-position: 640px -640px; } }

/* ---------- Layout ---------- */
.gf-wrap { width: min(72rem, 100% - 2 * clamp(16px, 5vw, 80px)); margin-inline: auto; }
.gf-col  { width: min(var(--gf-col), 100% - 2 * clamp(16px, 5vw, 80px)); margin-inline: auto; }
.gf-section { padding-block: clamp(64px, 9vw, 140px); }
.gf-section--tight { padding-block: clamp(40px, 6vw, 88px); }
.gf-rule { height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); }

/* ---------- Type ---------- */
.gf-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1.2 var(--font-body); letter-spacing: 0.24em; text-transform: uppercase;
  color: rgb(var(--gf-mike));
}
.gf-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.gf-eyebrow--agent { color: rgb(var(--gf-agent)); }
.gf-h2 {
  font-family: var(--font-display); font-weight: 700; color: var(--text-heading);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em;
  margin: 14px 0 0; text-wrap: balance;
}
.gf-h3 {
  font-family: var(--font-display); font-weight: 700; color: var(--text-heading);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); line-height: 1.2; margin: 0;
}
.gf-lede {
  font-family: var(--font-body); color: rgba(255,255,255,0.80);
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.45rem); line-height: 1.6; margin: 20px 0 0;
  text-wrap: pretty;
}
.gf-prose { font-family: var(--font-body); font-size: var(--gf-read); line-height: 1.78; color: rgba(255,255,255,0.78); }
.gf-prose p { margin: 0 0 1.15em; text-wrap: pretty; }
.gf-prose p:last-child { margin-bottom: 0; }
.gf-prose strong { color: #fff; font-weight: 600; }
.gf-prose em { color: rgb(var(--gf-mike)); font-style: italic; }
.gf-prose .gf-big { font-family: var(--font-display); font-size: 1.45em; line-height: 1.35; color: #fff; margin: 1.3em 0; }
.gf-q { color: #fff; }
.gf-hand { font-family: var(--gf-hand); font-weight: 700; color: rgb(var(--gf-mike)); }

/* ---------- Buttons ---------- */
.gf-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 34px; }
.gf-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 13px 24px;
  border-radius: 999px; font: 600 16px/1.2 var(--font-body); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.gf-btn--go { background: #ffb84c; color: #1a1206; box-shadow: 0 10px 30px -10px rgba(var(--gf-mike), 0.7); }
.gf-btn--go:hover, .gf-btn--go:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(var(--gf-mike), 0.9); }
.gf-btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.03); }
.gf-btn--ghost:hover, .gf-btn--ghost:focus-visible { border-color: rgba(var(--gf-agent), 0.7); background: rgba(var(--gf-agent), 0.08); }
.gf-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gf-btn span[aria-hidden] { transition: transform .2s ease; }
.gf-btn:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- Hero ---------- */
.gf-hero { padding: calc(72px + clamp(36px, 6vw, 96px)) 0 clamp(56px, 8vw, 120px); }
.gf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.gf-hero__title {
  font-family: var(--font-display); font-weight: 800; color: #fff; margin: 18px 0 0;
  font-size: clamp(3.2rem, 1.6rem + 6.4vw, 8.4rem); line-height: 0.96; letter-spacing: -0.035em;
}
.gf-hero__title .gf-line { display: block; }
.gf-hero__title:has(.gf-edit) { margin-top: 0.62em; }
.gf-edit { position: relative; display: inline-block; white-space: nowrap; }
.gf-edit__old { position: relative; color: rgba(255,255,255,0.32); }
.gf-edit__old::after {
  content: ''; position: absolute; left: -3%; right: -3%; top: 54%; height: 0.075em; border-radius: 1em;
  background: rgb(var(--gf-mike)); transform: rotate(-3deg) scaleX(1); transform-origin: left center;
}
.gf-edit__new {
  position: absolute; left: 0.04em; bottom: 78%; font-family: var(--gf-hand); font-weight: 700;
  font-size: 0.82em; line-height: 1; color: rgb(var(--gf-mike)); letter-spacing: 0; transform: rotate(-6deg);
  text-shadow: 0 0 28px rgba(var(--gf-mike), 0.45);
}
.gf-edit__caret { position: absolute; left: 32%; bottom: 46%; width: 0.36em; height: 0.36em; color: rgb(var(--gf-mike)); }
.gf-js .gf-edit__old::after { transform: rotate(-3deg) scaleX(0); animation: gfStrike .55s cubic-bezier(.6,0,.3,1) 1.1s forwards; }
.gf-js .gf-edit__new, .gf-js .gf-edit__caret { opacity: 0; animation: gfWrite .7s ease-out 1.65s forwards; }
@keyframes gfStrike { to { transform: rotate(-3deg) scaleX(1); } }
@keyframes gfWrite { from { opacity: 0; clip-path: inset(-60% 100% -60% -30%); } to { opacity: 1; clip-path: inset(-60% -30% -60% -30%); } }
.gf-hero__sub { max-width: 34rem; }
.gf-hero__note { margin-top: 22px; font-size: 0.95rem; color: var(--text-tertiary); max-width: 34rem; line-height: 1.6; }

/* Lesson hero (one column) */
.gf-lesson-hero { text-align: left; }
.gf-lesson-hero .gf-hero__title { font-size: clamp(3rem, 1.6rem + 5.6vw, 7.4rem); }
.gf-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font: 500 14px/1.4 var(--font-body); color: var(--text-tertiary); }
.gf-meta b { color: rgba(255,255,255,0.85); font-weight: 600; }
.gf-crumbs { font: 500 13px/1.4 var(--font-body); color: var(--text-muted); margin-bottom: 26px; }
.gf-crumbs a { color: var(--text-tertiary); text-decoration: none; }
.gf-crumbs a:hover { color: rgb(var(--gf-agent)); }
.gf-crumbs span[aria-hidden] { margin: 0 8px; opacity: 0.6; }

/* ---------- Chat ---------- */
.gf-chat { display: grid; gap: 18px; }
.gf-chat--card {
  padding: clamp(18px, 2.4vw, 30px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(14,17,36,0.88), rgba(9,11,26,0.88));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}
.gf-chat__bar { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.06);
  font: 500 12px/1 var(--font-mono); color: var(--text-muted); letter-spacing: 0.04em; }
.gf-chat__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.gf-chat__bar span { margin-left: auto; }
.gf-msg { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.gf-msg__who { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; }
.gf-msg__who img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gf-msg--mike .gf-msg__who { box-shadow: 0 0 0 2px rgba(var(--gf-mike), 0.85), 0 0 22px rgba(var(--gf-mike), 0.35); }
.gf-msg--agent .gf-msg__who { background: radial-gradient(circle at 35% 30%, rgba(var(--gf-agent),0.55), rgba(var(--gf-agent),0.10) 70%);
  box-shadow: 0 0 0 2px rgba(var(--gf-agent), 0.75), 0 0 22px rgba(var(--gf-agent), 0.35); color: #fff; }
.gf-msg--agent .gf-msg__who svg { width: 22px; height: 22px; }
.gf-msg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 7px; font: 600 13px/1.3 var(--font-body); }
.gf-msg--mike .gf-msg__name { color: rgb(var(--gf-mike)); }
.gf-msg--agent .gf-msg__name { color: rgb(var(--gf-agent)); }
.gf-msg__time { font-weight: 500; color: var(--text-muted); font-size: 12px; }
.gf-msg__body {
  position: relative; padding: 14px 18px; border-radius: 4px 18px 18px 18px;
  font-family: var(--font-body); font-size: clamp(1rem, 0.94rem + 0.28vw, 1.18rem); line-height: 1.62; color: var(--gf-ink);
}
.gf-msg--mike .gf-msg__body { background: rgba(var(--gf-mike), 0.085); border: 1px solid rgba(var(--gf-mike), 0.22); }
.gf-msg--agent .gf-msg__body { background: rgba(var(--gf-agent), 0.075); border: 1px solid rgba(var(--gf-agent), 0.20); }
.gf-msg__body p { margin: 0 0 0.7em; }
.gf-msg__body p:last-child { margin: 0; }
.gf-cut { color: var(--text-muted); }
.gf-aside { margin: 4px 0 4px 58px; font-family: var(--gf-hand); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem); line-height: 1.25; color: rgba(255,255,255,0.7); }

/* A slip inside a real message: wavy underline + handwritten gloss above */
.gf-slip { position: relative; display: inline-block; white-space: nowrap;
  text-decoration: underline wavy rgb(var(--gf-mike)); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.gf-slip__gloss {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -2px) rotate(-5deg);
  font-family: var(--gf-hand); font-weight: 700; font-size: 1.25em; line-height: 1; color: rgb(var(--gf-mike));
  white-space: nowrap; pointer-events: none; text-shadow: 0 0 18px rgba(var(--gf-mike), 0.5);
}
.gf-msg__body:has(.gf-slip__gloss) { padding-top: 26px; }

/* Message reveal (JS only; without JS everything shows) */
.gf-js .gf-chat[data-reveal] .gf-msg, .gf-js .gf-chat[data-reveal] .gf-aside { opacity: 0; transform: translateY(14px); }
.gf-js .gf-chat[data-reveal] .is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.gf-typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.gf-typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.35; animation: gfDot 1s infinite ease-in-out; }
.gf-typing i:nth-child(2) { animation-delay: .15s; } .gf-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gfDot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: .9; transform: translateY(-3px); } }
.gf-msg--agent .gf-typing { color: rgb(var(--gf-agent)); }
.gf-msg--mike .gf-typing { color: rgb(var(--gf-mike)); }

/* ---------- Hi, I'm Mike ---------- */
.gf-hello { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.gf-hello__photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.4;
  box-shadow: 0 50px 120px -50px rgba(var(--gf-agent), 0.5); border: 1px solid rgba(255,255,255,0.08); }
.gf-hello__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 40%; display: block; }
.gf-hello__photo figcaption { position: absolute; left: 18px; bottom: 14px; font-family: var(--gf-hand); font-size: 1.5rem; color: #fff; text-shadow: 0 2px 12px #000; }

/* ---------- Seed line ---------- */
.gf-seed { text-align: center; }
.gf-seed blockquote { margin: 0 auto; max-width: 60rem; }
.gf-seed__line {
  font-family: var(--font-display); font-weight: 700; color: #fff; margin: 0;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.6rem); line-height: 1.18; letter-spacing: -0.015em; text-wrap: balance;
}
.gf-seed__line em { font-style: normal; background: linear-gradient(90deg, rgb(var(--gf-mike)), #ffd9a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gf-seed__three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 60rem; margin: clamp(32px, 4vw, 56px) auto 0; text-align: left; }
.gf-seed__three li { list-style: none; padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  font: 500 1.02rem/1.5 var(--font-body); color: rgba(255,255,255,0.82); }
.gf-seed__three b { display: block; font-family: var(--gf-hand); font-size: 1.7rem; font-weight: 700; color: rgb(var(--gf-mike)); line-height: 1; margin-bottom: 8px; }
.gf-seed__three { padding: 0; }

/* ---------- How each lesson works ---------- */
.gf-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(32px, 4vw, 56px); padding: 0; }
.gf-how li { list-style: none; position: relative; padding: 28px 26px 26px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); border: 1px solid rgba(255,255,255,0.08); }
.gf-how__n { font: 700 13px/1 var(--font-mono); color: rgb(var(--gf-agent)); letter-spacing: 0.1em; }
.gf-how h3 { margin: 14px 0 10px; }
.gf-how p { margin: 0; font: 400 1.02rem/1.65 var(--font-body); color: rgba(255,255,255,0.74); }

/* ---------- Course map ---------- */
.gf-map { margin-top: clamp(36px, 5vw, 72px); display: grid; gap: clamp(36px, 5vw, 64px); }
.gf-part { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); }
.gf-part__head { position: sticky; top: 96px; align-self: start; }
.gf-part__k { font: 700 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.gf-part__t { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); line-height: 1.1; margin: 10px 0 8px; }
.gf-part__s { font: 400 0.98rem/1.5 var(--font-body); color: var(--text-tertiary); margin: 0; }
.gf-lessons { display: grid; gap: 14px; padding: 0; margin: 0; }
.gf-lesson { list-style: none; }
.gf-lesson__card {
  position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 6px 18px; align-items: start;
  padding: 22px 24px; border-radius: 18px; text-decoration: none; color: inherit;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.gf-lesson__n { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: rgba(255,255,255,0.22); }
.gf-lesson__t { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.55rem); line-height: 1.2; color: #fff; margin: 2px 0 6px; }
.gf-lesson__d { font: 400 1rem/1.6 var(--font-body); color: rgba(255,255,255,0.70); margin: 0; }
.gf-lesson__q { margin: 12px 0 0; padding-left: 14px; border-left: 2px solid rgba(var(--gf-mike), 0.55); font: italic 400 0.95rem/1.55 var(--font-body); color: rgba(255,255,255,0.62); }
.gf-lesson__q cite { display: block; font-style: normal; font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.gf-tag { align-self: start; white-space: nowrap; font: 600 11px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px;
  color: var(--text-muted); border: 1px solid rgba(255,255,255,0.12); }
.gf-lesson--open .gf-lesson__card {
  background: linear-gradient(120deg, rgba(var(--gf-mike), 0.12), rgba(var(--gf-agent), 0.06));
  border-color: rgba(var(--gf-mike), 0.45);
  box-shadow: 0 30px 80px -40px rgba(var(--gf-mike), 0.55);
}
.gf-lesson--open .gf-lesson__n { color: rgb(var(--gf-mike)); }
.gf-lesson--open .gf-tag { color: #1a1206; background: #ffb84c; border-color: #ffb84c; }
.gf-lesson--open a.gf-lesson__card:hover, .gf-lesson--open a.gf-lesson__card:focus-visible { transform: translateY(-3px); border-color: rgba(var(--gf-mike), 0.85); }
.gf-lesson--open a.gf-lesson__card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gf-lesson__go { grid-column: 2 / -1; margin-top: 10px; font: 600 0.98rem/1 var(--font-body); color: rgb(var(--gf-mike)); }

/* ---------- Honesty note ---------- */
.gf-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px 26px; border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.18); background: rgba(255,255,255,0.02); }
.gf-note svg { width: 28px; height: 28px; color: rgb(var(--gf-agent)); margin-top: 2px; }
.gf-note p { margin: 0; font: 400 1rem/1.65 var(--font-body); color: rgba(255,255,255,0.72); }
.gf-note b { color: #fff; }

/* ---------- Big CTA ---------- */
.gf-cta { text-align: center; }
.gf-cta .gf-actions { justify-content: center; }

/* ---------- Lesson body ---------- */
.gf-step-label { display: block; font: 700 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.gf-intro { margin-bottom: clamp(24px, 3vw, 40px); }
.gf-chat--lesson { margin-top: 8px; }
.gf-pull { margin: clamp(36px, 4vw, 60px) 0; padding: 0 0 0 clamp(18px, 2vw, 28px); border-left: 3px solid rgb(var(--gf-mike));
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.4rem); line-height: 1.25; text-wrap: balance; }

/* Slip cards */
.gf-slips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 3vw, 44px); padding: 0; }
.gf-slips li { list-style: none; perspective: 1200px; }
.gf-card { position: relative; width: 100%; min-height: 15.5rem; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.gf-card__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.gf-card[aria-pressed="true"] .gf-card__in { transform: rotateY(180deg); }
@media (hover: hover) { .gf-card:hover .gf-card__in { transform: rotateY(180deg); } }
.gf-card__face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 20px 20px 18px; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gf-card__front { background: rgba(var(--gf-mike), 0.075); border: 1px solid rgba(var(--gf-mike), 0.28); }
.gf-card__back { background: rgba(var(--gf-agent), 0.09); border: 1px solid rgba(var(--gf-agent), 0.32); transform: rotateY(180deg); }
.gf-card__k { font: 700 11px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; }
.gf-card__front .gf-card__k { color: rgb(var(--gf-mike)); }
.gf-card__back .gf-card__k { color: rgb(var(--gf-agent)); }
.gf-card__said { margin: auto 0; font: 500 clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem)/1.25 var(--font-mono); color: #fff; word-break: break-word; }
.gf-card__meant { margin: auto 0 0; font: 600 clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem)/1.3 var(--font-body); color: #fff; }
.gf-card__why { margin: 10px 0 0; font: 400 0.9rem/1.5 var(--font-body); color: rgba(255,255,255,0.7); }
.gf-card__hint { font: 500 12px/1 var(--font-body); color: var(--text-muted); }
.gf-card:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 18px; }

/* Three reasons */
.gf-why { display: grid; gap: clamp(28px, 3vw, 40px); margin-top: clamp(28px, 3vw, 44px); padding: 0; counter-reset: why; }
.gf-why li { list-style: none; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 18px; }
.gf-why li::before { counter-increment: why; content: counter(why); font-family: var(--gf-hand); font-weight: 700; font-size: 2.8rem; line-height: 0.9; color: rgb(var(--gf-agent)); }
.gf-why h3 { margin-bottom: 10px; }

/* The exception */
.gf-exception { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: 22px; background: linear-gradient(135deg, rgba(var(--gf-mike), 0.13), rgba(var(--gf-mike), 0.03));
  border: 1px solid rgba(var(--gf-mike), 0.38); }
.gf-exception .gf-h3 { color: rgb(var(--gf-mike)); margin: 6px 0 14px; }

/* Try it */
.gf-try { padding: clamp(28px, 3.4vw, 52px); border-radius: 26px; background: linear-gradient(160deg, rgba(var(--gf-agent), 0.12), rgba(10,12,28,0.9) 55%);
  border: 1px solid rgba(var(--gf-agent), 0.35); box-shadow: 0 50px 140px -60px rgba(var(--gf-agent), 0.6); }
.gf-try__steps { margin: clamp(22px, 3vw, 34px) 0 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.gf-try__steps li { list-style: none; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 16px; }
.gf-try__steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  font: 700 1rem/1 var(--font-body); color: #04121c; background: rgb(var(--gf-agent)); }
.gf-try__steps b { display: block; color: #fff; font: 600 1.12rem/1.4 var(--font-body); margin-bottom: 4px; }
.gf-try__steps p { margin: 0; font: 400 1.02rem/1.65 var(--font-body); color: rgba(255,255,255,0.76); }
.gf-copy { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 14px 14px 14px 18px; border-radius: 14px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12); }
.gf-copy code { font: 500 clamp(0.95rem, 0.9rem + 0.2vw, 1.08rem)/1.5 var(--font-mono); color: #e9f7ff; white-space: normal; }
.gf-copy button { min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(var(--gf-agent), 0.5); background: rgba(var(--gf-agent), 0.12);
  color: #fff; font: 600 14px/1 var(--font-body); cursor: pointer; }
.gf-copy button:hover { background: rgba(var(--gf-agent), 0.25); }
.gf-copy button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gf-bonus { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.gf-bonus p { margin: 0; font: 400 1.02rem/1.65 var(--font-body); color: rgba(255,255,255,0.76); }
.gf-bonus b { color: rgb(var(--gf-mike)); }

/* Takeaway + next */
.gf-take { text-align: center; }
.gf-take p { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1.25; margin: 14px auto 0; max-width: 52rem; text-wrap: balance; }
.gf-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: 22px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09); }
.gf-next p { margin: 8px 0 0; font: 400 1.02rem/1.6 var(--font-body); color: rgba(255,255,255,0.7); }
.gf-fine { margin-top: 26px; font: 400 0.92rem/1.6 var(--font-body); color: var(--text-muted); }

/* Reveal on scroll (JS only) */
.gf-js [data-rise] { opacity: 0; transform: translateY(22px); }
.gf-js [data-rise].is-in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }

/* ---------- Wide screens (Mike views ~2,537 px) ---------- */
@media (min-width: 1800px) {
  body.gf { --gf-col: 52rem; }
  .gf-wrap { width: min(86rem, 100% - 160px); }
  .gf-msg { grid-template-columns: 52px minmax(0, 1fr); }
  .gf-msg__who { width: 52px; height: 52px; }
  .gf-aside { margin-left: 66px; }
}
@media (min-width: 2300px) {
  body.gf { --gf-col: 58rem; }
  .gf-wrap { width: min(100rem, 100% - 200px); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .gf-hero__grid, .gf-hello { grid-template-columns: minmax(0, 1fr); }
  .gf-hero__copy { order: 1; }
  .gf-hero__chat { order: 2; }
  .gf-slips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-part { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gf-part__head { position: static; }
  .gf-hello__photo { max-width: 40rem; }
}
@media (max-width: 860px) {
  .gf-how, .gf-seed__three { grid-template-columns: minmax(0, 1fr); }
  .gf-next { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  .gf-hero { padding-top: calc(72px + 28px); }
  .gf-hero__title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .gf-lesson-hero .gf-hero__title { font-size: clamp(3rem, 15vw, 4.2rem); }
  .gf-msg { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .gf-msg__who { width: 34px; height: 34px; }
  .gf-msg--agent .gf-msg__who svg { width: 18px; height: 18px; }
  .gf-msg__body { padding: 12px 14px; }
  .gf-aside { margin-left: 44px; }
  .gf-chat--card { padding: 14px; border-radius: 18px; }
  .gf-slips { grid-template-columns: minmax(0, 1fr); }
  .gf-card { min-height: 12.5rem; }
  .gf-lesson__card { grid-template-columns: 2.4rem minmax(0, 1fr); padding: 18px; }
  .gf-lesson__n { font-size: 1.6rem; }
  .gf-tag { grid-column: 2; justify-self: start; order: -1; margin-bottom: 4px; }
  .gf-lesson__go { grid-column: 2; }
  .gf-copy { grid-template-columns: minmax(0, 1fr); }
  .gf-copy button { justify-self: start; }
  .gf-actions .gf-btn { width: 100%; justify-content: center; }
  .gf-note { grid-template-columns: minmax(0, 1fr); }
  .gf-why li { grid-template-columns: 2.2rem minmax(0, 1fr); gap: 12px; }
  .gf-try__steps li { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 12px; }
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  .gf-sky::after { animation: none; }
  .gf-js .gf-edit__old::after { animation: none; transform: rotate(-3deg) scaleX(1); }
  .gf-js .gf-edit__new, .gf-js .gf-edit__caret { animation: none; opacity: 1; }
  .gf-js .gf-chat[data-reveal] .gf-msg, .gf-js .gf-chat[data-reveal] .gf-aside, .gf-js [data-rise] { opacity: 1; transform: none; }
  .gf-card__in { transition: none; }
}

/* ---------- Lesson hero: what I said -> what the mic typed -> what the agent heard ---------- */
.gf-lesson-hero .gf-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.gf-pipe { display: grid; gap: 10px; padding: 0; margin: 0; }
.gf-pipe li { list-style: none; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: 18px; background: rgba(14,17,36,0.82); border: 1px solid rgba(255,255,255,0.08); }
.gf-pipe__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.gf-pipe__ico svg { width: 26px; height: 26px; }
.gf-pipe__k { display: block; font: 700 11px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.gf-pipe__v { display: block; font: 600 clamp(1.3rem, 1.1rem + 0.8vw, 1.9rem)/1.15 var(--font-display); color: #fff; }
.gf-pipe .gf-pipe--said .gf-pipe__ico { background: rgba(var(--gf-mike), 0.14); color: rgb(var(--gf-mike)); }
.gf-pipe .gf-pipe--typed { border-color: rgba(255, 90, 90, 0.35); }
.gf-pipe .gf-pipe--typed .gf-pipe__ico { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); }
.gf-pipe .gf-pipe--typed .gf-pipe__v { font-family: var(--font-mono); font-weight: 500; }
.gf-pipe .gf-pipe--typed mark { background: none; color: #ff8a8a; text-decoration: underline wavy #ff8a8a; text-underline-offset: 5px; }
.gf-pipe .gf-pipe--heard { border-color: rgba(var(--gf-agent), 0.4); box-shadow: 0 30px 80px -40px rgba(var(--gf-agent), 0.7); }
.gf-pipe .gf-pipe--heard .gf-pipe__ico { background: rgba(var(--gf-agent), 0.16); color: rgb(var(--gf-agent)); }
.gf-pipe__arrow { list-style: none; justify-self: center; height: 18px; width: 2px; padding: 0 !important; border: 0 !important; background: linear-gradient(rgba(255,255,255,0.3), transparent) !important; border-radius: 2px; }
.gf-wave { display: inline-flex; gap: 3px; align-items: center; height: 26px; }
.gf-wave i { width: 3px; border-radius: 2px; background: currentColor; height: 40%; animation: gfWave 1.1s ease-in-out infinite; }
.gf-wave i:nth-child(2) { animation-delay: .1s; } .gf-wave i:nth-child(3) { animation-delay: .2s; }
.gf-wave i:nth-child(4) { animation-delay: .3s; } .gf-wave i:nth-child(5) { animation-delay: .4s; }
@keyframes gfWave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.gf-js .gf-pipe > li { opacity: 0; transform: translateY(12px); animation: gfIn .6s cubic-bezier(.2,.7,.2,1) forwards; }
.gf-js .gf-pipe > li:nth-child(1) { animation-delay: .5s; }
.gf-js .gf-pipe > li:nth-child(2) { animation-delay: .9s; }
.gf-js .gf-pipe > li:nth-child(3) { animation-delay: 1.3s; }
.gf-js .gf-pipe > li:nth-child(4) { animation-delay: 1.7s; }
.gf-js .gf-pipe > li:nth-child(5) { animation-delay: 2.1s; }
@keyframes gfIn { to { opacity: 1; transform: none; } }
@media (max-width: 1080px) { .gf-lesson-hero .gf-hero__grid { grid-template-columns: minmax(0, 1fr); } .gf-pipe { max-width: 40rem; order: 2; } }
@media (max-width: 600px) { .gf-pipe li { grid-template-columns: 42px minmax(0, 1fr); padding: 14px 16px; gap: 12px; } .gf-pipe__ico { width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .gf-js .gf-pipe > li { animation: none; opacity: 1; transform: none; } .gf-wave i { animation: none; height: 60%; } }

/* Finale card (the last word) */
.gf-part--finale .gf-lesson__card { border-style: dashed; border-color: rgba(var(--gf-agent), 0.35); background: rgba(var(--gf-agent), 0.04); }
.gf-part--finale .gf-lesson__n { color: rgba(var(--gf-agent), 0.6); }

/* ---------- Illustration figure (Lesson 1: the monkey spa) ---------- */
.gf-figure { margin: clamp(40px, 5vw, 72px) auto 0; max-width: 72rem; }
.gf-figure__frame { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 60px 140px -60px rgba(var(--gf-mike), 0.55), 0 30px 80px -40px rgba(0,0,0,0.9); background: #0b0c18; }
.gf-figure__frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gf-figure__said { position: absolute; left: clamp(14px, 3vw, 44px); bottom: clamp(14px, 3vw, 44px); max-width: 44%;
  font-family: var(--gf-hand); font-weight: 700; font-size: clamp(1.7rem, 1rem + 2.6vw, 3.6rem); line-height: 1; color: #fff;
  transform: rotate(-4deg); text-shadow: 0 2px 18px rgba(0,0,0,0.65), 0 0 40px rgba(var(--gf-mike), 0.45); }
.gf-figure figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; margin-top: 16px; padding: 0 4px; }
.gf-figure__cap { font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.15rem)/1.6 var(--font-body); color: rgba(255,255,255,0.78); margin: 0; }
.gf-figure__cap b { color: rgb(var(--gf-mike)); font-weight: 600; }
.gf-figure__credit { font: 500 12px/1.4 var(--font-body); color: var(--text-muted); white-space: nowrap; }
@media (max-width: 600px) {
  .gf-figure__frame { border-radius: 16px; }
  .gf-figure figcaption { grid-template-columns: minmax(0, 1fr); }
  .gf-figure__credit { white-space: normal; }
}
@media (max-width: 760px) { .gf-figure__said { display: none; } }

/* ---------- Said vs wrote (Lesson 1, beat 3) ---------- */
.gf-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 26px; }
.gf-vs__card { padding: 20px 22px; border-radius: 18px; }
.gf-vs__card p { margin: 12px 0 0; font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.15rem)/1.6 var(--font-body); color: var(--gf-ink); }
.gf-vs__card--said { background: rgba(var(--gf-mike), 0.085); border: 1px solid rgba(var(--gf-mike), 0.28); }
.gf-vs__card--said .gf-card__k { color: rgb(var(--gf-mike)); }
.gf-vs__card--wrote { background: rgba(var(--gf-agent), 0.08); border: 1px solid rgba(var(--gf-agent), 0.3); }
.gf-vs__card--wrote .gf-card__k { color: rgb(var(--gf-agent)); }
.gf-vs__card--wrote p { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); line-height: 1.45; }
.gf-vs__arrow { align-self: center; font-size: 1.6rem; color: var(--text-muted); }
@media (max-width: 760px) { .gf-vs { grid-template-columns: minmax(0, 1fr); } .gf-vs__arrow { justify-self: center; transform: rotate(90deg); } }

/* ---------- Starter-prompt builder (Lesson 1 #starter-prompt) ---------- */
.gf-builder { scroll-margin-top: 96px; }
.gf-builder__intro { max-width: 46rem; }
.gf-builder__privacy { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; max-width: 46rem; padding: 12px 16px; border-radius: 12px;
  background: rgba(var(--gf-agent), 0.07); border: 1px solid rgba(var(--gf-agent), 0.25); font: 400 0.98rem/1.55 var(--font-body); color: rgba(255,255,255,0.8); }
.gf-builder__privacy svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: rgb(var(--gf-agent)); }
.gf-builder__privacy b { color: #fff; }
.gf-builder__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(26px, 3vw, 40px); align-items: start; }
.gf-builder__form { display: grid; gap: 18px; }
.gf-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.gf-field > label, .gf-field legend { font: 600 1rem/1.4 var(--font-body); color: #fff; padding: 0; }
.gf-field legend { margin-bottom: 8px; }
.gf-field legend span { font-weight: 400; color: var(--text-tertiary); margin-left: 6px; }
.gf-field input[type="text"], .gf-field textarea {
  width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.16); background: rgba(5,6,16,0.7);
  color: #fff; font: 400 1rem/1.5 var(--font-body); transition: border-color .2s ease, box-shadow .2s ease; resize: vertical; }
.gf-field input::placeholder, .gf-field textarea::placeholder { color: rgba(255,255,255,0.38); }
.gf-field input[type="text"]:focus, .gf-field textarea:focus { outline: none; border-color: rgb(var(--gf-agent)); box-shadow: 0 0 0 3px rgba(var(--gf-agent), 0.3); }
.gf-check { display: flex; gap: 10px; align-items: flex-start; font: 400 0.98rem/1.45 var(--font-body); color: rgba(255,255,255,0.82); cursor: pointer; padding: 4px 0; }
.gf-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: rgb(var(--gf-agent)); cursor: pointer; }
.gf-check input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gf-check--small { font-size: 0.9rem; color: var(--text-tertiary); }
.gf-builder__out { position: sticky; top: 96px; display: grid; gap: 12px; }
.gf-builder__bar { display: flex; justify-content: space-between; align-items: baseline; }
.gf-builder__title { font: 700 12px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: rgb(var(--gf-agent)); }
.gf-builder__count { font: 500 12px/1 var(--font-mono); color: var(--text-muted); }
.gf-builder__prompt { margin: 0; max-height: min(68vh, 44rem); overflow: auto; padding: 20px 22px; border-radius: 16px; background: rgba(2,3,10,0.82);
  border: 1px solid rgba(var(--gf-agent), 0.3); white-space: pre-wrap; word-break: break-word;
  font: 400 clamp(0.88rem, 0.84rem + 0.15vw, 0.98rem)/1.65 var(--font-mono); color: #dff3ff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.gf-builder__prompt:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gf-builder__prompt .gf-head { color: #fff; font-weight: 700; }
.gf-builder__prompt .gf-fill { background: rgba(var(--gf-mike), 0.16); color: #ffd79a; border-radius: 4px; padding: 0 2px; box-shadow: 0 0 0 1px rgba(var(--gf-mike), 0.35); }
.gf-builder__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gf-builder__actions .gf-btn { margin: 0; }
button.gf-btn { border: 0; cursor: pointer; }
button.gf-btn--ghost { border: 1px solid rgba(255,255,255,0.22); }
.gf-btn.is-copied { background: #34d399; color: #04210f; box-shadow: 0 10px 30px -10px rgba(52,211,153,0.7); }
.gf-builder__status { min-height: 1.4em; margin: 0; font: 500 0.92rem/1.4 var(--font-body); color: #8ef0c4; }
.gf-builder__how { margin: 0; font: 400 0.92rem/1.55 var(--font-body); color: var(--text-tertiary); }
@media (max-width: 1080px) {
  .gf-builder__grid { grid-template-columns: minmax(0, 1fr); }
  .gf-builder__out { position: static; }
  .gf-builder__prompt { max-height: none; }
}
@media (max-width: 600px) {
  .gf-builder__actions .gf-btn { flex: 1 1 auto; justify-content: center; }
}

/* Front door: starter-prompt teaser */
.gf-starter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; padding: clamp(26px, 3vw, 44px); border-radius: 24px;
  background: linear-gradient(120deg, rgba(var(--gf-agent), 0.12), rgba(var(--gf-mike), 0.08)); border: 1px solid rgba(var(--gf-agent), 0.35); }
.gf-starter .gf-h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); margin-top: 10px; }
.gf-starter p { margin: 10px 0 0; font: 400 1.05rem/1.6 var(--font-body); color: rgba(255,255,255,0.78); max-width: 44rem; }
@media (max-width: 760px) { .gf-starter { grid-template-columns: minmax(0, 1fr); } }
