:root {
  color-scheme: light;
  --bg: #fbfbff;
  --paper: #ffffff;
  --ink: #161621;
  --muted: #646675;
  --soft: #9293a0;
  --line: #e8e8f0;
  --panel: #ffffff;
  --panel-soft: #f5f5fb;
  --cyan: #17bfd4;
  --cyan-deep: #079aae;
  --blue: #6476f5;
  --violet: #9877f5;
  --lime: #c8f36c;
  --radius: 22px;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--bg); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
.section-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: 10px 14px; border-radius: 9px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 10px; top: 10px; }

.topbar { position: sticky; top: 0; z-index: 30; height: 76px; border-bottom: 1px solid rgba(20, 20, 35, .07); background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
.topbar-inner { width: min(1240px, calc(100% - 48px)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px 12px 12px 4px; background: linear-gradient(135deg, #d9fbff, #dddcff); color: #182032; box-shadow: inset 0 0 0 1px rgba(65, 95, 160, .12); }
.brand-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 4px 2px 5px 2px; background: var(--cyan); transform: rotate(14deg); }
.brand-mark span { font-size: 10px; font-weight: 800; letter-spacing: -.08em; }
.brand-name { font-size: 13px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.brand-name b { color: var(--cyan-deep); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); margin-left: auto; }
.site-nav a { color: #555765; font-size: 12px; font-weight: 700; transition: color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--cyan-deep); }
.topbar-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 17px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; transition: transform .2s, background .2s; }
.topbar-cta:hover { transform: translateY(-2px); background: #303148; }
.menu-toggle { display: none; }

.signup-banner { position: relative; isolation: isolate; width: min(1120px, calc(100% - 48px)); min-height: 84px; margin: 18px auto 0; padding: 15px 20px; display: flex; align-items: center; gap: 16px; overflow: hidden; border: 1px solid rgba(95, 116, 228, .16); border-radius: 18px; background: linear-gradient(100deg, #effcff 0%, #f0efff 58%, #f7f1ff 100%); box-shadow: 0 12px 35px rgba(97, 101, 192, .08); }
.signup-banner::before { content: ""; position: absolute; z-index: -1; right: 20%; top: -72px; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, rgba(111, 137, 255, .15), transparent 70%); }
.signup-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; background: linear-gradient(145deg, #b9f6fb, #d8d5ff); color: #3342c7; font-size: 20px; }
.signup-copy { display: grid; gap: 2px; min-width: 0; }
.signup-kicker { color: #5550be; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.signup-copy strong { color: #232335; font-size: 14px; line-height: 1.45; }
.signup-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; margin-left: auto; padding: 0 18px; flex: none; border-radius: 999px; background: linear-gradient(100deg, #282a3e, #4340a1); color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 7px 18px rgba(49, 49, 119, .18); transition: transform .2s, box-shadow .2s; }
.signup-button:hover { transform: translateY(-2px); box-shadow: 0 10px 23px rgba(49, 49, 119, .24); }

.hero { position: relative; isolation: isolate; padding: 66px 0 35px; text-align: center; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(5px); }
.hero::before { width: 480px; height: 360px; left: 0; top: 50px; background: radial-gradient(ellipse, rgba(157, 231, 244, .32), transparent 70%); }
.hero::after { width: 530px; height: 390px; right: 0; top: 6px; background: radial-gradient(ellipse, rgba(190, 170, 255, .27), transparent 70%); }
.hero-copy { max-width: 860px; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: #6259c9; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.eyebrow-spark { color: var(--cyan-deep); font-size: 14px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0 auto 17px; max-width: 900px; color: #171722; font-size: clamp(43px, 7vw, 78px); font-weight: 800; letter-spacing: -.065em; line-height: 1.04; }
.hero h1 span { color: transparent; background: linear-gradient(92deg, #20b6d5 4%, #5077ee 53%, #9a64df 96%); background-clip: text; -webkit-background-clip: text; }
.hero-intro { max-width: 620px; margin: 0 auto; color: #656775; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 0 21px; border-radius: 999px; font-size: 11px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #1a1b28; color: #fff; box-shadow: 0 9px 24px rgba(24, 25, 45, .14); }
.button-primary:hover { background: #31324d; box-shadow: 0 13px 28px rgba(24, 25, 45, .19); }
.button-secondary { border: 1px solid #dedfeb; background: rgba(255, 255, 255, .8); color: #353647; }
.button-secondary:hover { border-color: #aaa7e7; box-shadow: 0 8px 18px rgba(68, 70, 122, .09); }
.button-play { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e8e8ff; color: #5c54cb; font-size: 8px; }
.hero-proof { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: #818291; font-size: 10px; }
.proof-dot { width: 6px; height: 6px; border-radius: 50%; background: #65c9b0; box-shadow: 0 0 0 4px rgba(101, 201, 176, .12); }

.hero-stage { position: relative; width: min(920px, 100%); margin: 44px auto 0; padding: 10px 32px 25px; perspective: 1100px; }
.stage-orbit { position: absolute; z-index: -1; border: 1px solid rgba(119, 128, 224, .13); border-radius: 50%; transform: rotate(-14deg); }
.orbit-one { inset: 10% -4% 12%; }
.orbit-two { inset: 2% 4% 4%; transform: rotate(11deg); border-color: rgba(23, 191, 212, .13); }
.editor-window { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .8); border-radius: 22px; background: #171923; box-shadow: 0 32px 85px rgba(47, 48, 104, .22), 0 5px 16px rgba(34, 39, 77, .12); text-align: left; transform: rotateX(2deg) rotateY(-1deg); }
.editor-topbar { display: flex; align-items: center; gap: 14px; height: 43px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #20222e; color: #c8c9d2; }
.window-controls { display: flex; gap: 5px; }
.window-controls i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #fd827e; }
.window-controls i:nth-child(2) { background: #f7c76b; }
.window-controls i:nth-child(3) { background: #69dba0; }
.editor-title { color: #e5e6ed; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.editor-title small { color: #757889; }
.editor-state { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #9b9daf; font-size: 7px; letter-spacing: .1em; }
.editor-state i { width: 5px; height: 5px; border-radius: 50%; background: #61dbb7; box-shadow: 0 0 9px #61dbb7; }
.editor-content { display: grid; grid-template-columns: 48px 1fr; min-height: 250px; background: #12141d; }
.editor-sidebar { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 15px 0; border-right: 1px solid rgba(255, 255, 255, .08); color: #828599; font-size: 12px; }
.sidebar-active { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: rgba(77, 213, 220, .18); color: #72e2e4; }
.sidebar-divider { width: 20px; height: 1px; background: rgba(255, 255, 255, .1); }
.editor-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 205px; align-items: stretch; gap: 13px; padding: 15px; }
.preview-canvas { position: relative; min-height: 210px; overflow: hidden; border-radius: 13px; background: linear-gradient(140deg, #c9f1ec, #bcb9fd 50%, #fde0d8); }
.preview-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .87; }
.canvas-shade { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(16, 18, 37, .05), rgba(24, 20, 57, .42)); }
.canvas-chip { position: absolute; left: 13px; top: 13px; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px; background: rgba(18, 20, 34, .53); color: #fff; font-size: 7px; font-weight: 800; letter-spacing: .1em; backdrop-filter: blur(8px); }
.canvas-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 45px; height: 45px; padding-left: 3px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(255, 255, 255, .25); color: #fff; font-size: 13px; transform: translate(-50%, -50%); backdrop-filter: blur(12px); }
.timeline-panel { position: relative; align-self: end; min-height: 156px; padding: 12px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: #1a1c28; }
.timeline-ruler { display: flex; justify-content: space-between; padding-bottom: 10px; color: #777b8e; font-size: 7px; }
.timeline-track { position: relative; display: flex; gap: 4px; height: 27px; margin-bottom: 9px; padding: 3px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 6px; background: #222533; }
.clip { display: block; height: 100%; border-radius: 3px; }
.clip-cyan { width: 38%; background: linear-gradient(90deg, #43d7d3, #75e7df); }
.clip-blue { width: 24%; background: linear-gradient(90deg, #597ff0, #8797ff); }
.clip-violet { width: 22%; background: linear-gradient(90deg, #9271ee, #c27bf0); }
.clip-audio { width: 57%; background: repeating-linear-gradient(90deg, rgba(97, 185, 202, .9) 0 2px, transparent 2px 5px), #22505a; }
.clip-audio-short { width: 24%; background: repeating-linear-gradient(90deg, rgba(171, 127, 235, .9) 0 2px, transparent 2px 5px), #47365d; }
.playhead { position: absolute; left: 49%; top: 32px; width: 1px; height: 91px; background: #f5f4ff; box-shadow: 0 0 8px rgba(255, 255, 255, .8); }
.playhead::before { content: ""; position: absolute; left: -4px; top: -1px; width: 9px; height: 6px; border-radius: 2px; background: #fff; }
.stage-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 13px; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 30px rgba(38, 42, 90, .14); text-align: left; animation: float-y 5s ease-in-out infinite; }
.stage-float b, .stage-float small { display: block; }
.stage-float b { color: #202132; font-size: 9px; }
.stage-float small { margin-top: 2px; color: #858697; font-size: 8px; }
.float-lessons { top: 23%; left: -18px; }
.float-template { right: -12px; bottom: 12%; animation-delay: -2.1s; }
.float-icon, .float-check { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: #e4faff; color: #128da1; font-size: 10px; }
.float-check { background: #eeebff; color: #6957ce; font-weight: 800; }
@keyframes float-y { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }

.quick-facts { display: flex; justify-content: center; gap: clamp(35px, 9vw, 115px); padding: 20px 0 54px; border-bottom: 1px solid var(--line); }
.quick-facts div { display: flex; align-items: baseline; gap: 9px; }
.quick-facts strong { color: #27283a; font-size: 20px; letter-spacing: -.04em; }
.quick-facts span { color: #838493; font-size: 10px; }
.learning-path { padding-block: 72px 62px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 { margin: 0; color: #1a1a27; font-size: clamp(27px, 4vw, 40px); font-weight: 800; letter-spacing: -.05em; line-height: 1.16; }
.section-desc { max-width: 355px; margin: 0 0 3px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.path-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.path-card { position: relative; min-height: 170px; display: flex; flex-direction: column; align-items: flex-start; padding: 19px; overflow: hidden; border: 1px solid #e8e8f1; border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(37, 40, 74, .035); transition: transform .22s, border-color .22s, box-shadow .22s; }
.path-card:hover { transform: translateY(-4px); border-color: #c9c7f2; box-shadow: 0 15px 35px rgba(50, 50, 103, .09); }
.path-number { position: absolute; top: 13px; right: 15px; color: #b5b6c4; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.path-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 15px; border-radius: 12px; background: #e9fbfd; color: #0f9bae; font-size: 16px; }
.icon-video { background: #eeedff; color: #655bd5; }
.icon-spark { background: #f7efff; color: #9458c5; }
.path-title { color: #242536; font-size: 13px; font-weight: 800; }
.path-copy { margin-top: 4px; color: #7a7b8a; font-size: 10px; }
.path-arrow { position: absolute; right: 17px; bottom: 16px; color: #8c8aa9; font-size: 13px; transition: transform .2s, color .2s; }
.path-card:hover .path-arrow { color: #5f56c4; transform: translate(2px, -2px); }

.content-section { padding-block: 49px 70px; }
.start-section { border-top: 1px solid var(--line); }
.steps-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.step-card { display: flex; gap: 16px; padding: 23px; border: 1px solid #e8e8f0; border-radius: 18px; background: linear-gradient(135deg, #fff, #fbfbff); box-shadow: 0 10px 28px rgba(31, 36, 68, .035); }
.step-no { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 11px; background: #e8fafe; color: #1598a9; font-size: 10px; font-weight: 800; }
.step-card h3 { margin: 2px 0 7px; color: #232434; font-size: 14px; letter-spacing: -.02em; }
.step-card p { margin-bottom: 13px; color: #737483; font-size: 11px; }
.copy-chip { display: inline-flex; align-items: center; gap: 14px; min-height: 37px; padding: 5px 7px 5px 11px; border: 1px solid #e6e7f0; border-radius: 10px; background: #fff; }
.copy-chip code { color: #286b84; font-family: inherit; font-size: 10px; font-weight: 800; }
.copy-button { min-height: 27px; padding: 0 9px; border: 0; border-radius: 7px; background: #effbfc; color: #14889a; font-size: 9px; font-weight: 800; cursor: pointer; }
.copy-button:hover { background: #d9f7fa; }
.callout { display: flex; align-items: center; gap: 11px; margin-top: 13px; padding: 13px 16px; border: 1px solid #dceff4; border-radius: 13px; background: linear-gradient(90deg, #f0fbfd, #f6f4ff); }
.callout-icon { display: grid; place-items: center; width: 23px; height: 23px; flex: none; border: 1px solid #62bfca; border-radius: 50%; color: #178d9c; font-size: 11px; font-weight: 800; }
.callout p { margin: 0; color: #686a79; font-size: 10px; }
.callout b { color: #262739; }

.video-section { padding: 66px 0 78px; background: linear-gradient(180deg, #f2f2fc 0%, #f8f8fe 100%); }
.video-section-inner { width: min(1120px, calc(100% - 48px)); }
.video-section .section-heading { margin-bottom: 23px; }
.video-section .section-heading h2 { max-width: 500px; }
.video-catalog { display: grid; gap: 12px; }
.catalog-status { padding: 18px; border: 1px solid #e4e4ef; border-radius: 14px; background: #fff; color: var(--muted); font-size: 11px; }
.playlist-group { overflow: hidden; padding: 0 16px 15px; border: 1px solid #e4e4ef; border-radius: 17px; background: #fff; box-shadow: 0 7px 20px rgba(40, 42, 79, .035); }
.playlist-group[open] { border-color: #d3d0f4; }
.playlist-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; cursor: pointer; list-style: none; }
.playlist-summary::-webkit-details-marker { display: none; }
.playlist-summary-info { display: grid; gap: 4px; }
.playlist-summary-info strong { color: #28293a; font-size: 13px; line-height: 1.4; }
.playlist-summary-info small { color: #858694; font-size: 9px; }
.playlist-chevron { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid #e5e4f0; border-radius: 50%; color: #6157c8; font-size: 16px; transition: transform .2s; }
.playlist-group[open] .playlist-chevron { transform: rotate(45deg); }
.playlist-source { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; margin: 0 0 12px; padding: 0 11px; border: 1px solid #e6e7f1; border-radius: 99px; color: #5b5b90; font-size: 9px; font-weight: 800; }
.playlist-source:hover { border-color: #bbb9e9; color: #4f47b2; }
.unavailable-note { margin: 0 0 12px; padding: 9px 11px; border-left: 2px solid #dfae53; background: #fff9ec; color: #8f6a2a; font-size: 9px; }
.youtube-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.youtube-video-card { min-width: 0; overflow: hidden; padding: 8px; border: 1px solid #e7e7f0; border-radius: 13px; background: #fff; transition: transform .2s, box-shadow .2s; }
.youtube-video-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(39, 41, 78, .09); }
.youtube-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 0; border-radius: 9px; background: linear-gradient(135deg, #d7f8fa, #ded8ff); cursor: pointer; }
.youtube-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.youtube-video-card:hover .youtube-poster img { transform: scale(1.04); }
.youtube-play-icon { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 43px; height: 43px; padding-left: 3px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(22, 24, 43, .72); color: #fff; font-size: 11px; transform: translate(-50%, -50%); box-shadow: 0 5px 17px rgba(0,0,0,.18); backdrop-filter: blur(8px); }
.youtube-video-card h4 { display: -webkit-box; min-height: 36px; overflow: hidden; margin: 9px 2px 4px; color: #28293b; font-size: 10px; line-height: 1.55; font-weight: 800; -webkit-box-orient: vertical; line-clamp: 2;
  -webkit-line-clamp: 2; }
.video-fallback-link { display: inline-flex; min-height: 30px; align-items: center; margin: 0 2px 3px; color: #6f6baf; font-size: 9px; font-weight: 700; }
.video-fallback-link:hover { color: #3b348e; }
.youtube-inline-player { min-width: 0; }
.youtube-player-frame { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #e4e4ef; border-radius: 10px; background: #090b13; }
.youtube-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.noscript-playlists { display: grid; gap: 8px; padding: 16px; border: 1px solid #e5e5ef; border-radius: 14px; background: #fff; }
.noscript-playlists p { margin: 0; color: var(--muted); font-size: 10px; }
.noscript-playlists a { color: #5149ad; font-size: 10px; }

.create-section { padding-top: 72px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.guide-card { padding: 21px; border: 1px solid #e8e8f0; border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(39, 41, 76, .035); }
.guide-wide { grid-column: 1 / -1; background: linear-gradient(105deg, #f2fcff, #f8f6ff); }
.guide-label { display: inline-block; color: #5c58bd; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.guide-card h3 { margin: 9px 0 8px; color: #252637; font-size: 14px; letter-spacing: -.02em; }
.guide-card p { margin-bottom: 10px; color: #6f7080; font-size: 10px; }
.guide-card ul { margin: 9px 0 0; padding-left: 17px; color: #686a79; font-size: 10px; }
.guide-card li { padding: 3px 0; }
.guide-card li::marker { color: #44b7c4; }
.guide-card li b { color: #303143; }
.formula { display: grid; gap: 4px; margin: 13px 0; padding: 10px 12px; border-left: 2px solid #6c63d9; border-radius: 0 9px 9px 0; background: #f4f2ff; }
.formula span { color: #82819d; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.formula b { color: #5550a4; font-size: 10px; }
.guide-card .example { color: #454659; font-size: 10px; }
.guide-card .muted { color: #9293a0; font-size: 9px; margin-bottom: 0; }
.tiktok-feature { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 20px; margin-top: 15px; padding: 20px; border: 1px solid #e6e4f2; border-radius: 18px; background: linear-gradient(105deg, #f3f2ff, #effcff); }
.tiktok-text h3 { margin: 8px 0; color: #262738; font-size: 20px; }
.tiktok-text p { max-width: 440px; color: #6f7080; font-size: 10px; }
.video-index { color: #5e59bb; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.button-outline { border: 1px solid #d7d6e8; background: #fff; color: #45446c; }
.button-outline:hover { border-color: #a6a1df; background: #f9f8ff; }
.tiktok-player { position: relative; width: min(100%, 220px); max-height: 380px; aspect-ratio: 9 / 16; margin-inline: auto; overflow: hidden; border: 1px solid #e2e2ec; border-radius: 14px; background: #12131a; box-shadow: 0 13px 28px rgba(38, 40, 75, .12); }
.tiktok-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.finish-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 52px; padding: 27px 30px; border: 1px solid #dce3f5; border-radius: 21px; background: linear-gradient(102deg, #effcff, #f2efff 55%, #f8f2ff); }
.finish-banner .eyebrow { margin-bottom: 8px; }
.finish-banner h2 { margin: 0; color: #242536; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; }
.finish-banner p:last-child { margin: 7px 0 0; color: #6e7080; font-size: 10px; }
.finish-banner .button { flex: none; }
.footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.footer p, .footer > a:last-child { margin: 0; color: #858694; font-size: 9px; }
.footer > a:last-child:hover { color: #4e48ad; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 20px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: #222337; color: #fff; font-size: 10px; font-weight: 800; opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 8px 25px rgba(25, 27, 48, .18); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.not-found { min-height: 75vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found h1 { max-width: 650px; color: #171722; font-size: clamp(34px, 6vw, 58px); letter-spacing: -.05em; line-height: 1.1; }
.not-found p { max-width: 540px; color: var(--muted); font-size: 13px; }

.reveal { transition: opacity .56s ease var(--reveal-delay, 0ms), transform .56s cubic-bezier(.2,.75,.25,1) var(--reveal-delay, 0ms); }
.motion-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1300px) {
  .hero { padding-top: 78px; }
  .editor-content { min-height: 286px; }
  .preview-canvas { min-height: 240px; }
}

@media (max-width: 900px) {
  .editor-workspace { grid-template-columns: minmax(0, 1fr) 175px; }
  .preview-canvas { min-height: 190px; }
  .timeline-panel { min-height: 145px; }
  .float-lessons { left: -4px; }
  .float-template { right: -4px; }
  .youtube-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .section-wrap { width: calc(100% - 36px); }
  .topbar { height: 64px; }
  .topbar-inner { width: calc(100% - 32px); gap: 10px; }
  .topbar-cta { display: none; }
  .menu-toggle { display: flex; width: 39px; height: 39px; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #e3e3ed; border-radius: 12px; background: #fff; cursor: pointer; }
  .menu-toggle span { width: 16px; height: 2px; border-radius: 2px; background: #252638; }
  .site-nav { position: absolute; top: 63px; left: 0; right: 0; display: none; padding: 8px 18px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 12px 25px rgba(30, 31, 57, .08); }
  .site-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid #f0f0f5; font-size: 12px; }
  .site-nav a:last-child { border-bottom: 0; }
  .signup-banner { width: calc(100% - 28px); min-height: 0; margin-top: 12px; padding: 13px; gap: 10px; border-radius: 15px; flex-wrap: wrap; }
  .signup-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
  .signup-copy { flex: 1; }
  .signup-kicker { font-size: 7px; letter-spacing: .1em; }
  .signup-copy strong { font-size: 10px; }
  .signup-button { width: 100%; min-height: 39px; margin: 2px 0 0; font-size: 10px; }
  .hero { padding: 52px 0 25px; }
  .hero::before { left: 0; top: 65px; width: min(340px, 100%); height: 280px; }
  .hero::after { right: 0; top: 8px; width: min(350px, 100%); height: 290px; }
  .eyebrow { margin-bottom: 12px; font-size: 8px; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(39px, 10vw, 57px); line-height: 1.04; margin-bottom: 14px; }
  .hero-intro { max-width: 430px; font-size: 11px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 19px; }
  .hero-actions .button { width: 100%; min-height: 45px; }
  .hero-proof { font-size: 8px; margin-top: 14px; }
  .hero-stage { width: calc(100% + 10px); margin: 24px -5px 0; padding: 8px 0 20px; }
  .editor-window { border-radius: 15px; transform: none; }
  .editor-topbar { height: 34px; padding: 0 10px; gap: 8px; }
  .window-controls { gap: 4px; }
  .window-controls i { width: 5px; height: 5px; }
  .editor-title { font-size: 6px; }
  .editor-state { font-size: 6px; }
  .editor-content { grid-template-columns: 29px minmax(0,1fr); min-height: 0; }
  .editor-sidebar { gap: 10px; padding: 11px 0; font-size: 9px; }
  .sidebar-active { width: 20px; height: 20px; border-radius: 6px; }
  .sidebar-divider { width: 15px; }
  .editor-workspace { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px; }
  .preview-canvas { min-height: 0; aspect-ratio: 16 / 9; border-radius: 9px; }
  .canvas-chip { left: 7px; top: 7px; padding: 4px 6px; font-size: 5px; }
  .canvas-play { width: 34px; height: 34px; font-size: 10px; }
  .timeline-panel { min-height: 68px; padding: 7px; border-radius: 8px; }
  .timeline-ruler { padding-bottom: 5px; font-size: 5px; }
  .timeline-track { height: 15px; margin-bottom: 4px; padding: 2px; }
  .playhead { top: 21px; height: 46px; }
  .playhead::before { width: 7px; height: 4px; left: -3px; }
  .stage-float { gap: 6px; padding: 7px 8px; border-radius: 10px; }
  .stage-float b { font-size: 7px; }
  .stage-float small { font-size: 6px; }
  .float-icon, .float-check { width: 20px; height: 20px; border-radius: 7px; font-size: 8px; }
  .float-lessons { top: 17%; left: 6px; }
  .float-template { right: 6px; bottom: 7%; }
  .quick-facts { justify-content: space-between; gap: 8px; padding: 16px 0 34px; }
  .quick-facts div { display: grid; gap: 0; }
  .quick-facts strong { font-size: 18px; }
  .quick-facts span { font-size: 8px; }
  .learning-path { padding-block: 48px 42px; }
  .section-heading { display: block; margin-bottom: 18px; }
  .section-heading h2 { font-size: 29px; }
  .section-desc { margin-top: 9px; font-size: 10px; }
  .path-rail { grid-template-columns: 1fr; gap: 8px; }
  .path-card { min-height: 0; display: grid; grid-template-columns: 38px 1fr 18px; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 12px; border-radius: 14px; }
  .path-number { top: 8px; right: 9px; font-size: 7px; }
  .path-icon { grid-row: 1 / span 2; width: 34px; height: 34px; margin: 0; }
  .path-title { align-self: end; font-size: 11px; }
  .path-copy { align-self: start; margin-top: 1px; font-size: 8px; }
  .path-arrow { position: static; grid-column: 3; grid-row: 1 / span 2; font-size: 12px; }
  .content-section { padding-block: 36px 46px; }
  .steps-row { grid-template-columns: 1fr; gap: 9px; }
  .step-card { gap: 12px; padding: 16px; border-radius: 15px; }
  .step-card h3 { font-size: 12px; }
  .step-card p { font-size: 10px; }
  .callout { align-items: flex-start; padding: 11px 12px; }
  .callout p { font-size: 9px; }
  .video-section { padding: 43px 0 50px; }
  .video-section-inner { width: calc(100% - 28px); }
  .video-section .section-heading { margin-bottom: 15px; }
  .video-section .section-heading h2 { font-size: 28px; }
  .video-section .section-desc { font-size: 9px; }
  .video-catalog { gap: 9px; }
  .playlist-group { padding: 0 10px 11px; border-radius: 14px; }
  .playlist-summary { min-height: 60px; gap: 8px; }
  .playlist-summary-info strong { max-width: 270px; font-size: 10px; }
  .playlist-summary-info small { font-size: 8px; }
  .playlist-chevron { width: 26px; height: 26px; font-size: 14px; }
  .playlist-source { min-height: 31px; margin-bottom: 9px; padding: 0 9px; font-size: 8px; }
  .youtube-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .youtube-video-card { padding: 6px; border-radius: 10px; }
  .youtube-poster { border-radius: 7px; }
  .youtube-play-icon { width: 34px; height: 34px; font-size: 9px; }
  .youtube-video-card h4 { min-height: 31px; margin: 7px 1px 3px; font-size: 8px; }
  .video-fallback-link { min-height: 26px; font-size: 8px; }
  .guide-grid { grid-template-columns: 1fr; gap: 9px; }
  .guide-wide { grid-column: auto; }
  .guide-card { padding: 17px; border-radius: 14px; }
  .guide-card h3 { font-size: 13px; }
  .guide-card p, .guide-card ul { font-size: 9px; }
  .tiktok-feature { grid-template-columns: 1fr; gap: 13px; padding: 15px; border-radius: 15px; }
  .tiktok-text h3 { font-size: 17px; }
  .tiktok-text p { font-size: 9px; }
  .tiktok-player { width: min(100%, 195px); max-height: 320px; }
  .finish-banner { align-items: flex-start; flex-direction: column; gap: 15px; width: calc(100% - 36px); margin-bottom: 32px; padding: 21px; border-radius: 16px; }
  .finish-banner h2 { font-size: 23px; }
  .finish-banner p:last-child { font-size: 9px; }
  .finish-banner .button { width: 100%; }
  .footer { min-height: 125px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 10px; padding-block: 19px; }
  .footer p, .footer > a:last-child { font-size: 8px; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 11px; }
  .signup-copy strong { font-size: 9px; }
  .editor-workspace { padding: 6px; }
  .quick-facts span { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal, .motion-ready .reveal:not(.is-visible), .reveal.is-visible { opacity: 1 !important; transform: none !important; }
}

/* Readable type and reliable touch targets on phones. */
@media (max-width: 700px) {
  .menu-toggle { width: 44px; height: 44px; }
  .site-nav a { min-height: 44px; align-items: center; font-size: 14px; }
  .signup-kicker { color: #4f49a4; font-size: 11px; }
  .signup-copy strong { font-size: 14px; }
  .signup-button { min-height: 44px; font-size: 14px; }
  .eyebrow { font-size: 11px; }
  .hero-intro { font-size: 15px; line-height: 1.65; }
  .hero-proof { color: #555766; font-size: 12px; line-height: 1.5; }
  .editor-title { font-size: 7px; }
  .editor-state { font-size: 7px; }
  .canvas-chip { font-size: 8px; }
  .timeline-ruler { font-size: 7px; }
  .stage-float b { font-size: 10px; }
  .stage-float small { font-size: 9px; }
  .quick-facts span { color: #5e6070; font-size: 11px; }
  .section-desc, .video-section .section-desc { font-size: 14px; line-height: 1.65; }
  .path-number { font-size: 11px; }
  .path-title { font-size: 14px; }
  .path-copy { color: #5e6070; font-size: 12px; }
  .step-card h3, .guide-card h3 { font-size: 16px; }
  .step-card p, .guide-card p, .guide-card ul { font-size: 14px; line-height: 1.65; }
  .copy-chip { min-height: 44px; }
  .copy-chip code { font-size: 14px; }
  .copy-button { min-height: 44px; padding-inline: 12px; font-size: 12px; }
  .callout p { font-size: 14px; line-height: 1.6; }
  .playlist-summary { min-height: 66px; }
  .playlist-summary-info strong { font-size: 14px; }
  .playlist-summary-info small { color: #5e606e; font-size: 12px; }
  .playlist-source { min-height: 44px; font-size: 12px; }
  .unavailable-note { color: #6e501e; font-size: 12px; line-height: 1.55; }
  .youtube-video-card h4 { min-height: 0; font-size: 14px; line-height: 1.5; -webkit-line-clamp: 3; line-clamp: 3; }
  .video-fallback-link { min-height: 44px; color: #5149ad; font-size: 12px; }
  .guide-label, .video-index, .formula span { font-size: 11px; }
  .formula b, .guide-card .example { font-size: 14px; }
  .guide-card .muted { color: #5f6070; font-size: 12px; }
  .tiktok-text p { font-size: 14px; line-height: 1.6; }
  .finish-banner p:last-child { color: #5c5e6c; font-size: 14px; line-height: 1.6; }
  .footer p, .footer > a:last-child { color: #5e6070; font-size: 11px; }
  .catalog-status, .noscript-playlists p, .noscript-playlists a { font-size: 14px; line-height: 1.6; }
  .noscript-playlists a { display: flex; min-height: 44px; align-items: center; }
  .toast { padding: 12px 18px; font-size: 14px; }
}

@media (max-width: 480px) {
  .youtube-video-grid { grid-template-columns: 1fr; gap: 10px; }
  .youtube-video-card { padding: 10px; }
}
