/* Inner pages (Naalai ERP, Plus, Pricing, Learn, Donate, About), 10 Oct 2026.
   Same tokens, type and cards as the home page; a light morning sky at the top instead of the full scene.
   Loaded after system.css and r2.css. No JS needed for any of it. */

body[data-page="site"] { background: linear-gradient(180deg, #cbe6fa 0, #e4f1fb 300px, #fff6ea 620px) no-repeat, #fff6ea; }
body[data-page="site"] .nav { background: transparent; }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--ink); background: rgba(28, 26, 46, .07); }

/* ---------- page hero ---------- */
.pg-hero { position: relative; padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.pg-hero::before, .pg-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 999px; background: #fff; opacity: .85; filter: blur(.5px); }
.pg-hero::before { width: 220px; height: 64px; top: 34px; left: max(-40px, calc(50% - 760px)); box-shadow: 60px -26px 0 6px #fff, 130px 4px 0 -4px #fff; }
.pg-hero::after { width: 170px; height: 52px; top: 120px; right: max(-30px, calc(50% - 720px)); box-shadow: -50px -20px 0 4px #fff; opacity: .7; }
.pg-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pg-hero__grid.is-solo { grid-template-columns: minmax(0, 760px); }
.pg-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--ink-3, #6b6577); }
.pg-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.pg-crumbs a { color: inherit; text-decoration: none; }
.pg-crumbs a:hover { color: var(--blue); }
.pg-hero h1 { margin: 0; font: 800 clamp(2.4rem, 5.4vw, 4.2rem)/1.02 var(--font-display); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.pg-hero h1 .accent { color: var(--blue); }
.pg-hero .lead { max-width: 54ch; margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pg-fine { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-3, #6b6577); font-weight: 600; }
.pg-art { position: relative; margin: 0; }
.pg-art img { display: block; width: 100%; height: auto; }

/* a laptop frame for ERP screenshots, and a phone frame for app screens */
.pg-laptop { position: relative; padding: 10px 10px 0; border-radius: 18px 18px 6px 6px; background: linear-gradient(160deg, #2b2733, #15131a); box-shadow: 0 40px 70px -34px rgba(23, 20, 40, .55); }
.pg-laptop img { border-radius: 9px 9px 0 0; aspect-ratio: 16 / 10; object-fit: cover; background: #f6f3ee; }
.pg-laptop::after { content: ""; position: absolute; left: -7%; right: -7%; bottom: -14px; height: 14px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #d9d4cc, #b9b2a7); }
.pg-phone { position: relative; width: min(300px, 70%); margin-inline: auto; padding: 10px; border-radius: 42px; background: linear-gradient(145deg, #2b2733, #15131a); box-shadow: 0 40px 70px -30px rgba(23, 20, 40, .55); }
.pg-phone img { border-radius: 33px; aspect-ratio: 390 / 844; object-fit: cover; background: #f6f3ee; }
.pg-phone.is-tilt { transform: rotate(3deg); }
.pg-art .pg-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 18px; background: #fff; box-shadow: 0 18px 36px -18px rgba(28, 26, 46, .45); font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.pg-art .pg-float img { width: 40px; height: 40px; }
.pg-art .pg-float small { display: block; font-weight: 600; color: var(--ink-3, #6b6577); }

/* ---------- sections ---------- */
.pg-sec { padding: clamp(56px, 8vw, 96px) 0; }
.pg-sec.is-tint { background: rgba(255, 255, 255, .55); }
.pg-sec.is-tight { padding-top: 0; }
.pg-head { max-width: 720px; margin: 0 0 clamp(26px, 4vw, 40px); }
.pg-head.is-center { margin-inline: auto; text-align: center; }
.pg-head h2 { margin: 0; font: 800 clamp(1.9rem, 3.8vw, 2.9rem)/1.06 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.pg-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.pg-head.is-center p { margin-inline: auto; max-width: 60ch; }

.pg-grid { display: grid; gap: 18px; }
.pg-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 rgba(28, 26, 46, .04), 0 18px 40px -26px rgba(28, 26, 46, .35); }
.pg-card h3 { margin: 0; font: 800 1.35rem/1.15 var(--font-display); letter-spacing: -0.01em; }
.pg-card p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.pg-card .pg-ico { width: 60px; height: 60px; margin-bottom: 6px; filter: drop-shadow(0 10px 8px rgba(28, 26, 46, .16)); }
.pg-card.is-link { text-decoration: none; color: inherit; transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s; }
.pg-card.is-link:hover { transform: translateY(-5px); box-shadow: 0 1px 0 rgba(28, 26, 46, .04), 0 26px 50px -26px rgba(28, 26, 46, .42); }
.pg-card .pg-more { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--blue); }
.pg-tag { align-self: flex-start; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; background: #e7f6ee; color: #1d7a4a; }
.pg-tag.is-later { background: #efe7ff; color: #5b3fc4; }
.pg-tag.is-paid { background: #fff1cc; color: #8a5a00; }

/* a feature row: screen on one side, words on the other */
.pg-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.pg-feature + .pg-feature { margin-top: clamp(56px, 8vw, 96px); }
.pg-feature.is-flip > :first-child { order: 2; }
.pg-feature h3 { margin: 0 0 12px; font: 800 clamp(1.6rem, 3vw, 2.3rem)/1.08 var(--font-display); letter-spacing: -0.02em; }
.pg-feature > div > p { margin: 0 0 18px; color: var(--ink-2); font-size: 17.5px; line-height: 1.6; }

/* numbered steps */
.pg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.pg-steps li { counter-increment: step; position: relative; padding: 64px 18px 20px; border-radius: 22px; background: #fff; box-shadow: 0 14px 30px -22px rgba(28, 26, 46, .35); font-weight: 700; line-height: 1.45; }
.pg-steps li::before { content: counter(step); position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 16px/1 var(--font-display); }
.pg-steps li b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.pg-steps li span { color: var(--ink-2); font-weight: 600; font-size: 15px; }

/* comparison table */
.pg-table-wrap { overflow-x: auto; border-radius: 24px; background: #fff; box-shadow: 0 18px 40px -28px rgba(28, 26, 46, .35); }
.pg-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; }
.pg-table th, .pg-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid rgba(28, 26, 46, .08); vertical-align: top; }
.pg-table thead th { font: 800 15px/1.2 var(--font-display); background: #fbf7f0; position: sticky; top: 0; }
.pg-table tbody th { font-weight: 700; color: var(--ink-2); }
.pg-table td { text-align: center; font-weight: 700; }
.pg-table thead th:not(:first-child) { text-align: center; }
.pg-table .y { color: #1d7a4a; }
.pg-table .n { color: #a39fab; }
.pg-table tr:last-child > * { border-bottom: 0; }
.pg-table caption { caption-side: bottom; padding: 12px 18px; text-align: left; font-size: 13.5px; color: var(--ink-3, #6b6577); }

/* price cards */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; border-radius: 30px; background: #fff; box-shadow: 0 1px 0 rgba(28, 26, 46, .04), 0 22px 46px -28px rgba(28, 26, 46, .4); }
.price-card h3 { margin: 0; font: 800 1.6rem/1.1 var(--font-display); }
.price-card .who { margin: 0; color: var(--ink-2); font-weight: 600; }
.price-num { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; }
.price-num b, .price-num output { font: 800 clamp(2.6rem, 5vw, 3.4rem)/1 var(--font-display); letter-spacing: -0.03em; }
.price-num span { font-weight: 700; color: var(--ink-3, #6b6577); }
.price-card .r2-ticks { margin: 8px 0 6px; }
.price-card .btn { margin-top: auto; }
.price-card.is-featured { background: #1c1a2e; color: #fff; box-shadow: 0 30px 60px -28px rgba(28, 26, 46, .7); }
.price-card.is-featured .who, .price-card.is-featured .price-num span, .price-card.is-featured .pg-fine { color: rgba(255, 255, 255, .72); }
.price-card.is-featured .r2-ticks li { color: rgba(255, 255, 255, .9); }
.price-card.is-featured .btn-primary { background: #ffd269; color: #1c1a2e; }
.price-card .badge { align-self: flex-start; margin-bottom: -4px; padding: 6px 12px; border-radius: 999px; background: #ffd269; color: #1c1a2e; font-size: 13px; font-weight: 800; }
.price-trial { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(47, 168, 102, .14); color: #1d7a4a; font-weight: 800; font-size: 14.5px; }
.price-card.is-featured .price-trial { background: rgba(122, 230, 168, .16); color: #8ff0b6; }
.price-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); align-self: flex-start; }
.price-card:not(.is-featured) .price-switch { background: #f3eee4; }
.price-switch input { position: absolute; opacity: 0; pointer-events: none; }
.price-switch label { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.price-switch input:checked + label { background: #fff; color: #1c1a2e; }
.price-switch input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.pg-split-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.pg-split-title h3 { margin: 0; font: 800 1.5rem/1.1 var(--font-display); }
.pg-split-title p { margin: 0; color: var(--ink-3, #6b6577); font-weight: 700; }

/* the school calculator, restyled for the page */
.pg-calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center; padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 22px 46px -30px rgba(28, 26, 46, .4); }
.pg-calc label { display: block; font-weight: 800; }
.pg-calc input[type="number"] { width: 100%; max-width: 220px; min-height: 52px; margin-top: 8px; padding: 0 16px; border-radius: 14px; border: 1.5px solid rgba(28, 26, 46, .16); font: 800 22px/1 var(--font-display); color: var(--ink); background: #fffdf9; }
.pg-calc input[type="range"] { width: 100%; margin-top: 18px; accent-color: #2857a6; }
.pg-calc .totals { display: grid; gap: 12px; }
.pg-calc .totals p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 16px 18px; border-radius: 18px; background: #fbf7f0; font-weight: 700; }
.pg-calc .totals output { font: 800 1.6rem/1 var(--font-display); }
.pg-calc .summary { grid-column: 1 / -1; margin: 0; color: var(--ink-3, #6b6577); font-weight: 600; font-size: 14.5px; }

/* FAQ blocks use the home page .faq-list; this keeps their width on inner pages */
.pg-faq .faq-list { max-width: 820px; margin-inline: auto; }

/* the dark call-to-action band at the end of every page */
.pg-cta { padding: clamp(48px, 7vw, 80px) 0; }
.pg-cta__box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 48px); border-radius: 32px; background: radial-gradient(120% 140% at 100% 0%, #2c3a7a 0%, #1c1a2e 60%); color: #fff; box-shadow: 0 30px 60px -30px rgba(28, 26, 46, .7); }
.pg-cta__box h2 { margin: 0; font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1.06 var(--font-display); letter-spacing: -0.02em; }
.pg-cta__box p { margin: 10px 0 0; color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 52ch; }
.pg-cta__box .pg-actions { margin: 0; justify-content: flex-end; }

/* the demo request: an email with the details filled in, no form data leaves the page */
.pg-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.pg-demo form { display: grid; gap: 14px; padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 22px 46px -30px rgba(28, 26, 46, .4); }
.pg-demo label { display: grid; gap: 6px; font-weight: 800; font-size: 15px; }
.pg-demo input, .pg-demo select, .pg-demo textarea { min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(28, 26, 46, .16); font: inherit; font-weight: 600; color: var(--ink); background: #fffdf9; }
.pg-demo textarea { min-height: 96px; resize: vertical; }
.pg-demo input:focus-visible, .pg-demo select:focus-visible, .pg-demo textarea:focus-visible { outline: 3px solid rgba(40, 87, 166, .45); outline-offset: 1px; border-color: #2857a6; }
.pg-demo .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Learn: categories, article cards and the article page ---------- */
.learn-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.learn-cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 800; color: var(--ink); box-shadow: 0 8px 20px -14px rgba(28, 26, 46, .4); }
.learn-cats img { width: 30px; height: 30px; }
.learn-cat + .learn-cat { margin-top: clamp(48px, 7vw, 80px); }
.learn-cat__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.learn-cat__head img { width: 64px; height: 64px; filter: drop-shadow(0 10px 8px rgba(28, 26, 46, .16)); }
.learn-cat__head h2 { margin: 0; font: 800 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--font-display); }
.learn-cat__head p { margin: 4px 0 0; color: var(--ink-2); }
.learn-card .meta { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--ink-3, #6b6577); }
.video-soon { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: linear-gradient(135deg, #efe7ff, #e3f0ff); }
.video-soon .play { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #5b3fc4; box-shadow: 0 10px 20px -12px rgba(91, 63, 196, .6); }
.video-soon b { display: block; font-family: var(--font-display); }
.video-soon span { color: var(--ink-2); font-size: 15px; }
.pg-article { width: min(720px, calc(100% - 40px)); margin-inline: auto; padding-bottom: 40px; }
.pg-article .lead { margin-top: 14px; }
.pg-article h2 { margin: 40px 0 10px; font: 800 1.6rem/1.15 var(--font-display); letter-spacing: -0.015em; }
.pg-article p, .pg-article li { font-size: 18px; line-height: 1.72; color: #2c2834; }
.pg-article ul, .pg-article ol { padding-left: 22px; display: grid; gap: 6px; }
.pg-article .tip { margin: 26px 0; padding: 18px 20px; border-radius: 18px; background: #fff; border-left: 5px solid #ffd269; box-shadow: 0 14px 30px -24px rgba(28, 26, 46, .4); }
.pg-article .tip p { margin: 0; font-size: 17px; }
.pg-article .byline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; font-size: 14.5px; font-weight: 700; color: var(--ink-3, #6b6577); }
.pg-article .note { margin-top: 34px; font-size: 14.5px; color: var(--ink-3, #6b6577); }

/* ---------- Donate ---------- */
.donate-box { display: grid; gap: 14px; justify-items: start; padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 22px 46px -30px rgba(28, 26, 46, .4); }
.donate-box .amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.donate-box .amounts button { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(28, 26, 46, .16); background: #fffdf9; font: 800 16px/1 var(--font-display); cursor: pointer; }
.donate-box .amounts button[aria-pressed="true"] { background: #1c1a2e; color: #fff; border-color: #1c1a2e; }
.donate-box .qr { width: 220px; height: 220px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(28, 26, 46, .1); }
.donate-soon { padding: 18px 20px; border-radius: 18px; background: #fff7df; font-weight: 700; }
.donate-soon a { color: var(--blue); }

/* ---------- About ---------- */
.about-word { position: relative; display: inline-block; padding: 0 .06em .08em; background: linear-gradient(100deg, #f08a3c 0%, #f5a623 45%, #e8b923 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-word::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -.06em; height: .2em; z-index: -1; border-radius: 999px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C40 3 90 2 130 5S186 10 197 6' fill='none' stroke='%23ffd269' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; opacity: .9; }
.pg-values { counter-reset: v; }

/* ---------- 404 and plain blocks ---------- */
.pg-note { padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 14px 30px -24px rgba(28, 26, 46, .4); color: var(--ink-2); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) { .pg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pg-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .pg-hero__grid, .pg-feature, .pg-demo, .pg-calc, .pg-cta__box { grid-template-columns: 1fr; }
  .pg-feature.is-flip > :first-child { order: 0; }
  .pg-grid.c3 { grid-template-columns: 1fr; max-width: 560px; }
  .pg-cta__box .pg-actions { justify-content: flex-start; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pg-grid.c2, .pg-grid.c4, .pg-steps { grid-template-columns: 1fr; }
  .pg-demo .row { grid-template-columns: 1fr; }
  .pg-art .pg-float { display: none; }
  .pg-hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
}
@media (prefers-reduced-motion: reduce) { .pg-card.is-link, .r2-give { transition: none; } }

/* View Transitions between pages, where the browser supports them */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.pg-article .pg-crumbs { display: flex; padding-left: 0; gap: 6px; }
.pg-article .pg-crumbs li { font-size: 14px; line-height: 1.4; color: inherit; }
.pg-article ul { list-style: disc; }
.pg-article ol:not(.pg-crumbs) { list-style: decimal; }
.pg-article li::marker { color: var(--coral-ink, #b4482a); font-weight: 800; }
@media (max-width: 900px) { .pg-art.is-mascot { max-width: 170px; margin: 0 auto -10px; } }
@media (max-width: 620px) { .pg-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .pg-grid.c4 .pg-card { padding: 18px 16px; } .pg-grid.c4 .pg-card h3 { font-size: 1.1rem; } .pg-grid.c4 .pg-card p { font-size: 14.5px; } .pg-grid.c4 .pg-ico { width: 46px; height: 46px; } }
.pg-film { max-width: 1040px; margin: 0 auto; overflow: hidden; border-radius: 28px; background: #1c1a2e; box-shadow: 0 40px 80px -40px rgba(28, 26, 46, .6); }
.pg-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #1c1a2e; }
.pg-watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 800; color: var(--ink); text-decoration: none; }
.pg-watch span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 8px 18px -10px rgba(28, 26, 46, .5); transition: transform .3s cubic-bezier(.34, 1.4, .64, 1); }
.pg-watch:hover span { transform: scale(1.1); }
@media (max-width: 620px) { .pg-film { border-radius: 18px; margin-inline: -4px; } }
.contact-mail { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--ink-3, #6b6577); }

/* ---------- Kids Zone ---------- */
.kz-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kz-card { position: relative; display: grid; justify-items: center; gap: 8px; width: 100%; min-height: 210px; padding: 26px 16px 20px; border: 0; border-radius: 28px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; box-shadow: 0 1px 0 rgba(28, 26, 46, .04), 0 18px 36px -24px rgba(28, 26, 46, .4); transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s; }
.kz-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 1px 0 rgba(28, 26, 46, .04), 0 26px 46px -24px rgba(28, 26, 46, .45); }
.kz-card:active { transform: scale(.98); }
.kz-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.kz-card img { width: 72px; height: 72px; filter: drop-shadow(0 10px 8px rgba(28, 26, 46, .18)); transition: transform .5s cubic-bezier(.34, 1.4, .64, 1); }
.kz-card:hover img { transform: scale(1.1) rotate(-6deg); }
.kz-card b { font: 800 1.2rem/1.15 var(--font-display); text-align: center; }
.kz-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.kz-meta span { padding: 3px 10px; border-radius: 999px; background: #f3eee4; }
.kz-badge { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #e7f6ee; color: #1d7a4a; }
.kz-card.is-plus .kz-badge { background: #1c1a2e; color: #ffd269; }
.kz-dialog, .kz-gate { padding: 0; border: 0; background: transparent; max-width: min(760px, 96vw); width: 100%; max-height: 96svh; overflow: visible; }
.kz-dialog::backdrop, .kz-gate::backdrop { background: rgba(18, 16, 28, .6); backdrop-filter: blur(4px); }
.kz-dialog[open], .kz-gate[open] { animation: r2-pop .35s var(--ease-out) both; }
.kz-shell { position: relative; display: grid; gap: 12px; max-height: 94svh; overflow: auto; padding: 22px 22px 26px; border-radius: 28px; background: #fffaf2; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5); }
.kz-head { display: grid; grid-template-columns: 1fr auto 44px; gap: 12px; align-items: center; }
.kz-head h2 { margin: 0; font: 800 1.5rem/1.1 var(--font-display); }
.kz-head p { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-3, #6b6577); }
.kz-head .kz-status { font-weight: 800; color: var(--ink-2); }
.kz-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 18px; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(28, 26, 46, .12); }
.kz-intro { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink-2); }
.kz-body { display: grid; justify-items: center; gap: 18px; min-height: 280px; padding: 10px 0; }
.kz-done { display: grid; justify-items: center; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; text-align: center; }
.kz-done > p:first-child { margin: 0; font: 800 1.3rem/1.25 var(--font-display); }
.kz-done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.kz-plus { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.kz-pads { display: grid; grid-template-columns: repeat(2, 130px); gap: 14px; }
.kz-pad { display: grid; place-items: center; height: 130px; border: 0; border-radius: 30px; cursor: pointer; transition: transform .15s, filter .15s, box-shadow .15s; box-shadow: 0 10px 0 rgba(28, 26, 46, .14); }
.kz-pad.p0 { background: #ffd9d3; } .kz-pad.p1 { background: #d6e8ff; } .kz-pad.p2 { background: #fff0bf; } .kz-pad.p3 { background: #d7f2df; }
.kz-pad.on { transform: translateY(6px) scale(1.04); filter: brightness(1.08) saturate(1.3); box-shadow: 0 0 0 6px #fff, 0 0 28px 6px rgba(255, 201, 60, .9); }
.kz-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px; border-radius: 22px; background: #fff; }
.kz-row > span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: #f8f4ec; }
.kz-row > .kz-q { font: 800 32px/1 var(--font-display); color: var(--blue); background: #e8f1ff; }
.kz-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.kz-opts.four { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); }
.kz-opt { display: grid; place-items: center; min-width: 96px; min-height: 96px; padding: 10px; border: 0; border-radius: 24px; background: #fff; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(28, 26, 46, .08), 0 8px 18px -12px rgba(28, 26, 46, .4); transition: transform .25s cubic-bezier(.34, 1.4, .64, 1), background .2s; }
.kz-opt:hover { transform: translateY(-3px); }
.kz-opt.big { min-width: 120px; min-height: 120px; }
.kz-opt.num { font: 800 34px/1 var(--font-display); color: var(--ink); }
.kz-opt.colour { min-height: 64px; font: 800 20px/1 var(--font-display); color: var(--ink); box-shadow: inset 0 0 0 3px var(--c); }
.kz-opt.shadow svg { width: 80px; height: 80px; }
.kz-opt.right { background: #dff5e7; box-shadow: inset 0 0 0 3px #2fa866; }
.kz-opt.wrong { background: #fde3e3; box-shadow: inset 0 0 0 3px #e5484d; animation: kz-shake .4s ease; }
@keyframes kz-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.kz-four { display: grid; grid-template-columns: repeat(2, 130px); gap: 14px; }
.kz-why { margin: 0; min-height: 1.4em; text-align: center; font-weight: 700; color: var(--ink-2); }
.kz-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.kz-sum b { font: 800 36px/1 var(--font-display); }
.kz-pile { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; padding: 10px; border-radius: 18px; background: #fff; }
.kz-sum .kz-q { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font: 800 32px/1 var(--font-display); color: var(--blue); background: #e8f1ff; }
.kz-word { margin: 6px 0; font: 800 clamp(3rem, 10vw, 4.6rem)/1 var(--font-display); letter-spacing: .04em; }
.kz-wordpic img { width: 96px; height: 96px; }
.kz-slots { display: flex; gap: 8px; }
.kz-slots span { display: grid; place-items: center; width: 52px; height: 60px; border-radius: 14px; background: #fff; box-shadow: inset 0 -4px 0 rgba(28, 26, 46, .12); font: 800 30px/1 var(--font-display); }
.kz-slots.right span { background: #dff5e7; }
.kz-slots.wrong span { background: #fde3e3; }
.kz-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kz-tile { width: 56px; height: 56px; border: 0; border-radius: 16px; background: #ffd269; font: 800 28px/1 var(--font-display); cursor: pointer; box-shadow: 0 6px 0 #e0a400; transition: transform .15s; }
.kz-tile:active { transform: translateY(4px); box-shadow: 0 2px 0 #e0a400; }
.kz-tile:disabled { opacity: .25; cursor: default; }
.kz-undo { border: 0; background: none; font-weight: 800; color: var(--blue); cursor: pointer; text-decoration: underline; }
.kz-shape svg { width: 120px; height: 120px; filter: drop-shadow(0 10px 12px rgba(28, 26, 46, .2)); }
.kz-bellstage { display: grid; place-items: center; width: min(320px, 80vw); height: 240px; border: 0; border-radius: 30px; background: #fff; cursor: pointer; box-shadow: inset 0 0 0 3px rgba(28, 26, 46, .08); }
.kz-bellstage.right { box-shadow: inset 0 0 0 5px #2fa866; }
.kz-bellstage.wrong { box-shadow: inset 0 0 0 5px #e5484d; }
.kz-pop { display: grid; place-items: center; min-height: 120px; }
.kz-pop.in { animation: r2-pop .25s var(--ease-out) both; }
.kz-gate__box { position: relative; display: grid; justify-items: center; gap: 12px; padding: 30px 26px 26px; border-radius: 28px; background: #fffaf2; text-align: center; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5); }
.kz-gate__box h2 { margin: 0; font: 800 1.5rem/1.15 var(--font-display); }
.kz-gate__box p { margin: 0; color: var(--ink-2); font-weight: 600; max-width: 44ch; }
.kz-gate__box .kz-x { position: absolute; top: 12px; right: 12px; }
@media (max-width: 960px) { .kz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .kz-grid { gap: 10px; }
  .kz-card { min-height: 180px; padding: 22px 10px 16px; }
  .kz-dialog { max-width: 100vw; max-height: 100svh; height: 100%; margin: 0; }
  .kz-shell { min-height: 100svh; max-height: 100svh; border-radius: 0; padding: 16px; }
  .kz-pads, .kz-four { grid-template-columns: repeat(2, 120px); }
  .kz-pad { height: 120px; }
  .kz-head { grid-template-columns: 1fr 44px; }
  .kz-head .kz-status { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .kz-card, .kz-card img, .kz-opt { transition: none; } .kz-dialog[open], .kz-gate[open], .kz-pop.in { animation: none; } }
.kz-play { display: grid; justify-items: center; gap: 18px; width: 100%; }
.kz-dialog, .kz-gate { margin: auto; }
@media (max-width: 620px) { .kz-dialog { margin: 0; } }
.pg-film-skip { display: flex; justify-content: flex-end; max-width: 1040px; margin: -10px auto 12px; }
.pg-film-skip a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(28, 26, 46, .14); }
.pg-film-skip svg { transform: rotate(90deg); }
