/* AI Starter Kits shop (kits.html, js/kits.js). Builds on css/pricing.css. */
.kt-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1150px) { .kt-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .kt-grid { grid-template-columns: 1fr; } }
.kt-card { padding-top: 1.9rem; }
.kt-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #f0eaff; color: var(--pp-purple-deep); }
.kt-icon .pp-icon { width: 24px; height: 24px; }
/* Product boxes (rendered in ai-kits/boxes; Bryan's portraits + tool logos) */
.kt-box { display: block; width: 100%; max-width: 300px; height: auto; margin: -.4rem auto .2rem; filter: drop-shadow(0 14px 18px rgba(20, 14, 50, .10)); transition: transform .35s ease; }
.kt-card:hover .kt-box { transform: translateY(-4px) rotate(-.6deg); }
.kt-shelf { grid-column: 1 / -1; display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto .6rem; }
.kt-tm { margin: 1rem 0 0; font-size: .78rem; color: var(--pp-muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .kt-card:hover .kt-box { transform: none; } }
.kt-soon { background: #5c6174; }
.kt-lessons { font-size: .92rem; }
.kt-lessons summary { cursor: pointer; font-weight: 600; color: var(--pp-purple-deep); }
.kt-lessons ol { margin: .5rem 0 .3rem; padding-left: 1.2rem; display: grid; gap: .25rem; color: var(--pp-muted); }
.kt-card .btn { width: 100%; }
.kt-was { color: var(--pp-muted); font-size: 1.2rem; font-weight: 600; margin-right: .3rem; }

.kt-steps { list-style: none; counter-reset: s; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kt-steps li { counter-increment: s; display: grid; gap: .3rem; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--pp-line); border-radius: 18px; }
.kt-steps li::before { content: counter(s); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--pp-purple); color: #fff; font-weight: 800; margin-bottom: .3rem; }
.kt-steps span { color: var(--pp-muted); font-size: .93rem; }

.kt-dialog { margin: auto; border: 0; padding: 0; border-radius: 22px; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 40px 90px -30px rgba(27, 31, 42, .6); }
.kt-dialog::backdrop { background: rgba(18, 20, 27, .55); backdrop-filter: blur(4px); }
.kt-form { position: relative; display: grid; gap: .85rem; padding: 1.6rem; }
.kt-close { position: absolute; top: .7rem; right: .8rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f5f1ff; font-size: 1.4rem; cursor: pointer; color: var(--pp-ink); }
.kt-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pp-purple-deep); }
.kt-form h2 { margin: 0; font-size: 1.35rem; padding-right: 2rem; }
.kt-total { margin: 0; font-size: 1.6rem; font-weight: 800; }
.kt-total small { font-size: .85rem; font-weight: 500; color: var(--pp-muted); }
.kt-pay { width: 100%; justify-content: center; padding: .95rem 1.2rem; }
.kt-pay:disabled { opacity: .7; cursor: progress; }
.kt-error { background: #fef2f2; color: #991b1b; }
.kt-error a { color: #991b1b; }
.kt-secure { margin: 0; display: flex; gap: .45rem; align-items: center; font-size: .82rem; color: var(--pp-muted); }
.kt-secure .pp-icon { width: 1.1em; height: 1.1em; flex: none; }

/* Payment method choice + bank transfer panel */
.kt-dialog { overflow-y: auto; }
.kt-dialog [hidden] { display: none !important; }
.kt-methods { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; }
.kt-methods legend { font-size: .9rem; font-weight: 600; margin-bottom: .4rem; padding: 0; }
.kt-methods--one legend { display: none; }
.kt-method { display: flex; gap: .65rem; align-items: flex-start; padding: .75rem .85rem; border: 1px solid var(--pp-line); border-radius: 14px; cursor: pointer; }
.kt-method:has(input:checked) { border-color: var(--pp-purple); background: #f8f5ff; box-shadow: 0 0 0 1px var(--pp-purple); }
.kt-method input { margin-top: .2rem; accent-color: var(--pp-purple); }
.kt-method span { display: grid; gap: .15rem; font-size: .92rem; }
.kt-method small { color: var(--pp-muted); font-size: .8rem; line-height: 1.4; }
.kt-paypanel h3 { margin: 0 0 .5rem; font-size: 1rem; }
.kt-payref { display: grid; grid-template-columns: auto 1fr; gap: .8rem; background: #1b1f2a; color: #fff; border-radius: 16px; padding: .9rem 1rem; }
.kt-payref div { display: grid; gap: .1rem; align-content: start; }
.kt-payref div + div { display: block; }
.kt-payref span { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #c3b2ff; }
.kt-payref b { font-size: 1.25rem; letter-spacing: .02em; }
.kt-payref .kt-copy { background: rgba(255,255,255,.14); color: #fff; border-color: transparent; vertical-align: middle; }
.kt-paynote { margin: 0; font-size: .85rem; color: var(--pp-muted); }
.kt-paybox { border: 1px solid var(--pp-line); border-radius: 16px; padding: .9rem 1rem; }
.kt-local { display: grid; grid-template-columns: 150px 1fr; gap: .9rem; align-items: start; }
.kt-local img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--pp-line); }
.kt-local p, .kt-overseas p { margin: 0 0 .5rem; font-size: .84rem; color: var(--pp-muted); line-height: 1.45; }
.kt-rows { margin: 0; display: grid; gap: .35rem; }
.kt-rows div { display: grid; gap: 0; }
.kt-rows dt { font-size: .74rem; color: var(--pp-muted); }
.kt-rows dd { margin: 0; font-weight: 700; font-size: .92rem; overflow-wrap: anywhere; }
.kt-copy { margin-left: .3rem; padding: .15rem .55rem; font-size: .72rem; font-weight: 700; border-radius: 999px; border: 1px solid var(--pp-line); background: #f5f1ff; color: var(--pp-purple-deep); cursor: pointer; }
.kt-overseas summary { cursor: pointer; font-weight: 700; font-size: .95rem; }
.kt-overseas[open] summary { margin-bottom: .6rem; }
.kt-overseas h4 { margin: .8rem 0 .35rem; font-size: .88rem; }
.kt-wise { display: block; width: 140px; height: auto; margin: .3rem 0; border-radius: 10px; }
.kt-help { padding-top: .6rem; border-top: 1px solid var(--pp-line); }
.kt-help a { color: var(--pp-purple-deep); font-weight: 700; }
.kt-receipt { display: grid; gap: .7rem; padding-top: .3rem; border-top: 1px solid var(--pp-line); }
.kt-receipt h3 { margin: .6rem 0 0; }
.kt-receipt input[type=file] { font-size: .85rem; }
@media (max-width: 420px) { .kt-local { grid-template-columns: 1fr; } .kt-local img { max-width: 200px; } .kt-payref { grid-template-columns: 1fr; } }

/* Free preview lesson */
.kt-preview { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 2rem; align-items: center; padding: 1.8rem; border-radius: 24px; background: #fff; border: 1px solid var(--pp-line); box-shadow: 0 24px 50px -30px rgba(27, 31, 42, .35); }
.kt-preview h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .6rem; }
.kt-preview p { color: var(--pp-muted); line-height: 1.6; margin: 0 0 .8rem; }
.kt-preview video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #0f1117; }
@media (max-width: 860px) { .kt-preview { grid-template-columns: 1fr; padding: 1.2rem; } .kt-preview-video { order: -1; } }

/* Byte Size bonus card */
.kt-bonus { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.kt-bonus .kt-icon { margin: .6rem 0; }
.kt-bonus .kt-lessons ol { grid-template-columns: 1fr; }
@media (max-width: 760px) { .kt-bonus { grid-template-columns: 1fr; } }

@media (min-width: 900px) { .kt-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Online Classes cover: stage background (assets/kits/hero-stage.webp), text on the left,
   the box pile (assets/kits/hero-pile.webp) in its own column on the right, edges fading into the stage.
   The boxes are never behind the text. Images are made in ai-kits/boxes (make_boxes.py hero, make_hero_scene.py). */
.page-header.kt-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); align-items: center; gap: 1.5rem;
  text-align: left; padding: 8.5rem max(2rem, calc((100vw - 1280px) / 2)) 3rem;
  background-color: #12141b; background-size: cover; background-position: right center; }
.page-header.kt-hero > .page-header-particles { position: absolute !important; inset: 0; }
.page-header.kt-hero[data-art]::before { background: linear-gradient(90deg, rgba(12, 10, 22, .85) 0%, rgba(12, 10, 22, .55) 35%, rgba(12, 10, 22, 0) 60%); }
.page-header.kt-hero .kt-hero-text p { margin: 0 0 1.5rem; }
.kt-hero-boxes { display: block; }
.kt-hero-boxes img { display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 52%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 66% at 50% 52%, #000 62%, transparent 100%); }
@media (max-width: 999px) {
  .page-header.kt-hero { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: 7.5rem 2rem 0; }
  .page-header.kt-hero[data-art]::before { background: linear-gradient(180deg, rgba(12, 10, 22, .8) 0%, rgba(12, 10, 22, .35) 45%, rgba(12, 10, 22, 0) 70%); }
  .page-header.kt-hero > .kt-hero-boxes { width: calc(100% + 4rem); margin-left: -2rem; }
  .kt-hero-boxes img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%); }
}

/* ---------- Cart (js/kits.js): Add to cart beside Get the kit, a bottom bar, the list in checkout ---------- */
.kt-buyrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.kt-buyrow .btn { flex: 1 1 auto; justify-content: center; }
.kt-add { white-space: nowrap; }
.kt-add.is-in { border-color: #16a34a; color: #15803d; background: #f0fdf4; }
.kt-cartbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60;
  width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: 18px; background: #16131f; color: #fff;
  box-shadow: 0 18px 40px rgba(20, 10, 60, .35); animation: ktBarIn .35s cubic-bezier(.2, .9, .25, 1);
}
.kt-cartbar[hidden] { display: none; }
@keyframes ktBarIn { from { transform: translate(-50%, 20px); opacity: 0; } }
.kt-cartbar-ico { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(124, 77, 255, .25); color: #cbb8ff; flex: none; }
.kt-cartbar-ico b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #7c4dff; color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.kt-cartbar-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.kt-cartbar-text strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt-cartbar-text span { font-size: .85rem; color: #cbb8ff; font-weight: 700; }
.kt-cartbar .btn { flex: none; padding: 10px 16px; }
/* js/back-to-top.js and js/wa-float.js lift their buttons above the cart bar when it is underneath them */
@media (max-width: 640px) {
  .kt-cartbar { left: 12px; right: 12px; width: auto; transform: none; bottom: 14px; }
  @keyframes ktBarIn { from { transform: translateY(20px); opacity: 0; } }
}
.kt-toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 61; margin: 0; max-width: calc(100vw - 32px);
  padding: 9px 14px; border-radius: 12px; background: #fff; color: #1b1f2a; font-size: .88rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(20, 10, 60, .2); border: 1px solid #e7e3f3; }
.kt-toast[hidden] { display: none; }
.kt-cart-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.kt-cart-list[hidden] { display: none; }
.kt-cart-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border: 1px solid #e7e3f3; border-radius: 12px; background: #faf8ff; font-size: .92rem; }
.kt-cart-list li span { flex: 1; }
.kt-cart-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #6b6f80; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.kt-cart-x:hover { background: #fee2e2; color: #b91c1c; }
.kt-cart-list .kt-cart-tip { display: block; background: #fff8e6; border-color: #f6e2c2; font-size: .85rem; }
.kt-cart-tip button { border: 0; background: none; padding: 0; color: #5b2ee6; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
body.kt-has-cart { padding-bottom: 84px; }

/* Gift code */
.kt-gift { font-size: .92rem; }
.kt-gift summary { cursor: pointer; color: var(--accent, #6d4aff); font-weight: 600; width: max-content; }
.kt-gift[open] summary { margin-bottom: .5rem; }
.kt-gift input { text-transform: uppercase; letter-spacing: .04em; }
.kt-giftdone h2 { margin: .2rem 0 .6rem; }
.kt-giftdone .kt-pay { display: inline-block; text-align: center; margin: .6rem 0; }
.kt-is-gift [data-buy-price] { text-decoration: line-through; opacity: .5; }
.kt-is-gift .kt-total small { font-weight: 700; color: inherit; font-size: 1rem; }
.kt-code-msg { margin: .35rem 0 0; font-size: .88rem; font-weight: 600; }
.kt-code-msg.is-ok { color: #15803d; }
.kt-code-msg.is-err { color: #b91c1c; }
.kt-code-banner { margin: 0; padding: .7rem 1rem; text-align: center; background: #ede9fe; color: #3b1f9e; font-weight: 600; }

/* My Kit login (my-kit.html, js/my-kit.js) */
.mk-wrap { max-width: 600px; display: grid; gap: 1.25rem; }
.mk-card { gap: .9rem; }
.mk-card h2 { margin: 0; font-size: 1.4rem; }
.mk-sub { margin: 0; color: var(--pp-muted); line-height: 1.55; }
.mk-card .btn { margin-top: .2rem; width: 100%; justify-content: center; }
.mk-send:disabled { opacity: .7; cursor: progress; }
.mk-error { margin: 0; padding: .7rem .8rem; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .9rem; line-height: 1.5; }
.mk-ok { margin: 0; }
.mk-links { display: grid; gap: .6rem; }
.mk-links a { display: grid; gap: .1rem; padding: .85rem 1rem; border-radius: 14px; border: 1px solid rgba(124, 77, 255, .35); background: #f7f3ff; color: var(--pp-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.mk-links a:hover, .mk-links a:focus-visible { border-color: var(--pp-purple); transform: translateY(-1px); }
.mk-links strong { color: var(--pp-purple-deep); }
.mk-links span { font-size: .82rem; color: var(--pp-muted); }
.mk-small { margin: 0; font-size: .85rem; color: var(--pp-muted); }
.mk-forget { background: none; border: 0; padding: 0; font: inherit; color: var(--pp-purple-deep); text-decoration: underline; cursor: pointer; }
.mk-help { font-size: .92rem; color: var(--pp-muted); line-height: 1.6; }
.mk-help p { margin: 0 0 .6rem; }
.kt-mykit { margin: 1rem 0 0; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.kt-mykit a { color: #fff; font-weight: 700; }
.mk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; border-radius: 14px; background: #f3f0fb; }
.mk-tabs button { font: inherit; font-weight: 600; font-size: .92rem; padding: .6rem .5rem; border: 0; border-radius: 10px; background: transparent; color: var(--pp-muted); cursor: pointer; }
.mk-tabs button[aria-selected="true"] { background: #fff; color: var(--pp-purple-deep); box-shadow: 0 2px 8px rgba(27, 31, 42, .08); }
.mk-tabs button:focus-visible { outline: 2px solid var(--pp-purple); outline-offset: 1px; }
.mk-pane, [data-set-fields] { display: grid; gap: .9rem; }
.mk-show { display: flex; gap: .5rem; align-items: center; font-size: .88rem; color: var(--pp-muted); }
.mk-show input { accent-color: var(--pp-purple); }
