.chapter-ts { margin-top: var(--ts-top, 17px); }
.chapter-head { margin-bottom: 48px; }
.chapter-head h2 { max-width: 15em; }
.chapter-head .lead { margin-top: 20px; }
.chapter-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Mascot scenes */
.chapter-head.has-spot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.spot { width: 168px; height: auto; flex-shrink: 0; margin-bottom: -8px; }
.aud-spot { width: 150px; height: auto; margin: 0 0 20px -8px; }
.faq-spot { width: 150px; height: auto; margin-top: 40px; }

/* Hero sloth fills the empty right side of the headline on wide screens */
.hero { position: relative; }
.hero-sloth { position: absolute; right: 24px; top: 72px; width: 300px; height: auto; pointer-events: none; }
@media (max-width: 1240px) { .hero-sloth { width: 220px; right: 8px; } }
@media (max-width: 1100px) { .hero-sloth { display: none; } }

/* Line art tinted by the theme (black-on-transparent image used as a mask) */
.vine { display: block; width: 300px; height: 110px; margin: 0 0 8px -6px; background: var(--sloth-accent-text); opacity: 0.55; -webkit-mask: url(/assets/mascot/vine.webp) left center / contain no-repeat; mask: url(/assets/mascot/vine.webp) left center / contain no-repeat; }
:root[data-theme="dark"] 
/* Hero */
.hero { padding-top: 56px; --ts-top: 30px; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); }
.hero-body { max-width: 860px; }
.hero .lead { margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 14px; }
.soon { display: inline-block; margin: 0 0 20px; padding: 5px 10px; border-radius: var(--radius-sm); background: var(--sloth-accent-soft); color: var(--sloth-accent-text); font-size: 13.5px; font-weight: 600; }

/* Waitlist */
.wl { display: flex; flex-wrap: wrap; gap: 8px; max-width: 540px; margin: 32px 0 14px; }
.wl-input {
  flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: var(--radius-md);
  background: var(--sloth-bg-0); color: var(--sloth-fg-0); font: 400 16px var(--font-ui);
  box-shadow: inset 0 0 0 1px var(--sloth-line-strong); transition: box-shadow var(--dur-fast) var(--ease);
}
.wl-input::placeholder { color: var(--sloth-fg-3); }
.wl-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sloth-accent); }
.wl-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--sloth-danger); }
.wl-error { flex-basis: 100%; margin: 2px 0 0; font-size: 14px; color: var(--sloth-danger); }
.wl-done { display: flex; align-items: center; gap: 16px; max-width: 540px; margin: 28px 0 14px; font-size: 17px; line-height: 1.5; color: var(--sloth-fg-1); }
.wl-done b { color: var(--sloth-fg-0); font-weight: 600; }
.wl-done img { flex-shrink: 0; width: 64px; height: auto; }
.wl-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hero-stage { grid-column: 2; margin-top: 56px; }
.stage-caption { margin-top: 14px; }
.stage-caption .btn-text { font: inherit; font-weight: 600; border: 0; background: none; padding: 0; cursor: pointer; color: var(--sloth-accent-text); }

/* Features */
.feature-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--sloth-line); overflow-x: auto; scrollbar-width: none; }
.feature-tabs::-webkit-scrollbar { display: none; }
.feature-tabs [role="tab"] {
  position: relative; flex-shrink: 0; padding: 12px 12px 13px; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--sloth-fg-3); transition: color var(--dur-fast) var(--ease);
}
.feature-tabs [role="tab"]:first-child { padding-left: 0; }
.feature-tabs [role="tab"]:hover { color: var(--sloth-fg-0); }
.feature-tabs [role="tab"][aria-selected="true"] { color: var(--sloth-fg-0); font-weight: 600; }
.feature-tabs [role="tab"][aria-selected="true"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--sloth-accent);
}
.feature-tabs [role="tab"]:first-child[aria-selected="true"]::after { left: 0; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: start; margin-top: 40px; }
.feature-copy { padding-top: 48px; }
.feature-copy h3 { font: 500 32px/1.15 var(--font-read); letter-spacing: -0.01em; text-wrap: balance; }
.feature-copy p { margin: 16px 0 0; font-size: 17px; color: var(--sloth-fg-2); max-width: 32em; }
[role="tabpanel"]:not([hidden]) { animation: fade-in var(--dur-slow) var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }
.facts { list-style: none; margin: 28px 0 0; padding: 0; max-width: 32em; }
.facts li { padding: 12px 0; border-top: 1px solid var(--sloth-line); font-size: 15px; color: var(--sloth-fg-2); }
.facts li:last-child { border-bottom: 1px solid var(--sloth-line); }
.facts b { color: var(--sloth-fg-0); font-weight: 600; }
.feature-panel { display: flex; align-items: center; justify-content: center; min-height: 680px; padding: 40px; border-radius: 20px; background: var(--sloth-bg-1); }
.feature-panel .pm-host, .how-pane .pm-host { width: 402px; max-width: 100%; }

/* Details */
.details { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sloth-line); }
.details li { padding: 28px 32px 40px 0; border-bottom: 1px solid var(--sloth-line); }
.details li:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--sloth-line); }
.d-row { display: flex; align-items: center; justify-content: space-between; }
.d-ic { width: 22px; height: 22px; color: var(--sloth-accent-text); }
.d-no { font-size: 12px; letter-spacing: 0.04em; color: var(--sloth-fg-3); font-variant-numeric: tabular-nums; }
.details h3 { margin: 20px 0 8px; }
.details p { margin: 0; font-size: 15px; color: var(--sloth-fg-2); }
.d-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.d-tags span { padding: 1px 8px; border-radius: var(--radius-sm); background: var(--sloth-bg-1); color: var(--sloth-fg-1); font-size: 13px; font-weight: 600; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience > div { padding: 4px 32px 0; border-left: 1px solid var(--sloth-line); }
.audience > div:first-child { padding-left: 0; border-left: 0; }
.aud-line { margin: 14px 0 18px; font: 400 24px/1.35 var(--font-read); color: var(--sloth-fg-0); text-wrap: pretty; }

/* How it works */
.how { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.how-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sloth-line); }
.how-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 8px; width: 100%; padding: 22px 0; border: 0; border-bottom: 1px solid var(--sloth-line);
  background: none; text-align: left; cursor: pointer; color: var(--sloth-fg-3);
}
.how-no { font-size: 13px; line-height: 26px; font-variant-numeric: tabular-nums; }
.how-step b { display: block; font: 500 22px/1.2 var(--font-read); color: var(--sloth-fg-2); }
.how-step b + span { display: block; margin-top: 6px; font-size: 15px; }
.how-step:hover b { color: var(--sloth-fg-0); }
.how-step[aria-pressed="true"] { color: var(--sloth-fg-2); }
.how-step[aria-pressed="true"] b { color: var(--sloth-fg-0); }
.how-step[aria-pressed="true"] .how-no { color: var(--sloth-accent-text); font-weight: 600; }
.how-media { display: flex; align-items: center; justify-content: center; min-height: 640px; padding: 40px; border-radius: 20px; background: var(--sloth-bg-1); }
.how-pane { width: 100%; display: flex; justify-content: center; }
.how-pane video { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--sloth-line); box-shadow: var(--sloth-shadow-stage); }

.mini { position: relative; width: 100%; max-width: 480px; border-radius: var(--radius-lg); border: 1px solid var(--sloth-line); overflow: hidden; background: var(--yt-bg); box-shadow: var(--sloth-shadow-stage); }
.tb-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; background: var(--sloth-bg-0); border-bottom: 1px solid var(--sloth-line); }
.tb-url { flex: 1; height: 26px; padding: 0 12px; border-radius: 13px; background: var(--sloth-bg-1); color: var(--sloth-fg-3); font-size: 13px; line-height: 26px; }
.tb-icons { display: flex; gap: 4px; }
.tb-ext { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--sloth-fg-3); }
.tb-ext img, .tb-ext svg { width: 18px; height: 18px; }
.tb-ext.is-pinned { background: var(--sloth-accent-soft); }
.mini-page { display: grid; grid-template-columns: 1fr 172px; gap: 12px; padding: 14px; }
.mini-main, .mini-side { display: flex; flex-direction: column; gap: 8px; }
.mini-player { aspect-ratio: 16 / 9; border-radius: 8px; }
.mini-panel { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--sloth-line); background: var(--sloth-bg-0); font-family: var(--font-ui); }
.mini-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sloth-fg-0); }
.mini-head img { width: 16px; height: 16px; }
.mini-head small { margin-left: auto; font-size: 10px; color: var(--sloth-fg-3); }
.mini-btn { height: 28px; border-radius: 7px; background: var(--sloth-accent); color: var(--sloth-on-accent); font-size: 11px; font-weight: 600; line-height: 28px; text-align: center; }

/* Welcome page */
.welcome .hero { padding-bottom: 8px; }
.w-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.w-copy .lead { margin-top: 20px; }
.w-visual { display: flex; justify-content: center; padding: 40px; border-radius: 20px; background: var(--sloth-bg-1); }
.w-visual .pm-host { width: 402px; max-width: 100%; }
.w-done { margin: 28px 0 0; color: var(--sloth-success); font-weight: 600; }
.w-help { margin-top: 32px; }
.welcome .end { --ts-top: 17px; }
.welcome .guides { margin-top: 40px; }
.mini.is-menu .tb-menu { position: absolute; top: 50px; right: 10px; width: 230px; padding: 10px; border-radius: var(--radius-md); background: var(--sloth-bg-0); border: 1px solid var(--sloth-line); box-shadow: var(--sloth-shadow-pop); }
.tb-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px; border-radius: var(--radius-sm); background: var(--sloth-bg-1); font-size: 14px; font-weight: 600; color: var(--sloth-fg-0); }
.tb-row img { width: 20px; height: 20px; }
.tb-pin { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--sloth-accent-text); }
@media (max-width: 1100px) { .w-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 600px) { .w-visual { padding: 16px; } }

/* Guides (recorded clips) */
.guides { margin-top: 96px; }
.guides-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.guides-head h3 { font: 500 30px/1.15 var(--font-read); letter-spacing: -0.01em; }
.guide-frame { border-radius: var(--radius-lg); border: 1px solid var(--sloth-line); overflow: hidden; background: var(--sloth-bg-1); box-shadow: var(--sloth-shadow-stage); aspect-ratio: 5 / 3; }
.guide-frame video { width: 100%; height: 100%; object-fit: cover; }
.guide-credit { margin-top: 14px; }
.guide-credit .btn-text { font: inherit; font-weight: 600; border: 0; background: none; padding: 0; cursor: pointer; color: var(--sloth-accent-text); }
.guides-head .meta { margin-top: 6px; }
.guides-head { align-items: flex-end; }
.guide-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Pricing */
.seg-save { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--sloth-accent-text); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--sloth-line); border-radius: 20px; overflow: hidden; }
.plan { display: flex; flex-direction: column; padding: 32px; }
.plan + .plan { border-left: 1px solid var(--sloth-line); }
.plan.is-featured { background: color-mix(in srgb, var(--sloth-accent-soft) 70%, var(--sloth-bg-0)); }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin: 20px 0 0; font: 500 60px/1 var(--font-read); color: var(--sloth-fg-0); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price .cur { font-size: 28px; align-self: flex-start; margin-top: 6px; }
.plan-price .per { margin-left: 8px; font: 500 15px/1 var(--font-ui); letter-spacing: 0; color: var(--sloth-fg-3); }
.plan-billed { margin-top: 10px; min-height: 20px; }
.plan-credits { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--sloth-line); font-size: 16px; color: var(--sloth-fg-1); }
.plan-credits b { font: 600 20px/1 var(--font-ui); color: var(--sloth-fg-0); font-variant-numeric: tabular-nums; }
.plan-list { list-style: none; margin: 14px 0 32px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--sloth-fg-2); }
.plan-list li { position: relative; padding-left: 20px; }
.plan-list li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 4px; border-left: 1.5px solid var(--sloth-accent-text); border-bottom: 1.5px solid var(--sloth-accent-text); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 20px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--sloth-line); }
.faq details { border-bottom: 1px solid var(--sloth-line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 40px 22px 0;
  font: 500 21px/1.3 var(--font-read); color: var(--sloth-fg-0);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--sloth-fg-3);
  transition: transform var(--dur-base) var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--sloth-accent-text); }
.faq details p { margin: -6px 0 24px; max-width: 38em; font-size: 16px; color: var(--sloth-fg-2); }

/* Final call */
.end { padding-bottom: 128px; --ts-top: 96px; }
.end-card { position: relative; margin-top: 64px; padding: 72px 64px 64px; border-radius: 20px; background: var(--end-bg, var(--sloth-accent)); color: var(--end-fg, var(--sloth-on-accent)); }
:root[data-theme="dark"] .end-card { --end-bg: #233128; --end-fg: var(--sloth-fg-0); }
.end-card h2 { color: inherit; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }
.end-card .lead { margin-top: 20px; color: inherit; opacity: 0.86; }
.end-sloth { position: absolute; right: 72px; top: -124px; width: 180px; height: auto; pointer-events: none; }
.wl-end { margin: 36px 0 0; }
.wl-end .wl-input { box-shadow: none; }
.wl-end .wl-input:focus { box-shadow: inset 0 0 0 2px var(--sloth-fg-0); }
.wl-end .btn { background: var(--sloth-bg-0); color: var(--sloth-accent-text); box-shadow: inset 0 0 0 1px currentColor; }
.wl-end .btn:hover { background: var(--sloth-bg-1); color: var(--sloth-accent-text); }
.wl-end .wl-error { color: inherit; }
.end-card .wl-done { margin-top: 36px; color: inherit; }
.end-card .wl-done b { color: inherit; }
:root[data-theme="dark"] .wl-end .wl-input { box-shadow: inset 0 0 0 1px var(--sloth-line-strong); }
:root[data-theme="dark"] .wl-end .btn { background: var(--sloth-accent); color: var(--sloth-on-accent); box-shadow: none; }
:root[data-theme="dark"] .wl-end .btn:hover { background: var(--sloth-accent-hover); }

@media (max-width: 1100px) {
  .feature-grid, .how, .faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature-panel { min-height: 0; }
  .feature-copy { padding-top: 0; }
}
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-stage { grid-column: 1; margin-top: 48px; }
  .chapter-ts, .hero, .end { --ts-top: 0; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .details li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--sloth-line); }
  .audience { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .audience > div { padding: 0; border-left: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--sloth-line); }
  .end-card { padding: 56px 28px 40px; }
  .end-sloth { right: 24px; width: 140px; top: -96px; }
  .end { padding-bottom: 96px; }
}
@media (max-width: 600px) {
  .spot { width: 112px; }
  .aud-spot { width: 120px; }
  .faq-spot { display: none; }
  .mini-page { grid-template-columns: 1fr; }
  .mini-side .sk { display: none; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .details li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .feature-panel, .how-media { padding: 16px; border-radius: 16px; }
  .cta-row .btn, .wl .btn { width: 100%; }
}
