/* The "get the extension" banner: on the home pages (top) and on the word pages and word lists (bottom).
   The pitch on the left; on the right a little browser where a phrase is double-clicked and
   Dictionify's popup explains it. Markup from src/words/render.js (cta). */
.wd-cta { position: relative; overflow: hidden; margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, #4F46E5 0%, #2E2A7A 38%, var(--ink) 72%); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 22px; padding: 34px 34px 30px; box-shadow: 8px 8px 0 var(--hl); }
.wd-cta::before { content: ""; position: absolute; inset: auto -60px -80px auto; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 224, 102, .10); pointer-events: none; }
.wd-cta-copy { position: relative; }
.wd-cta-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 14px !important; font-size: 18px; color: #fff !important; }
.wd-cta-brand svg { width: 34px; height: 34px; background: var(--paper); border-radius: 10px; padding: 3px; }
.wd-cta-tag { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 10px 4px 6px; font-size: 13px; font-weight: 600; }
.wd-cta-tag svg { width: 18px; height: 18px; }
.wd-cta h2 { font-size: clamp(24px, 2.6vw, 32px); color: #fff; margin: 0 0 10px; }
.wd-cta p { margin: 0; color: #DCDAF0; max-width: 52ch; }
.wd-cta b { color: var(--hl); }
.wd-cta-btn { margin-top: 22px; gap: 10px; background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--hl); transition: translate .15s, box-shadow .15s; }
.wd-cta-btn:hover { color: var(--ink); translate: -2px -2px; box-shadow: 6px 6px 0 var(--hl); }
.wd-cta-btn svg { background: #fff; border-radius: 50%; }
.wd-cta-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; padding: 0; font-size: 14px; color: #C9C6E4; }
.wd-cta-perks li::before { content: "✓ "; color: var(--hl); font-weight: 700; }

/* The demo: a tiny browser where a phrase is double-clicked and Dictionify's popup explains it. */
.wd-demo { position: relative; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 22px 44px rgba(0,0,0,.35); rotate: 1.5deg; }
.wd-demo-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F1EEF8; border-bottom: 1.5px solid #E1DDF0; border-radius: 12px 12px 0 0; }
.wd-demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #F87171; }
.wd-demo-bar i:nth-child(2) { background: #FBBF24; } .wd-demo-bar i:nth-child(3) { background: #34D399; }
.wd-demo-bar span { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--faint); }
.wd-demo-page { position: relative; padding: 20px 18px 22px; }
.wd-demo-page > p { margin: 0; font-size: 18px; color: var(--ink) !important; line-height: 1.5; }
.wd-demo-page mark { background: transparent; color: inherit; border-radius: 4px; padding: 0 2px; animation: wd-sel 6s infinite; }
.wd-demo-page mark { position: relative; }
.wd-demo-page mark::after { content: ""; position: absolute; left: 50%; top: 55%; width: 16px; height: 22px; background: var(--ink); clip-path: polygon(0 0, 0 100%, 28% 76%, 48% 100%, 62% 94%, 44% 70%, 80% 70%); animation: wd-cur 6s infinite; }
.wd-pop { position: relative; margin: 14px -6px 0 18px; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 14px 12px; box-shadow: 4px 4px 0 var(--accent);
  transform-origin: 30% 0; animation: wd-pop 6s infinite; }
.wd-pop p { margin: 0; color: var(--ink) !important; max-width: none; }
.wd-cta .wd-pop .wd-pop-head { line-height: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; padding-bottom: 6px; margin-bottom: 6px !important; border-bottom: 1px solid #ECE9F5; }
.wd-pop-head svg { width: 20px; height: 20px; }
.wd-pop-head b { color: var(--ink) !important; }
.wd-cta .wd-pop .wd-pop-word { font-weight: 700; font-size: 17px; line-height: 1.3; }
.wd-pop-word span { display: block; font-weight: 400; font-size: 13px; color: var(--faint); }
.wd-cta .wd-pop .wd-pop-in { font-size: 11px; line-height: 1.4; font-weight: 700; color: var(--accent) !important; margin-top: 6px !important; text-transform: uppercase; letter-spacing: .04em; }
.wd-cta .wd-pop .wd-pop-def { font-size: 16px; line-height: 1.4; }
@keyframes wd-sel { 0%, 18% { background: transparent; } 22%, 92% { background: var(--sel); } 100% { background: transparent; } }
@keyframes wd-cur { 0% { translate: 60px 40px; opacity: 0; } 10% { opacity: 1; } 16%, 19% { translate: 0 0; scale: 1; } 17.5% { scale: .8; } 20.5% { scale: .8; } 22%, 92% { translate: 0 0; scale: 1; opacity: 1; } 100% { opacity: 0; } }
@keyframes wd-pop { 0%, 22% { opacity: 0; transform: scale(.85) translateY(-6px); } 27% { opacity: 1; transform: scale(1.03); } 30%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) { .wd-demo-page mark, .wd-demo-page mark::after, .wd-pop { animation: none; } .wd-demo-page mark { background: var(--sel); } .wd-demo-page mark::after { display: none; } }
@media (max-width: 760px) { .wd-cta { grid-template-columns: 1fr; padding: 26px 20px; box-shadow: 5px 5px 0 var(--hl); } .wd-demo { rotate: 0deg; } }

/* On the home pages it sits above the hero, under the header. */
.home-banner .wd-cta { margin: 28px 0 0; }
@media (max-width: 760px) { .home-banner .wd-demo { display: none; } .home-banner .wd-cta { margin-top: 18px; } }

/* Home page: "Learn English" cards to the learning pages. */
.learn { padding: 56px 0 24px; }
.learn-h { font-size: clamp(30px, 3.6vw, 44px); margin: 0 0 8px; }
.learn-p { margin: 0 0 22px; color: var(--muted); font-size: 18px; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.learn-card { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 18px 18px; border: 1.5px solid var(--ink); border-radius: 16px; background: #fff;
  box-shadow: 4px 4px 0 var(--ink); color: var(--ink); text-decoration: none; transition: translate .15s, box-shadow .15s; }
.learn-card:hover { color: var(--ink); translate: -2px -2px; box-shadow: 6px 6px 0 var(--hl); }
.learn-card:nth-child(1) { background: var(--soft1); } .learn-card:nth-child(2) { background: var(--soft2); }
.learn-art { line-height: 0; } .learn-art svg { width: 52px; height: 52px; }
.learn-card b { font-size: 19px; line-height: 1.3; justify-self: start; background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 88% / 100% 34%; }
.learn-card:nth-child(1) b, .learn-card:nth-child(2) b { background-image: linear-gradient(#fff, #fff); }
.learn-card > span:last-child { font-size: 14px; color: var(--muted); line-height: 1.5; }
.learn-new { position: absolute; top: 14px; right: 14px; background: var(--red, #E5484D); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; border-radius: 999px; padding: 3px 10px; }
