/* wordojo.com, "The Cast": character-led illustration, Duolingo/Family/Headspace-grade restraint. */
.cast-page { background: var(--paper); }
.cast-page .nav { background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 1px solid rgba(22,20,15,.07); }
.cast-page .nav .logo .mark { color: var(--ink); }
.cast-page .nav nav a:not(.btn) { color: #3A352D; }

/* Type: big, sentence case, confident. A yellow highlighter swipe marks the key word. */
.big { font-family: var(--display); font-stretch: 92%; font-weight: 850; letter-spacing: -.035em; line-height: .95; }
.hl { background: linear-gradient(transparent 58%, var(--volt) 58%, var(--volt) 90%, transparent 90%) no-repeat 0 0 / 0% 100%; transition: background-size .8s cubic-bezier(.2,.8,.2,1) .15s; padding: 0 .04em; }
.in .hl, .hero .hl { background-size: 100% 100%; }
.hl-red { background-image: linear-gradient(transparent 60%, #FFB3C7 60%, #FFB3C7 90%, transparent 90%); }

/* Buttons: chunky and tactile, they press in. */
.cast-page .btn { border-radius: 16px; font-weight: 800; letter-spacing: .01em; }
.cast-page .btn-ink { background: var(--ink); color: #fff; box-shadow: 0 5px 0 #000; }
.cast-page .btn-ink:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #000; }
.cast-page .btn-ink:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.cast-page .btn-volt { background: var(--volt); color: var(--ink); box-shadow: 0 5px 0 #C7AE00; }
.cast-page .btn-volt:active { transform: translateY(4px); box-shadow: 0 1px 0 #C7AE00; }
.cast-page .btn-soft { background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--stone), 0 5px 0 var(--stone); }
.cast-page .btn-soft:active { transform: translateY(4px); box-shadow: 0 0 0 2px var(--stone), 0 1px 0 var(--stone); }

/* Hero: the promise in the middle, the cast on either side. */
.hero-cast { position: relative; padding: 36px 0 70px; overflow: hidden; }
.hero-cast .row { display: grid; grid-template-columns: 1fr minmax(0, 620px) 1fr; align-items: center; gap: 8px; max-width: 1400px; margin: 0 auto; padding: 0 var(--gut); }
.hero-cast .copy { text-align: center; }
.hero-cast .pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 14px 7px 8px; font: 700 13.5px var(--body); box-shadow: 0 0 0 1.5px var(--stone); }
.hero-cast .pill i { width: 22px; height: 22px; border-radius: 50%; background: var(--volt); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.hero-cast h1 { font-size: clamp(64px, 7.6vw, 118px); margin: 20px 0 18px; }
.hero-cast .sub { font-size: clamp(18px, 1.55vw, 21px); color: #3A352D; max-width: 520px; margin: 0 auto; }
.hero-cast .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cast .ctas .btn { font-size: 17px; padding: 17px 26px; }
.hero-cast .trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font: 600 14px var(--body); color: #4A443A; }
.hero-cast .trust span::before { content: "✓"; color: #2E9E5B; font-weight: 900; margin-right: 6px; }
.hero-cast .side { position: relative; will-change: transform; }
.hero-cast .side img { width: 100%; height: auto; display: block; animation: float 6s ease-in-out infinite; }
.hero-cast .side.r img { animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(1.2deg); } }
@media (max-width: 1000px) {
  .hero-cast .row { grid-template-columns: 1fr 1fr; }
  .hero-cast .copy { grid-column: 1 / -1; grid-row: 1; }
  .hero-cast .side { max-width: 320px; justify-self: center; }
}

/* Three promises with spot characters. */
.pillars { padding: 30px 0 90px; }
.pillars .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillars article { background: #fff; border-radius: 28px; padding: 26px 26px 28px; box-shadow: 0 0 0 1.5px var(--stone); display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.pillars article:hover { transform: translateY(-4px) rotate(-.5deg); }
.pillars img { width: 96px; height: 96px; object-fit: contain; }
.pillars h2 { font-size: 30px; }
.pillars p { font-size: 15.5px; color: #4A443A; margin-top: 4px; }
@media (max-width: 860px) { .pillars .grid { grid-template-columns: 1fr; } }

/* Feature sections: zig-zag, one scene each. */
.feat { padding: 70px 0; }
.feat .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.feat.flip .art { order: 2; }
.feat .art { position: relative; }
.feat .art img { width: 100%; height: auto; display: block; }
.feat .art::before { content: ""; position: absolute; inset: 8% 6% 4%; border-radius: 48% 52% 46% 54% / 55% 48% 52% 45%; background: var(--blob, #FFF3A8); z-index: -1; transition: transform .8s cubic-bezier(.34,1.56,.64,1); transform: scale(.6); }
.feat.in .art::before { transform: scale(1); }
.feat .tag { display: inline-flex; align-items: center; gap: 8px; font: 800 12.5px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.feat .tag img { width: 30px; height: 30px; }
.feat h2 { font-size: clamp(46px, 5.2vw, 78px); margin: 12px 0 16px; }
.feat .answer { font-size: 18px; color: #3A352D; }
.feat .extra { margin-top: 24px; }
@media (max-width: 900px) { .feat .wrap { grid-template-columns: 1fr; gap: 24px; } .feat.flip .art { order: 0; } .feat { padding: 44px 0; } }

/* Reveal: illustrations pop in with a little overshoot; text rises. */
.pop { opacity: 0; transform: scale(.88) rotate(-2deg); transition: opacity .5s ease, transform .9s cubic-bezier(.34,1.56,.64,1); }
.rise { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.in .pop, .pop.in { opacity: 1; transform: none; }
.in .rise, .rise.in { opacity: 1; transform: none; }
.in .rise:nth-child(2) { transition-delay: .06s; } .in .rise:nth-child(3) { transition-delay: .12s; } .in .rise:nth-child(4) { transition-delay: .18s; } .in .rise:nth-child(5) { transition-delay: .24s; }
.no-js .pop, .no-js .rise { opacity: 1; transform: none; }

/* Interactive pieces inside sections */
.cast-page .meter { background: var(--ink); color: #fff; border-radius: 26px; padding: 20px; }
.cast-page .meter .bars i { background: var(--volt); }
.cast-page .meter [data-voice-btn] { background: var(--volt); color: var(--ink); box-shadow: 0 5px 0 #C7AE00; width: 70px; height: 70px; }
.cast-page .meter [data-readout] { color: #E6DFD1; }
.cast-page .meter [data-readout] b { color: var(--volt); }
.cast-page .meter [data-readout] span { color: #BDB6A8; }
.cast-page .meter .bars { height: 96px; }
.fine-note { font-size: 13.5px; color: var(--mute); margin-top: 12px; }
.cast-page .pen-card { box-shadow: 0 0 0 2px var(--stone), 0 8px 0 var(--stone); border: 0; border-radius: 24px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span, .booklist button { border: 0; background: #fff; box-shadow: 0 0 0 1.5px var(--stone), 0 3px 0 var(--stone); border-radius: 999px; padding: 8px 14px; font: 700 14px var(--body); }
.booklist { display: flex; flex-wrap: wrap; gap: 8px; }
.booklist button { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: transform .15s ease; border-radius: 14px; }
.booklist button:hover { transform: translateY(-2px); }
.booklist button i { width: 10px; height: 18px; border-radius: 2px; background: var(--c); }
.cast-page .beltrow { grid-template-columns: repeat(4, 1fr); margin-top: 0; gap: 6px; }
.cast-page .beltbtn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); background: #fff; }
.cast-page .beltpanel { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.cast-page .beltpanel [data-belt-name] { font-size: 38px; }
.ticks-list { list-style: none; display: grid; gap: 10px; font-weight: 600; }
.ticks-list li { display: flex; gap: 10px; align-items: center; }
.ticks-list li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--volt); font-size: 13px; font-weight: 900; }

/* Inside the app: a collage band */
.appband { background: var(--volt); padding: 90px 0 30px; margin-top: 40px; border-radius: 48px 48px 0 0; }
.appband h2 { font-size: clamp(52px, 6.5vw, 96px); }
.appband .answer { color: #2B2721; max-width: 620px; margin-top: 12px; }
.appband .rail figcaption span { color: #3A352D; }

/* Finale */
.finale { padding: 90px 0 110px; text-align: center; }
.finale img { width: min(900px, 100%); height: auto; margin: 0 auto; display: block; }
.finale h2 { font-size: clamp(56px, 8vw, 120px); margin: 10px 0 14px; }
.finale p { color: #3A352D; max-width: 520px; margin: 0 auto 28px; font-size: 18px; }

/* Bubble, the guide: watches your cursor; tap to jump anywhere. */
.guide { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.guide-btn { width: 78px; height: 78px; border: 0; background: none; padding: 0; cursor: pointer; filter: drop-shadow(0 8px 14px rgba(22,20,15,.25)); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.guide-btn:hover { transform: scale(1.08) rotate(-4deg); }
.guide-btn svg { width: 100%; height: 100%; }
.guide .tip { max-width: 250px; background: var(--ink); color: #fff; font: 600 14px/1.4 var(--body); padding: 11px 14px; border-radius: 16px 16px 4px 16px; box-shadow: 0 8px 20px rgba(22,20,15,.2); transition: opacity .3s ease, transform .3s ease; }
.guide .tip.hide { opacity: 0; transform: translateY(8px); pointer-events: none; }
.guide .menu { background: #fff; border-radius: 22px 22px 6px 22px; padding: 10px; box-shadow: 0 0 0 2px var(--ink), 0 12px 30px rgba(22,20,15,.25); display: grid; gap: 2px; min-width: 210px; transform-origin: bottom right; transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s ease; }
.guide .menu[hidden] { display: grid; opacity: 0; transform: scale(.6); pointer-events: none; }
.guide .menu b { font: 800 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 6px 10px 4px; }
.guide .menu a { text-decoration: none; font: 700 15px var(--body); padding: 9px 12px; border-radius: 12px; display: flex; justify-content: space-between; gap: 12px; }
.guide .menu a:hover, .guide .menu a:focus-visible { background: #FFF3A8; }
.guide .menu a.here { background: var(--volt); }
@media (max-width: 640px) { .guide { right: 14px; bottom: 14px; } .guide-btn { width: 64px; height: 64px; } }

@media (prefers-reduced-motion: reduce) {
  .hero-cast .side img { animation: none; }
  .pop, .rise { opacity: 1; transform: none; transition: none; }
  .hl { transition: none; background-size: 100% 100%; }
}

/* Fixes after review */
.guide { width: 78px; height: 78px; }
.guide .tip { position: absolute; right: 0; bottom: 92px; width: max-content; }
.guide .menu { position: absolute; right: 0; bottom: 92px; }
.cast-page #compare h2, .cast-page .faq h2 { font-size: clamp(44px, 4.6vw, 68px); }
.cast-page .pen-card ins { margin-left: .22em; }
@media (max-width: 640px) { .guide { width: 64px; height: 64px; } .guide .tip, .guide .menu { bottom: 76px; } }
.cast-page .faq-side { position: sticky; top: 100px; align-self: start; }
.cast-page .faq-side h2 { position: static; }
.cast-page .faq-cast { display: flex; align-items: flex-end; gap: 18px; margin-top: 34px; }
.cast-page .faq-cast img { height: 128px; width: auto; animation: float 5s ease-in-out infinite; }
.cast-page .faq-cast img + img { height: 112px; animation-delay: -2.4s; }
@media (max-width: 900px) { .cast-page .faq-side { position: static; } .cast-page .faq-cast { display: none; } }
@media (prefers-reduced-motion: reduce) { .cast-page .faq-cast img { animation: none; } }
/* The comparison table becomes one card per row on phones. */
@media (max-width: 720px) {
  .cast-page .tablewrap { background: none; box-shadow: none; overflow: visible; border-radius: 0; }
  .cast-page table.cmp { min-width: 0; display: flex; flex-direction: column; }
  .cast-page .cmp thead { display: none; }
  .cast-page .cmp tbody { display: grid; gap: 14px; }
  .cast-page .cmp tr { display: block; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1.5px var(--stone); overflow: hidden; }
  .cast-page .cmp tbody th { display: block; width: auto; padding: 16px 18px 10px; border: 0; font: 800 17px/1.3 var(--body); }
  .cast-page .cmp td { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 10px 18px; border: 0; border-top: 1px solid var(--stone); font-size: 15px; }
  .cast-page .cmp td::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--mute); }
  .cast-page .cmp td.us::before { color: var(--ink); }
  .cast-page .cmp caption { display: block; order: 2; padding: 14px 4px 0; }
}

/* ---------- wordojo.app, in the Cast style ---------- */
.hl-paper { background: linear-gradient(transparent 60%, var(--paper) 60%, var(--paper) 90%, transparent 90%); padding: 0 .04em; }
.apphero h1.big { font-size: clamp(64px, 8.2vw, 124px); margin: 22px 0 18px; }
.apphero .lede { font-size: 19px; max-width: 520px; color: #2B2721; }
.apphero .small-print { margin-top: 18px; font-size: 14px; color: #3A352D; }
.apphero .appart { position: relative; height: 570px; }
.apphero .appart .phone-mock { --s: .66; position: absolute; right: 44px; top: 6px; transform: rotate(3deg); }
.apphero .appart-bubble { position: absolute; left: -24px; bottom: -14px; width: 250px; height: auto; z-index: 2; animation: float 6s ease-in-out infinite; }
.apphero .appart-pen { position: absolute; right: -4px; top: 40px; width: 64px; height: auto; z-index: 2; transform: rotate(14deg); animation: float 5s ease-in-out -2s infinite; }
@media (max-width: 980px) {
  .apphero .appart { height: 520px; max-width: 440px; width: 100%; margin: 0 auto; }
  .apphero .appart .phone-mock { --s: .58; right: 24px; }
  .apphero .appart-bubble { width: 170px; left: -6px; bottom: -8px; }
  .apphero .appart-pen { width: 52px; right: 4px; }
}
.cast-page .tag { display: inline-flex; align-items: center; gap: 8px; font: 800 12.5px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.cast-page .tag img { width: 30px; height: 30px; object-fit: contain; }
.gallery h2.big, .appsec h2.big { margin-top: 12px; }
.appsec h2.big { font-size: clamp(44px, 4.8vw, 68px); }
.appsec .side { align-self: start; position: sticky; top: 96px; }
.appsec .side .answer { margin-top: 16px; }
.appsec .side-art { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 26px; }
.feat-list h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feat-list .mode { font: 800 11px var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--ink); color: var(--volt); }
.feat-list .mode.w { background: var(--red); color: #fff; }
.feat-list .mode.b { background: var(--volt); color: var(--ink); }
.notecard { background: #fff; border-radius: 24px; padding: 26px 28px; box-shadow: 0 0 0 1.5px var(--stone), 0 6px 0 var(--stone); align-self: start; }
.notecard .news { gap: 12px; font-size: 17px; }
.notecard .sha { margin-top: 18px; font-size: 13px; color: var(--mute); }
.notecard .sha code { word-break: break-all; }
.howto li::before { box-shadow: 0 4px 0 #000; }
.promise .privlinks { margin-top: 22px; font-size: 15px; }
.appfinale .lineup { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 40px); margin-bottom: 26px; }
.appfinale .lineup img { width: auto; height: clamp(84px, 11vw, 150px); margin: 0; animation: float 5s ease-in-out infinite; }
.appfinale .lineup img:nth-child(2) { height: clamp(120px, 16vw, 210px); animation-delay: -1.2s; }
.appfinale .lineup img:nth-child(3) { animation-delay: -2.4s; }
.appfinale .lineup img:nth-child(4) { animation-delay: -3.6s; }
.appfinale .btn { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; padding: 18px 26px; }
.appfinale .btn svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .appsec .side { position: static; } .appsec .side-art { max-width: 340px; } }
@media (prefers-reduced-motion: reduce) { .apphero .appart img, .appfinale .lineup img { animation: none; } }
@media (max-width: 640px) {
  .apphero .appart { height: 470px; }
  .apphero .appart .phone-mock { --s: .52; right: 6px; margin-right: 0; }
  .apphero .appart-bubble { width: 150px; left: -6px; bottom: -6px; }
  .apphero .appart-pen { width: 42px; right: -2px; top: 16px; }
}
/* On the yellow hero, Bubble wears a die-cut sticker edge so he doesn't vanish into the background. */
.apphero .appart-bubble, .apphero .appart-pen { filter: drop-shadow(4px 0 0 var(--paper)) drop-shadow(-4px 0 0 var(--paper)) drop-shadow(0 4px 0 var(--paper)) drop-shadow(0 -4px 0 var(--paper)) drop-shadow(0 10px 14px rgba(22,20,15,.18)); }
