/* ==========================================================================
   THE SMART GUIDE PAGES ("Shop by what you need"): the dark stage with the question, the answers that appear one after the other, and the
   progress line. Only /shop/… loads this file; the card on the home page and the orb are in shop.css, the Basic / Plus / Prime colours in tiers.css.
   Base styles are the finished picture; the moving parts only switch on for people who have not asked their device for less motion.
   ========================================================================== */
.page--crumbs { padding-bottom: var(--space-3); }
.page--crumbs .breadcrumbs { margin-bottom: 0; }
.page--after { padding-top: var(--space-5); }
.page--after:empty { padding-block: 0 var(--space-7); }

.guide-stage { position: relative; isolation: isolate; overflow: hidden; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; border-radius: var(--radius-lg); }
.guide-stage__aurora { position: absolute; inset: 0; z-index: -1; }
.guide-stage__aurora::before { content: ''; position: absolute; inset: 0; background: radial-gradient(24rem 18rem at 92% 3%, rgba(155, 77, 255, 0.6), transparent 70%), radial-gradient(26rem 20rem at 0% 24%, rgba(0, 74, 173, 0.8), transparent 70%), radial-gradient(20rem 16rem at 100% 44%, rgba(253, 84, 11, 0.38), transparent 70%), radial-gradient(26rem 20rem at 0% 68%, rgba(155, 77, 255, 0.5), transparent 70%), radial-gradient(24rem 18rem at 100% 92%, rgba(0, 74, 173, 0.75), transparent 70%); }
.guide-stage__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-6) var(--space-4) var(--space-6); }
.guide-stage--compact .guide-stage__inner { padding-block: var(--space-5) var(--space-5); }
.guide-who { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: var(--step--1); font-weight: 800; color: #FFD3BF; }

.guide-topic { margin: 0; font-size: var(--step-1); font-weight: 700; color: rgba(255, 255, 255, 0.82); }
.guide-topic--big { font-size: var(--step-4); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--kt-white); }
.guide-q { margin: 0; max-width: 26rem; font-size: var(--step-3); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.guide-sub { max-width: 36rem; color: rgba(255, 255, 255, 0.85); }
.guide-sub .link-more { color: var(--kt-white); }
.guide-progress { height: 5px; background: rgba(255, 255, 255, 0.14); }
.guide-progress--shop { --from: 0%; --to: 22%; }
.guide-progress--group { --from: 22%; --to: 44%; }
.guide-progress--ask { --from: 44%; --to: 66%; }
.guide-progress--list { --from: 66%; --to: 100%; }
/* the answers come in one after the other: the delay is the place in the list (a style attribute would be refused by the Content-Security-Policy) */
:is(.guide-card, .guide-choice):nth-child(2) { --i: 1; }
:is(.guide-card, .guide-choice):nth-child(3) { --i: 2; }
:is(.guide-card, .guide-choice):nth-child(4) { --i: 3; }
:is(.guide-card, .guide-choice):nth-child(5) { --i: 4; }
:is(.guide-card, .guide-choice):nth-child(6) { --i: 5; }
:is(.guide-card, .guide-choice):nth-child(7) { --i: 6; }
:is(.guide-card, .guide-choice):nth-child(8) { --i: 7; }
:is(.guide-card, .guide-choice):nth-child(9) { --i: 8; }
:is(.guide-card, .guide-choice):nth-child(10) { --i: 9; }
:is(.guide-card, .guide-choice):nth-child(11) { --i: 10; }
:is(.guide-card, .guide-choice):nth-child(12) { --i: 11; }
:is(.guide-card, .guide-choice):nth-child(n + 13) { --i: 12; }
.guide-progress i { display: block; width: var(--to); height: 100%; border-radius: 0 5px 5px 0; background: linear-gradient(to right, var(--kt-orange), #9b4dff, #5b9bff); }
[dir='rtl'] .guide-progress i { border-radius: 5px 0 0 5px; background: linear-gradient(to left, var(--kt-orange), #9b4dff, #5b9bff); }

/* the first question: the groups as cards */
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 720px) { .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card, .guide-choice { position: relative; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.guide-card:hover, .guide-choice:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.15); box-shadow: inset 0 0 0 2px #FFB38F, 0 12px 32px rgba(253, 84, 11, 0.3); }
.guide-card:active, .guide-choice:active { transform: scale(0.98); }
.guide-card__link { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-2); border-radius: inherit; color: inherit; text-decoration: none; }
.guide-card__link:focus-visible { outline-offset: 2px; }
.guide-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm); background: var(--kt-paper); }
.guide-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 600ms var(--ease); }
.guide-card:hover .guide-card__media img { transform: scale(1.08); }
.guide-card__body { display: grid; gap: 0.1rem; padding: 0 var(--space-2) var(--space-2); }
.guide-card__name { font-size: var(--step-0); font-weight: 800; line-height: 1.2; }
.guide-card__count { font-size: var(--step--1); color: rgba(255, 255, 255, 0.8); }
.guide-card__go { position: absolute; top: 0.9rem; inset-inline-end: 0.9rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--kt-white); color: var(--kt-black); transition: background-color var(--dur-fast); }
.guide-card__go .icon { width: 1rem; height: 1rem; }
.guide-card:hover .guide-card__go { background: var(--kt-orange); }

/* the answers of a question: big rows */
.guide-choices { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 640px) { .guide-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .guide-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-choice__link { display: flex; align-items: center; gap: var(--space-3); min-height: 4.5rem; height: 100%; padding: var(--space-3) var(--space-4); border-radius: inherit; color: inherit; text-decoration: none; }
.guide-choice__link:focus-visible { outline-offset: -3px; }

.guide-choice__sub { font-size: var(--step--1); color: rgba(255, 255, 255, 0.82); }

/* answers with a picture (what a plug looks like, a balance...): the picture is big, on top of the card, so it is easy to match with what you see */
.guide-choices--art { gap: var(--space-4); }
.guide-choice--art .guide-choice__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'art art' 'text go'; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2); }

.guide-choice--art .guide-choice__sub { font-size: var(--step-0); }

/* "show me everything" is a small row, not a big picture */
.guide-choice--all .guide-choice__link { grid-template-columns: 5.5rem minmax(0, 1fr) auto; grid-template-areas: 'art text go'; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); }

/* the top row of a step: who is talking, and a big way back */
.guide-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.guide-back { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; padding: 0.4rem 1.1rem 0.4rem 0.7rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); color: var(--kt-white); font-weight: 800; text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
[dir='rtl'] .guide-back { padding: 0.4rem 0.7rem 0.4rem 1.1rem; }
.guide-back:hover { background: var(--kt-white); color: var(--kt-black); }
.guide-back .icon { width: 1.1rem; height: 1.1rem; transform: scaleX(-1); }
[dir='rtl'] .guide-back .icon { transform: none; }

.ask__note { margin-top: var(--space-4); font-size: var(--step--1); color: var(--color-text-muted); }
/* "which phone?": the small links under a question (tablet covers, AirPods cases), and the page that lists every phone by family */
.tree-aside { margin-top: var(--space-5); }
.phone-lists { display: grid; gap: var(--space-5); margin-top: var(--space-4); }
.phone-list__name { margin-bottom: var(--space-2); font-size: var(--step-1); font-weight: 800; }
.phone-list__chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }

/* after the choice: the answers as pills under the name, then the products */
.answers { margin-top: var(--space-3); }
.guide-stage .filter-chip { background: rgba(255, 255, 255, 0.1); color: var(--kt-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.guide-stage .filter-chip:hover { background: rgba(255, 255, 255, 0.2); }
.guide-stage a.filter-chip[aria-current='page'] { background: var(--kt-white); color: var(--kt-black); box-shadow: none; }

/* the card on /categories/ is the same card as on the home page, in a row above the tiles */
.guide-entry--inline { margin-bottom: var(--space-5); }

@media (min-width: 720px) {
  .guide-stage__inner { padding: var(--space-7) var(--space-7) var(--space-7); }
  .guide-stage--compact .guide-stage__inner { padding-block: var(--space-6); }
}

@media (prefers-reduced-motion: no-preference) {
  /* the light sways without turning: the layer is a little bigger than the panel (scale) so no edge of it is ever seen */
  .guide-stage__aurora::before { animation: guide-sway 16s ease-in-out infinite alternate; }
  @keyframes guide-sway { from { transform: translate3d(-4%, 3%, 0) scale(1.14); } to { transform: translate3d(4%, -3%, 0) scale(1.14); } }
  /* 26 Nov: quicker arrival (everything in place within ~0.7s), and nothing waits more than a beat */

  .guide-topic { animation: guide-materialise 0.4s var(--ease) both; }
  .guide-sub { animation: guide-materialise 0.4s var(--ease) 0.2s both; }
  .guide-card, .guide-choice { animation: guide-pop 0.5s cubic-bezier(0.2, 1.25, 0.4, 1) calc(0.25s + var(--i, 0) * 0.05s) both; }
  .guide-stage .answers { animation: guide-pop 0.5s cubic-bezier(0.2, 1.25, 0.4, 1) 0.3s both; }
  .guide-progress i { animation: guide-bar 0.8s var(--ease) both; }
  @keyframes guide-life { 0% { opacity: 0; } 10%, 75% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes guide-dot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
  @keyframes guide-materialise { from { opacity: 0; filter: blur(10px); transform: translateY(8px); } to { opacity: 1; filter: blur(0); transform: none; } }
  @keyframes guide-pop { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; transform: none; } }
  @keyframes guide-bar { from { width: var(--from); } to { width: var(--to); } }
}

/* the Smart Guide's lists: a big Add to cart under each card */
.product-card--buy { display: flex; flex-direction: column; }
.product-card--buy .product-card__link { flex: 1; }
.product-card__add { width: 100%; justify-content: center; gap: var(--space-2); margin-top: var(--space-3); min-height: 48px; padding-inline: var(--space-3); font-size: var(--step--1); line-height: 1.2; text-align: center; }
.guide-card__media--photo img { object-fit: cover; }

/* 25 Nov: every guided page wears Kabu's colours, the same navy-purple as Kabu's card on the home page (the only place that colour is
   used), and the same name and avatar, so going from the home card into the questions feels like one conversation with one salesman */
.guide-stage { background: #0E0B2A; box-shadow: 0 18px 40px rgba(30, 20, 90, 0.28); }
.guide-stage__aurora::before { background: radial-gradient(120% 80% at 85% 0%, #4B2FB8 0%, rgba(75, 47, 184, 0) 60%), radial-gradient(90% 70% at 0% 100%, #1F3C9E 0%, rgba(31, 60, 158, 0) 65%), radial-gradient(60% 45% at 100% 70%, rgba(123, 92, 255, 0.35), rgba(123, 92, 255, 0) 70%); }
.guide-who { color: var(--kt-white); font-weight: 700; }

/* ---- Kabu's BUBBLES (26 Nov): every step after the first shows its answers as round bubbles in three sizes, with a picture inside,
        the name and the count under it. Big = the most products. They float; pointing at one grows it to the next size up. ---- */
.bubbles { --bs: 6.6rem; --bm: 8.2rem; --bl: 10rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-4) var(--space-3);
  grid-template-columns: none; margin-top: var(--space-5); padding-block: var(--space-2) var(--space-4); }
@media (min-width: 640px) { .bubbles { --bs: 8rem; --bm: 10rem; --bl: 12.5rem; gap: var(--space-5) var(--space-5); } }
@media (min-width: 1000px) { .bubbles { --bs: 9rem; --bm: 11.5rem; --bl: 14rem; gap: var(--space-6) var(--space-6); grid-template-columns: none; } }
.bubbles .bubble, .bubbles .bubble:hover, .bubbles .bubble:active { flex: 0 0 auto; background: none; border: 0; box-shadow: none; border-radius: 0; transform: none; } /* the bubble itself grows, not a card behind it */
.bubble--s { --d: var(--bs); --grow: calc(var(--bm) / var(--bs)); }
.bubble--m { --d: var(--bm); --grow: calc(var(--bl) / var(--bm)); }
.bubble--l { --d: var(--bl); --grow: 1.12; }
.bubbles .bubble__link { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: max(var(--d), 7rem); min-height: 0; height: auto; padding: 0; color: var(--kt-white); text-align: center; text-decoration: none; }
.bubble__orb { position: relative; display: grid; place-items: center; width: var(--d); height: var(--d); border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 26%, #FFFFFF 0%, #F3F1EC 58%, #E4DFF5 100%);
  box-shadow: 0 0 0 3px rgba(185, 166, 255, 0.35), 0 14px 34px rgba(8, 4, 40, 0.55), inset 0 -10px 24px rgba(75, 47, 184, 0.14);
  transform-origin: 50% 100%; /* it grows upwards, so its name underneath stays readable */
  transition: transform 380ms cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 300ms ease; }
.bubble__orb img { width: 74%; height: 74%; object-fit: contain; mix-blend-mode: multiply; }
.bubble__art { display: grid; place-items: center; width: 64%; height: 64%; color: var(--kt-black); }
.bubble__art svg { width: 100%; height: 100%; max-height: none; }
/* a little shine on the glass */
.bubble__orb::after { content: ''; position: absolute; inset: 7% 22% auto auto; width: 26%; height: 16%; border-radius: 50%; background: rgba(255, 255, 255, 0.75); filter: blur(4px); pointer-events: none; }
.bubble__name { max-width: 12rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); line-height: 1.2; }
.bubble--l .bubble__name { font-size: var(--step-1); }
.bubble__tag { display: inline-block; padding: 0.05rem 0.5rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.18); font-size: var(--step--1); font-weight: 800; }
.bubble__count { font-size: var(--step--1); color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
/* pointing at a bubble (or reaching it with the keyboard) grows it to the next size up and lights its ring */
.bubble__link:hover .bubble__orb, .bubble__link:focus-visible .bubble__orb { transform: scale(var(--grow)); box-shadow: 0 0 0 3px var(--kt-orange), 0 18px 40px rgba(253, 84, 11, 0.35), inset 0 -10px 24px rgba(75, 47, 184, 0.14); }
.bubble__link:hover .bubble__name, .bubble__link:focus-visible .bubble__name { color: #FFD3BF; }
.bubble__link:active .bubble__orb { transform: scale(calc(var(--grow) * 0.94)); }
.bubble__link:focus-visible { outline: none; }
.guide-choice--all.bubble .bubble__orb { background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.guide-choice--all.bubble .bubble__art { color: var(--kt-white); }
/* "Show me all" is a little smaller than the smallest answer, everywhere (the owner, 27 Nov) */
.bubble.guide-choice--all { --d: calc(var(--bs) * 0.78); --grow: 1.12; }
.bubble.guide-choice--all .bubble__name { font-size: var(--step--1); }
/* Noise Cancellation: a small mute sign on the picture */
.bubble__mark { position: absolute; right: 12%; bottom: 12%; display: grid; place-items: center; width: 30%; height: 30%; border-radius: 50%; background: var(--kt-white); box-shadow: 0 2px 8px rgba(8, 4, 40, 0.3); }
.bubble__mark svg { width: 70%; height: 70%; }
/* the float: each bubble rises and falls on its own rhythm, so the set never moves in step */
@media (prefers-reduced-motion: no-preference) {
  @keyframes bubble-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.6rem); } }
  .bubbles .bubble__link { animation: bubble-float 5.2s ease-in-out infinite; }
  .bubbles .bubble:nth-child(3n + 2) .bubble__link { animation-duration: 6.4s; animation-delay: -1.6s; }
  .bubbles .bubble:nth-child(3n + 3) .bubble__link { animation-duration: 5.8s; animation-delay: -3.1s; }
  .bubbles .bubble:nth-child(4n) .bubble__link { animation-duration: 7s; animation-delay: -2.4s; }
  .bubbles .bubble__link:hover { animation-play-state: paused; } /* it holds still under the finger, so it is easy to tap */
}
@media (prefers-reduced-motion: reduce) { .bubble__orb { transition: none; } }

/* a picture made for a bubble (the Alfa and Touch covers) fills the whole circle */
.bubble--cover .bubble__orb { background: #000; }
.bubble--cover .bubble__orb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.bubble--cover .bubble__orb::after { opacity: 0.35; }

/* ---- a list page continues the choice (26 Nov): the answer you chose with its picture as the heading, and the answers again as a row of
        small bubbles, so you can go back and forth with one tap and no reading ---- */
.guide-chosen { display: flex; align-items: center; gap: var(--space-3); margin: 0.2rem 0 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1.1; }
.guide-chosen__orb { flex: none; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 26%, #fff, #F3F1EC 58%, #E4DFF5); box-shadow: 0 0 0 3px var(--kt-orange), 0 10px 24px rgba(8, 4, 40, 0.5); }
.guide-chosen__orb img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.guide-chosen__orb--cover img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
@media (min-width: 720px) { .guide-chosen__orb { width: 4.5rem; height: 4.5rem; } }
.mini-bubbles { margin-top: var(--space-4); }
.mini-bubbles ul { position: relative; display: flex; gap: var(--space-3); margin: 0; padding: 0.3rem 0.2rem var(--space-1); list-style: none; overflow-x: auto; scrollbar-width: none; }
.mini-bubbles ul::-webkit-scrollbar { display: none; }
.mini-bubble { display: grid; justify-items: center; gap: 0.25rem; width: 5.4rem; color: rgba(255, 255, 255, 0.82); text-decoration: none; text-align: center; }
.mini-bubble__orb { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 32% 26%, #fff, #F3F1EC 58%, #E4DFF5);
  box-shadow: 0 0 0 2px rgba(185, 166, 255, 0.35); transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
.mini-bubble__orb img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.mini-bubble--cover .mini-bubble__orb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.mini-bubble--all .mini-bubble__orb { background: rgba(255, 255, 255, 0.14); }
.mini-bubble--all .mini-bubble__orb svg { width: 60%; height: 60%; }
.mini-bubble__name { font-size: var(--step--1); font-weight: 700; line-height: 1.15; }
.mini-bubble__n { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.mini-bubble:hover .mini-bubble__orb { transform: scale(1.08); box-shadow: 0 0 0 2px var(--kt-orange); }
.mini-bubble[aria-current='page'] { color: var(--kt-white); }
.mini-bubble[aria-current='page'] .mini-bubble__orb { box-shadow: 0 0 0 3px var(--kt-orange), 0 0 18px rgba(253, 84, 11, 0.45); }

/* ---- Kabu's "thinking" (26 Nov): the three dots show only while Kabu moves: when a step arrives, and after a tap until the next step
        opens (src/js/client/kabu.js adds .is-thinking). The question then appears word by word, the way an assistant writes. ---- */
.guide-who .kabu__dots { opacity: 0; transition: opacity 240ms ease; }
.guide-who.is-thinking .kabu__dots { opacity: 1; }
.guide-who.is-thinking .kabu__avatar { box-shadow: 0 0 0 3px rgba(185, 166, 255, 0.35), 0 0 22px rgba(123, 92, 255, 0.7); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes kabu-arrive { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
  .guide-who:not(.is-thinking) .kabu__dots { animation: kabu-arrive 0.9s ease both; }
  /* the words are written into the page by the build (src/js/pages/shop.js, words()), so nothing is swapped after the page shows:
     before 26 Nov a script split them after the first paint, and the heading flashed whole, vanished, then came back */
  @keyframes word-in { from { opacity: 0; filter: blur(6px); transform: translateY(0.25em); } to { opacity: 1; filter: none; transform: none; } }
  .guide-stage .w { display: inline-block; animation: word-in 380ms var(--ease) 0.5s both; }
  .guide-stage .w:nth-child(1) { animation-delay: 60ms; } .guide-stage .w:nth-child(2) { animation-delay: 110ms; }
  .guide-stage .w:nth-child(3) { animation-delay: 160ms; } .guide-stage .w:nth-child(4) { animation-delay: 210ms; }
  .guide-stage .w:nth-child(5) { animation-delay: 260ms; } .guide-stage .w:nth-child(6) { animation-delay: 310ms; }
  .guide-stage .w:nth-child(7) { animation-delay: 360ms; } .guide-stage .w:nth-child(8) { animation-delay: 410ms; }
  .guide-stage .w:nth-child(9) { animation-delay: 460ms; }
}
.words .w { white-space: nowrap; }
/* Back or forward (26 Nov, the owner: "the page appears for milliseconds"): the page comes back as it was left. The first script of
   the page (BOOT_SCRIPT, src/js/ui/layout.js) marks <html class="is-return">, and none of the arrival animations play again. */
.is-return .guide-topic, .is-return .guide-q, .is-return .guide-sub, .is-return .guide-card, .is-return .guide-choice,
.is-return .guide-stage .answers, .is-return .guide-progress i, .is-return .guide-stage .w, .is-return .guide-who .kabu__dots { animation: none !important; }

/* a small notice pinned on a bubble ("Save here" on Full Cards) */
.bubble__link { position: relative; }
.bubble__badge { position: absolute; z-index: 2; inset-block-start: -0.35rem; inset-inline-end: -0.4rem; padding: 0.2rem 0.6rem; border-radius: 8px; background: var(--kt-orange);
  color: var(--kt-white); font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; white-space: nowrap; box-shadow: 0 6px 14px rgba(253, 84, 11, 0.45); transform: rotate(-4deg); }

/* "What might fit best in my case" (27 Nov): a small button under the phone colours; the kinds it points at glow for a few seconds */
.best-fit { margin-top: var(--space-3); }
.best-fit__btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.1); color: var(--kt-white); font: inherit; font-size: var(--step--1); font-weight: 700; cursor: pointer; }
.best-fit__btn:hover, .best-fit__btn:focus-visible { background: rgba(255, 255, 255, 0.2); border-color: var(--kt-orange); outline: none; }
.best-fit__icon { display: inline-grid; width: 1.1rem; height: 1.1rem; }
.best-fit__icon svg { width: 100%; height: 100%; }
.bubble.is-best .bubble__orb { box-shadow: 0 0 0 4px var(--kt-orange), 0 0 32px 8px rgba(253, 84, 11, 0.55); transform: scale(1.06); }
.bubble.is-best .bubble__name { color: #FFD3BF; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes best-pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--kt-orange), 0 0 22px 4px rgba(253, 84, 11, 0.45); } 50% { box-shadow: 0 0 0 6px var(--kt-orange), 0 0 40px 12px rgba(253, 84, 11, 0.7); } }
  .bubble.is-best .bubble__orb { animation: best-pulse 1.2s ease-in-out infinite; }
}

/* ==========================================================================
   KABU'S QUIZ (the owner, 29 Nov 2026): one page, a question at a time, "Question 2/4" on top, big tappable answers with a picture each,
   several answers where it makes sense, then Kabu's "Well done!" and the results. src/js/ui/kabu-quiz.js + src/js/client/kabu-quiz.js
   ========================================================================== */
.kq-count { display: inline-flex; align-items: center; gap: 0.35rem; justify-self: start; margin: 0; padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.9); font-size: var(--step--1); font-weight: 700; }
.kq-count b { color: var(--kt-white); font-weight: 900; }
.guide-progress--quiz { --to: 30%; }
.guide-progress--quiz i { transition: width 0.45s var(--ease); }
.kq { display: grid; }
.kq-step { display: grid; gap: var(--space-3); }
.kq-step[hidden] { display: none; }
.kq-q { outline: none; }
.kq-help { margin: 0; }
.kq-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-2) 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .kq-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kq-options--budget, .kq-options--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kq-option { display: flex; }
.kq-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.35rem; width: 100%; min-height: 100%; padding: var(--space-3) var(--space-2) var(--space-3); border: 1.5px solid rgba(255, 255, 255, 0.16); border-radius: 1.4rem; background: rgba(255, 255, 255, 0.07); color: var(--kt-white); font: inherit; text-align: center; text-decoration: none; cursor: pointer; transition: transform 0.18s var(--ease), border-color 0.18s, background-color 0.18s, box-shadow 0.18s; -webkit-tap-highlight-color: transparent; }
.kq-opt:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.3); }
.kq-opt:focus-visible { outline: 3px solid var(--kt-orange); outline-offset: 3px; }
.kq-opt:active { transform: scale(0.97); }
.kq-opt__art { display: grid; place-items: center; width: min(7.5rem, 70%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.96), rgba(233, 228, 255, 0.9)); overflow: hidden; }
.kq-opt__art img { width: 86%; height: 86%; object-fit: contain; }
.kq-opt__art--drawn { background: none; border-radius: 0; overflow: visible; }
.kq-opt__art--drawn img { width: 100%; height: 100%; }
.kq-opt__art .guide-art { width: 60%; height: 60%; }
.kq-opt__name { font-size: var(--step-1); font-weight: 800; line-height: 1.15; }
.kq-opt__hint { font-size: var(--step--1); color: rgba(255, 255, 255, 0.72); line-height: 1.3; }
.kq-opt__tick { position: absolute; inset-block-start: 0.6rem; inset-inline-end: 0.6rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); }
.kq-step:not([data-multi]) .kq-opt__tick { display: none; }
.kq-opt[aria-pressed='true'] { border-color: var(--kt-orange); background: rgba(253, 84, 11, 0.16); box-shadow: 0 0 0 3px rgba(253, 84, 11, 0.35), 0 14px 32px rgba(253, 84, 11, 0.25); }
.kq-opt[aria-pressed='true'] .kq-opt__tick { border-color: var(--kt-orange); background: var(--kt-orange); }
.kq-opt[aria-pressed='true'] .kq-opt__tick::after { content: ''; position: absolute; inset: 0.3rem 0.45rem 0.45rem; border: solid var(--kt-white); border-width: 0 0.18rem 0.18rem 0; transform: rotate(45deg); }
.kq-opt--all { border-style: dashed; background: transparent; justify-content: center; }
.kq-opt--all .kq-opt__art { background: rgba(255, 255, 255, 0.1); }
/* the budget answers: the money grows with the budget */
.kq-options--budget .kq-opt__art { width: min(7.5rem, 76%); }
.kq-options--budget .kq-option--1 .kq-opt__art img { transform: scale(0.72); }
.kq-options--budget .kq-option--2 .kq-opt__art img { transform: scale(0.84); }
.kq-options--budget .kq-option--3 .kq-opt__art img { transform: scale(0.94); }
.kq-options--budget .kq-option--4 .kq-opt__art img { transform: scale(1.06); }

/* 29 Nov (the owner): no square frames around the round pictures, the circles stand on their own like Kabu's other answers.
   The choice shows on the circle itself (an orange ring), not on a box. */
.kq-opt, .kq-opt:hover, .kq-opt--all { border-color: transparent; background: transparent; box-shadow: none; }
.kq-opt { padding: var(--space-2) var(--space-1); }
.kq-opt__art { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14); transition: transform 0.18s var(--ease), box-shadow 0.18s; }
.kq-opt:hover .kq-opt__art { transform: scale(1.03); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.32); }
.kq-opt__art--drawn, .kq-opt:hover .kq-opt__art--drawn { box-shadow: none; }
.kq-opt[aria-pressed='true'] { border-color: transparent; background: transparent; box-shadow: none; }
.kq-opt[aria-pressed='true'] .kq-opt__art { box-shadow: 0 0 0 4px var(--kt-orange), 0 12px 30px rgba(253, 84, 11, 0.35); }
.kq-opt[aria-pressed='true'] .kq-opt__name { color: var(--kt-white); }
.kq-opt--all .kq-opt__art { box-shadow: none; outline: 2px dashed rgba(255, 255, 255, 0.35); outline-offset: 3px; }
.kq-opt__tick { inset-block-start: 0.2rem; inset-inline-end: 0.9rem; background: rgba(20, 16, 48, 0.6); }
.kq-go { margin: var(--space-2) 0 0; }
.kq-done { width: 100%; }
.kq-done:disabled { opacity: 0.45; cursor: not-allowed; }
.guide-stage.is-done .kq-count b { color: var(--kt-orange); }

/* the results */
.kq-results[hidden] { display: none; }
.kq-results__head { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.kq-results__head[hidden] { display: none; }
.kq-results__title { margin: 0; font-size: var(--step-3); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; outline: none; }
.kq-answers { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.kq-answer { padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--surface-2, #f1efe9); font-weight: 700; font-size: var(--step--1); }
.kq-again { justify-self: start; }
.kq-bucket { margin-bottom: var(--space-6); }
.kq-bucket[hidden] { display: none; }
.kq-bucket__title { margin-bottom: var(--space-3); }
.kq-all[hidden] { display: none; }
.is-kabu-pick { position: relative; }
.kq-pick { position: absolute; z-index: 3; inset-block-start: 0.6rem; inset-inline-start: 0.6rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: linear-gradient(120deg, #7B5CFF, #2F6BFF); color: var(--kt-white); font-size: var(--step--1); font-weight: 800; box-shadow: 0 6px 18px rgba(47, 107, 255, 0.35); }
.is-kabu-pick { box-shadow: 0 0 0 2px #7B5CFF; border-radius: var(--radius-lg); }

@media (prefers-reduced-motion: no-preference) {
  .kq-opt.is-picked { animation: kq-pop 0.24s var(--ease); }
  @keyframes kq-pop { 50% { transform: scale(1.05); } }
}

/* ---- Kabu's "Well done!" ---- */
.kabu-finish { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(9, 6, 28, 0.82); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.3s; }
.kabu-finish.is-on { opacity: 1; }
.kabu-finish.is-off { opacity: 0; }
.kabu-finish__edge { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 28px 10px rgba(123, 92, 255, 0.85), inset 0 0 70px 26px rgba(47, 107, 255, 0.45), inset 0 0 120px 40px rgba(253, 84, 11, 0.25); }
.kabu-finish__card { display: grid; justify-items: center; gap: 0.6rem; padding: var(--space-5); text-align: center; color: var(--kt-white); }
.kabu-finish__star.kabu__avatar { display: grid; place-items: center; width: 9.5rem; height: 9.5rem; border-radius: 50%; background: conic-gradient(from 0deg, #7B5CFF, #2F6BFF, #FF6A1A, #B9A6FF, #7B5CFF); box-shadow: 0 0 60px rgba(123, 92, 255, 0.8); }
.kabu-finish__star > span { display: grid; place-items: center; width: 8rem; height: 8rem; border-radius: 50%; background: #0E0B2A; }
.kabu-finish__star.kabu__avatar svg { width: 4.2rem; height: 4.2rem; fill: var(--kt-white); }
.kabu-finish__title { margin: 0.4rem 0 0; font-size: var(--step-4); font-weight: 900; letter-spacing: -0.03em; }
.kabu-finish__text { margin: 0; max-width: 22rem; font-size: var(--step-1); color: rgba(255, 255, 255, 0.88); }
@media (prefers-reduced-motion: no-preference) {
  .kabu-finish__edge { animation: kabu-edge 1.9s ease-in-out both; }
  .kabu-finish__star.kabu__avatar { animation: kabu-star-in 0.7s cubic-bezier(.2, 1.4, .4, 1) both, kabu-finish-spin 3s linear infinite; }
  .kabu-finish__star.kabu__avatar svg { animation: kabu-star-pulse 1.2s ease-in-out infinite; }
  .kabu-finish__title { animation: kabu-rise 0.5s 0.25s var(--ease) both; }
  .kabu-finish__text { animation: kabu-rise 0.5s 0.4s var(--ease) both; }
  @keyframes kabu-edge { 0% { opacity: 0; } 20% { opacity: 1; } 50% { opacity: 0.7; filter: hue-rotate(-35deg); } 80% { opacity: 1; filter: hue-rotate(0deg); } 100% { opacity: 0.9; } }
  @keyframes kabu-star-in { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  @keyframes kabu-star-pulse { 50% { transform: scale(1.18); } }
  @keyframes kabu-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes kabu-finish-spin { to { rotate: 360deg; } }
  .kabu-finish__star > span { animation: kabu-finish-spin 3s linear infinite reverse; }
}

/* phones listing: brand and New / Used chips, each row with a small label (the owner, 29 Nov) */
.chip-row--phones { align-items: center; margin-top: 0.5rem; }
.chip-row__label { flex: none; align-self: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; color: var(--muted, #6b6b6b); min-width: 4.6rem; }

/* Kabu's first question (Phone or tablet?): smaller names and counts under the pictures, so the pictures lead (the owner, 29 Nov) */
.bubbles--quiz .bubble__name, .bubbles--quiz .bubble--l .bubble__name { font-size: var(--step--1); }
.bubbles--quiz .bubble__count { font-size: 0.72rem; }

/* ---- why Kabu picks a phone (30 Nov 2026): under Kabu's pick, its 2-3 reasons; one short line under the others ---- */
.kq-why { margin: 0 var(--space-3) var(--space-3); padding: 0.6rem 0.75rem; border-radius: 12px; background: linear-gradient(135deg, rgba(123, 92, 255, 0.1), rgba(253, 84, 11, 0.08)); font-size: var(--step--1); }
.kq-why__title { margin: 0 0 0.3rem; font-family: var(--font-display); font-weight: 800; color: #4B2FD1; }
.kq-why__title::before { content: '✦ '; }
.kq-why__list { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.kq-why__list li { position: relative; padding-inline-start: 1.05rem; }
.kq-why__list li::before { content: ''; position: absolute; inset-inline-start: 0.1rem; inset-block-start: 0.5em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--kt-orange); }
.kq-why--one { padding: 0.4rem 0.6rem; background: var(--kt-paper); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .kq-why { animation: kq-why-in 520ms cubic-bezier(.2,.8,.2,1) 300ms backwards; } @keyframes kq-why-in { from { opacity: 0; transform: translateY(8px); } } }
