/* y2kplayer.app 4.0, r263 SITE-PAGES: every content page in the home's language.
   Loaded LAST by every page except the home (site-build/pages_v4.py adds it and the body class .pg4).
   The old site.css / pages.css still give the layout primitives (wrap, grid, cluster); this file sets the 4.0 look over them:
   one dark ground (#1C0840, no coloured bands, no moving field), the display face, white type, glass cards (white 6 % + a 1.5 px
   inside line), the home's FAQ, and green ONLY on the main button. Heroes: .pg4-hero (H1, one line, the button, one store-set picture).
   Tool pages keep their machine (tool-v4.css) and get the four makers' hero (.t4-hero). The page closes on the app card (.pg4-close). */

body.pg4 {
  --pg4-display: ui-rounded, "SF Pro Rounded", "Y2K Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --display: var(--pg4-display); --t4-display: var(--pg4-display);
  --ground: #1C0840; --ground-local: #1C0840; --ground-lift: #1C0840; --veil: 1; --spill: 275;
  --ink: #FFFFFF; --ink-body: #E9E1F7; --ink-quiet: #C9BEDF; --ink-faint: #C9BEDF; --meta: #C9BEDF;
  --accent: #FFFFFF; --accent-ui: rgb(255 255 255 / .45); --accent-on: #FFFFFF; --glow: #E769F0;
  --seam: rgb(255 255 255 / .16); --seam-hair: rgb(255 255 255 / .1); --r-card: 20px;
  --t4-text-2: #E9E1F7; --t4-text-3: #C9BEDF; --t4-line: rgb(255 255 255 / .16);
  background: #1C0840; color: #FFFFFF;
}
body.pg4 #rays, body.pg4 #dust { display: none !important; }

/* ---------------------------------------------------------------- sections: one ground, even rhythm */
body.pg4 main .section, body.pg4 main .band, body.pg4 main .section--lift, body.pg4 main .band--lift,
body.pg4 main .band--warm, body.pg4 main .band--deep, body.pg4 main .band--field, body.pg4 main .section--cool {
  background: transparent; background-image: none;
}
body.pg4 main .section { padding: clamp(36px, 6vw, 72px) 0; min-height: 0; }
body.pg4 main .section + .section { padding-top: 0; }
body.pg4 main .section::before, body.pg4 main .section::after { display: none; }
body.pg4 .wrap--prose { width: min(720px, calc(100% - 32px)); }
body.pg4 main .wrap:not(.wrap--prose):not(.hero-tool__in):not(.hdr__in) { width: min(1080px, calc(100% - 32px)); }

/* type: the home's scale */
body.pg4 main h2, body.pg4 .caption, body.pg4 .prose h2 {
  font-family: var(--pg4-display); font-weight: 900; font-synthesis: none; color: #FFFFFF;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; margin: 0 0 .5em;
}
body.pg4 main h3, body.pg4 .prose h3 { font-family: var(--pg4-display); font-weight: 900; font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); line-height: 1.2; color: #FFFFFF; margin: 1.4em 0 .4em; }
body.pg4 .prose > * + * { margin-top: .9em; }
body.pg4 .prose h2 + * { margin-top: 0; }
:where(body.pg4 main) p, :where(body.pg4) .prose p, :where(body.pg4) .prose li { color: #E9E1F7; font-size: 1.0625rem; line-height: 1.6; }
body.pg4 .prose strong, body.pg4 .prose b, body.pg4 main b, body.pg4 main strong { color: #FFFFFF; }
body.pg4 main a:not(.btn):not(.job):not(.pg4-quiet) { color: #FFFFFF; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .45); text-underline-offset: .22em; }
body.pg4 main a:not(.btn):not(.job):hover { text-decoration-color: #FFFFFF; }
body.pg4 .sub, body.pg4 .sub--quiet { font-family: inherit; font-weight: 500; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: #E9E1F7; max-width: 60ch; }
body.pg4 .catch { font-family: var(--pg4-display); font-weight: 900; font-synthesis: none; color: #FFFFFF; line-height: 1.05; letter-spacing: -.02em; }
body.pg4 .kicker, body.pg4 .eyebrow { font-family: inherit; font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #C9BEDF; }
body.pg4 .fineprint { color: #C9BEDF; font-size: .9375rem; }
body.pg4 .meta { color: #C9BEDF; }
body.pg4 .crumbs { font-size: .8125rem; }
body.pg4 .crumbs a, body.pg4 .crumbs [aria-current] { color: rgb(255 255 255 / .8) !important; text-decoration: none !important; }

/* buttons: green is the main button only; the second action is quiet words */
body.pg4 main .btn--ghost { background: transparent; color: #FFFFFF; border: 1.5px solid rgb(255 255 255 / .5); box-shadow: none; }
body.pg4 main .btn--ghost:hover { border-color: #FFFFFF; background: rgb(255 255 255 / .08); }
body.pg4 main .btn { min-height: 48px; }

/* ---------------------------------------------------------------- the hero (content pages) */
.pg4-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(20px, 4vw, 56px) 0 clamp(36px, 6vw, 72px);
  --deep: #420639; --glow: #E769F0; }
.pg4-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 78% 40%, color-mix(in srgb, var(--glow) 34%, transparent), transparent 70%),
              linear-gradient(180deg, var(--deep) 0%, color-mix(in srgb, var(--deep) 55%, #1C0840) 60%, #1C0840 100%); }
.pg4-hero[data-world="speed"]  { --deep: #071D4E; --glow: #7ABEFE; }
.pg4-hero[data-world="viz"]    { --deep: #1C0840; --glow: #A973FF; }
.pg4-hero[data-world="vocal"]  { --deep: #062F4B; --glow: #3BAAFE; }
.pg4-hero[data-world="sky"]    { --deep: #051342; --glow: #FFB882; }
.pg4-hero[data-world="video"]  { --deep: #3D140C; --glow: #FECA3E; }
.pg4-hero[data-world="themes"] { --deep: #5E146E; --glow: #E769F0; }
.pg4-hero[data-world="edit"]   { --deep: #420524; --glow: #E769F0; }
.pg4-hero[data-world="rain"]   { --deep: #053941; --glow: #F0A667; }
.pg4-hero[data-world="keywords"] { --deep: #310542; --glow: #A973FF; }
.pg4-hero__in { width: min(1080px, calc(100% - 32px)); margin-inline: auto; display: grid; gap: clamp(24px, 4vw, 56px); align-items: center;
  grid-template-columns: minmax(0, 1fr); }
.pg4-hero--noshot .pg4-hero__in { width: min(820px, calc(100% - 32px)); }
@media (min-width: 860px) { .pg4-hero__in { grid-template-columns: minmax(0, 1fr) auto; } .pg4-hero--noshot .pg4-hero__in { grid-template-columns: minmax(0, 1fr); } }
.pg4-hero__copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.pg4-hero__copy .crumbs { margin-bottom: 4px; }
.pg4-h1 { font-family: var(--pg4-display, ui-rounded, system-ui); font-weight: 900; font-synthesis: none; letter-spacing: -.02em; line-height: 1.04; margin: 0;
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 4rem); color: #FFFFFF; text-wrap: balance; max-width: 18ch;
  text-shadow: 0 .06em 0 color-mix(in srgb, var(--deep) 70%, black), 0 0 .18em rgb(0 0 0 / .28); }
.pg4-h1 br { display: none; }
.pg4-sub { margin: 0; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem) !important; line-height: 1.45; font-weight: 600; color: #FFFFFF !important; }
.pg4-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.pg4-act .btn { min-height: 54px; padding-inline: 1.5em; font-size: 1.0625rem; }
.pg4-quiet { color: #FFFFFF; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: .4em; }
.pg4-quiet::after { content: "\2192"; transition: transform .2s; }
.pg4-quiet:hover::after { transform: translateX(3px); }
.pg4-fine { margin: 0; font-size: .9375rem !important; color: #C9BEDF !important; max-width: 52ch; }
.pg4-ticks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pg4-ticks li { position: relative; padding-left: 1.6em; color: #E9E1F7; font-size: .9375rem; line-height: 1.4; }
.pg4-ticks li::before { content: ""; position: absolute; left: 0; top: .12em; width: 1.15em; height: 1.15em; border-radius: 50%;
  background: rgb(255 255 255 / .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; }
.pg4-ticks b { color: #FFFFFF; font-weight: 800; }
.pg4-ticks span { color: #C9BEDF; }
@media (max-width: 600px) { .pg4-kicker { letter-spacing: .08em; } }
.pg4-kicker { margin: 0; font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #E9E1F7 !important; }

/* the store-set picture: the slide as Apple shows it, corners and all */
.pg4-shot { margin: 0; justify-self: center; width: clamp(220px, 62vw, 300px); }
@media (min-width: 860px) { .pg4-shot { width: min(clamp(240px, 24vw, 330px), calc((100svh - 150px) * .46)); } .pg4-shot--sm { width: clamp(220px, 22vw, 280px); } }
.pg4-shot img { display: block; width: 100%; height: auto; border-radius: 7% / 3.2%;
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / .14), 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 90px -30px var(--glow, #E769F0); }
.pg4-hero .pg4-shot { rotate: 2deg; }
.pg4-shot--sm { width: clamp(200px, 56vw, 270px); }
.pg4-shot figcaption { margin-top: 10px; font-size: .875rem; color: #C9BEDF; text-align: center; }

/* splits: words beside a picture; a split whose picture was a duplicate is plain words */
body.pg4 .split { align-items: center; }
body.pg4 .split:not(:has(> .pg4-shot)) { display: block; }
body.pg4 .stage { display: none; }   /* any leftover old phone stage */

/* ---------------------------------------------------------------- cards, steps, tables, doors */
body.pg4 .card, body.pg4 .limits.card, body.pg4 .panel { background: rgb(255 255 255 / .06); border: 0; border-radius: 22px;
  box-shadow: inset 0 0 0 1.5px var(--t4-line); }
body.pg4 .card--lit { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .4); }
body.pg4 .limits > ul > li { border-color: var(--t4-line); }
body.pg4 .limits > ul > li::before { background: #FFFFFF; }
body.pg4 .steps { gap: 12px; }
body.pg4 .steps > li { background: rgb(255 255 255 / .06); border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--t4-line); }
body.pg4 .steps > li::before { background: #FFFFFF; color: #1C0840; font-family: var(--pg4-display); font-weight: 900; box-shadow: none; border: 0; }
body.pg4 .steps b { color: #FFFFFF; }
body.pg4 .steps span { color: #E9E1F7; }
body.pg4 .datatable { background: rgb(255 255 255 / .05); border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--t4-line); }
body.pg4 .datatable :is(th, td) { border-color: var(--t4-line); }
body.pg4 .datatable thead th { color: #FFFFFF; background: rgb(255 255 255 / .06); }
body.pg4 .datatable caption, body.pg4 .datatable td { color: #E9E1F7; }
body.pg4 .job { background: rgb(255 255 255 / .06); border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--t4-line); color: #FFFFFF; }
body.pg4 .job:hover { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45); transform: none; }
body.pg4 .job__note { color: #E9E1F7; font-size: .9375rem; }
body.pg4 .job__go { color: #FFFFFF; }
body.pg4 .readout { background: rgb(255 255 255 / .06); border: 0; box-shadow: inset 0 0 0 1.5px var(--t4-line); color: #FFFFFF; }
body.pg4 .readout small { color: #C9BEDF; }
body.pg4 .tool-facts > li { background: rgb(255 255 255 / .06); border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--t4-line); color: #E9E1F7; }
body.pg4 .tool-facts strong { color: #FFFFFF; }
body.pg4 .fact-ic { stroke: #FFFFFF; color: #FFFFFF; }
body.pg4 .chip, body.pg4 .badge { background: rgb(255 255 255 / .1); color: #FFFFFF; border: 1px solid rgb(255 255 255 / .22); }
body.pg4 .lit { color: color-mix(in srgb, #E769F0 52%, white); background: none; }

/* tiles: current app screens and visualizer frames */
body.pg4 .tile img { border-radius: 18px; border: 0; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .14), 0 24px 54px -28px rgb(0 0 0 / .9); }
body.pg4 .tile__label { color: #E9E1F7; font-weight: 700; font-size: .9375rem; }

/* FAQ: the home's (native details, a plus that turns to a minus) */
body.pg4 .faq { display: grid; gap: 10px; }
body.pg4 .faq details { border: 0; border-radius: 18px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1.5px var(--t4-line); margin: 0; }
body.pg4 .faq details[open] { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); }
body.pg4 .faq summary { cursor: pointer; list-style: none; padding: 16px 56px 16px 20px; font-weight: 800; font-size: 1.0625rem; color: #FFFFFF;
  position: relative; min-height: 44px; font-family: inherit; }
body.pg4 .faq summary::-webkit-details-marker { display: none; }
body.pg4 .faq summary::before { display: none; }
body.pg4 .faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: rgb(255 255 255 / .1); font-size: 18px; line-height: 1; color: #FFFFFF; transform: none; border: 0; }
body.pg4 .faq details[open] summary::after { content: "\2212"; }
body.pg4 .faq .faq__a { padding: 0 20px 16px; }
body.pg4 .faq .faq__a p { margin: 0 0 .6em; font-size: 1rem; }

/* the language pages' row of the app (current screens and visualizer frames) */
body.pg4 .toolband { background: transparent; }
body.pg4 .toolband .band { background: transparent; }
body.pg4 .toolband .marquee img { border-radius: 16px; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .14); }

/* ---------------------------------------------------------------- the close: the app card */
.pg4-close { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); }
.pg4-card { width: min(1000px, calc(100% - 32px)); margin-inline: auto; position: relative; overflow: clip; border-radius: 28px;
  padding: clamp(22px, 3.4vw, 44px); display: grid; gap: clamp(18px, 3vw, 40px); grid-template-columns: minmax(0, 1fr); align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, rgb(231 105 240 / .28), transparent 55%), linear-gradient(160deg, #420639, #1C0840 70%);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .2), 0 40px 90px -30px rgb(0 0 0 / .7); }
.pg4-card__phone { display: none; width: 170px; height: auto; justify-self: center; filter: drop-shadow(0 24px 30px rgb(0 0 0 / .5)); }
@media (min-width: 720px) { .pg4-card { grid-template-columns: 170px minmax(0, 1fr); } .pg4-card__phone { display: block; } }
.pg4-card__kick { margin: 0; font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #C9BEDF !important; }
body.pg4 .pg4-card__h { font-family: var(--pg4-display); font-weight: 900; font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.08;
  letter-spacing: -.015em; margin: .25em 0 .35em; color: #FFFFFF; text-wrap: balance; max-width: 24ch; }
.pg4-card__sub { margin: 0; color: #E9E1F7; max-width: 56ch; }
.pg4-card .appcard__list { margin-top: 18px; }
.pg4-card .pg4-act { margin-top: clamp(16px, 2.4vw, 24px); }
.pg4-card .pg4-fine { margin-top: 12px; }

/* ---------------------------------------------------------------- tool pages: the makers' hero on every tool page */
body.pg4 .t4-hero .hero-tool__in { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
body.pg4 .t4-hero[data-world="viz"] { --glow: #A973FF; --deep: #1C0840; }
body.pg4 .t4-hero[data-world="video"] { --glow: #FECA3E; --deep: #3D140C; }
body.pg4 .t4-hero[data-world="edit"] { --glow: #E769F0; --deep: #420524; }
body.pg4 .t4-hero[data-world="vocal"] { --glow: #3BAAFE; --deep: #062F4B; }
body.pg4 .t4-hero[data-world="rain"] { --glow: #F0A667; --deep: #053941; }

/* the hand pages */
body.pg4 .band--art, body.pg4 .band--art--freefall { background: radial-gradient(70% 80% at 50% 30%, rgb(169 115 255 / .3), transparent 70%), #1C0840 !important; }
body.pg4 .band--art::after { display: none; }

@media (max-width: 859px) {
  .pg4-hero__copy { justify-items: stretch; }
  .pg4-act .btn { flex: 1 1 auto; justify-content: center; }
}

/* the old tool pages' coloured marker over each chapter heading: out (one quiet system) */
body.pg4 .prose h2::before { display: none; }
body.pg4 .page-tool .prose h2, body.pg4.page-tool .prose h2 { margin-top: 1.6em; }
/* the language pages' rows: the copy keeps the screen's width (the marquee's max-content track had widened the grid to ~3900 px) */
body.pg4 .toolband .band { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
body.pg4 .toolband .band__copy { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
body.pg4 .toolband .toolband__panel { background: rgb(28 8 64 / .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: clamp(18px, 3vw, 32px); }
@media (max-width: 899px) { body.pg4 .toolband .band { display: grid; gap: 20px; } body.pg4 .toolband .band > * { grid-area: auto; } }

/* the hand pages (support, privacy, how-to-choose, 404): their own first section gets the hero's ground and type */
body.pg4 main > section.section:first-of-type:not(.pg4-hero):not(.t4-hero) {
  background: radial-gradient(70% 90% at 80% 20%, rgb(169 115 255 / .26), transparent 70%), linear-gradient(180deg, #2D0B43, #1C0840) !important;
  padding-top: clamp(28px, 5vw, 64px);
}
body.pg4 main > section.section:first-of-type h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 4rem); line-height: 1.04; letter-spacing: -.02em;
  text-shadow: 0 .06em 0 #12042b; max-width: 20ch; }
body.pg4 main > section.section:first-of-type h1 br { display: none; }
body.pg4 .card .caption { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem); }
