/*
  WEBKMT mission sections — Phase 1 Step 2 (2026-11-04)
  ---------------------------------------------------------------------------
  Styles for the A2-ordered marketing narrative rebuilt on the --dt-* token
  system: floating blur nav (B7 + owner ruling C3), B5 hero gradient heading
  (the only allowed gradient), B11 tagline word reveal, bento showcase,
  FAQ bars, risk reversal, final CTA over the owner's Riyadh map, skip link
  and the B7 mobile menu stagger.
  Load order: after css/poster.css. Public pages only.
  All colours resolve through --dt-* tokens; the two literal gradients below
  are the B5 heading gradient, explicitly the single permitted gradient.
*/

/* ---------- Skip link (B10) -------------------------------------------- */
.dt-skiplink {
  position: absolute;
  inset-inline-start: var(--dt-space-400);
  top: -64px;
  z-index: 120;
  background: var(--dt-accent-deep);
  color: var(--dt-ink-on-accent);
  padding: var(--dt-space-200) var(--dt-space-300);
  border-radius: var(--dt-radius-lg);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  transition: top var(--dt-duration-hover) var(--dt-ease-base);
}
.dt-skiplink:focus { top: var(--dt-space-300); }

/* ---------- Floating centred nav (B7, C3 brief supersedes) -------------- */
body.wk26 .header-enhanced {
  position: sticky;
  top: var(--dt-space-300);
  z-index: 80;
  max-width: 960px;
  margin-inline: auto;
  background: var(--dt-elev-1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--dt-hairline);
  border-radius: var(--dt-radius-full);
}
body.wk26 .header-enhanced .container { padding-block: var(--dt-space-200); }
body.wk26 .hamburger-enhanced .hamburger-line {
  transition: transform var(--dt-duration-hover) var(--dt-ease-base),
              opacity var(--dt-duration-hover) var(--dt-ease-base);
}
body.wk26 .hamburger-enhanced.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.wk26 .hamburger-enhanced.active .hamburger-line:nth-child(2) { opacity: 0; }
body.wk26 .hamburger-enhanced.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu: full-height panel, links rise 24px + fade, 60ms stagger,
   total capped at 400ms (B7). */
@keyframes wk26-menu-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
body.wk26 .mobile-menu-enhanced.active .mobile-nav-link {
  animation: wk26-menu-rise var(--dt-duration-base) var(--dt-ease-base) both;
}
body.wk26 .mobile-menu-enhanced.active .mobile-nav-menu li:nth-child(1) .mobile-nav-link { animation-delay: 0ms; }
body.wk26 .mobile-menu-enhanced.active .mobile-nav-menu li:nth-child(2) .mobile-nav-link { animation-delay: 60ms; }
body.wk26 .mobile-menu-enhanced.active .mobile-nav-menu li:nth-child(3) .mobile-nav-link { animation-delay: 120ms; }
body.wk26 .mobile-menu-enhanced.active .mobile-nav-menu li:nth-child(4) .mobile-nav-link { animation-delay: 180ms; }
body.wk26 .mobile-menu-enhanced.active .mobile-nav-menu li:nth-child(5) .mobile-nav-link { animation-delay: 240ms; }
body.wk26 .mobile-menu-enhanced.active .mobile-nav-menu li:nth-child(6) .mobile-nav-link { animation-delay: 300ms; }
body.wk26 .mobile-menu-enhanced.active .mobile-nav-menu li:nth-child(7) .mobile-nav-link { animation-delay: 360ms; }
body.wk26 .mobile-menu-enhanced.active .mobile-nav-menu li:nth-child(n+8) .mobile-nav-link { animation-delay: 400ms; }

/* ---------- Hero (A2 + B5) ---------------------------------------------- */
body.wk26 .wk26-hero--p1 {
  min-height: 0;
  padding: var(--dt-space-900) var(--margin) var(--dt-space-800);
  display: block;
}
.wk26-hero__grid {
  display: grid;
  gap: var(--dt-space-600);
  grid-template-columns: 1fr;
  align-items: center;
  max-width: 1280px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .wk26-hero__grid { grid-template-columns: 7fr 5fr; }
}
.wk26-hero__eyebrow { margin: 0 0 var(--dt-space-300); }
.wk26-hero__title { max-width: 680px; margin: 0 0 var(--dt-space-400); }  /* B5 cap */
/* B5: the single permitted gradient — heading text only. */
.wk26-grad {
  background-image: linear-gradient(180deg, #000000 0%, #666666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .wk26-grad {
  background-image: linear-gradient(180deg, #FFFFFF 0%, #9B9B9B 100%);
}
.wk26-hero__sub { max-width: 680px; color: var(--dt-ink-muted); margin: 0 0 var(--dt-space-500); }
.wk26-hero__cta {
  display: flex;
  align-items: center;
  gap: var(--dt-space-400);
  flex-wrap: wrap;
  margin: 0 0 var(--dt-space-400);
}
.wk26-cta-primary {
  background: var(--dt-accent-deep);
  color: var(--dt-ink-on-accent);
  border-color: var(--dt-accent-deep);
}
.wk26-cta-primary:hover {
  background: var(--dt-accent-primary);
  border-color: var(--dt-accent-primary);
  box-shadow: var(--dt-glow-bright);
}
.wk26-hero__prices-link { color: var(--dt-accent-text); text-decoration: none; font-weight: 500; }
.wk26-hero__prices-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.wk26-hero__proof { max-width: 62ch; margin: 0; }
.wk26-hero__visual {
  position: relative;
  padding: var(--dt-space-500);
  display: flex;
  flex-direction: column;
  gap: var(--dt-space-400);
}
.wk26-hero__visual img { width: 100%; height: auto; display: block; }

/* ---------- B11 tagline reveal ------------------------------------------ */
body.wk26 .wk26-tagline {
  padding: var(--dt-space-900) var(--margin);
  display: grid;
  gap: var(--dt-space-400);
  justify-items: center;
  text-align: center;
}
.wk26-tagline__line { max-width: 34ch; margin: 0; }
.wk26-tagline__line .wk26-word {
  opacity: 0.3;                       /* B11: words rest at 25–35% */
  transition: opacity var(--dt-duration-base) var(--dt-ease-base);
}
.wk26-tagline__line .wk26-word.is-on { opacity: 1; }
.wk26-tagline__sig { color: var(--dt-ink-muted); }
@media (prefers-reduced-motion: reduce) {
  .wk26-tagline__line .wk26-word { opacity: 1; transition: none; }
}

/* ---------- Section heads + bento showcase ------------------------------ */
body.wk26 .wk26-sec-head {
  max-width: 680px;
  margin: 0 0 var(--dt-space-700);
  display: grid;
  gap: var(--dt-space-300);
}
.wk26-sec-sub { color: var(--dt-ink-muted); }
body.wk26 .wk26-bento-sec .dt-bento-cell {
  display: flex;
  flex-direction: column;
  gap: var(--dt-space-300);
}
.wk26-ben-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: var(--dt-radius-lg);   /* nested inside 12px cell, gap 16 -> kept lg for image only */
}
body.wk26 .dt-span-2.dt-row-2 .wk26-ben-img { height: 260px; }
.wk26-chip {
  align-self: flex-start;
  margin: 0;
  background: color-mix(in srgb, var(--dt-accent-bright) 18%, var(--dt-bg-surface));
  color: var(--dt-accent-text);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  padding: var(--dt-space-100) var(--dt-space-300);
  border-radius: var(--dt-radius-full);
  font-variant-numeric: tabular-nums;
}
.wk26-ben-cta {
  align-self: flex-start;
  margin-top: auto;
  background: transparent;
  color: var(--dt-accent-text);
  border-color: var(--dt-hairline-strong);
}
.wk26-ben-cta:hover { border-color: var(--dt-accent-muted); box-shadow: var(--dt-glow-bright); }
body.wk26 button.dt-bento-cell { font: inherit; text-align: start; }

/* ---------- How it works: three steps ----------------------------------- */
body.wk26 .wk26-steps__grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  body.wk26 .wk26-steps__grid--3 { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------------------------------------------------------- */
body.wk26 .wk26-faq__col {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: var(--dt-space-200);
}
body.wk26 .wk26-faq .wk26-bar {
  background: var(--dt-elev-1);
  border: 1px solid var(--dt-hairline);
}
body.wk26 .wk26-faq .wk26-bar summary span { font-weight: 600; }

/* ---------- Risk reversal ------------------------------------------------- */
body.wk26 .wk26-risk {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--dt-space-400);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  body.wk26 .wk26-risk { grid-template-columns: 1fr; }
}
.wk26-risk__item {
  display: grid;
  gap: var(--dt-space-300);
  align-content: start;
  padding: var(--dt-space-500);
}
.wk26-risk__item .dt-badge { justify-self: start; }

/* ---------- Final CTA over the Riyadh map --------------------------------- */
body.wk26 .wk26-final {
  position: relative;
  padding: var(--dt-space-900) var(--margin);
  background: var(--dt-slab);
  color: var(--dt-slab-ink);
  overflow: hidden;
}
body.wk26 .wk26-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/riyadh-map.png") center / cover no-repeat;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.16;
  pointer-events: none;
}
.wk26-final__in {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: var(--dt-space-400);
  justify-items: center;
}
body.wk26 .wk26-final .caption-2 { color: var(--dt-slab-ink); opacity: 0.85; }

/* ---------- Riyadh map in the foundations tile ---------------------------- */
body.wk26 .wk26-about__map img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--dt-radius-lg);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
html[data-theme="dark"] body.wk26 .wk26-about__map img {
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* ---------- Legal + 404 pages (B10) -------------------------------------- */
body.wk26 .wk26-legal {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: var(--dt-space-500);
}
.wk26-legal__sub { color: var(--dt-ink-muted); max-width: 62ch; }
.wk26-legal__col { display: grid; gap: var(--dt-space-400); }
.wk26-legal__col h2 { margin-top: var(--dt-space-400); }
.wk26-legal__ar {
  display: grid;
  gap: var(--dt-space-400);
  border-top: 1px solid var(--dt-hairline);
  padding-top: var(--dt-space-600);
}
body.wk26 .wk26-legal a { color: var(--dt-accent-text); }

/* ==========================================================================
   Step 2b owner revisions: bento tools, output grid, footer, modal retint
   ========================================================================== */

/* Bento tool triggers: stacked type inside the 1-col cells ----------------- */
body.wk26 .dt-bento .dt-cell-action {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--dt-space-200);
  min-height: 148px;
}
body.wk26 .dt-bento .dt-cell-action .caption-5 { margin-top: auto; }

/* ---------- What you actually get: dossier panel + hairline slip cards --- */
.wk26-out__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--dt-space-400);
  align-items: start;
}
.wk26-out__panel {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--dt-elev-1);
  border: 1px solid var(--dt-hairline);
  border-radius: var(--dt-radius-xl);
}
.wk26-out__panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.wk26-out__panel figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: var(--dt-space-300) var(--dt-space-400);
  background: var(--dt-elev-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--dt-hairline);
  color: var(--dt-ink);
}
.wk26-out__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dt-space-400); }
.wk26-out__card {
  display: flex;
  flex-direction: column;
  gap: var(--dt-space-200);
  padding: var(--dt-space-400);
  background: var(--dt-elev-1);
  border: 1px solid var(--dt-hairline);
  border-radius: var(--dt-radius-xl);
  transition: border-color var(--dt-duration-hover) var(--dt-ease-base),
              box-shadow var(--dt-duration-hover) var(--dt-ease-base),
              transform var(--dt-duration-hover) var(--dt-ease-base);
}
.wk26-out__card:hover {
  border-color: var(--dt-hairline-strong);
  box-shadow: var(--dt-glow-bright);
  transform: translateY(-2px);
}
.wk26-out__card h3, .wk26-out__card p { margin: 0; }
.wk26-out__idx { color: var(--dt-accent-text); }
.wk26-out__card .caption-2, .wk26-out__card .wk26-chat { margin-top: auto; }
@media (max-width: 1080px) {
  .wk26-out__grid { grid-template-columns: 1fr; }
  .wk26-out__panel img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) { .wk26-out__cards { grid-template-columns: 1fr; } }

/* ---------- Footer: hairline column grid on the token surface ------------ */
body.wk26 .wk26-footer {
  min-height: 0;
  display: block;
  overflow: visible;
  padding: var(--dt-space-800) var(--margin) var(--dt-space-500);
  background: var(--dt-elev-1);
  border-top: 1px solid var(--dt-hairline);
}
.wk26-foot__top { display: grid; grid-template-columns: minmax(240px, 2fr) 3fr; gap: var(--dt-space-800); }
.wk26-foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--dt-space-300); }
.wk26-foot__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--dt-space-300);
  color: var(--dt-ink);
  font-family: var(--dt-font-latin);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wk26-foot__logo img { width: 36px; height: 36px; display: block; }
.wk26-foot__brand .body-4 { max-width: 34ch; }
.wk26-foot__phone {
  margin-top: var(--dt-space-200);
  font-family: var(--dt-font-latin);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--dt-ink);
  text-decoration: none;
}
.wk26-foot__phone:hover { color: var(--dt-accent-text); }
.wk26-foot__mail { color: var(--dt-accent-text); font-weight: 600; text-decoration: none; }
.wk26-foot__mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.wk26-foot__nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--dt-space-500); }
.wk26-foot__col { display: flex; flex-direction: column; gap: var(--dt-space-200); }
.wk26-foot__col .caption-4 { margin: 0 0 var(--dt-space-100); }
.wk26-foot__col a {
  color: var(--dt-ink-muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  transition: color var(--dt-duration-hover) var(--dt-ease-base);
}
.wk26-foot__col a:hover { color: var(--dt-accent-text); }
.wk26-foot__bottom {
  margin-top: var(--dt-space-800);
  padding-top: var(--dt-space-400);
  border-top: 1px solid var(--dt-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--dt-space-300) var(--dt-space-500);
  color: var(--dt-ink-muted);
  font-size: 12px;
  line-height: 16px;
}
.wk26-foot__bottom .caption-2 { margin-inline-start: auto; }
.wk26-foot__top-link { color: var(--dt-accent-text); font-weight: 600; text-decoration: none; }
.wk26-foot__top-link:hover { text-decoration: underline; }
.wk26-foot__name {
  margin: 0;
  width: 100%;
  font-family: var(--dt-font-latin);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dt-ink);
  opacity: 0.18;
}
[dir="rtl"] .wk26-foot__name { font-family: var(--dt-font-arabic-display); }
@media (max-width: 1080px) {
  .wk26-foot__top { grid-template-columns: 1fr; gap: var(--dt-space-600); }
  .wk26-foot__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .wk26-foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Modals on the token system (UI-only restyle, no JS touched) -- */
/* Auth modal */
.auth-modal__backdrop {
  background: rgba(12, 20, 19, 0.72) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.auth-modal__content {
  background: var(--dt-elev-2) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dt-hairline-strong) !important;
  border-radius: var(--dt-radius-xl) !important;
  box-shadow: var(--dt-shadow-float), var(--dt-glow-bright) !important;
  color: var(--dt-ink) !important;
}
.auth-modal__title { font-family: var(--dt-font-latin); font-weight: 600; color: var(--dt-ink); letter-spacing: -0.01em; }
.auth-modal__close {
  background: transparent !important;
  border: 1px solid var(--dt-hairline) !important;
  border-radius: var(--dt-radius-md) !important;
  color: var(--dt-ink-muted) !important;
  box-shadow: none !important;
}
.auth-modal__close:hover { color: var(--dt-accent-text) !important; border-color: var(--dt-accent-muted) !important; }
.auth-social__btn {
  background: var(--dt-elev-1) !important;
  border: 1px solid var(--dt-hairline-strong) !important;
  border-radius: var(--dt-radius-md) !important;
  color: var(--dt-ink) !important;
  box-shadow: none !important;
}
.auth-social__btn:hover {
  border-color: var(--dt-accent-muted) !important;
  box-shadow: var(--dt-glow-bright) !important;
  transform: none !important;
}
.auth-divider::before { background: var(--dt-hairline) !important; }
.auth-divider span { background: var(--dt-elev-2) !important; color: var(--dt-ink-muted) !important; font-size: 12px; }
.auth-modal .form-label { color: var(--dt-ink-muted); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.02em; }
.auth-modal .form-input, .auth-modal .glass-input {
  background: transparent !important;
  border: 1px solid var(--dt-hairline-strong) !important;
  border-radius: var(--dt-radius-md) !important;
  color: var(--dt-ink) !important;
  box-shadow: none !important;
}
.auth-modal .form-input:focus, .auth-modal .glass-input:focus {
  border-color: var(--dt-accent-bright) !important;
  outline: 2px solid var(--dt-focus-ring);
  outline-offset: 2px;
}
.auth-submit-btn, .auth-submit-btn.glass-btn {
  background: var(--dt-accent-deep) !important;
  border: 1px solid var(--dt-accent-deep) !important;
  border-radius: var(--dt-radius-md) !important;
  color: var(--dt-ink-on-accent) !important;
  box-shadow: none !important;
  font-weight: 600;
}
.auth-submit-btn:hover:not(:disabled) {
  background: var(--dt-accent-primary) !important;
  border-color: var(--dt-accent-primary) !important;
  box-shadow: var(--dt-glow-bright) !important;
}
.auth-modal .link-btn { color: var(--dt-accent-text) !important; background: none !important; border: none; }
.auth-modal .link-btn:hover { text-decoration: underline; }
.auth-modal .checkbox-text { color: var(--dt-ink-muted); }
.auth-modal .checkmark { background: transparent !important; border: 1px solid var(--dt-hairline-strong) !important; border-radius: 3px !important; }
.auth-modal input:checked + .checkmark { background: var(--dt-accent-deep) !important; border-color: var(--dt-accent-deep) !important; }
.auth-modal .password-toggle { color: var(--dt-ink-muted); }
.auth-modal .password-toggle:hover { color: var(--dt-accent-text); }

/* Mini-app tool modal — persistent selector, clear token contrast, no legacy collapse. */
.mini-apps-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--dt-space-400);
  box-sizing: border-box;
}
.mini-apps-modal.active { display: flex; }
.mini-apps-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 19, 0.76) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.mini-apps-modal .modal-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(1200px, 100%);
  height: min(88vh, 860px);
  max-height: calc(100dvh - var(--dt-space-600));
  min-height: 0;
  overflow: hidden;
  background: var(--dt-bg-surface) !important;
  border: 1px solid var(--dt-hairline-strong) !important;
  border-radius: var(--dt-radius-xl) !important;
  color: var(--dt-ink);
  box-shadow: var(--dt-shadow-float), var(--dt-glow-bright) !important;
  transform: translateY(var(--dt-space-200)) scale(0.99);
  transition: transform var(--dt-duration-base) var(--dt-ease-base);
}
.mini-apps-modal.active .modal-container { transform: translateY(0) scale(1); }
.mini-apps-modal .modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--dt-space-700);
  grid-template-areas: "tools close";
  align-items: start;
  gap: var(--dt-space-400);
  min-width: 0;
  padding: var(--dt-space-400) var(--dt-space-500);
  background: var(--dt-bg-surface) !important;
  border-bottom: 1px solid var(--dt-hairline) !important;
}
.mini-apps-modal .app-selector {
  grid-area: tools;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--dt-space-200);
  min-width: 0;
  overflow: visible;
  background: transparent !important;
  transition: none;
}
.mini-apps-modal .app-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--dt-space-200);
  width: 100%;
  min-width: 0;
  min-height: var(--dt-space-800);
  padding: var(--dt-space-200) var(--dt-space-300);
  background: var(--dt-bg-primary) !important;
  border: 1px solid var(--dt-hairline-strong) !important;
  border-radius: var(--dt-radius-lg) !important;
  color: var(--dt-ink-muted) !important;
  font-family: var(--dt-font-latin);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform var(--dt-duration-hover) var(--dt-ease-base),
              opacity var(--dt-duration-hover) var(--dt-ease-base);
}
.mini-apps-modal .app-tab:hover {
  transform: translateY(-1px);
  background: var(--dt-bg-sunken) !important;
  border-color: var(--dt-accent-muted) !important;
  color: var(--dt-accent-text) !important;
}
.mini-apps-modal .app-tab.active {
  background: var(--dt-accent-deep) !important;
  border-color: var(--dt-accent-deep) !important;
  color: var(--dt-ink-on-accent) !important;
}
.mini-apps-modal .app-tab:focus-visible,
.mini-apps-modal .modal-close:focus-visible {
  outline: 2px solid var(--dt-focus-ring);
  outline-offset: 2px;
}
.mini-apps-modal .app-tab-icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  color: var(--dt-accent-text);
}
.mini-apps-modal .app-tab.active .app-tab-icon { color: var(--dt-ink-on-accent); }
.mini-apps-modal .app-tab-icon svg,
.mini-apps-modal .app-tab > svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.mini-apps-modal .app-tab-label {
  display: block;
  min-width: 0;
  color: inherit;
  font-family: var(--dt-font-latin);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
[dir="rtl"] .mini-apps-modal .app-tab-label { font-family: var(--dt-font-arabic-text); }
.mini-apps-modal .modal-close {
  grid-area: close;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: var(--dt-space-700);
  height: var(--dt-space-700);
  margin: 0;
  padding: 0;
  flex: none;
  background: var(--dt-bg-primary) !important;
  border: 1px solid var(--dt-hairline-strong) !important;
  border-radius: var(--dt-radius-md) !important;
  color: var(--dt-ink-muted) !important;
  cursor: pointer;
  transition: transform var(--dt-duration-hover) var(--dt-ease-base),
              opacity var(--dt-duration-hover) var(--dt-ease-base);
}
.mini-apps-modal .modal-close:hover {
  transform: translateY(-1px);
  background: var(--dt-accent-deep) !important;
  border-color: var(--dt-accent-deep) !important;
  color: var(--dt-ink-on-accent) !important;
}
.mini-apps-modal .modal-close svg { display: block; }
.mini-apps-modal .modal-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: var(--dt-bg-primary) !important;
  color: var(--dt-ink);
}
.mini-apps-modal .app-iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--dt-bg-primary);
}
.mini-apps-modal .app-loading,
.mini-apps-modal .app-error {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--dt-space-400);
  min-height: 100%;
  padding: var(--dt-space-600);
  box-sizing: border-box;
  background: var(--dt-bg-primary);
  color: var(--dt-ink);
  text-align: center;
}
.mini-apps-modal .loading-spinner {
  width: var(--dt-space-700);
  height: var(--dt-space-700);
  border: 3px solid var(--dt-hairline-strong);
  border-top-color: var(--dt-accent-text);
  border-radius: var(--dt-radius-full);
  animation: spin 900ms linear infinite;
}
.mini-apps-modal .app-loading p,
.mini-apps-modal .app-error-message { margin: 0; color: var(--dt-ink-muted); font-size: 14px; line-height: 20px; }
.mini-apps-modal .app-error-icon { color: var(--dt-accent-text); }
.mini-apps-modal .app-retry-btn {
  min-height: var(--dt-space-700);
  padding: var(--dt-space-200) var(--dt-space-400);
  background: var(--dt-accent-deep);
  border: 1px solid var(--dt-accent-deep);
  border-radius: var(--dt-radius-md);
  color: var(--dt-ink-on-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dt-duration-hover) var(--dt-ease-base);
}
.mini-apps-modal .app-retry-btn:hover { border-color: var(--dt-accent-primary); transform: translateY(-1px); }
@media (max-width: 900px) {
  .mini-apps-modal .modal-header {
    grid-template-areas: "close close" "tools tools";
    padding: var(--dt-space-300) var(--dt-space-400);
    gap: var(--dt-space-300);
  }
  .mini-apps-modal .app-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .mini-apps-modal { padding: var(--dt-space-200); }
  .mini-apps-modal .modal-container {
    width: 100%;
    height: calc(100dvh - var(--dt-space-400));
    max-height: calc(100dvh - var(--dt-space-400));
  }
  .mini-apps-modal .modal-header { padding: var(--dt-space-300); }
  .mini-apps-modal .app-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-apps-modal .app-tab {
    min-height: var(--dt-space-800);
    padding: var(--dt-space-200);
    font-size: 14px;
  }
  .mini-apps-modal .app-tab-label { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .mini-apps-modal .modal-container,
  .mini-apps-modal .app-tab,
  .mini-apps-modal .modal-close { transition: none; }
  .mini-apps-modal .loading-spinner { animation: none; }
}

/* ==========================================================================
   Step 3: templates gallery + case study on the token layer
   ========================================================================== */
body.wk26 .tpl-hero { background: var(--dt-bg-primary); border-bottom: 1px solid var(--dt-hairline); }
body.wk26 .tpl-hero__sub { color: var(--dt-ink-muted); }
body.wk26 .tpl-step, body.wk26 .tpl-plan {
  background: var(--dt-elev-1);
  border: 1px solid var(--dt-hairline);
  border-radius: var(--dt-radius-xl);
}
body.wk26 .tpl-plan__price { color: var(--dt-accent-text); font-family: var(--dt-font-latin); font-weight: 700; }
body.wk26 .tpl-filter-btn {
  background: transparent;
  border: 1px solid var(--dt-hairline);
  border-radius: var(--dt-radius-md);
  color: var(--dt-ink-muted);
  font-family: var(--dt-font-latin);
  font-weight: 500;
  transition: color var(--dt-duration-hover) var(--dt-ease-base),
              border-color var(--dt-duration-hover) var(--dt-ease-base),
              background-color var(--dt-duration-hover) var(--dt-ease-base);
}
body.wk26 .tpl-filter-btn:hover { color: var(--dt-accent-text); border-color: var(--dt-accent-muted); }
body.wk26 .tpl-filter-btn.is-active { background: var(--dt-accent-deep); border-color: var(--dt-accent-deep); color: var(--dt-ink-on-accent); }
body.wk26 .tpl-card {
  background: var(--dt-elev-1);
  border: 1px solid var(--dt-hairline);
  border-radius: var(--dt-radius-xl);
  overflow: hidden;
  transition: border-color var(--dt-duration-hover) var(--dt-ease-base),
              box-shadow var(--dt-duration-hover) var(--dt-ease-base),
              transform var(--dt-duration-hover) var(--dt-ease-base);
}
body.wk26 .tpl-card:hover { border-color: var(--dt-hairline-strong); box-shadow: var(--dt-glow-bright); transform: translateY(-2px); }
body.wk26 .tpl-card__name { font-family: var(--dt-font-latin); font-weight: 600; color: var(--dt-ink); }
body.wk26 .tpl-card__tagline { color: var(--dt-ink-muted); }
body.wk26 .tpl-btn--primary, body.wk26 .btn--primary {
  background: var(--dt-accent-deep);
  border: 1px solid var(--dt-accent-deep);
  border-radius: var(--dt-radius-md);
  color: var(--dt-ink-on-accent);
  font-weight: 600;
}
body.wk26 .tpl-btn--primary:hover, body.wk26 .btn--primary:hover {
  background: var(--dt-accent-primary);
  border-color: var(--dt-accent-primary);
  box-shadow: var(--dt-glow-bright);
}
body.wk26 .tpl-btn--ghost, body.wk26 .cs-cta__secondary, body.wk26 .cs-profile-link {
  background: transparent;
  border: 1px solid var(--dt-hairline-strong);
  border-radius: var(--dt-radius-md);
  color: var(--dt-accent-text);
}
body.wk26 .tpl-btn--ghost:hover, body.wk26 .cs-cta__secondary:hover, body.wk26 .cs-profile-link:hover { border-color: var(--dt-accent-muted); }
body.wk26 .cs-category-badge {
  background: var(--dt-accent-deep);
  color: var(--dt-ink-on-accent);
  border-radius: var(--dt-radius-md);
  font-family: var(--dt-font-latin);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.wk26 .cs-title { font-family: var(--dt-font-latin); font-weight: 700; color: var(--dt-ink); letter-spacing: -0.02em; }
body.wk26 .cs-section, body.wk26 .cs-sidebar-card, body.wk26 .cs-cta {
  background: var(--dt-elev-1);
  border: 1px solid var(--dt-hairline);
  border-radius: var(--dt-radius-xl);
}
body.wk26 .cs-section h2, body.wk26 .cs-section h3,
body.wk26 .cs-sidebar-card h2, body.wk26 .cs-sidebar-card h3 {
  font-family: var(--dt-font-latin);
  font-weight: 600;
  color: var(--dt-ink);
}
body.wk26 .cs-status-note { border: 1px solid var(--dt-hairline-strong); border-radius: var(--dt-radius-md); background: var(--dt-elev-1); }
body.wk26 .features-list li::marker { color: var(--dt-accent-text); }
body.wk26 .wk-simple-footer {
  background: var(--dt-elev-1);
  border-top: 1px solid var(--dt-hairline);
  color: var(--dt-ink-muted);
  padding: var(--dt-space-600) var(--margin);
  font-size: 12px;
  line-height: 16px;
}
body.wk26 .wk-simple-footer a { color: var(--dt-accent-text); text-decoration: none; }
body.wk26 .wk-simple-footer a:hover { text-decoration: underline; }

/* ==========================================================================
   Step 5: published articles (insights) on the token layer
   ========================================================================== */
body.wk26 .insight-card {
  background: var(--dt-elev-1);
  border: 1px solid var(--dt-hairline);
  border-radius: var(--dt-radius-xl);
  padding: var(--dt-space-400);
  display: flex;
  flex-direction: column;
  gap: var(--dt-space-200);
  opacity: 1;
  transform: none;
  animation: none;
  transition: border-color var(--dt-duration-hover) var(--dt-ease-base),
              box-shadow var(--dt-duration-hover) var(--dt-ease-base),
              transform var(--dt-duration-hover) var(--dt-ease-base);
}
body.wk26 .insight-card:hover { border-color: var(--dt-hairline-strong); box-shadow: var(--dt-glow-bright); transform: translateY(-2px); }
body.wk26 .insight-card__meta, body.wk26 .insight-card__read-time { color: var(--dt-ink-muted); font-size: 12px; line-height: 16px; }
body.wk26 .insight-card__link { color: var(--dt-ink); font-family: var(--dt-font-latin); font-weight: 600; text-decoration: none; }
body.wk26 .insight-card__link:hover { color: var(--dt-accent-text); }
body.wk26 .insight-card__excerpt { color: var(--dt-ink-muted); }
body.wk26 .insight-card__actions a, body.wk26 .insight-card__actions button {
  background: transparent;
  border: 1px solid var(--dt-hairline-strong);
  border-radius: var(--dt-radius-md);
  color: var(--dt-accent-text);
  font-weight: 600;
}
body.wk26 .insight-card__actions a:hover, body.wk26 .insight-card__actions button:hover { border-color: var(--dt-accent-muted); }
body.wk26 .wk26-insights-empty {
  border: 1px dashed var(--dt-hairline-strong);
  border-radius: var(--dt-radius-xl);
  padding: var(--dt-space-600);
  color: var(--dt-ink-muted);
  text-align: center;
}

/* ==========================================================================
   Step 6: blog reader page + account hub surfaces
   ========================================================================== */
body.wk26 .wk26-post { max-width: 720px; margin: 0 auto; padding: var(--dt-space-800) var(--margin) var(--dt-space-900, 64px); }
.wk26-post__back { color: var(--dt-accent-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.wk26-post__back:hover { text-decoration: underline; }
.wk26-post__title {
  margin: var(--dt-space-400) 0 var(--dt-space-300);
  font-family: var(--dt-font-latin);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dt-ink);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}
[dir="rtl"] .wk26-post__title { font-family: var(--dt-font-arabic-display); }
.wk26-post__meta { margin: 0 0 var(--dt-space-600); color: var(--dt-ink-muted); font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.wk26-post__image { margin: 0 0 var(--dt-space-600); }
.wk26-post__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border: 1px solid var(--dt-hairline); border-radius: var(--dt-radius-xl); }
.wk26-post__body p { margin: 0 0 var(--dt-space-400); color: var(--dt-ink); font-size: 16px; line-height: 28px; }
.wk26-post__missing { border: 1px dashed var(--dt-hairline-strong); border-radius: var(--dt-radius-xl); padding: var(--dt-space-600); color: var(--dt-ink-muted); }
body.wk26 .wk26-acct { max-width: 1080px; margin: 0 auto; padding: var(--dt-space-800) var(--margin); }
.wk26-acct__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dt-space-400); margin-top: var(--dt-space-600); }
.wk26-acct__card {
  background: var(--dt-elev-1);
  border: 1px solid var(--dt-hairline);
  border-radius: var(--dt-radius-xl);
  padding: var(--dt-space-400);
  display: flex;
  flex-direction: column;
  gap: var(--dt-space-200);
}
.wk26-acct__card h2 { margin: 0; font-family: var(--dt-font-latin); font-size: 18px; line-height: 28px; font-weight: 600; color: var(--dt-ink); }
.wk26-acct__card p { margin: 0; color: var(--dt-ink-muted); font-size: 14px; line-height: 20px; }
.wk26-acct__row { display: flex; justify-content: space-between; gap: var(--dt-space-300); border-top: 1px solid var(--dt-hairline); padding-top: var(--dt-space-200); font-size: 14px; line-height: 20px; color: var(--dt-ink-muted); }
.wk26-acct__row b { color: var(--dt-ink); font-weight: 600; overflow-wrap: anywhere; }
.wk26-acct__links { display: flex; flex-wrap: wrap; gap: var(--dt-space-200); margin-top: auto; }
.wk26-acct__links a {
  border: 1px solid var(--dt-hairline-strong);
  border-radius: var(--dt-radius-md);
  color: var(--dt-accent-text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  padding: var(--dt-space-200) var(--dt-space-300);
  text-decoration: none;
}
.wk26-acct__links a:hover { border-color: var(--dt-accent-muted); box-shadow: var(--dt-glow-bright); }
.wk26-acct__signin { max-width: 420px; margin-top: var(--dt-space-600); }
.wk26-acct__signin label { display: block; margin: 0 0 var(--dt-space-100); color: var(--dt-ink-muted); font-size: 12px; line-height: 16px; font-weight: 600; }
.wk26-acct__signin input {
  width: 100%;
  margin: 0 0 var(--dt-space-300);
  background: transparent;
  border: 1px solid var(--dt-hairline-strong);
  border-radius: var(--dt-radius-md);
  color: var(--dt-ink);
  padding: var(--dt-space-200) var(--dt-space-300);
  font: inherit;
}
.wk26-acct__signin input:focus { border-color: var(--dt-accent-bright); outline: 2px solid var(--dt-focus-ring); outline-offset: 2px; }
.wk26-acct__signin button {
  background: var(--dt-accent-deep);
  border: 1px solid var(--dt-accent-deep);
  border-radius: var(--dt-radius-md);
  color: var(--dt-ink-on-accent);
  font-weight: 600;
  padding: var(--dt-space-200) var(--dt-space-300);
  cursor: pointer;
}
.wk26-acct__signin button:hover { background: var(--dt-accent-primary); box-shadow: var(--dt-glow-bright); }
@media (max-width: 720px) { .wk26-acct__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Owner round: opaque modal surface, tool icons, keep-tools row
   ========================================================================== */
/* Auth modal reads as a solid token card, not legacy glass */
.auth-modal__content {
  background: var(--dt-bg-surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.auth-divider span { background: var(--dt-bg-surface) !important; }
.auth-modal .auth-social__btn { background: var(--dt-bg-primary) !important; }
.auth-modal .form-input, .auth-modal .glass-input { background: var(--dt-bg-primary) !important; }
.auth-modal .auth-message {
  background: var(--dt-bg-primary);
  border: 1px solid var(--dt-hairline-strong);
  border-radius: var(--dt-radius-md);
  color: var(--dt-ink);
}
.auth-modal .auth-message.error { border-color: var(--dt-danger); color: var(--dt-danger); }
.auth-modal .auth-message.success { border-color: var(--dt-accent-muted); color: var(--dt-accent-text); }

/* Hairline tool icons inside bento + keep-tools cells */
body.wk26 .wk26-tool-ico { display: inline-flex; color: var(--dt-accent-text); }
body.wk26 .wk26-tool-ico svg { display: block; }

/* Remaining free tools, housed in the foundations section */
.wk26-keep-tools {
  display: grid;
  grid-template-columns: 1fr;   /* fills the free right column, stacked */
  gap: var(--dt-space-400);
  margin-top: var(--dt-space-400);
}
.wk26-keep-tools .dt-cell-action { min-height: 120px; }
@media (max-width: 720px) { .wk26-keep-tools { margin-top: var(--dt-space-400); } }
