/* wordojo.app: your next big moment (moments.js). The hero is a stage where the coaches work on a
   giant piece of the app: Bubble catching fillers (say it), Scribble red-penning a post (write it),
   both of them on a shoot (film it). The page's world follows your pick (body[data-world]).
   Per device: desktop is the stage and a sticky week that Babble walks; tablet reads like a picture
   book (spreads you page through); phone plays the story as cards you tap through, with try and
   download kept under your thumb. */

/* ---------- The hero ---------- */
body.story-page .nhero { padding: 104px 0 84px; position: relative; overflow: hidden; }
.nh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); grid-template-areas: "copy stage" "picker stage" "foot stage"; column-gap: 52px; align-items: start; }
.nh-copy { grid-area: copy; }
.picker { grid-area: picker; margin-top: 26px; }
.nh-stage { grid-area: stage; align-self: center; }
.nh-foot { grid-area: foot; margin-top: 26px; }

.nh-brand { display: inline-flex; align-items: center; background: var(--page-fg); color: var(--page-bg); font: 800 12px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; transition: background-color .7s, color .7s; }
.nh-brand .star { color: var(--red); text-decoration: none; margin-left: 2px; font-weight: 900; }
body[data-world="say"] .nh-brand .star { color: #FF6B5E; }
.nh-title { margin-top: 18px; font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(60px, 7.6vw, 124px); line-height: .86; letter-spacing: -.01em; }
.nh-next { display: block; }
.nh-word { display: inline; position: relative; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* The word, marked the way each world marks things: a Speak highlight, a red-pen underline, a REC light. */
body[data-world="say"] .nh-word { background: var(--ink); color: var(--volt); padding: 0 .1em; border-radius: .08em; }
body[data-world="write"] .nh-word { background: linear-gradient(var(--red), var(--red)) no-repeat 0 96% / 100% .09em; padding-bottom: .04em; }
body[data-world="film"] .nh-word { color: var(--volt); }
body[data-world="film"] .nh-word::before { content: ""; display: inline-block; width: .16em; height: .16em; margin: 0 .1em .42em 0; border-radius: 50%; background: var(--red); vertical-align: middle; animation: recblink 1.2s steps(2, jump-none) infinite; }
.nh-word.flip { display: inline-block; animation: nhflip .6s var(--ease-spring); }
@keyframes nhflip { from { opacity: 0; transform: translateY(.35em) rotate(-3deg); } }
@keyframes recblink { 50% { opacity: .15; } }
.nh-tag { display: block; text-wrap: balance; margin-top: 16px; font-family: var(--serif); font-style: italic; font-weight: 500; font-stretch: normal; text-transform: none; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.05; letter-spacing: -.02em; }

/* The picker: three kinds of moment, one pick */
.pk-q { font: 800 12.5px var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: 10px; }
.pk-rows { display: grid; gap: 8px; }
.pk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pk-g { display: inline-flex; align-items: center; gap: 6px; width: 94px; flex: none; font: 800 12px var(--body); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.pk-g svg { width: 16px; height: 16px; }
.pk-row button { border: 1.5px solid color-mix(in srgb, var(--page-fg) 28%, transparent); background: transparent; color: inherit; border-radius: 999px; padding: 8px 14px; font: 600 14.5px var(--body); transition: background-color .25s, color .25s, border-color .25s, transform .15s; }
.pk-row button:hover { border-color: currentColor; transform: translateY(-1px); }
.pk-row button[aria-pressed="true"] { background: var(--page-fg); color: var(--page-bg); border-color: var(--page-fg); }

.nh-lede { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.5; max-width: 480px; opacity: .88; }
.nh-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.nh-cta .btn { font-size: 16.5px; }
.nhero .btn-line { color: inherit; background: transparent; }
body[data-world="write"] .nhero .btn-ink { background: var(--red); color: #fff; box-shadow: 0 4px 0 #8E2019; }
body[data-world="film"] .nhero .btn-ink { background: var(--volt); color: var(--ink); box-shadow: 0 4px 0 #B8A200; }
.nhero .footnote { margin-top: 8px; max-width: 480px; font-size: 12.5px; line-height: 1.5; opacity: .72; }
.nhero .footnote a { font-weight: 700; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 2px; }

/* ---------- The stage: one scene per world, crossfading ---------- */
.nh-stage { position: relative; height: clamp(440px, 42vw, 600px); --px: 0; --py: 0; }
.scn { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(26px) scale(.96); transition: opacity .4s, transform .5s var(--ease-out), visibility 0s .5s; }
body[data-world="say"] .scn-say, body[data-world="write"] .scn-write, body[data-world="film"] .scn-film { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .12s, transform .8s var(--ease-spring) .12s, visibility 0s; }
.scn .host { position: absolute; line-height: 0; }
.scn .host .fam { height: 100%; }
.scn::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 22px; border-radius: 50%; background: currentColor; opacity: .1; }
/* It leans toward your pointer (desktop): the far things move more than the near ones. */
.wave-bg, .floaters, .post-card, .beats-card, .cam { translate: calc(var(--px) * -26px) calc(var(--py) * -16px); transition: translate .35s var(--ease-out); }
.scn .host { translate: calc(var(--px) * 10px) calc(var(--py) * 6px); transition: translate .35s var(--ease-out); }

/* Say it: the Mirror's wave behind Bubble, the fillers floating up and struck, the count */
.wave-bg { position: absolute; left: 2%; right: 2%; top: 20%; height: 52%; display: flex; align-items: center; gap: 1.6%; }
.wave-bg i { flex: 1; height: 100%; border-radius: 99px; background: currentColor; opacity: .09; transform: scaleY(.3); animation: wv 1.3s ease-in-out infinite; }
.wave-bg i:nth-child(2n) { animation-duration: 1.05s; } .wave-bg i:nth-child(3n) { animation-duration: 1.6s; animation-delay: -.4s; } .wave-bg i:nth-child(5n) { animation-delay: -.8s; }
@keyframes wv { 50% { transform: scaleY(1); } }
.scn-say .host { left: 50%; bottom: 3%; height: 86%; transform: translateX(-50%); }
.floaters { position: absolute; left: 50%; top: 34%; font: 700 clamp(15px, 1.5vw, 20px) var(--body); }
.floaters span { position: absolute; left: 0; top: 0; white-space: nowrap; padding: .4em .85em; border-radius: 999px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); opacity: 0; animation: fl 5s linear infinite; animation-delay: calc(var(--i) * -1s); }
.floaters span::after { content: ""; position: absolute; left: .7em; right: .7em; top: 50%; height: .16em; margin-top: -.08em; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; animation: fls 5s linear infinite; animation-delay: inherit; }
.floaters span:nth-child(1) { --dx: -12em; --dy: -6.5em; }
.floaters span:nth-child(2) { --dx: 6em; --dy: -8em; }
.floaters span:nth-child(3) { --dx: -13em; --dy: 1.5em; }
.floaters span:nth-child(4) { --dx: 7.5em; --dy: -1.5em; }
.floaters span:nth-child(5) { --dx: -2em; --dy: -10em; }
@keyframes fl { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 10% { opacity: 1; } 55% { transform: translate(var(--dx), var(--dy)) scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) - 2.2em)) scale(1); } }
@keyframes fls { 0%, 48% { transform: scaleX(0); } 62%, 100% { transform: scaleX(1); } }
.caught { position: absolute; right: 0; bottom: 12%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 22px; background: var(--ink); color: var(--volt); transform: rotate(3deg); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .5); }
.caught b { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 56px; line-height: .9; font-variant-numeric: tabular-nums; min-width: 1ch; }
.caught span { font: 800 12px/1.25 var(--body); letter-spacing: .06em; text-transform: uppercase; }

/* Write it: a giant post, its first line struck and rewritten, the meters ticking in; Scribble at work */
.post-card { position: absolute; left: 2%; top: 6%; width: 76%; padding: 22px 24px 20px; border-radius: 26px; background: #fff; color: var(--ink); transform: rotate(-2.5deg); box-shadow: 0 1px 0 rgba(22, 20, 15, .08), 0 34px 60px -30px rgba(22, 20, 15, .5); }
.pc-head { display: flex; align-items: center; gap: 10px; }
.pc-head .av { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); border: 2px solid var(--stone); }
.pc-head b { display: block; font-size: 15px; line-height: 1.2; }
.pc-head small { font-size: 12.5px; color: var(--mute); }
.pc-old { margin-top: 16px; font: 500 clamp(18px, 1.7vw, 23px)/1.3 var(--serif); color: var(--mute); }
.pc-old span { background: linear-gradient(var(--red), var(--red)) no-repeat 0 58% / 0% .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: pco 7s ease-in-out infinite; }
.pc-new { margin-top: 10px; font: 600 clamp(22px, 2.1vw, 29px)/1.18 var(--serif); letter-spacing: -.01em; clip-path: inset(0 100% 0 0); animation: pcn 7s ease-in-out infinite; }
@keyframes pco { 0%, 14% { background-size: 0% .12em; } 30%, 94% { background-size: 100% .12em; } 100% { background-size: 0% .12em; } }
@keyframes pcn { 0%, 32% { clip-path: inset(0 100% 0 0); } 50%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.pc-lines { display: grid; gap: 8px; margin-top: 16px; }
.pc-lines i { display: block; height: 9px; border-radius: 5px; background: var(--stone); }
.pc-lines i:nth-child(2) { width: 84%; } .pc-lines i:nth-child(3) { width: 62%; }
.meters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; list-style: none; }
.meters li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; border-radius: 999px; background: var(--cream); font: 700 13px var(--body); opacity: 0; animation: mt 7s ease-out infinite; }
.meters li::before { content: ""; width: 12px; height: 7px; border: solid var(--red); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -2px); }
.meters li:nth-child(2) { animation-delay: .35s; } .meters li:nth-child(3) { animation-delay: .7s; }
@keyframes mt { 0%, 52% { opacity: 0; transform: translateY(8px); } 60%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.scn-write .host { right: -2%; bottom: 2%; height: 64%; }

/* Film it: a giant phone recording Bubble, the beat sheet, Scribble with the pen */
.cam { position: absolute; left: 34%; top: 0; width: 44%; height: 92%; border-radius: 36px; background: #2A2620; border: 3px solid rgba(247, 244, 236, .28); overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); }
.cam .rec { position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font: 800 12px var(--body); letter-spacing: .08em; }
.cam .rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: recblink 1.2s steps(2, jump-none) infinite; }
.cam .rec b { font-variant-numeric: tabular-nums; font-weight: 700; }
.cam .host { left: 50%; bottom: 20%; height: 58%; transform: translateX(-50%); --fam-ink: #F3ECDF; }
.cam .cap { position: absolute; left: 12px; right: 12px; bottom: 44px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font: 700 clamp(13px, 1.2vw, 16px)/1.3 var(--body); text-align: center; }
.hookbar { position: absolute; left: 16px; right: 16px; bottom: 20px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.hookbar i { position: absolute; inset: 0; border-radius: 3px; background: var(--volt); transform: scaleX(0); transform-origin: left; animation: hb 15s linear infinite; }
.hookbar::before { content: ""; position: absolute; left: 20%; top: -5px; width: 2px; height: 16px; background: #fff; }
.hookbar span { position: absolute; left: 20%; top: -30px; transform: translateX(-50%); white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--ink); font: 800 11px var(--body); }
@keyframes hb { to { transform: scaleX(1); } }
.beats-card { position: absolute; left: 0; top: 14%; width: 38%; padding: 16px 16px 12px; border-radius: 20px; background: var(--paper); color: var(--ink); transform: rotate(-4deg); z-index: 1; box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .6); }
.beats-card > p { font: 800 12px var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.beats-card ol { list-style: none; display: grid; gap: 8px; }
.beats-card li { display: flex; gap: 8px; align-items: baseline; font: 600 clamp(13px, 1.15vw, 15px)/1.3 var(--body); }
.beats-card li b { flex: none; padding: 2px 7px; border-radius: 7px; background: var(--ink); color: var(--volt); font: 800 12px var(--body); font-variant-numeric: tabular-nums; }
.scn-film .host.side { left: 2%; bottom: 0; height: 46%; z-index: 2; }
.on-dark .scn-film .host.side .fam { --fam-ink: #F3ECDF; }

/* ---------- Your turn ---------- */
.trysec { padding: 110px 0 100px; }
.try-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.trysec .xh-demo { grid-area: auto; padding-top: 100px; }
.try-fine { margin-top: 14px; font-size: 14px; opacity: .65; }

/* ---------- Your moment comes either way ---------- */
.when-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.when-chips button { padding: 10px 16px; border-radius: 999px; border: 2px solid rgba(255, 247, 238, .5); background: transparent; color: inherit; font: 700 15px var(--body); transition: background-color .2s, border-color .2s, color .2s; }
.when-chips button:hover { border-color: #FFF7EE; }
.when-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--volt); }
.reps-line { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px auto 28px; max-width: 560px; flex-wrap: wrap; }
.reps-line b { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 104px; line-height: .85; font-variant-numeric: tabular-nums; }
.reps-line span { font: 600 18px/1.35 var(--body); max-width: 250px; text-align: left; }

/* ---------- Tablet hero: the words across the top, then the stage and the buttons side by side ---------- */
@media (max-width: 1099px) {
  .nh-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "copy copy" "picker picker" "stage foot"; column-gap: 32px; }
  .nh-title { font-size: clamp(56px, 10vw, 104px); }
  .nh-stage { height: 440px; margin-top: 30px; }
  .nh-foot { align-self: center; margin-top: 30px; }
  .try-grid { grid-template-columns: 1fr; gap: 0; }
  .trysec .xh-demo { max-width: 620px; padding-top: 90px; }
}

/* ---------- Phone: the stage comes straight after the words; the picker scrolls sideways ---------- */
.thumbbar { display: none; }
@media (max-width: 699px) {
  body.story-page .nhero { padding: 84px 0 56px; }
  .nh-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "picker" "foot"; }
  .nh-title { font-size: clamp(50px, 15vw, 72px); margin-top: 14px; }
  .nh-tag { font-size: 28px; margin-top: 10px; }
  .nh-stage { height: 330px; margin-top: 18px; }
  .picker { margin-top: 16px; }
  .pk-q { margin-bottom: 8px; }
  .pk-rows { display: flex; gap: 14px; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .pk-rows::-webkit-scrollbar { display: none; }
  .pk-row { flex: none; flex-wrap: nowrap; scroll-snap-align: start; }
  .pk-g { width: auto; margin-right: 2px; }
  .pk-row button { padding: 9px 13px; font-size: 14px; white-space: nowrap; }
  .nh-foot { margin-top: 20px; }
  .nh-cta .btn { flex: 1 1 auto; }
  .floaters { font-size: 13px; top: 30%; }
  .caught { bottom: 8%; padding: 9px 12px; gap: 8px; } .caught b { font-size: 40px; } .caught span { font-size: 10.5px; }
  .post-card { width: 86%; padding: 16px 16px 14px; border-radius: 22px; }
  .pc-head .av { width: 32px; height: 32px; }
  .pc-lines { margin-top: 10px; } .pc-lines i:nth-child(3) { display: none; }
  .meters { margin-top: 10px; } .meters li { font-size: 11.5px; padding: 5px 9px 5px 7px; }
  .scn-write .host { height: 52%; right: -4%; }
  .cam { left: 36%; width: 58%; border-radius: 28px; }
  .beats-card { width: 46%; padding: 12px 12px 10px; top: 10%; }
  .beats-card li { font-size: 12px; } .beats-card li b { font-size: 10.5px; }
  .scn-film .host.side { height: 38%; }
  .trysec { padding: 80px 0 70px; }
  .reps-line b { font-size: 84px; }

  /* Try and download, under your thumb */
  .thumbbar { display: flex; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; padding: 7px; border-radius: 22px; background: color-mix(in srgb, var(--page-bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45), 0 0 0 1px color-mix(in srgb, var(--page-fg) 10%, transparent); transform: translateY(150%); transition: transform .45s var(--ease-spring), background-color .7s; }
  .thumbbar.on { transform: none; }
  .thumbbar .btn { flex: 1; padding: 13px 10px; font-size: 15px; border-radius: 16px; box-shadow: none; }
  body:has(.thumbbar.on) .guide { transform: translateY(-74px); transition: transform .45s var(--ease-spring); }
}

@media (prefers-reduced-motion: reduce) {
  .scn, .wave-bg i, .floaters span, .floaters span::after, .pc-old span, .pc-new, .meters li, .hookbar i, .nh-word, .nh-word::before, .feed-roll, .feed .thumb, .wk-walker, .thumbbar { animation: none !important; transition: none !important; }
  .floaters span { opacity: 1; transform: translate(var(--dx), var(--dy)); }
  .floaters span::after { transform: scaleX(1); }
  .pc-old span { background-size: 100% .12em; }
  .pc-new { clip-path: none; }
  .meters li { opacity: 1; }
  .hookbar i { transform: scaleX(.2); }
}

/* ---------- The palette (owner, 2026-09-30): yellow and red lead; royal green, cream, white and
   black support. No black sections: black is for type and small things. ---------- */
:root { --green: #0E5E3E; }
/* The headline word: red on yellow (say), a red-pen line on cream (write), yellow on red (film) */
body[data-world="say"] .nh-word { background: none; color: var(--red); padding: 0; }
body[data-world="film"] .nh-word::before { background: #FFF7EE; }
/* Over red (the film hero, "comes either way") the header's red button turns yellow */
html[data-page="#D2352A"] body.story-page .nav .btn-red { background: var(--volt); color: var(--ink); box-shadow: 0 3px 0 #B8A200; }
/* The new first line fades up (a wipe read as cut-off text) */
.pc-new { clip-path: none; animation: pcn2 7s ease-in-out infinite; }
@keyframes pcn2 { 0%, 32% { opacity: 0; transform: translateY(8px); } 46%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Phone: the picker fades at the right edge, so it reads as "there's more, swipe" */
@media (max-width: 699px) { .pk-rows { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); } }
