/* =========================================================================
   Zet AI page (/<locale>/zet-ai/)
   -------------------------------------------------------------------------
   Loaded on this page only. The chat vocabulary it shares with the home page
   (.chat, .msg, .stamp, .avatar, .kicker) lives in zeetius.css; this file is
   the parts only this page has. Logical properties throughout, so Arabic
   mirrors without a second stylesheet.
   ========================================================================= */

/* ---------- Hero ---------------------------------------------------------- */

.zt-hero { padding-block: clamp(2rem, 4vw, 2.75rem) clamp(3.5rem, 7vw, 5.5rem); }
.zt-hero__grid { display: grid; gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: center; margin-block-start: var(--s-5); }
@media (min-width: 62rem) { .zt-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.zt-hero__copy { display: grid; gap: var(--s-5); justify-items: start; min-inline-size: 0; }
.zt-hero h1 { max-inline-size: 14ch; }
.zt-hero .hero__actions { margin-block-start: var(--s-2); }

.zt-hero__facts { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); }
.zt-hero__facts li { display: grid; gap: 2px; }
.zt-hero__facts strong { font-family: var(--font-stat); font-size: var(--t-2xl); font-weight: 800; line-height: 1; color: var(--orange); }
.zt-hero__facts span { font-size: var(--t-sm); color: var(--fg-muted); }

/* The figure stands in a lit circle, with one localised bubble and two chips
   around it — the same composition as the Academy hero render, built from
   HTML here so the words are in the reader's language. */
.zt-hero__art { position: relative; justify-self: center; inline-size: min(100%, 27rem); padding-block: var(--s-6) var(--s-4); }
.zt-hero__art img { position: relative; z-index: 1; inline-size: 72%; margin-inline: auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.45)); }
.zt-hero__halo {
  position: absolute;
  inset: 8% 4% 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgb(86 193 225 / 0.38), rgb(24 159 216 / 0.12) 48%, transparent 70%);
  border: 1px solid rgb(86 193 225 / 0.18);
}
.zt-hero__bubble {
  position: absolute;
  z-index: 2;
  inset-block-start: 4%;
  inset-inline-start: -4%;
  max-inline-size: 13rem;
  padding: 0.75rem 1rem;
  border-radius: 16px 16px 16px 4px;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 700;
  font-size: var(--t-sm);
  line-height: 1.35;
  box-shadow: 0 16px 32px -16px rgb(0 0 0 / 0.6);
  animation: zt-float 6s var(--ease-in-out) infinite;
}
:root[dir="rtl"] .zt-hero__bubble { border-radius: 16px 16px 4px 16px; }
.zt-hero__chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgb(14 42 58 / 0.86);
  border: 1px solid rgb(86 193 225 / 0.35);
  color: var(--white);
  font-size: var(--t-xs);
  font-weight: 700;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.zt-hero__chip::before { content: ''; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--orange); }
.zt-hero__chip--a { inset-block-start: 42%; inset-inline-end: -2%; }
.zt-hero__chip--b { inset-block-end: 12%; inset-inline-start: 0; }
.zt-hero__chip--b::before { background: #4ADE80; }
@keyframes zt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 47.99rem) {
  .zt-hero__art { inline-size: min(100%, 20rem); }
  .zt-hero__bubble { inset-inline-start: 0; max-inline-size: 10.5rem; }
}

/* ---------- Definition ---------------------------------------------------- */

.zt-define__text {
  max-inline-size: 70ch;
  font-size: var(--t-md);
  line-height: 1.7;
  color: var(--fg);
}
.zt-define__text strong { color: var(--fg-strong); }
.zt-define__text a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Demo ---------------------------------------------------------- */

.zt-demo { max-inline-size: 46rem; margin-inline: auto; }
.zt-replay {
  display: grid;
  place-items: center;
  inline-size: 2.4rem;
  block-size: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.1);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out);
}
.zt-replay svg { inline-size: 16px; block-size: 16px; }
.zt-replay:hover { background: rgb(255 255 255 / 0.22); }
.zt-replay:focus-visible { outline-color: var(--white); }

.zt-roles { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-block-end: 1px solid var(--line); background: var(--mist); }
@media (min-width: 40rem) { .zt-roles { grid-template-columns: auto minmax(0, 1fr); align-items: center; } }
.zt-roles__label { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.zt-roles__seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  inline-size: fit-content;
  max-inline-size: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.zt-roles__seg::-webkit-scrollbar { display: none; }
.zt-roles__btn {
  flex: none;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.zt-roles__btn:hover { background: var(--mist); }
.zt-roles__btn[aria-checked="true"] { background: var(--navy-900); color: var(--white); }

.zt-thread { min-block-size: 15rem; }
.zt-thread .msg__text { transition: opacity var(--dur-2) var(--ease-out); }
.msg--bot.is-thinking .msg__text { color: var(--ink-3); font-style: italic; }
.msg--bot.is-thinking .stamp { visibility: hidden; }
.msg.is-hidden { visibility: hidden; }
.zt-caret::after {
  content: '';
  display: inline-block;
  inline-size: 2px;
  block-size: 1em;
  margin-inline-start: 2px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: zt-blink 0.8s steps(2) infinite;
}
@keyframes zt-blink { to { opacity: 0; } }

/* ---------- Two kinds ------------------------------------------------------ */

.zt-two { display: grid; gap: var(--s-5); }
@media (min-width: 56rem) { .zt-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); } }
.zt-two__col {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: var(--s-6);
  border-radius: var(--r-4);
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--white), var(--mist));
  box-shadow: var(--shadow-card);
  min-inline-size: 0;
}
.zt-two__col h3 { font-size: var(--t-lg); }
.board__icon--orange { background: var(--orange-tint); color: var(--orange-ink); }
.stamp--blue { color: var(--blue-ink); }
.zt-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.zt-chips li {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy-900);
  font-size: var(--t-sm);
  font-weight: 600;
}

/* ---------- Modules -------------------------------------------------------- */

.zt-modules__head { display: grid; gap: var(--s-5); align-items: end; margin-block-end: var(--s-7); }
.zt-modules__head .section-head { margin-block-end: 0; }
@media (min-width: 62rem) { .zt-modules__head { grid-template-columns: minmax(0, 1fr) auto; } }

.zt-peek { position: relative; inline-size: 5.5rem; justify-self: end; }
.zt-peek img { inline-size: 100%; filter: drop-shadow(0 10px 18px rgb(14 42 58 / 0.3)); }
.zt-peek__bubble {
  position: absolute;
  inset-block-start: 0.25rem;
  inset-inline-end: calc(100% + 0.5rem);
  inline-size: max-content;
  max-inline-size: 12rem;
  padding: 0.6rem 0.85rem;
  border-radius: 14px 14px 4px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy-900);
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1.35;
  box-shadow: var(--shadow-card);
}
:root[dir="rtl"] .zt-peek__bubble { border-radius: 14px 14px 14px 4px; }
@media (max-width: 61.99rem) { .zt-peek { display: none; } }

.zt-modules { display: grid; gap: var(--s-4); }
@media (min-width: 62rem) { .zt-modules { grid-template-columns: 17rem minmax(0, 1fr); gap: var(--s-6); align-items: start; } }
.zt-modules__rail { display: flex; gap: var(--s-2); overflow-x: auto; padding-block-end: var(--s-2); scrollbar-width: thin; }
@media (min-width: 62rem) {
  .zt-modules__rail { flex-direction: column; overflow: visible; padding: var(--s-2); border-radius: var(--r-3); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
}
.zt-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.65rem 0.95rem;
  border-radius: var(--r-2);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-900);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
@media (min-width: 62rem) { .zt-tab { border-color: transparent; } }
.zt-tab:hover { border-color: var(--navy-900); }
.zt-tab__n {
  display: grid; place-items: center;
  inline-size: 1.6rem; block-size: 1.6rem;
  border-radius: 8px;
  background: var(--orange-tint);
  color: var(--orange-ink);
  font-size: var(--t-xs);
  font-weight: 800;
  flex: none;
}
.zt-tab[aria-selected="true"] { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.zt-tab[aria-selected="true"] .zt-tab__n { background: var(--orange); color: var(--navy-900); }
.zt-modules__stage {
  padding: var(--s-6);
  border-radius: var(--r-4);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-raised);
  min-block-size: 14rem;
}
@media (min-width: 62rem) { .zt-modules__stage { position: sticky; inset-block-start: calc(var(--header-h) + var(--s-5)); } }
.zt-exchange { display: grid; gap: var(--s-4); animation: zt-in 0.35s var(--ease-out); }
.zt-exchange:focus-visible { outline-offset: 8px; }
@keyframes zt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Roles table ---------------------------------------------------- */

.zt-table-wrap { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--white); box-shadow: var(--shadow-card); }
.zt-table { inline-size: 100%; min-inline-size: 44rem; border-collapse: collapse; font-size: var(--t-sm); }
.zt-table th, .zt-table td { padding: 0.9rem 1rem; text-align: start; border-block-end: 1px solid var(--line); vertical-align: middle; }
.zt-table thead th { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.04em; color: var(--ink-3); background: var(--mist); }
.zt-table tbody th { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.zt-table tbody tr:last-child > * { border-block-end: 0; }
.zt-table td[data-v] { font-weight: 700; white-space: nowrap; }
.zt-table td[data-v="y"] { color: var(--ok-ink); }
.zt-table td[data-v="n"] { color: var(--stop-ink); }
.zt-table td[data-v="o"] { color: var(--blue-ink); }
.zt-table td[data-v]::before { content: ''; display: inline-block; inline-size: 0.55rem; block-size: 0.55rem; border-radius: 50%; margin-inline-end: 0.5rem; background: currentColor; }

/* ---------- Governance ----------------------------------------------------- */

.zt-shield { position: relative; inline-size: 6.5rem; block-size: 6.5rem; display: grid; place-items: center; justify-self: end; }
.zt-shield svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; color: rgb(255 255 255 / 0.1); }
.zt-shield img { position: relative; inline-size: 4rem; }
.zt-shield .zt-peek__bubble { inset-inline-end: calc(100% + 0.25rem); border: 0; }
@media (max-width: 61.99rem) { .zt-shield { display: none; } }

.zt-compliance { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 40rem) { .zt-compliance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .zt-compliance { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zt-compliance__item { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border-radius: var(--r-3); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.14); }
.zt-compliance__flag { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border-radius: 12px; background: var(--orange); color: var(--navy-900); font-size: var(--t-sm); font-weight: 800; letter-spacing: 0.04em; }
.zt-compliance__item h3 { font-size: var(--t-base); margin-block-end: 4px; }
.zt-compliance__item p { font-size: var(--t-sm); color: var(--fg-muted); line-height: 1.55; }
.zt-trust__note { margin-block-start: var(--s-5); color: var(--fg); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: baseline; }
.go--inline { display: inline-flex; font-size: var(--t-base); }

.zt-steps__title { font-size: var(--t-lg); margin-block: var(--s-8) var(--s-4); }
.zt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 40rem) { .zt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .zt-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zt-step { padding: var(--s-5); border-radius: var(--r-3); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.12); min-inline-size: 0; }
.zt-step__n { display: grid; place-items: center; inline-size: 2.4rem; block-size: 2.4rem; border-radius: 12px; background: var(--blue); color: var(--white); font-family: var(--font-stat); font-weight: 800; margin-block-end: var(--s-3); }
.zt-step:nth-child(even) .zt-step__n { background: var(--orange); color: var(--navy-900); }
.zt-step__t { font-size: var(--t-md); margin-block-end: 6px; }
.zt-step__d { font-size: var(--t-sm); line-height: 1.6; color: var(--fg-muted); }

/* ---------- Languages ------------------------------------------------------ */

.zt-langs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.zt-langs__item { display: grid; gap: 6px; padding: var(--s-4) var(--s-5); border-radius: var(--r-3); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.zt-langs__item[aria-current="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px rgb(246 162 30 / 0.18); }
.zt-langs__name { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.zt-langs__q { font-size: var(--t-base); font-weight: 600; color: var(--navy-900); }
.zt-langs__item:lang(ar) .zt-langs__q { font-family: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif; }

/* ---------- Motion ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .zt-hero__bubble, .zt-caret::after, .zt-exchange { animation: none; }
}
