/* The guide is one live object. These scenes share motion.js's damped clock. */
.hero { padding: 70px 0 64px; }
.hero h1 { font-size: clamp(44px, 5.2vw, 72px); }
.hero .lede { font-size: 18px; line-height: 1.65; }
.hero .bce { margin-top: 34px; }
.guide-hero { height: 570px; isolation: auto; }
.hero-guide-dock { position: absolute; inset: 1% -5% 0; }
.guide-poster { width: 100%; height: 100%; object-fit: contain; display: block; }
.guide-ready .guide-poster { opacity: 0; }
.guide-canvas { position: fixed; inset: 0 auto auto 0; z-index: 4; pointer-events: none; opacity: 0; transform-origin: 0 0; }
.guide-orbit { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.guide-orbit::before { content: ''; position: absolute; inset: 16% 0 0; background: radial-gradient(ellipse, #7563de35, transparent 65%); }
.guide-orbit i { position: absolute; width: 92%; height: 34%; left: 4%; top: 60%; border: 1px solid #a594f52b; border-radius: 50%; transform: rotate(-15deg); }
.guide-orbit i:nth-child(2) { width: 110%; height: 44%; left: -5%; top: 54%; border-style: dashed; opacity: .6; }
.guide-orbit i:nth-child(3) { width: 72%; left: 14%; height: 25%; top: 65%; border-color: #ff5a2b42; }
.guide-features { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.guide-feature { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 15px; color: #fff; background: #15203bed; border: 1px solid #ffffff24; border-radius: 16px; box-shadow: 0 12px 30px #02071840; pointer-events: auto; }
.guide-feature small { display: block; font-size: 9px; letter-spacing: 1px; color: #c4b1f7; margin-bottom: 2px; }
.guide-feature b { display: block; font-size: 13px; font-weight: 600; }
.guide-feature-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; background: #e6e0f5; border-radius: 10px; color: #5645d4; font-size: 22px; }
.guide-feature-icon svg { width: 1em; height: 1em; display: block; }
.guide-feature-tools .guide-feature-icon { background: #ffe8d4; }
.guide-feature-projects .guide-feature-icon { background: #d9f3e1; color: #17685d; }
.guide-feature-rewards .guide-feature-icon { background: #ff5a2b; color: #fff; }
.guide-feature-learn { left: -2%; top: 16%; }
.guide-feature-tools { right: -4%; top: 34%; }
.guide-feature-projects { left: -3%; bottom: 22%; }
.guide-feature-rewards { right: 0; bottom: 10%; }
.guide-feature:focus-visible { outline: 3px solid #ff9a4d; outline-offset: 4px; }
html.m .guide-feature { transition: background 320ms var(--m-ease), color 320ms var(--m-ease), translate 600ms var(--m-ease), box-shadow 320ms var(--m-ease); }
.guide-feature.is-active, .guide-feature:hover { background: #fff; color: #0a1530; translate: 0 -6px; box-shadow: 0 18px 40px #0004; }
.guide-feature.is-active small, .guide-feature:hover small { color: #5645d4; }
.guide-control-row { position: absolute; bottom: -22px; inset-inline: 16%; display: flex; align-items: center; gap: 16px; z-index: 6; }
.guide-tour-progress { height: 2px; flex: 1; background: #ffffff26; overflow: hidden; }
.guide-tour-progress i { display: block; height: 100%; background: #ff5a2b; transform: scaleX(var(--tour-progress,1)); transform-origin: left; }
.guide-control-row .motion-control { min-height: 44px; }
.chapter-eyebrow { color: #6a5d85; display: block; letter-spacing: 1.7px; font-size: 10px; font-weight: 700; margin-bottom: 16px; }
.chapter-section { background: #f6f3ee; scroll-margin-top: 64px; }
.chapter-guide-dock, .academy-guide-dock, .section-guide-dock { display: none; }
.guide-section-heading { position: relative; }
.tools-band .guide-section-heading > .sub { max-width: 700px; margin-top: 16px; }
.chapter-controls[hidden] { display: none; }
.chapter-number { position: absolute; top: 20px; right: 24px; font-size: 64px; font-weight: 600; letter-spacing: -4px; opacity: .08; line-height: 1; pointer-events: none; }
.opportunity-example { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 80px; padding: 48px; background: #e6e0f5; border-radius: 24px; }
.opportunity-intro > p { font-size: clamp(24px,3vw,36px); font-weight: 600; letter-spacing: -1px; line-height: 1.3; margin: 0; }
.opportunity-example .opp-card { max-width: 390px; width: 100%; justify-self: end; box-shadow: 0 24px 50px -26px #392b7580; }
.opportunity-example .opp-card .btn-ghost { color: var(--ink); border-color: var(--hairline-strong); }
#academy .wrap { position: relative; }
#academy .acad-card { rotate: var(--academy-angle,0deg); translate: 0 var(--academy-rise,0px); }
.tools-band { background: #f4f1eb; }
.tools-band h2 { max-width: 820px; font-size: clamp(32px,4.8vw,62px); letter-spacing: -2px; }
.tool-grid { display: block; }
.tool-card { display: grid; grid-template-columns: 1.12fr 1fr; border-radius: 24px; margin-bottom: 28px; min-height: 390px; box-shadow: 0 12px 34px -24px #0a153040; }
.tool-art { width: auto; display: flex; flex-direction: column; justify-content: flex-start; padding: 22px 30px 38px; }
.tool-copy { justify-content: center; padding: 44px; }
.tool-copy h3 { font-size: 30px; letter-spacing: -1px; }
.tool-copy p { font-size: 16px; }
.tool-brand { margin: 0 0 16px; justify-content: flex-start; height: 42px; }
.tool-brand img.writetone-logo { width: 168px; }
.tool-art-tag { position: static; display: block; text-align: start; font-size: 12px; margin-top: 8px; }
.tool-art-content { flex: 1; }
.tool-demo { position: relative; min-height: 218px; margin-block: 6px 10px; color: #19223d; }
.demo-prompt { background: #fff; border: 1px solid #5645d41a; box-shadow: 0 8px 20px -15px #30235d; padding: 13px 16px; border-radius: 12px; font-size: 12px; line-height: 1.5; }
.demo-prompt > small { color: #6d6281; display: block; font-size: 9px; letter-spacing: 1px; margin-bottom: 6px; }
.demo-workflow { position: relative; display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding: 0 8px; }
.demo-workflow::before { content: ''; position: absolute; inset-inline: 35px; top: 22px; height: 2px; background: #b3a5dc; }
.demo-flow { position: absolute; inset-inline: 35px; top: 22px; height: 2px; background: #ff5a2b; transform-origin: left; }
[dir="rtl"] .demo-flow { transform-origin: right; }
.demo-node { position: relative; display: flex; flex-direction: column; align-items: center; width: 76px; font-size: 10px; text-align: center; gap: 8px; }
.demo-node > b { display: grid; place-items: center; width: 46px; height: 46px; background: #fff; border: 1px solid #9784cf55; border-radius: 13px; font-size: 19px; color: #5645d4; box-shadow: 0 8px 18px -12px #5645d4; }
.demo-node:nth-of-type(3) > b { background: #5645d4; color: #fff; }
.demo-done { display: flex; gap: 6px; align-items: center; margin-top: 20px; font-size: 10px; color: #176347; font-weight: 600; }
.demo-done::before { content: '✓'; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #d9f3e1; }
.demo-toolbar { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.demo-toolbar > i { width: 5px; height: 5px; background: #b8a591; border-radius: 50%; }
.demo-toolbar > span { margin-inline-start: auto; font-size: 9px; color: #845b39; }
.demo-writing { padding: 16px; border-radius: 13px; background: #fff; box-shadow: 0 8px 20px -15px #793400; }
.demo-draft { font-size: 12px; line-height: 1.6; color: #8a7768; margin: 0 0 14px; padding-bottom: 13px; border-bottom: 1px solid #efe6dc; }
.demo-output { font-size: 13px; line-height: 1.6; margin: 0; color: #3b2c22; }
.demo-output strong { font-weight: 500; background: #fff0c0; }
.demo-insights { padding: 16px; background: #fff; border-radius: 13px; }
.demo-rank { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.demo-rank:last-child { margin-bottom: 0; }
.demo-rank > b { color: #17685d; font-size: 9px; }
.demo-rank > small { font-size: 9px; color: #17685d; }
.demo-rank::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 28px; width: var(--bar); height: 3px; border-radius: 3px; background: #2a9d99; transform-origin: left; }
[dir="rtl"] .demo-rank::after { transform-origin: right; }
.demo-replay { border: 0; background: transparent; display: inline-flex; align-items: center; align-self: flex-end; padding: 5px 0; color: var(--tool-accent); font: inherit; font-size: 11px; cursor: pointer; min-height: 28px; }
.demo-replay[hidden] { display: none; }
.demo-replay:focus-visible, .chapter-dot:focus-visible { outline: 3px solid #5645d4; outline-offset: 4px; }
html.journey .tool-demo .demo-flow, html.journey .tool-demo .demo-node, html.journey .tool-demo .demo-done, html.journey .tool-demo .demo-output, html.journey .tool-demo .demo-rank::after { transition: transform 600ms var(--m-ease), opacity 320ms var(--m-ease), clip-path 600ms var(--m-ease); }
html.journey [data-demo-phase="0"] .demo-node { opacity: .25; transform: translateY(8px); }
html.journey [data-demo-phase="0"] .demo-flow, html.journey [data-demo-phase="1"] .demo-flow { transform: scaleX(0); }
html.journey [data-demo-phase="2"] .demo-flow { transform: scaleX(.5); }
html.journey [data-demo-phase="0"] .demo-done, html.journey [data-demo-phase="1"] .demo-done, html.journey [data-demo-phase="2"] .demo-done { opacity: 0; transform: translateY(6px); }
html.journey [data-demo-phase="0"] .demo-output, html.journey [data-demo-phase="1"] .demo-output { clip-path: inset(0 100% 0 0); }
html.journey[dir="rtl"] [data-demo-phase="0"] .demo-output, html.journey[dir="rtl"] [data-demo-phase="1"] .demo-output { clip-path: inset(0 0 0 100%); }
html.journey [data-demo-phase="0"] .demo-rank::after { transform: scaleX(0); }
html.journey [data-demo-phase="1"] .demo-rank::after { transform: scaleX(.35); }
html.journey [data-demo-phase="2"] .demo-rank::after { transform: scaleX(.7); }
@media (min-width:981px) and (min-height:680px) {
  html.journey-desktop .chapter-section { height: 240svh; padding: 0; }
  html.journey-desktop .chapter-stage { position: sticky; top: 64px; height: calc(100svh - 64px); overflow: hidden; background: var(--chapter-bg,#f6f3ee); transition: background 600ms var(--m-ease); }
  html.journey-desktop .chapter-stage > .wrap { position: relative; height: 100%; padding-top: 48px; max-width: 1240px; }
  html.journey-desktop .chapter-heading { max-width: 750px; }
  html.journey-desktop .chapter-heading h2 { font-size: clamp(36px,4.6vw,60px); }
  html.journey-desktop .chapter-guide-dock { display: block; position: absolute; left: 1%; top: 26%; width: 43%; height: 66%; }
  html.journey-desktop .chapter-cards { display: block; position: absolute; left: 49%; top: 30%; width: 47%; height: 51%; max-height: 410px; margin: 0; perspective: 1500px; }
  html.journey-desktop .chapter-cards > .card { position: absolute; inset: 0; padding: 38px; border-radius: 24px; transform-origin: center bottom; transition: none; box-shadow: 0 24px 70px -45px #3e2d6c; border: 1px solid #ffffff95; }
  html.journey-desktop .chapter-cards h3 { font-size: 44px; letter-spacing: -1.5px; margin: 12px 0; }
  html.journey-desktop .chapter-cards p { font-size: 17px; max-width: 420px; line-height: 1.65; }
  html.journey-desktop .chapter-cards .ic { font-size: 32px; margin-bottom: 8px; }
  html.journey-desktop .chapter-cards .chapter-number { font-size: 116px; top: 20px; right: 25px; }
  html.journey-desktop .chapter-controls { position: absolute; bottom: 6%; left: 50%; width: 43%; display: flex; align-items: center; gap: 18px; }
  .chapter-dots { display: flex; gap: 8px; }
  .chapter-dot { width: 28px; height: 28px; border: 1px solid #9386b54d; border-radius: 50%; background: transparent; color: #645575; font-size: 11px; cursor: pointer; }
  .chapter-dot[aria-current="step"] { background: #5645d4; color: white; border-color: #5645d4; }
  .chapter-meter { height: 2px; background: #a798b83b; flex: 1; }
  .chapter-meter i { display: block; height: 100%; background: #5645d4; transform: scaleX(var(--chapter-progress,0)); transform-origin: left; }
  .chapter-count { color: #645575; font-size: 11px; font-variant-numeric: tabular-nums; }
  html.journey-desktop .guide-section-heading { min-height: 285px; padding-inline-end: 310px; padding-bottom: 24px; }
  html.journey-desktop .section-guide-dock { display: block; position: absolute; inset-inline-end: 0; top: -55px; width: 290px; height: 340px; }
  html.journey-desktop .tool-card { position: sticky; top: 98px; transform-origin: center top; }
  html.journey-desktop .tool-card:nth-child(2) { top: 116px; }
  html.journey-desktop .tool-card:nth-child(3) { top: 134px; }
  html.journey-desktop .tool-card:hover { translate: none; }
}
@media (min-width:981px) and (min-height:680px) and (max-height:800px) {
  html.journey-desktop .chapter-stage > .wrap { padding-top: 32px; }
  html.journey-desktop .chapter-heading h2 { font-size: 40px; }
  html.journey-desktop .chapter-cards { top: 28%; height: 48%; }
  html.journey-desktop .chapter-cards > .card { padding: 28px; }
  html.journey-desktop .chapter-cards h3 { font-size: 36px; }
  html.journey-desktop .chapter-cards p { font-size: 16px; }
  html.journey-desktop .chapter-cards .chapter-number { font-size: 96px; }
}
@media (max-width:1150px) and (min-width:981px) { .guide-feature { padding: 10px; gap: 7px; } .guide-feature b { font-size: 11px; } .guide-feature small { font-size: 8px; } .guide-feature-icon { width: 27px; height: 27px; flex-basis: 27px; } .guide-hero { height: 510px; } }
@media (max-width:980px) {
  .hero h1 { font-size: clamp(42px,7vw,64px); }
  .guide-hero { width: min(100%,540px); height: auto; aspect-ratio: 1; margin-top: 28px; margin-bottom: 24px; }
  .guide-feature { padding: 10px; }
  .guide-feature-tools { right: -1%; }
  .guide-feature-learn { left: 0; }
  .guide-feature-projects { left: 0; }
  .opportunity-example { gap: 28px; padding: 28px; }
  .tool-card { grid-template-columns: 1fr 1fr; min-height: 390px; }
  .tool-art { width: auto; padding: 22px 20px 35px; }
  .tool-copy { padding: 30px; }
}
@media (max-width:640px) {
  .hero { padding-top: 48px; }
  .hero .lede { font-size: 16px; }
  .guide-feature { border-radius: 11px; gap: 6px; padding: 8px; }
  .guide-feature b { font-size: 10px; }
  .guide-feature small { font-size: 7px; letter-spacing: .5px; }
  .guide-feature-icon { width: 25px; height: 25px; flex-basis: 25px; font-size: 18px; }
  .guide-feature-icon img { width: 20px; height: 20px; }
  .guide-feature-rewards { bottom: 7%; }
  .guide-control-row { inset-inline: 10%; bottom: -30px; }
  .opportunity-example { grid-template-columns: 1fr; padding: 24px; margin-top: 45px; gap: 32px; }
  .opportunity-example .opp-card { max-width: none; }
  .tool-card { grid-template-columns: 1fr; }
  .tool-art { width: 100%; min-height: 340px; padding-inline: 24px; }
  .tool-copy { padding: 26px; }
  .tool-copy h3 { font-size: 26px; }
  .tool-brand-insights svg { margin: 0; }
  .chapter-number { font-size: 50px; }
  .tools-band h2 { letter-spacing: -1px; }
}
@media (prefers-reduced-motion:reduce) { .guide-poster { opacity: 1 !important; } .guide-canvas { display: none; } .guide-feature { transition: none !important; translate: none !important; } #academy .acad-card { rotate: none; translate: none; } }
