/* =============================================================================
   AKA SHOWROOM STUDIO (CL-292, Frank 2026-11-29). Markup + behaviour: /js/akarec-showroom-studio.js.
   The Studio is AKAREC's tool, so it wears AKAREC's dark glass (like the top strip and the Mix bar), never the sample's look.
   Colors inside it that DO follow the sample (the palette line on top, the fold tab's dots, the kit) read --sr-* from the Showroom.
   A computer: docked right, the page sits beside it (room kept by html.ak-studio-open from 1280 px). Folded: a tall tab on the right edge.
   A phone: a sheet over the lower part of the screen, above the bottom bar, page visible on top.
   ============================================================================= */
.aks, .aks-fold, .aks-note, .ak-sr-end {
  --aks-bg: #0A111F; --aks-ink: #FAF8F5; --aks-dim: #B6C2D2; --aks-line: rgba(255, 255, 255, 0.13);
  --aks-amber: #F59E0B; --aks-citron: #FDE047; --aks-w: 360px; --aks-gap: 12px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.aks {
  position: fixed; z-index: 1500;
  top: calc(var(--ak-strip-h, 48px) + var(--aks-gap)); right: var(--aks-gap); bottom: 84px; width: var(--aks-w);
  display: flex; flex-direction: column; overflow: hidden;
  color: var(--aks-ink); font-size: 14px; line-height: 1.5;
  background: linear-gradient(180deg, #0F182A 0%, #060A12 100%);
  border: 1px solid rgba(245, 158, 11, 0.42); border-radius: 18px;
  box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: aksIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.aks[hidden], .aks-fold[hidden] { display: none; }
/* the sample's live palette, as a line of light along the top edge */
.aks::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--sr-accent, #F59E0B), var(--sr-accent-2, #FDE047) 55%, transparent);
}
@keyframes aksIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes aksUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.aks__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px 18px; flex: none; }
.aks__title { margin: 0; font: 700 1.3rem/1.15 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; color: var(--aks-ink); }
.aks__hide {
  flex: none; min-height: 40px; padding: 0 12px 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--aks-line); background: rgba(255, 255, 255, 0.05); color: var(--aks-ink);
  font: 600 0.82rem/1 'Inter', system-ui, sans-serif; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.aks__hide span { font-size: 1.1rem; line-height: 1; }
.aks__hide:hover { border-color: var(--aks-amber); background: rgba(245, 158, 11, 0.12); }
.aks__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
.aks__intro p { margin: 0 0 8px; font-size: 0.88rem; line-height: 1.5; color: var(--aks-dim); }
.aks__intro p:first-child { color: var(--aks-ink); }

.aks__tabs {
  position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  margin: 10px -4px 0; padding: 4px; border-radius: 14px;
  background: #0C1424; border: 1px solid var(--aks-line); box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.9);
}
.aks__tab {
  min-height: 58px; padding: 7px 2px 6px; border: 0; border-radius: 10px; cursor: pointer; background: transparent; color: var(--aks-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font: 600 0.72rem/1.15 'Inter', system-ui, sans-serif; text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.aks__tab:hover { color: var(--aks-ink); background: rgba(255, 255, 255, 0.06); }
.aks__tab[aria-selected="true"] { background: linear-gradient(180deg, #FBBF24 0%, var(--aks-amber) 100%); color: #060A12; box-shadow: 0 6px 16px -8px rgba(245, 158, 11, 0.9); }
.aks__note { margin: 10px 0 0; font-size: 0.74rem; line-height: 1.45; color: #94A3B8; }
.aks__panel { padding-top: 14px; }
.aks__panel[hidden] { display: none; }
.aks :focus-visible { outline: 2px solid var(--aks-citron); outline-offset: 2px; }

/* ---- Colors: the site's Mix the brand colors, moved in whole (js/akarec-brand-mixer.js hostIn) ---- */
.aks .bm-swatches { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px; }
.aks .bm-swatch { grid-column: span 3; font-size: 0.78rem; line-height: 1.25; }
.aks .bm-swatch--own { grid-column: span 2; text-align: center; align-items: center; font-size: 0.74rem; }
.aks .bm-swatch--own .bm-swatch__chip { height: 40px; }
.aks .bm-actions { margin-top: 12px; }
.aks .bm-btn { min-height: 44px; }

/* ---- Layout, Type & buttons ---- */
.aks-group + .aks-group, .aks-switches { margin-top: 16px; }
.aks-label { display: block; margin-bottom: 8px; font: 700 0.68rem/1 'Inter', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #D4B483; }
.aks-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aks-opt {
  min-height: 44px; padding: 10px 6px; border-radius: 12px; cursor: pointer; color: var(--aks-ink);
  border: 1px solid var(--aks-line); background: rgba(255, 255, 255, 0.04);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center;
  font: 600 0.8rem/1.2 'Inter', system-ui, sans-serif;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.aks-opt:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.45); }
.aks-opt.is-active { border-color: var(--aks-citron); background: rgba(245, 158, 11, 0.14); box-shadow: 0 0 18px -4px rgba(245, 158, 11, 0.6); }
.aks-opt small { font-size: 0.64rem; line-height: 1.25; font-weight: 500; color: var(--aks-dim); }
.aks-sketch { width: 100%; max-width: 78px; height: auto; display: block; fill: currentColor; opacity: 0.9; }
.aks-sketch .a { fill: var(--sr-accent, #F59E0B); }
.aks-aa { font-size: 1.9rem; line-height: 1; font-weight: 500; }
.aks-shape { display: block; width: 78%; height: 22px; background: var(--sr-accent, #F59E0B); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
.aks-opts--seg { gap: 0; padding: 3px; border-radius: 12px; border: 1px solid var(--aks-line); background: rgba(255, 255, 255, 0.04); }
.aks-opts--seg[data-attr="theme"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aks-opts--seg .aks-opt { min-height: 40px; padding: 6px; border: 0; border-radius: 9px; background: transparent; }
.aks-opts--seg .aks-opt:hover { transform: none; background: rgba(255, 255, 255, 0.07); }
.aks-opts--seg .aks-opt.is-active { background: #FAF8F5; color: #060A12; box-shadow: none; }
.aks-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 4px 0; cursor: pointer; font-size: 0.86rem; font-weight: 500; border-top: 1px solid var(--aks-line); }
.aks-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aks-switch i { flex: none; position: relative; width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid var(--aks-line); transition: background-color 0.2s ease; }
.aks-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #FAF8F5; transition: transform 0.2s ease; }
.aks-switch input:checked + i { background: var(--aks-amber); border-color: var(--aks-citron); }
.aks-switch input:checked + i::after { transform: translateX(20px); background: #060A12; }
.aks-switch input:focus-visible + i { outline: 2px solid var(--aks-citron); outline-offset: 2px; }

/* ---- Your brand kit (Gemini's mini kit, built live) ---- */
.aks-kit { display: grid; gap: 12px; }
.aks-kit__logos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aks-kit__tile { display: grid; place-items: center; gap: 8px; padding: 16px 8px 10px; border-radius: 12px; border: 1px solid var(--aks-line); }
.aks-kit__tile small { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.aks-kit__tile--light { background: var(--sr-paper-light, #F8F7F4); color: #0B0D12; }
/* the logo's color on each tile: a Showroom may set --sr-kit-logo-light / --sr-kit-logo-dark in its :root block */
.aks .aks-kit .aks-kit__tile--light .sr-logo-slot { color: var(--sr-kit-logo-light, var(--sr-accent-2-text, #6F5B1D)); }
.aks .aks-kit .aks-kit__tile--dark .sr-logo-slot { color: var(--sr-kit-logo-dark, var(--sr-accent-2, #D4AF37)); }
.aks-kit__tile--dark { background: var(--sr-line, #0F1F38); color: #F8F7F4; }
.aks-kit__swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.aks-kit__swatches div { display: grid; gap: 3px; text-align: center; min-width: 0; }
.aks-kit__swatches i { display: block; height: 40px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.28); }
.aks-kit__swatches b { font-size: 0.66rem; font-weight: 600; }
.aks-kit__swatches span { font: 500 0.6rem/1.2 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--aks-dim); overflow-wrap: anywhere; }
.aks-kit__meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 0.8rem; padding: 12px; border-radius: 12px; border: 1px solid var(--aks-line); background: rgba(255, 255, 255, 0.04); }
.aks-kit__meta dt { color: var(--aks-dim); }
.aks-kit__meta dd { margin: 0; font-weight: 600; text-align: right; }
.aks-kit__btn { display: grid; place-items: center; padding: 16px 10px; border-radius: 12px; background: var(--sr-paper, #F8F7F4); border: 1px solid var(--aks-line); }
.aks-kit__btn .sr-btn { pointer-events: none; }
.aks-kit__copy { display: flex; align-items: center; gap: 10px; }
.aks-kit__copy span { font-size: 0.78rem; color: var(--aks-citron); }
.aks-kit__note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--aks-line); font-size: 0.8rem; line-height: 1.5; color: var(--aks-dim); }
.aks-kit__note strong { display: block; margin-bottom: 3px; color: var(--aks-ink); font-size: 0.88rem; }

/* ---- the end of the Studio, and the band after the page's last section ---- */
.aks__end { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--aks-line); }
.aks__end p { margin: 0 0 12px; font-size: 0.84rem; line-height: 1.5; color: var(--aks-dim); }
.aks__end strong, .ak-sr-end strong { color: var(--aks-ink); }
.aks__end strong { display: block; margin-bottom: 2px; font-size: 0.95rem; }
.aks__end-btns { display: grid; gap: 8px; }
.aks-cta, .aks-send {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 16px; border-radius: 10px;
  font: 700 0.86rem/1.2 'Inter', system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.aks-cta { background: var(--mx-pri, #F59E0B); color: var(--mx-on-pri, #060A12); border: 1px solid transparent; }
.aks-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.aks-send { background: rgba(255, 255, 255, 0.05); color: var(--aks-ink); border: 1px solid rgba(250, 248, 245, 0.42); font-weight: 600; }
.aks-send:hover { transform: translateY(-2px); border-color: var(--aks-citron); background: rgba(245, 158, 11, 0.12); }
.ak-sr-end { background: #060A12; color: var(--aks-dim); border-top: 1px solid rgba(245, 158, 11, 0.35); padding: 44px max(16px, 5%); }
.ak-sr-end__in { max-width: 760px; margin: 0 auto; text-align: center; }
.ak-sr-end p { margin: 0 0 20px; font-size: 1rem; line-height: 1.6; }
.ak-sr-end strong { display: block; margin-bottom: 6px; font: 700 1.5rem/1.2 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; }
.ak-sr-end__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ak-sr-end .aks-cta, .ak-sr-end .aks-send { min-height: 48px; padding: 10px 22px; }
.ak-sr-end a:focus-visible { outline: 2px solid var(--aks-citron); outline-offset: 2px; }

/* ---- folded: the tall tab on the right edge (never a tiny icon) ---- */
.aks-fold {
  position: fixed; z-index: 1500; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 50px; padding: 18px 12px;
  border: 1px solid rgba(245, 158, 11, 0.55); border-right: 0; border-radius: 16px 0 0 16px; cursor: pointer;
  background: linear-gradient(180deg, #111B30 0%, #060A12 100%); color: var(--aks-ink);
  box-shadow: -12px 16px 34px -14px rgba(0, 0, 0, 0.75), 0 0 26px -6px rgba(245, 158, 11, 0.55);
  transition: padding 0.2s ease, box-shadow 0.2s ease;
  animation: aksIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.aks-fold:hover { padding-right: 18px; box-shadow: -14px 18px 38px -14px rgba(0, 0, 0, 0.8), 0 0 34px -4px rgba(245, 158, 11, 0.8); }
.aks-fold:focus-visible { outline: 2px solid var(--aks-citron); outline-offset: 2px; }
.aks-fold__text { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 0.92rem/1 'Inter', system-ui, sans-serif; letter-spacing: 0.04em; white-space: nowrap; }
.aks-fold__dots { display: flex; flex-direction: column; }
.aks-fold__dots i { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #060A12; margin-top: -6px; }
.aks-fold__dots i:first-child { margin-top: 0; background: var(--sr-accent, #F59E0B); }
.aks-fold__dots i:nth-child(2) { background: var(--sr-accent-2, #FDE047); }
.aks-fold__dots i:nth-child(3) { background: var(--sr-line, #0284C7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }

/* ---- a computer with room: the page sits beside the open Studio (the head script sets the class before first paint, so nothing jumps) ---- */
@media (min-width: 1280px) {
  html.ak-studio-open body { padding-right: calc(var(--aks-w, 360px) + 24px); }
  html.ak-studio-open .ak-sr-strip { margin-right: calc((var(--aks-w, 360px) + 24px) * -1); }
  html.ak-studio-open main h1 { font-size: clamp(38px, 4.4vw, 62px); }
  html.ak-studio-open .ak-sr-end { margin-right: 0; }
}
html { --aks-w: 360px; }

/* ---- a phone: a sheet over the lower part of the screen, above the bottom bar ---- */
.aks-note {
  position: fixed; z-index: 390; top: calc(var(--ak-strip-h, 48px) + 8px); left: 10px; right: 10px; margin: 0; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; border-radius: 12px; font-size: 0.86rem; line-height: 1.35; font-weight: 600;
  background: rgba(6, 10, 18, 0.94); color: var(--aks-ink); border: 1px solid rgba(245, 158, 11, 0.5); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
  animation: aksNote 9s ease both; pointer-events: none;
}
.aks-note span { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--aks-citron); box-shadow: 0 0 0 4px rgba(253, 224, 71, 0.22); }
@keyframes aksNote { 0% { opacity: 0; transform: translateY(-8px); } 5%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (max-width: 767px) {
  .aks {
    top: auto; left: 8px; right: 8px; bottom: 72px; width: auto;
    height: calc(70vh - 72px); height: calc(70dvh - 72px); max-height: calc(100dvh - var(--ak-strip-h, 48px) - 84px);
    border-radius: 18px; animation-name: aksUp;
    box-shadow: 0 -18px 50px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .aks__head { padding: 12px 12px 8px 16px; }
  .aks__title { font-size: 1.12rem; }
  .aks__scroll { padding: 0 12px 14px 14px; }
  .aks--seen .aks__intro { display: none; }
  .aks--seen .aks__tabs { margin-top: 2px; }
  .aks__tab { min-height: 54px; }
  .aks-fold { display: none; }
  /* the mixer's phone rules turn its swatches into a sideways strip; in the Studio they stay a grid */
  .aks .bm-swatches { display: grid; grid-template-rows: none; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; max-height: none; padding: 0; margin: 0; order: 0; }
  .aks .bm-swatch { font-size: 0.76rem; padding: 0.45rem 0.4rem; }
  .aks .bm-swatch__chip { height: 26px; }
  .aks .bm-swatch--own .bm-swatch__chip { height: 34px; }
  .ak-sr-end { padding: 36px 16px; }
  .ak-sr-end strong { font-size: 1.3rem; }
  .ak-sr-end__btns { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .aks, .aks-fold { animation: none; }
  .aks-note { animation: none; }
  .aks-opt, .aks-cta, .aks-send, .aks__hide, .aks-fold, .aks__tab, .aks-switch i, .aks-switch i::after { transition: none; }
  .aks-opt:hover, .aks-cta:hover, .aks-send:hover { transform: none; }
}
