/* wordojo.app as one story (story.js runs it). No carved edges: the page is one surface whose colour
   glides from section to section as you scroll (--page-bg and --page-fg, set by story.js from each
   section's data-bg), and the header floats in that same colour.
   Acts: the hook (hero) · the moment you know · the turn · the coaches · the film · seven days to
   Friday · Monday you, Friday you · the greats · Friday comes either way · pricing · install · FAQ. */
:root { --page-bg: #FFE001; --page-fg: #16140F; --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.3, 1.3, .5, 1); }
html { scroll-padding-top: 76px; }
body.story-page { background: var(--page-bg); color: var(--page-fg); transition: background-color .7s var(--ease-out), color .7s var(--ease-out); }
/* The surface glides once story.js runs (it sets html.glide). Until then, or if it never loads,
   each section wears the colours it would glide to. */
html.glide body.story-page main > section { background: transparent !important; }
html:not(.glide) body.story-page main > section[data-bg="#FFE001"] { --page-bg: #FFE001; --page-fg: #16140F; background: #FFE001 !important; color: #16140F; }
html:not(.glide) body.story-page main > section[data-bg="#FBF7F0"] { --page-bg: #FBF7F0; --page-fg: #16140F; background: #FBF7F0 !important; color: #16140F; }
html:not(.glide) body.story-page main > section[data-bg="#F3ECDF"] { --page-bg: #F3ECDF; --page-fg: #16140F; background: #F3ECDF !important; color: #16140F; }
html:not(.glide) body.story-page main > section[data-bg="#16140F"] { --page-bg: #16140F; --page-fg: #F7F4EC; background: #16140F !important; color: #F7F4EC; }
html:not(.glide) body.story-page main > section[data-bg="#0B3E42"] { --page-bg: #0B3E42; --page-fg: #F7F4EC; background: #0B3E42 !important; color: #F7F4EC; }
html:not(.glide) body.story-page main > section[data-bg="#D2352A"] { --page-bg: #D2352A; --page-fg: #FFF7EE; background: #D2352A !important; color: #FFF7EE; }
body.story-page .foot { background: #16140F; color: #F7F4EC; } /* the last thing on the page: its own ink, flat */
body.story-page .wavy::before, body.story-page .foot::before { display: none !important; }

/* The header: floating, in the page's colour; a soft glass once you scroll. */
body.story-page .nav { position: fixed; inset: 0 0 auto; background: transparent; border: 0; backdrop-filter: none; color: var(--page-fg); transition: background-color .7s var(--ease-out), color .7s var(--ease-out), box-shadow .3s; }
body.story-page .nav.scrolled { background: color-mix(in srgb, var(--page-bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 color-mix(in srgb, var(--page-fg) 10%, transparent); }
body.story-page .nav .wrap > nav > a:not(.btn), body.story-page .nav .logo, body.story-page .nav .logo .mark { color: inherit; }
body.story-page .xhero { padding-top: 96px; }
/* Over the red Friday section the header's red button would vanish: it turns ink there. */
html[data-page="#D2352A"] body.story-page .nav .btn-red { background: #16140F; color: #FFE001; box-shadow: 0 3px 0 #000; }
@media (max-width: 640px) { body.story-page .xhero { padding-top: 78px; } body.story-page .xhero .lede { max-width: calc(100% - 70px); } }

/* Shared: section heads, reveals */
.s-head { max-width: 760px; }
.s-head .eyebrow { display: inline-block; margin-bottom: 14px; opacity: .72; }
.s-title { font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(46px, 8.4vw, 112px); line-height: .86; letter-spacing: -.01em; word-spacing: .06em; }
.s-title em { font-style: normal; color: var(--accent, var(--red)); }
.s-lede { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 580px; opacity: .86; }
[data-in] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
[data-in].in { opacity: 1; transform: none; }

/* ---------- Act 3: the coaches (paper) ---------- */
.coaches { padding: 110px 0 90px; }
.coach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.coach { position: relative; display: grid; grid-template-rows: 210px auto; padding: 18px 18px 22px; border-radius: 28px; background: #fff; box-shadow: 0 1px 0 rgba(22, 20, 15, .06), 0 24px 50px -30px rgba(22, 20, 15, .35); overflow: hidden; }
.coach .stage { display: grid; place-items: end center; border-radius: 20px; background: var(--c-bg, #FFF6B8); padding-bottom: 10px; }
.coach .stage .fam { height: 180px; }
.coach.scribble .stage .fam { height: 196px; } .coach.nib .stage .fam { height: 166px; } .coach.babble .stage .fam { height: 136px; }
.coach h3 { margin-top: 16px; font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; }
.coach .role { display: block; margin-top: 6px; line-height: 1.25; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.coach p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: #3A352D; }
.coach q { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #E6DFD1; font: italic 500 18px/1.35 var(--serif); quotes: "“" "”"; }
.coach.bubble { --c-bg: #FFF4A8; }
.coach.scribble { --c-bg: #FFE1DC; }
.coach.nib { --c-bg: #DCEBFF; }
.coach.babble { --c-bg: #FFF1D6; }
@media (max-width: 960px) { .coach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .coach-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .coach { grid-template-rows: 150px auto; padding: 10px 10px 16px; border-radius: 22px; } .coach .stage .fam { height: 128px; } .coach.scribble .stage .fam { height: 140px; } .coach.nib .stage .fam { height: 118px; } .coach.babble .stage .fam { height: 98px; } .coach h3 { font-size: 24px; } .coach p { font-size: 13.5px; } .coach q { font-size: 15.5px; } }

/* Dark sections: the family's limbs in light ink. */
.on-dark .fam { --fam-ink: #F3ECDF; }

@media (prefers-reduced-motion: reduce) {
  body.story-page, body.story-page .nav { transition: none; }
  [data-in] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Install: the store listing sits under the steps, and nothing in the grid pushes past the screen. */
body.story-page .getit-grid > * { min-width: 0; }
body.story-page .store-wrap { margin-top: 18px; min-width: 0; }
body.story-page .store { max-width: 100%; min-width: 0; }
body.story-page .store .shots { max-width: 100%; }
@media (max-width: 640px) { body.story-page .guide-btn .bubble { width: 50px; } }
