/* FAQ and demo pages. Loaded after styles.css. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.subpage main { position: relative; isolation: isolate; }
.subpage main::before { position: absolute; inset: 0 0 auto; z-index: -1; height: 720px; background: radial-gradient(rgba(26, 26, 24, .085) 1px, transparent 1.4px) 0 0 / 24px 24px; content: ''; -webkit-mask: linear-gradient(#000 30%, transparent); mask: linear-gradient(#000 30%, transparent); animation: drift 60s linear infinite; }
.text-link { color: var(--accent); font: 500 15px/1.3 var(--hand); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== FAQ ===== */
.faq-page { padding: 72px 0 110px; }
.faq-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: 104px; }
.faq-title { margin: 16px 0 14px; font: 300 clamp(46px, 5.4vw, 74px)/1.02 var(--serif); letter-spacing: -.045em; }
.faq-title em { position: relative; z-index: 0; color: var(--red); font-weight: 300; }
.faq-title em::after { position: absolute; z-index: -1; right: -.04em; bottom: .04em; left: -.04em; height: .14em; background: var(--red); border-radius: 3px; opacity: .2; content: ''; transform-origin: left; animation: grow-x 1s .7s backwards var(--ease); }
.faq-lede { max-width: 360px; margin: 0; color: #4c4a43; font: 500 17px/1.45 var(--hand); }
.faq-ask { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.mascot-faq { width: 96px; height: 96px; margin-left: -8px; }
.faq-jump { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.faq-jump a { position: relative; display: flex; gap: 10px; padding: 7px 0 7px 16px; color: var(--muted); font-size: 14px; line-height: 1.35; transition: color .25s ease, transform .35s var(--ease); }
.faq-jump a::before { position: absolute; top: 6px; bottom: 6px; left: -1.5px; width: 2px; background: var(--accent); border-radius: 2px; content: ''; transform: scaleY(0); transition: transform .4s var(--ease); }
.faq-jump a span { color: var(--accent); font: 500 13px/1.6 var(--hand); }
.faq-jump a:hover { color: var(--ink); transform: translateX(3px); }
.faq-jump a.is-open { color: var(--ink); }
.faq-jump a.is-open::before { transform: scaleY(1); }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { position: relative; scroll-margin-top: 100px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 254, 250, .55); transition: background-color .35s ease, border-color .35s ease, box-shadow .45s var(--ease), transform .45s var(--ease), opacity .85s ease; }
.faq-item:hover { border-color: rgba(47, 75, 124, .4); background: var(--white); box-shadow: 0 18px 40px -26px rgba(34, 39, 49, .35); }
.faq-item.is-open { border-color: rgba(47, 75, 124, .45); background: var(--white); box-shadow: 0 24px 60px -32px rgba(34, 39, 49, .4); }
.faq-item h2 { margin: 0; }
.faq-item h2 button { width: 100%; display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 12px; padding: 22px 24px; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; }
.faq-item h2 button:focus-visible { outline: 2px dashed var(--accent); outline-offset: -6px; border-radius: 12px; }
.faq-num { color: var(--accent); font: 500 16px/1 var(--hand); transition: transform .4s var(--ease); }
.faq-item h2 button:hover .faq-num { transform: rotate(-8deg) scale(1.1); }
.faq-q { font: 400 clamp(21px, 2.1vw, 27px)/1.2 var(--serif); letter-spacing: -.02em; }
.faq-icon { position: relative; width: 30px; height: 30px; border: 1.5px solid rgba(26, 26, 24, .25); border-radius: 50%; transition: transform .5s var(--ease), border-color .3s ease, background-color .3s ease, color .3s ease; }
.faq-icon::before, .faq-icon::after { position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; border-radius: 2px; content: ''; transition: transform .5s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item h2 button:hover .faq-icon { border-color: var(--accent); }
.faq-item.is-open .faq-icon { border-color: var(--accent); background: var(--accent); color: #fff; transform: rotate(180deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-answer > div { min-height: 0; overflow: hidden; padding: 0 24px 0 70px; opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .5s var(--ease), padding-bottom .6s var(--ease); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > div { padding-bottom: 26px; opacity: 1; transform: none; transition-delay: .08s; }
html:not(.js) .faq-answer { grid-template-rows: 1fr; }
html:not(.js) .faq-answer > div { opacity: 1; transform: none; padding-bottom: 24px; }
.faq-answer p { max-width: 640px; margin: 0 0 14px; color: #3f3d37; font-size: 16px; line-height: 1.65; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer mark { padding: 0 .12em; background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 70% / 0% 55%; color: inherit; transition: background-size .9s .35s var(--ease); }
.faq-item.is-open .faq-answer mark { background-size: 100% 55%; }
.faq-answer .faq-big { color: var(--ink); font: 300 clamp(40px, 4.6vw, 58px)/1 var(--serif); letter-spacing: -.04em; }
.faq-big span { color: var(--green); font-style: italic; }
.faq-item.is-open .faq-big span { display: inline-block; animation: sc-in .7s .25s backwards var(--ease); }
.faq-link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(47, 75, 124, .4); text-underline-offset: 3px; }
.faq-link:hover { text-decoration-color: currentColor; }
.faq-cta { margin-top: 4px; }
.faq-more { margin: 18px 0 0; color: var(--muted); font: 500 16px/1.4 var(--hand); text-align: center; }
.faq-more a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.faq-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.faq-compare-col { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px dashed rgba(26, 26, 24, .25); border-radius: 10px; color: var(--muted); font-size: 14px; }
.faq-compare-col b { color: var(--ink); font: 400 18px/1.2 var(--serif); }
.faq-compare-col span { position: relative; padding-left: 20px; }
.faq-compare-col span::before { position: absolute; left: 0; color: #a9a59c; content: '–'; }
.faq-compare-col.is-us { border: 1.5px solid var(--green); background: rgba(52, 123, 77, .05); color: var(--ink); }
.faq-compare-col.is-us span::before { color: var(--green); content: '✓'; }
.faq-item.is-open .faq-compare-col span { animation: sc-in .6s backwards var(--ease); }
.faq-item.is-open .faq-compare-col span:nth-child(3) { animation-delay: .12s; }
.faq-item.is-open .faq-compare-col span:nth-child(4) { animation-delay: .24s; }
.faq-item.is-open .faq-compare-col.is-us span { animation-delay: .4s; }
.faq-item.is-open .faq-compare-col.is-us span:nth-child(3) { animation-delay: .52s; }
.faq-item.is-open .faq-compare-col.is-us span:nth-child(4) { animation-delay: .64s; }
.faq-gets { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.faq-gets li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-size: 15px; transition: transform .35s var(--ease), border-color .3s ease; }
.faq-gets li:hover { transform: translateX(4px); border-color: rgba(47, 75, 124, .45); }
.faq-gets span { width: 38px; height: 30px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 700 11px var(--mono); }
.faq-item.is-open .faq-gets li { animation: slide-in .55s backwards var(--ease); }
.faq-item.is-open .faq-gets li:nth-child(2) { animation-delay: .1s; }
.faq-item.is-open .faq-gets li:nth-child(3) { animation-delay: .2s; }
.faq-timeline { position: relative; margin: 24px 0 4px; padding: 6px 0 0; }
.faq-tl-track { position: relative; height: 3px; margin: 0 7px; border-radius: 2px; background: rgba(26, 26, 24, .12); }
.faq-tl-track i { position: absolute; inset: 0; border-radius: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; }
.faq-timeline.is-run .faq-tl-track i { animation: grow-x 2.2s .3s forwards var(--ease); }
.faq-timeline ol { position: relative; height: 56px; margin: -9px 7px 0; padding: 0; list-style: none; }
.faq-timeline li { position: absolute; left: calc(var(--at) * 100%); display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.faq-timeline li:first-child { align-items: flex-start; transform: translateX(-7px); text-align: left; }
.faq-timeline li:last-child { align-items: flex-end; transform: translateX(calc(-100% + 7px)); text-align: right; }
.faq-timeline li::before { width: 15px; height: 15px; margin-bottom: 7px; border: 2px solid var(--green); border-radius: 50%; background: var(--white); content: ''; }
.faq-timeline.is-run li::before { animation: tl-dot .4s forwards; animation-delay: calc(.3s + var(--at) * 1.8s); }
.faq-timeline li b { font: 500 14px/1.2 var(--hand); }
.faq-timeline li small { color: var(--muted); font-size: 12px; }
.faq-answer .faq-tl-lane { margin: 26px 0 0 22%; padding: 7px 12px; border: 1px dashed rgba(196, 61, 50, .45); border-radius: 999px; color: var(--red); font: 500 13px/1.3 var(--hand); text-align: center; }
@keyframes tl-dot { to { background: var(--green); } }

/* ===== Demo page ===== */
.demo-page { padding: 64px 0 100px; }
.demo-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.demo-intro h1 { margin: 16px 0 12px; font: 300 clamp(44px, 5.4vw, 74px)/1.02 var(--serif); letter-spacing: -.045em; }
.demo-intro h1 em { color: var(--accent); font-weight: 300; }
.demo-lede { max-width: 600px; margin: 0; color: #4c4a43; font: 500 17px/1.45 var(--hand); }
.mascot-demo { width: 112px; height: 112px; flex: 0 0 auto; }
.mascot-demo .mascot-bubble { --tail-l: auto; --tail-r: 22px; right: 10px; left: auto; transform: translate(0, 6px) scale(.92); transform-origin: 100% 100%; }
.mascot-demo .mascot-bubble.is-on { transform: none; }
.demo-note { margin-top: 16px; color: var(--muted); font: 11px/1.5 var(--mono); letter-spacing: .03em; text-align: center; }
.demo-close { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 70px; text-align: center; }
.demo-close p { margin: 0; font: 300 clamp(28px, 3.2vw, 40px)/1.15 var(--serif); letter-spacing: -.035em; }
.demo-faq-link { margin-top: 6px; }

/* The app window, in the platform's own palette */
.app-shell { --pf-bg: #f9f8f6; --pf-ink: #1a1a1a; --pf-muted: #6c6863; --pf-gold: #8a6900; --pf-gold-soft: #f2efe7; --pf-line: rgba(26, 26, 26, .12); --pf-ok: #059669; --c-learn: #0ea5e9; --c-career: #8b5cf6; overflow: hidden; border: 1px solid rgba(26, 26, 24, .2); border-radius: 14px; background: var(--pf-bg); color: var(--pf-ink); box-shadow: 0 2px 0 rgba(255, 255, 255, .7) inset, 0 50px 110px -40px rgba(26, 30, 40, .45), 0 14px 34px -14px rgba(26, 30, 40, .18); font-size: 15px; line-height: 1.5; }
.app-chrome { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--pf-line); background: #efede8; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(26, 26, 24, .16); }
.app-dots i:first-child { background: rgba(196, 61, 50, .55); }
.app-url { flex: 1; max-width: 460px; margin-inline: auto; overflow: hidden; padding: 4px 14px; border-radius: 999px; background: #fff; color: var(--pf-muted); font: 12px var(--mono); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.app-url b { color: var(--pf-ink); font-weight: 400; }
.app-url [data-app-path] { color: var(--pf-gold); }
.app-sample { padding: 3px 9px; border: 1px solid rgba(138, 105, 0, .35); border-radius: 999px; color: var(--pf-gold); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.app-bar { display: flex; align-items: center; gap: 28px; padding: 0 22px; border-bottom: 1px solid var(--pf-line); background: rgba(249, 248, 246, .96); }
.app-logo { font: 400 21px/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.app-logo i { color: var(--pf-gold); }
.app-tabs { position: relative; display: flex; gap: 4px; margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.app-tabs::-webkit-scrollbar { display: none; }
.app-tabs button { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0; padding: 9px 14px; border: 0; border-radius: 8px; background: none; color: var(--pf-muted); cursor: pointer; font: 14px/1 var(--sans); white-space: nowrap; transition: color .25s ease, background-color .25s ease; }
.app-tabs button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs button:hover { color: var(--pf-ink); background: rgba(26, 26, 26, .04); }
.app-tabs button[aria-selected="true"] { color: var(--pf-ink); background: #f0ede7; }
.app-tabs button:focus-visible { outline: 2px solid var(--pf-gold); outline-offset: -2px; }
.app-tab-ink { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--pf-gold); transition: transform .5s var(--ease), width .5s var(--ease); pointer-events: none; }
.app-views { position: relative; min-height: 640px; }
.app-view { padding: 30px 32px 36px; }
.app-view.is-active { animation: view-in .6s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); filter: blur(3px); } }
.ap-kicker { margin: 0 0 6px; color: var(--pf-gold); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.ap-kicker small { float: right; color: var(--pf-muted); font-size: 11px; letter-spacing: 0; text-transform: none; }
.ap-title { margin: 0 0 6px; font: 400 clamp(26px, 2.6vw, 34px)/1.12 var(--serif); letter-spacing: -.025em; }
.ap-sub { margin: 0 0 22px; color: var(--pf-muted); font-size: 14px; }
.ap-label { margin: 0 0 8px; color: var(--pf-muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ap-label small { margin-left: 8px; letter-spacing: .02em; text-transform: none; }
.ap-btn { padding: 12px 22px; border: 0; background: var(--pf-gold); color: #fff; cursor: pointer; font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: background-color .25s ease, opacity .25s ease, transform .2s ease; }
.ap-btn:hover:not(:disabled) { background: #725700; }
.ap-btn:active:not(:disabled) { transform: scale(.97); }
.ap-btn:disabled { cursor: not-allowed; opacity: .4; }
.ap-btn.is-sent { opacity: 1; background: #b8a774; }
.ap-btn.is-busy { background: linear-gradient(90deg, #8a6900 0 40%, #b39234 50%, #8a6900 60%) 0 0 / 250% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { to { background-position: -250% 0; } }
.ap-pill { padding: 8px 18px; border: 0; border-radius: 999px; background: var(--pf-gold); color: #fff; cursor: pointer; font: 700 13px var(--sans); transition: background-color .2s ease, transform .2s ease; }
.ap-pill:hover { background: #725700; }
.ap-pill:active { transform: scale(.95); }

/* Learning plan */
.lp { display: grid; grid-template-columns: 220px minmax(0, 1fr) 240px; gap: 28px; align-items: start; }
.lp-meta { margin: 0 0 14px; color: var(--pf-muted); font-size: 12px; }
.lp-units { margin: 0; padding: 0; list-style: none; }
.lp-units button { width: 100%; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; padding: 9px 8px; border: 0; border-bottom: 1px solid var(--pf-line); background: none; color: var(--pf-ink); cursor: pointer; font: 13.5px/1.3 var(--sans); text-align: left; transition: background-color .25s ease, padding .35s var(--ease); }
.lp-units button:hover { background: rgba(26, 26, 26, .035); padding-left: 12px; }
.lp-units span { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid rgba(26, 26, 26, .18); border-radius: 50%; font-size: 11px; }
.lp-units .is-done span { border-color: var(--pf-ok); background: var(--pf-ok); color: #fff; }
.lp-units .is-current span, .lp-units .is-unlocked span { border-color: var(--pf-gold); color: var(--pf-gold); animation: halo 2.4s ease-out infinite; }
.lp-units .is-open button { background: var(--pf-gold-soft); box-shadow: inset 2px 0 var(--pf-gold); }
.lp-units .is-locked button { color: var(--pf-muted); }
.lp-units .is-locked span { background: radial-gradient(circle at 50% 62%, var(--pf-muted) 0 20%, transparent 22%); }
.lp-units .is-unlocked button { animation: unlock 1s var(--ease); }
.lp-units .is-shake button { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes unlock { 0% { background: rgba(5, 150, 105, .22); } 100% { background: transparent; } }
.lp-lock-note { min-height: 2.8em; margin: 10px 0 0; color: var(--pf-gold); font-size: 12px; }
.lp-lesson { min-width: 0; }
.lp-lesson.is-swap { animation: view-in .55s var(--ease); }
.lp-checked { margin: 12px 0 20px; padding: 9px 14px; border: 1px solid var(--pf-line); background: #fff; color: var(--pf-muted); font-size: 12.5px; }
.lp-checked b { margin-right: 8px; color: var(--pf-ink); font-weight: 600; }
.lp-body h3 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--pf-line); font: 600 20px/1.2 var(--sans); letter-spacing: -.01em; }
.lp-body p { margin: 0 0 12px; color: #2f2d2a; font-size: 14.5px; line-height: 1.65; }
.lp-body .lp-passed { color: #047857; font-size: 13px; }
.eq { position: relative; margin: 0 0 12px; padding: 12px 52px 12px 16px; overflow-x: auto; border-left: 2px solid var(--pf-gold); background: rgba(26, 26, 26, .03); font: 18px/1.5 var(--serif); text-align: center; white-space: nowrap; }
.eq b { font-weight: 700; }
.eq-n { position: absolute; top: 50%; right: 14px; color: var(--pf-muted); font: 12px var(--sans); transform: translateY(-50%); }
.frac { display: inline-flex; flex-direction: column; margin: 0 .15em; vertical-align: middle; font-size: .9em; line-height: 1.2; text-align: center; }
.frac > span:first-child { padding: 0 .2em; border-bottom: 1px solid currentColor; }
.amr { margin: 16px 0; border: 1px solid var(--pf-line); background: #fff; }
.amr svg { width: 100%; height: auto; display: block; background: #fbfaf7; }
.amr-c { fill: transparent; stroke: rgba(26, 26, 26, .14); stroke-width: .6; }
.amr-d1 { fill: rgba(138, 105, 0, .1); stroke: rgba(138, 105, 0, .45); animation: cell-in .45s backwards ease; }
.amr-d2 { fill: rgba(138, 105, 0, .24); stroke: rgba(138, 105, 0, .6); stroke-width: .5; animation: cell-in .45s backwards ease; }
@keyframes cell-in { from { opacity: 0; } }
.amr-flow { fill: none; stroke: #2f4b7c; stroke-width: 1; stroke-dasharray: 6 5; opacity: .45; animation: flow 1.1s linear infinite; }
.amr-body { fill: #1a1a18; stroke: #1a1a18; stroke-width: 1; }
.amr figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; border-top: 1px solid var(--pf-line); font-size: 13px; }
.amr label { min-width: 118px; font-family: var(--serif); }
.amr output { color: var(--pf-gold); font-weight: 700; }
.amr input[type="range"] { flex: 1 1 160px; min-width: 120px; accent-color: var(--pf-gold); cursor: pointer; }
.amr-stats { color: var(--pf-muted); font-size: 12px; }
.amr-stats b { color: var(--pf-ink); }
.lp-rail { display: flex; flex-direction: column; gap: 14px; }
.lp-toc { padding: 14px 16px; border: 1px solid var(--pf-line); background: #fff; }
.lp-toc ol { margin: 6px 0 0; padding: 0; border-left: 1px solid var(--pf-line); list-style: none; color: var(--pf-muted); font-size: 13px; }
.lp-toc li { padding: 4px 0 4px 12px; }
.lp-toc li.is-on { margin-left: -1px; border-left: 2px solid var(--pf-gold); color: var(--pf-ink); }
.lp-checkpoints { padding: 14px 16px; border: 1px solid rgba(138, 105, 0, .35); background: var(--pf-gold-soft); transition: box-shadow .4s ease; }
.lp-checkpoints.is-hint { box-shadow: 0 0 0 4px rgba(138, 105, 0, .2); }
.lp-checkpoints p { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 13px; }
.lp-checkpoints small { color: var(--pf-muted); }
.lp-checkpoints button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 5px 0; border: 0; background: none; color: var(--pf-ink); cursor: pointer; font: 13px var(--sans); text-align: left; }
.lp-checkpoints button i { position: relative; width: 15px; height: 15px; border: 1.5px solid rgba(26, 26, 26, .35); border-radius: 50%; transition: background-color .25s ease, border-color .25s ease, transform .35s var(--ease); }
.lp-checkpoints button:hover i { transform: scale(1.15); }
.lp-checkpoints button.is-pass { color: #047857; }
.lp-checkpoints button.is-pass i { border-color: var(--pf-ok); background: var(--pf-ok); }
.lp-checkpoints button.is-pass i::after { position: absolute; top: 1px; left: 4px; width: 3px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; content: ''; transform: rotate(45deg); }
.lp-advisor { padding: 14px 16px; border: 1px solid var(--pf-line); background: #fff; font-size: 13px; }
.lp-q { margin: 6px 0 8px; padding: 8px 10px; background: var(--pf-ink); color: var(--pf-bg); }
.lp-a { min-height: 7.5em; margin: 0; padding: 8px 10px; border-left: 2px solid var(--pf-gold); background: rgba(26, 26, 26, .03); }
.lp-a.is-typing::after { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; background: var(--pf-gold); content: ''; vertical-align: -.1em; animation: caret .8s steps(1) infinite; }

/* Project */
.pj { max-width: 920px; margin-inline: auto; }
.pj-journey { margin-bottom: 22px; padding: 18px 20px; border: 1px solid var(--pf-line); background: #fff; }
.pj-journey-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 0 12px; color: var(--pf-muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.pj-journey-top b { color: var(--pf-ink); font-weight: 400; }
.pj-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; letter-spacing: 0; text-transform: none; }
.pj-legend i { width: 7px; height: 7px; display: inline-block; margin-left: 6px; border-radius: 50%; }
.pj-stages em i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; }
.c-learn { background: var(--c-learn); }
.c-proj { background: var(--pf-gold); }
.c-career { background: var(--c-career); }
.pj-stages { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.pj-stages button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 7px; border: 1px solid var(--pf-line); background: var(--pf-bg); color: var(--pf-muted); cursor: pointer; font: 12px/1 var(--sans); transition: transform .3s var(--ease), border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.app-view.is-active .pj-stages button { animation: sc-in .5s backwards var(--ease); animation-delay: calc(var(--i) * 30ms); }
.pj-stages button:hover { transform: translateY(-3px); border-color: rgba(138, 105, 0, .5); }
.pj-stages em { display: flex; gap: 2px; }
.pj-stages .is-done { background: #f1f7f3; color: var(--pf-ink); }
.pj-stages .is-now { border-color: var(--pf-gold); background: var(--pf-gold-soft); color: var(--pf-ink); font-weight: 700; }
.pj-stages .is-sel { box-shadow: 0 0 0 2px var(--pf-gold); transform: translateY(-3px); }
.pj-stage-desc { min-height: 2.6em; margin: 12px 0 0; color: var(--pf-muted); font-size: 14px; }
.pj-stage-desc b { color: var(--pf-ink); }
.pj-stage-desc.is-swap { animation: fade-in .4s; }
.pj-tabs { display: flex; gap: 24px; margin-bottom: 16px; border-bottom: 1px solid var(--pf-line); }
.pj-tabs button { margin-bottom: -1px; padding: 8px 2px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--pf-muted); cursor: pointer; font: 14px var(--sans); transition: color .2s ease, border-color .3s ease; }
.pj-tabs button:hover { color: var(--pf-ink); }
.pj-tabs button.is-on { border-color: var(--pf-gold); color: var(--pf-ink); }
.pj-panel.is-on { animation: view-in .5s var(--ease); }
.pj-card { padding: 22px 24px; border: 1px solid rgba(138, 105, 0, .4); background: var(--pf-gold-soft); transition: border-color .5s ease, background-color .5s ease; }
.pj-card.is-accepted { border-color: rgba(5, 150, 105, .45); background: #f0f6f1; }
.pj-card-top { display: flex; justify-content: space-between; gap: 10px; margin: 0; }
.pj-status { color: var(--pf-gold); font-size: 13px; white-space: nowrap; }
.pj-status.is-ok { color: var(--pf-ok); animation: pop .5s var(--ease); }
.pj-card h3 { margin: 4px 0 8px; font: 600 21px/1.25 var(--sans); }
.pj-brief { margin: 0 0 16px; color: #2f2d2a; font-size: 14.5px; }
.pj-done { margin: 0 0 16px; padding: 0; list-style: none; }
.pj-done button { display: flex; align-items: center; gap: 10px; padding: 5px 0; border: 0; background: none; color: var(--pf-ink); cursor: pointer; font: 14px var(--sans); text-align: left; }
.pj-done button > i:first-child { position: relative; width: 17px; height: 17px; flex: 0 0 17px; border: 1.5px solid rgba(138, 105, 0, .6); border-radius: 4px; background: #fff; transition: background-color .25s ease, transform .35s var(--ease); }
.pj-done button:hover > i:first-child { transform: scale(1.12); }
.pj-done button.is-on > i:first-child { border-color: var(--pf-ok); background: var(--pf-ok); }
.pj-done button.is-on > i:first-child::after { position: absolute; top: 1px; left: 5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; content: ''; transform: rotate(45deg); }
.pj-done .v { font-family: var(--serif); }
.pj-hint { margin: -8px 0 16px; color: var(--pf-gold); font: 500 14px/1.3 var(--hand); }
.pj-link { margin: 0 0 18px; padding-bottom: 8px; overflow-wrap: anywhere; border-bottom: 1px solid rgba(26, 26, 26, .25); font: italic 15px var(--serif); }
.pj-feedback { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--pf-ok); background: #fff; font-size: 14px; animation: view-in .5s var(--ease); }
.pj-feedback p { margin: 0; }
.pj-feedback b { color: var(--pf-ok); }
.pj-deliv { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pj-deliv li { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--pf-line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s ease; }
.pj-deliv li:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(26, 26, 26, .4); }
.pj-panel.is-on .pj-deliv li { animation: sc-in .5s backwards var(--ease); }
.pj-panel.is-on .pj-deliv li:nth-child(2) { animation-delay: .08s; }
.pj-panel.is-on .pj-deliv li:nth-child(3) { animation-delay: .16s; }
.pj-panel.is-on .pj-deliv li:nth-child(4) { animation-delay: .24s; }
.pj-deliv div { display: flex; flex-direction: column; min-width: 0; }
.pj-deliv small { color: var(--pf-muted); font-size: 12.5px; }
.pj-deliv em { color: var(--pf-muted); font: 12px var(--sans); font-style: normal; white-space: nowrap; }
.pj-deliv em.is-live { color: var(--pf-gold); }
.d-ico { height: 40px; display: grid; place-items: center; border: 1px solid #d8dce3; background: #f4f5f8; color: #5a4a9a; font: 700 12px var(--mono); }
.d-pdf { border-color: #d2aaa5; background: #fbefed; color: #a6493e; }
.d-j { border-color: rgba(138, 105, 0, .4); background: var(--pf-gold-soft); color: var(--pf-gold); font-family: var(--serif); font-size: 18px; }
.d-cv { border-color: #b7d3c1; background: #eef6f1; color: #047857; }

/* Career */
.cr { max-width: 980px; margin-inline: auto; }
.cr-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; border: 1px solid var(--pf-line); background: #fff; }
.cr-stats div { display: flex; flex-direction: column; align-items: center; padding: 16px 8px; }
.cr-stats div + div { border-left: 1px solid var(--pf-line); }
.cr-stats b { font: 600 34px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.cr-stats span { color: var(--pf-muted); font-size: 11px; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.cr-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cr-log ul, .cr-roles ul { margin: 0; padding: 0; list-style: none; }
.cr-log li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pf-line); }
.cr.is-run .cr-log li { animation: slide-in .5s backwards var(--ease); }
.cr.is-run .cr-log li:nth-child(2) { animation-delay: .08s; }
.cr.is-run .cr-log li:nth-child(3) { animation-delay: .16s; }
.cr.is-run .cr-log li:nth-child(4) { animation-delay: .24s; }
.cr-log div { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.cr-log small { color: var(--pf-muted); font-size: 12.5px; }
.cr-type { width: max-content; padding: 3px 8px; border: 1px solid var(--pf-line); color: var(--pf-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.cr-type.t-email { border-color: rgba(139, 92, 246, .35); color: #6d47c9; }
.cr-st { min-width: 92px; padding: 6px 12px; border: 1px solid var(--pf-line); border-radius: 999px; background: #fff; color: var(--pf-muted); cursor: pointer; font: 12.5px var(--sans); transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease; }
.cr-st:hover { transform: translateY(-1px); border-color: var(--pf-gold); }
.cr-st.s1 { border-color: rgba(14, 165, 233, .4); background: #eef8fd; color: #0369a1; }
.cr-st.s2 { border-color: rgba(5, 150, 105, .4); background: #ecf7f2; color: #047857; }
.cr-st.is-bump { animation: pop .35s var(--ease); }
.cr-roles { padding: 16px 18px; border: 1px solid var(--pf-line); background: #fff; }
.cr-roles li { display: grid; padding: 8px 0 10px; border-bottom: 1px solid var(--pf-line); font-size: 14px; }
.cr-roles small { color: var(--pf-muted); font-size: 12.5px; }
.cr-fit { height: 4px; margin-top: 6px; overflow: hidden; border-radius: 2px; background: rgba(26, 26, 26, .08); }
.cr-fit i { width: var(--w); height: 100%; display: block; border-radius: 2px; background: var(--pf-gold); transform: scaleX(0); transform-origin: left; transition: transform 1.2s .3s var(--ease); }
.cr.is-run .cr-fit i { transform: scaleX(1); }
.cr-line { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid #2f4b7c; background: #e4e9f0; font: 14px/1.5 'Latin Modern Roman', 'CMU Serif', Georgia, serif; }
.cr-line .ap-label { display: block; margin-bottom: 4px; font-family: var(--sans); }

/* Commons */
.cm { display: grid; grid-template-columns: 170px minmax(0, 1fr) 250px; min-height: 640px; margin: -30px -32px -36px; }
.cm-nav { display: flex; flex-direction: column; gap: 4px; padding: 24px 18px; border-right: 1px solid var(--pf-line); }
.cm-brand { margin: 0 0 12px; font: 400 22px/1 var(--serif); }
.cm-nav span { padding: 8px 10px; border-radius: 8px; color: var(--pf-muted); font-size: 14px; }
.cm-nav .is-on { background: #f0ede7; color: var(--pf-ink); font-weight: 600; }
.cm-feed { min-width: 0; border-right: 1px solid var(--pf-line); }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 18px 20px 0; border-bottom: 1px solid var(--pf-line); }
.cm-head > b { padding-bottom: 12px; font: 600 18px var(--sans); }
.cm-tabs { display: flex; gap: 18px; font-size: 13.5px; }
.cm-tabs i { padding-bottom: 12px; color: var(--pf-muted); font-style: normal; }
.cm-tabs .is-on { border-bottom: 2px solid var(--pf-gold); color: var(--pf-ink); font-weight: 600; }
.cm-compose { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--pf-line); }
.cm-compose input { min-width: 0; flex: 1; padding: 8px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--pf-ink); font: 16px var(--sans); transition: border-color .25s ease; }
.cm-compose input:focus { outline: none; border-color: var(--pf-gold); }
.av { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 700 12px var(--sans); }
.av-you { background: #4b2a6b; }
.av-m { background: #2f4b7c; }
.av-d { background: #347b4d; }
.cm-posts { margin: 0; padding: 0; list-style: none; }
.cm-post { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--pf-line); transition: background-color .25s ease; }
.cm-post:hover { background: rgba(26, 26, 26, .02); }
.cm-post.is-reply { position: relative; padding-left: 40px; }
.cm-post.is-reply::before { position: absolute; top: 0; bottom: 0; left: 38px; width: 2px; background: rgba(138, 105, 0, .25); content: ''; }
.cm-post.is-reply .av { position: relative; width: 32px; height: 32px; flex-basis: 32px; margin-left: 12px; font-size: 11px; }
.cm-post > div { min-width: 0; }
.cm-post p { margin: 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.cm-post .cm-who { color: var(--pf-muted); font-size: 13px; }
.cm-who b { color: var(--pf-ink); }
.cm-who em { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--pf-gold-soft); color: var(--pf-gold); font-size: 11px; font-style: normal; }
.cm-post .cm-act { display: flex; gap: 22px; margin-top: 6px; color: var(--pf-muted); font-size: 13px; }
.cm-act button { margin-left: -4px; padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--pf-muted); cursor: pointer; font: 13px var(--sans); transition: color .2s ease; }
.cm-act button:hover { color: #e11d48; }
.cm-act button.is-on { color: #e11d48; animation: pop .35s var(--ease); }
.cm-replies { padding-top: 2px; }
.cm.is-run .cm-post { animation: sc-in .55s backwards var(--ease); }
.cm.is-run .cm-post:nth-child(2) { animation-delay: .5s; }
.cm.is-run .cm-post:nth-child(3) { animation-delay: 1s; }
.cm.is-run .cm-post:nth-child(4) { animation-delay: 1.5s; }
.cm.is-run .cm-post:nth-child(5) { animation-delay: 2s; }
.cm .cm-post.is-new { background: rgba(138, 105, 0, .05); animation: sc-in .55s var(--ease); }
.cm-typing { display: flex; align-items: center; gap: 4px; height: 0; margin: 0; padding: 0 20px; overflow: hidden; opacity: 0; transition: height .35s var(--ease), opacity .3s ease, padding .35s var(--ease); }
.cm-typing.is-on { height: 56px; padding-block: 10px; opacity: 1; }
.cm-typing .av { width: 28px; height: 28px; flex-basis: 28px; margin-right: 6px; font-size: 10px; }
.cm-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--pf-muted); animation: typing 1.2s ease-in-out infinite; }
.cm-typing i:nth-of-type(2) { animation-delay: .15s; }
.cm-typing i:nth-of-type(3) { animation-delay: .3s; }
.cm-side { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.cm-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--pf-line); border-radius: 14px; background: #fff; font-size: 14px; }
.cm-prog { display: flex; justify-content: space-between; margin: 8px 0 0; color: var(--pf-muted); font-size: 12px; }
.cm-bar { height: 4px; overflow: hidden; border-radius: 2px; background: rgba(26, 26, 26, .08); }
.cm-bar s { width: 33%; height: 100%; display: block; background: var(--pf-gold); transform-origin: left; }
.cm.is-run .cm-bar s { animation: grow-x 1.2s .4s backwards var(--ease); }
.cm-r { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.cm-r .av { width: 32px; height: 32px; flex-basis: 32px; font-size: 11px; }
.cm-r span:last-child { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; font-weight: 600; }
.cm-r small { overflow: hidden; color: var(--pf-muted); font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1080px) {
  .lp { grid-template-columns: 200px minmax(0, 1fr); }
  .lp-rail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .lp-lock-note:empty { display: none; }
  .cm { grid-template-columns: 150px minmax(0, 1fr); }
  .cm-side { display: none; }
}
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .faq-side { position: static; }
  .faq-ask { flex-direction: row; align-items: center; }
  .faq-jump { display: none; }
  .lp { grid-template-columns: 1fr; }
  .lp-plan .lp-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .lp-rail { grid-template-columns: 1fr 1fr; }
  .lp-toc { display: none; }
  .cr-grid { grid-template-columns: 1fr; }
  .app-views { min-height: 0; }
}
@media (max-width: 680px) {
  .faq-page { padding: 40px 0 70px; }
  .faq-title { font-size: clamp(40px, 11vw, 52px); }
  .faq-lede { font-size: 16px; }
  .mascot-faq { width: 76px; height: 76px; }
  .faq-item h2 button { grid-template-columns: 26px 1fr 26px; gap: 10px; padding: 18px 16px; }
  .faq-icon { width: 26px; height: 26px; }
  .faq-q { font-size: 20px; }
  .faq-answer > div { padding: 0 16px; }
  .faq-item.is-open .faq-answer > div { padding-bottom: 20px; }
  .faq-answer p { font-size: 15px; }
  .faq-compare { grid-template-columns: 1fr; }
  .faq-timeline li small { display: none; }
  .faq-timeline li b { font-size: 12px; }
  .faq-answer .faq-tl-lane { margin-left: 0; }
  .demo-page { padding: 40px 0 70px; }
  .demo-intro { position: relative; flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 22px; }
  .demo-intro h1 { padding-right: 64px; font-size: clamp(40px, 11vw, 52px); }
  .demo-lede { font-size: 16px; }
  .mascot-demo { position: absolute; top: -10px; right: 0; width: 76px; height: 76px; }
  .app-shell.page-width { width: calc(100% - 20px); }
  .app-shell { border-radius: 12px; font-size: 14px; }
  .app-chrome { gap: 8px; padding: 0 10px; }
  .app-dots { display: none; }
  .app-url { padding: 3px 10px; font-size: 11px; }
  .app-sample { padding: 2px 7px; font-size: 9px; }
  .app-bar { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0 0; }
  .app-logo { padding: 0 14px; font-size: 18px; }
  .app-tabs { width: 100%; margin: 0; padding: 0 8px; }
  .app-tabs button { margin: 6px 0; padding: 8px 11px; font-size: 13px; }
  .app-view { padding: 20px 14px 24px; }
  .lp-plan .lp-units { grid-template-columns: 1fr; }
  .lp-units li.is-done:not(.is-open):nth-child(-n + 2) { display: none; }
  .lp-lock-note { min-height: 0; }
  .lp-rail { grid-template-columns: 1fr; }
  .eq { padding: 10px 40px 10px 12px; font-size: 16px; text-align: left; }
  .eq-n { right: 10px; }
  .pj-stages { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .pj-journey { padding: 14px; }
  .pj-card { padding: 18px 16px; }
  .pj-deliv li { grid-template-columns: 40px 1fr; }
  .pj-deliv em { grid-column: 2; }
  .cr-stats b { font-size: 26px; }
  .cr-stats span { font-size: 9.5px; letter-spacing: .08em; }
  .cr-log li { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .cr-type { grid-column: 1 / -1; }
  .cm { grid-template-columns: 1fr; margin: -20px -14px -24px; min-height: 0; }
  .cm-nav { display: none; }
  .cm-feed { border-right: 0; }
  .cm-head { padding: 14px 14px 0; }
  .cm-compose, .cm-post { padding-inline: 14px; }
  .cm-post.is-reply { padding-left: 22px; }
  .cm-post.is-reply::before { left: 20px; }
  .cm-post.is-reply .av { margin-left: 8px; }
  .cm-who em { display: none; }
}
.eq, .amr output, .pj-stages, .cr-stats b { font-variant-numeric: lining-nums tabular-nums; }
.av-new { background: var(--pf-gold); font-size: 10px; }
@media (max-width: 900px) {
  .faq-side { position: relative; top: auto; padding-right: 96px; }
  .faq-ask { position: absolute; top: 0; right: 0; margin: 0; }
  .mascot-faq { margin: 0; }
}
@media (max-width: 680px) {
  .faq-side { padding-right: 70px; }
  .mascot-faq { width: 72px; height: 72px; }
  .mascot-faq .mascot-bubble, .mascot-demo .mascot-bubble { --tail-l: auto; --tail-r: 22px; top: calc(100% + 10px); bottom: auto; right: 0; left: auto; max-width: min(230px, 70vw); transform: translate(0, -6px) scale(.92); transform-origin: 100% 0; }
  .mascot-faq .mascot-bubble.is-on, .mascot-demo .mascot-bubble.is-on { transform: none; }
  .mascot-faq .mascot-bubble::after, .mascot-demo .mascot-bubble::after { top: -7px; bottom: auto; transform: rotate(225deg); }
  .app-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; overflow: visible; padding: 0 6px; }
  .app-tabs button { flex-direction: column; gap: 5px; margin: 6px 0 8px; padding: 8px 2px; font-size: 11.5px; }
  .app-tabs button svg { width: 19px; height: 19px; }
  .faq-timeline li:nth-child(2) { --at: .34 !important; }
  .faq-timeline li:nth-child(3) { --at: .67 !important; }
  .faq-timeline ol { height: 40px; }
  .eq { padding-right: 12px; }
  .eq-n, .lp-checked { display: none; }
  .lp-body { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .subpage main::before, .amr-flow { animation: none; }
}
