/* The Slang Glossary page. Same type, buttons and rhythm as the homepage; the glossary's own yellow
   (sampled from its product photo) takes the place of the lime field. */
.pg-gloss { --gy: #ffd400; background: var(--gy) linear-gradient(var(--gy) 0 40vh, var(--ink) 40vh); }
.pg-gloss body { background: transparent; }
.pg-gloss main { background: var(--cream); }

/* header on yellow: ink text, black logo */
.pg-gloss .top, .pg-gloss.v-C .top { background: var(--gy); color: var(--ink); }
.pg-gloss .top nav a:not(.btn), .pg-gloss.v-C .top nav a:not(.btn) { color: var(--ink); }
.pg-gloss .top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (min-width: 700px) { .pg-gloss.hd-full .top { background: transparent; } }

/* hero */
.gh { background: var(--gy); color: var(--ink); overflow: hidden; }
.gh-in { display: grid; justify-items: center; text-align: center; padding-top: 18px; }
.gh-copy { display: grid; justify-items: center; }
.gh .h1 { font-size: clamp(42px, 11.4vw, 96px); }
.gh-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.45; max-width: 34ch; text-wrap: balance; }
.gh-cta { margin-top: 22px; width: 100%; max-width: 420px; }
.gh-cta .btn { width: 100%; --cta-bg: var(--ink); --cta-text: var(--cream); }
.gh-pic { margin: 10px calc(-1 * var(--gut)) 0; width: calc(100% + var(--gut) + var(--gut-r)); }
.gh-pic img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 8%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 8%); mask-composite: intersect; }

/* entrance: the hero settles in once */
.js .gh-copy > *, .js .gh-pic { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease-out), transform 620ms var(--ease-out); }
.js .gh-copy > :nth-child(2) { transition-delay: 70ms; } .js .gh-copy > :nth-child(3) { transition-delay: 140ms; } .js .gh-copy > :nth-child(4) { transition-delay: 200ms; }
.js .gh-pic { transform: translateY(24px) scale(0.98); transition-delay: 160ms; }
.js .gh.on .gh-copy > *, .js .gh.on .gh-pic { opacity: 1; transform: none; }

/* the swap card: the page's one live thing */
.sw-in { display: grid; gap: 28px; }
.sw-head .lead { margin-top: 14px; }
.why-copy .h2 + .why-st { margin-top: 18px; }
.gq .list { margin-top: 28px; }
.sw-card { background: var(--ink); color: var(--cream); border-radius: 24px; padding: 28px 22px 22px; }
.sw-es { margin: 0; font-size: clamp(25px, 6.6vw, 40px); line-height: 1.28; font-weight: 600; letter-spacing: -0.02em; transition: opacity 200ms var(--ease-out), filter 200ms var(--ease-out); }
.sw-es.fade, .sw-en.fade { opacity: 0; filter: blur(2px); }
.sw-en { margin: 16px 0 0; color: #b9b4a2; font-size: 16px; line-height: 1.45; transition: opacity 200ms var(--ease-out), filter 200ms var(--ease-out); }
.sw-ctl { display: none; margin-top: 24px; gap: 8px; flex-wrap: wrap; align-items: center; }
.js .sw-ctl { display: flex; }
.sw-next { font: 600 16px/1 var(--font); color: var(--cream); background: none; border: 0; min-height: 52px; padding: 0 16px; border-radius: 999px; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.sw-next:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .sw-next:hover { background: rgba(245, 239, 226, 0.1); } }

/* why */
.why { background: var(--cream-deep); }
.why-in { display: grid; gap: 32px; }
.why-pic { margin: 0; }
.why-pic img { display: block; width: 100%; height: auto; border-radius: 22px; }
.why-st { margin: 16px 0 0; font-size: clamp(20px, 5.2vw, 26px); line-height: 1.35; font-weight: 560; letter-spacing: -0.015em; max-width: 28em; }
.why .ticks li { font-size: 17px; }

/* two ways to get it */
.pick { background: var(--lime); color: var(--on-lime); }
.pick-grid { margin-top: 28px; display: grid; gap: 12px; }
.pk { border-radius: 22px; padding: 26px 22px 22px; display: grid; gap: 12px; align-content: start; }
.pk h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.pk p { margin: 0; font-size: 16.5px; line-height: 1.45; }
.pk .pk-price strong { font-size: 44px; letter-spacing: -0.04em; line-height: 1; }
.pk .code { margin-top: 2px; justify-self: start; }
.pk .btn { margin-top: 8px; }
.pk-a { background: var(--cream); color: var(--ink); }
.pk-a .btn { --cta-bg: var(--ink); --cta-text: var(--cream); }
.pk-b { background: var(--ink); color: var(--cream); }
.pk-b .btn { --cta-bg: var(--lime-bright); --cta-text: var(--ink); }
.pick .paymarks { margin-top: 22px; }

.gq-mail { margin-top: 22px; font-size: 16px; }

@media (min-width: 700px) {
  .gh-in { padding-top: 76px; }
  .gh-lead { font-size: 19px; }
  .sec.sw, .sec.why, .sec.pick, .sec.gq { padding-block: 120px; }
  .sw-card { padding: 40px 36px 32px; }
  .pk { padding: 34px 32px 30px; }
}
@media (min-width: 960px) {
  .gh { min-height: clamp(560px, 100svh, 1000px); display: grid; align-items: center; }
  .gh-in { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); justify-items: start; text-align: left; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 24px; }
  .gh .h1 { font-size: clamp(56px, 6.4vw, 96px); }
  .gh-lead { text-wrap: pretty; }
  .gh-copy { justify-items: start; }
  .gh-cta { width: auto; }
  .gh-cta .btn { width: auto; min-height: 58px; padding: 16px 28px; }
  .gh-pic { margin: 0; width: 100%; }
  .gh-pic img { -webkit-mask-image: radial-gradient(closest-side, #000 76%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; transform: scale(1.1); }
  .sw-in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 56px; }
  .why-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 64px; }
  .pick-grid { grid-template-columns: 1.45fr 1fr; align-items: start; gap: 16px; }
  .pick .paymarks { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .js .gh-copy > *, .js .gh-pic { transform: none; transition: opacity 240ms ease; }
  .sw-es.fade, .sw-en.fade { filter: none; }
}



/* "or get it free": a cream note with the ebook's cover, so the better deal is seen before the photo */
.gh-alt { margin-top: 14px; display: inline-flex; align-items: center; gap: 12px; max-width: 420px; width: 100%; text-align: left;
  background: var(--paper); color: var(--ink); text-decoration: none; border-radius: 16px; padding: 10px 16px 10px 10px; font-size: 15px; line-height: 1.3; font-weight: 560;
  transition: transform 160ms var(--ease-out); }
.gh-alt img { width: 34px; height: auto; border-radius: 3px; flex: none; transform: rotate(-4deg); }
.gh-alt span { flex: 1; }
.gh-alt mark { background: var(--lime-bright); color: var(--ink); border-radius: 5px; padding: 0 0.22em; font-weight: 700; }
.gh-alt .arr { flex: none; transition: transform 200ms var(--ease-out); }
.gh-alt:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .gh-alt:hover .arr { transform: translateX(3px); } }

/* swap words: both versions share one cell, so the sentence never reflows while you slide */
.sw-es .w { display: inline-grid; position: relative; vertical-align: bottom; border-radius: 8px; padding: 0 0.16em; margin: 0 -0.02em; background: rgba(245, 239, 226, 0.12); }
.sw-es .w::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--lime-bright); opacity: var(--q, 0); }
.sw-es .w { justify-content: center; }
.sw-es .w > span { grid-area: 1 / 1; position: relative; justify-self: center; white-space: nowrap; will-change: transform, opacity; }
.sw-es .w .b { color: var(--ink); opacity: 0; }

/* the slider */
.sw-ctl { gap: 12px; }
.sl { position: relative; flex: 1 1 260px; max-width: 340px; height: 56px; border-radius: 999px; background: #2b2a22; display: grid; grid-template-columns: 1fr 1fr; align-items: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sl-l { position: relative; z-index: 0; text-align: center; font-size: 15px; font-weight: 640; pointer-events: none; transition: color 160ms ease; color: #8d8a7c; }
.sl-th { position: absolute; z-index: 1; top: 4px; left: 4px; width: calc(50% - 4px); height: 48px; border-radius: 999px; background: var(--lime-bright); color: var(--ink);
  display: flex; justify-content: center; align-items: center; gap: 8px; will-change: transform; font-size: 15px; font-weight: 680; }
.sl-th .tl { display: grid; } .sl-th .tl > span { grid-area: 1 / 1; text-align: center; }
.sl-th svg { opacity: 0.5; flex: none; }
.sl { cursor: grab; }
.sl.drag { cursor: grabbing; }
.sl input { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.sl:has(input:focus-visible) { outline: 2px solid var(--lime-bright); outline-offset: 3px; }
.sl.drag .sl-th { transform-origin: center; }

/* offer: the bundle leads, the glossary on its own sits quietly beside it */
.pk { position: relative; }
.pk-b { padding-top: 30px; }
.pk-books { position: absolute; top: -18px; right: 14px; width: 120px; height: 120px; pointer-events: none; }
.pk-books img { position: absolute; height: auto; border-radius: 3px 5px 5px 3px; }
.pk-g { width: 62px; right: 0; top: 24px; transform: rotate(9deg); }
.pk-e { width: 76px; right: 40px; top: 4px; transform: rotate(-6deg); }
.pk-tag { justify-self: start; background: var(--lime-bright); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13.5px !important; font-weight: 700; line-height: 1 !important; }
.pk-b h3 { font-size: 28px; padding-right: 96px; }
.pk-b .pk-tag { margin-right: 112px; }
.pk-b .pk-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pk-b .pk-price span { color: #b9b4a2; font-size: 15px; }
.pk .ticks { margin-top: 2px; gap: 10px; }
.pk .ticks li { font-size: 16px; }
.pk-b .ticks svg { color: var(--lime-bright); }
.pk-a { background: rgba(251, 248, 240, 0.9); padding: 22px; gap: 10px; }
.pk-a h3 { font-size: 20px; }
.pk-a .pk-price strong { font-size: 30px; }
.pk-a p { font-size: 15.5px; color: #3d3b31; }
.pk-a .btn { --cta-bg: var(--cream-deep); --cta-text: var(--ink); min-height: 50px; font-size: 16px; }
@media (min-width: 700px) {
  .pk-books { width: 170px; height: 160px; top: -34px; right: 24px; }
  .pk-g { width: 88px; top: 36px; } .pk-e { width: 108px; right: 56px; }
  .pk-b h3 { font-size: 32px; padding-right: 170px; }
  .pk-a { padding: 26px 26px 24px; }
}

/* the English word that matches the swapping Spanish word: grey underline that fills lime as the slang arrives */
.sw-en .e { position: relative; display: inline-block; color: var(--cream); font-weight: 620; }
.sw-en .e::before, .sw-en .e::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 2px; }
.sw-en .e::before { background: rgba(245, 239, 226, 0.28); }
.sw-en .e::after { background: var(--lime-bright); transform-origin: left center; transform: scaleX(var(--q, 0)); }
