/* ============================================================
   WINDAY.CO - Homepage styles
   Tokens & type imported from colors_and_type.css
   ============================================================ */
@import "colors_and_type.css";

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 80px; /* offset for the fixed nav on anchor jumps */ }
body {
  min-height: 100vh;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* Layered page background: soft blue ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, hsl(228 97% 61% / 0.10) 0%, transparent 60%),
    hsl(var(--background));
}

/* ---------- Layout container ---------- */
.wd-container {
  width: 100%;
  max-width: 1240px; /* matches .wd-nav-inner so content edges align with the top menu */
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAV
   ============================================================ */
.wd-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: hsl(var(--background) / 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}
.wd-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 62px; /* keep the bar height stable regardless of right-cluster contents */
  display: flex;
  align-items: center;
  gap: 24px;
}

.wd-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.wd-logo img { height: 30px; width: auto; }
.wd-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg1);
}

/* Center nav */
.wd-nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  /* nudge right so the links look centered on screen (right auth cluster is wider than the logo) */
  transform: translateX(62px);
}
.wd-nav-item { position: relative; }
.wd-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg2);
  background: transparent;
  border: 0;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.wd-nav-link:hover { color: var(--fg1); background: hsl(var(--secondary) / 0.8); text-decoration: none; }
.wd-caret { transition: transform var(--dur-fast) var(--ease-smooth); }
.wd-has-menu.is-open > .wd-menu-toggle .wd-caret { transform: rotate(180deg); }
.wd-has-menu.is-open > .wd-menu-toggle { color: var(--fg1); background: hsl(var(--secondary) / 0.8); }

/* Dropdown */
.wd-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: 18px;
  box-shadow: var(--shadow-float), var(--shadow-inner-highlight);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-smooth), visibility var(--dur-fast);
  z-index: 120;
}
.wd-has-menu.is-open > .wd-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.wd-dropdown::before { /* hover bridge */
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
.wd-drop-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background var(--transition-fast);
}
.wd-drop-link:hover { background: hsl(var(--secondary) / 0.7); text-decoration: none; }
.wd-drop-link span:last-child { display: flex; flex-direction: column; gap: 2px; }
.wd-drop-link strong { font-size: 14px; font-weight: 700; color: var(--fg1); }
.wd-drop-link em { font-style: normal; font-size: 12.5px; color: var(--fg2); }
.wd-drop-ic {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
}

/* Icon tints (shared by dropdown + benefit cards) */
[data-tint="blue"]   { background: hsl(228 97% 61% / 0.10); color: #3B57F2; }
[data-tint="yellow"] { background: hsl(42 100% 62% / 0.16);  color: #C48A0E; }
[data-tint="green"]  { background: hsl(152 69% 45% / 0.12);  color: #17A277; }
[data-tint="purple"] { background: hsl(262 83% 65% / 0.12);  color: #7340E3; }
[data-tint="pink"]   { background: hsl(320 85% 60% / 0.12);  color: #D62F92; }
[data-tint="cyan"]   { background: hsl(196 80% 55% / 0.12);  color: #1D9BCC; }

/* Right cluster */
.wd-nav-right { display: flex; align-items: center; gap: 10px; }
.wd-lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--fg2); background: transparent; border: 0;
  padding: 7px 10px; border-radius: 10px;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.wd-lang-toggle:hover { color: var(--fg1); background: hsl(var(--secondary) / 0.8); }
.wd-lang-current { font-weight: 700; }
.wd-lang-menu { min-width: 170px; }
.wd-lang-link { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--fg1); text-decoration: none; }
.wd-lang-link:hover { background: hsl(var(--secondary) / 0.7); text-decoration: none; }
.wd-lang-link.is-active { color: hsl(var(--primary)); font-weight: 700; }

.wd-nav-login {
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  color: var(--fg1); text-decoration: none; padding: 8px 12px; border-radius: 10px;
  transition: background var(--transition-fast);
}
.wd-nav-login:hover { background: hsl(var(--secondary) / 0.8); text-decoration: none; }

/* Signature CTA button */
.wd-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  color: #fff; text-decoration: none;
  background: var(--gradient-primary);
  padding: 9px 18px; border-radius: 12px; border: 0;
  box-shadow: 0 0 0 3px #B0D0FF, var(--shadow-md), inset 0 1px 0 hsl(0 0% 100% / 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.wd-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 3px #B0D0FF, var(--shadow-glow), inset 0 1px 0 hsl(0 0% 100% / 0.25); text-decoration: none; }

/* Burger + mobile panel */
.wd-burger { display: none; flex-direction: column; gap: 4px; background: transparent; border: 0; padding: 8px; border-radius: 10px; margin-left: auto; /* push to the top-right corner on mobile */ }
.wd-burger span { width: 22px; height: 2px; background: var(--fg1); border-radius: 2px; transition: transform var(--dur-fast) var(--ease-smooth), opacity var(--dur-fast); }
.wd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.wd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.wd-mobile {
  border-top: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--card));
  padding: 12px 24px 24px;
}
.wd-mobile[hidden] { display: none; }
.wd-mobile-link, .wd-mobile-acc {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--fg1);
  background: transparent; border: 0; padding: 14px 4px; text-decoration: none;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.wd-mobile-acc[aria-expanded="true"] .wd-caret { transform: rotate(180deg); }
.wd-mobile-sub { display: none; padding: 4px 0 10px 12px; }
.wd-mobile-sub.is-open { display: flex; flex-direction: column; }
.wd-mobile-sub a { padding: 10px 4px; font-size: 15px; color: var(--fg2); text-decoration: none; }
.wd-mobile-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.wd-mobile-lang { display: flex; gap: 4px; margin-right: auto; }
.wd-mobile-lang a { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--fg2); background: hsl(var(--secondary)); text-decoration: none; }
.wd-mobile-lang a.is-active { color: #fff; background: var(--gradient-primary); }

/* ============================================================
   HERO
   ============================================================ */
.wd-hero {
  position: relative;
  min-height: 100vh;
  /* Nav is fixed (out of flow), so the hero fills the full first screen from the top edge */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 108px 24px 64px; /* top padding clears the fixed nav */
  overflow: hidden;
  /* Same background as the winday-ai dashboard */
  background-image: url("../assets/winday-app-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Subtle noise texture overlay, matching the dashboard */
.wd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wd-hero-glow {
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; max-width: 120vw; height: 700px;
  background: radial-gradient(ellipse at center, hsl(228 97% 61% / 0.10) 0%, hsl(262 83% 65% / 0.05) 40%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.wd-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wd-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 0;
  max-width: 16ch;
}
/* Fixed-width slot: an invisible sizer reserves the width of the longest word so the
   second line never shifts when the rotating word changes. */
.wd-accent { position: relative; display: inline-block; white-space: nowrap; vertical-align: baseline; }
.wd-rotate-sizer { visibility: hidden; }
.wd-rotate { position: absolute; left: 0; top: 0; display: inline-block; }
/* Branded BLUE gradient accent word */
.wd-word { display: inline-block; color: transparent; -webkit-text-fill-color: transparent; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; }
.wd-underline { position: absolute; left: 0; bottom: -0.12em; width: 100%; height: auto; }
/* Rotating last word + hand-drawn underline that redraws on each swap */
.wd-word { transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth); }
.wd-word.is-swapping { opacity: 0; transform: translateY(-0.25em); }
.wd-underline path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.wd-accent.is-drawing .wd-underline path { animation: wd-draw 0.7s var(--ease-smooth) forwards; }
@keyframes wd-draw { to { stroke-dashoffset: 0; } }
.wd-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--fg2);
  max-width: 74ch;
  margin: 18px auto 0;
  line-height: 1.55;
}

/* Prompt input card - width matches the winday-ai dashboard input (~70% of a 1280 container) */
.wd-prompt { width: 100%; max-width: 860px; margin: 32px auto 0; }
.wd-prompt-card {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  box-shadow: var(--shadow-float), var(--shadow-inner-highlight);
  padding: 20px;
  text-align: left;
  transition: box-shadow var(--dur-normal) var(--ease-smooth), border-color var(--dur-normal);
}
.wd-prompt-card.is-focus {
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: var(--shadow-float-lg), 0 0 0 4px hsl(228 97% 61% / 0.10), var(--shadow-inner-highlight);
}
.wd-prompt-field { position: relative; }
.wd-prompt-placeholder {
  position: absolute; top: 0; left: 0; right: 0;
  font-size: 1.05rem; color: hsl(var(--muted-foreground) / 0.6);
  pointer-events: none; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity var(--dur-normal), transform var(--dur-normal);
}
.wd-prompt-placeholder.is-hidden { opacity: 0; }
.wd-prompt-input {
  width: 100%;
  min-height: 30px; max-height: 200px;
  border: 0; outline: 0; resize: none;
  background: transparent;
  font-family: var(--font-sans); font-size: 1.05rem; color: var(--fg1);
  line-height: 1.5;
  overflow-y: auto;
}
.wd-prompt-row {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: 14px; padding-top: 12px;
}
.wd-prompt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: #fff;
  background: var(--gradient-primary);
  border: 0; padding: 10px 20px; border-radius: 12px;
  box-shadow: 0 0 0 3px #B0D0FF, var(--shadow-md), inset 0 1px 0 hsl(0 0% 100% / 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}
.wd-prompt-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 0 3px #B0D0FF, var(--shadow-glow), inset 0 1px 0 hsl(0 0% 100% / 0.25); }
.wd-prompt-btn svg { transition: transform var(--dur-fast) var(--ease-smooth); }
.wd-prompt-btn:hover:not(:disabled) svg { transform: translateX(2px); }
/* Disabled until the visitor writes something - same logic as the winday-ai dashboard */
.wd-prompt-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: var(--shadow-sm); }
.wd-btn-short { display: none; }

/* Suggestion chips */
.wd-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.wd-chip {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--fg1);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 8px 15px; border-radius: 9999px;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.wd-chip:hover {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(228 97% 61% / 0.05);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ============================================================
   HERO - FLOATING GAME ICONS (winday-ai auth slide 1)
   ============================================================ */
.wd-hero-decor { display: block; position: absolute; inset: 0; overflow: hidden; z-index: 0; }

/* Floating 3D game icons - per-item depth via blur + opacity */
.wd-hero-icons { position: absolute; inset: 0; }
.wd-float {
  position: absolute;
  filter: blur(var(--blur, 0px));
  opacity: 0;
  transform: rotate(var(--r, 0deg)) scale(0.8) translateY(20px);
  transition: opacity calc(1500ms + var(--d, 0ms)) ease-out var(--d, 0ms),
              transform calc(1500ms + var(--d, 0ms)) ease-out var(--d, 0ms);
  pointer-events: none; will-change: transform, opacity;
}
.wd-float img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,0.28)); }
html.hero-lit .wd-float {
  opacity: var(--o, 0.85);
  transform: rotate(var(--r, 0deg)) scale(1) translateY(0);
}
/* Gentle continuous drift once revealed (per-layer speeds) */
@keyframes wd-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
html.hero-lit .wd-float img { animation: wd-drift var(--float, 6s) ease-in-out infinite; animation-delay: var(--d, 0ms); }

/* Per-icon placement / depth (size, blur tier, rotation, stagger) */
.f1  { top: calc(9% + 50px);  left: 5%;    width: 80px;  height: 80px;  --r:-15deg; --blur:0px; --o:.85; --d:0ms;   --float:6.5s; }
.f2  { top: 13%; right: 7%;   width: 100px; height: 100px; --r:10deg;  --blur:1px; --o:.6;  --d:200ms; --float:7.5s; }
.f3  { top: 48%; left: 4%;    width: 60px;  height: 60px;  --r:20deg;  --blur:2px; --o:.6;  --d:400ms; --float:8.5s; }
.f4  { bottom: 20%; right: 6%; width: 90px; height: 90px;  --r:-10deg; --blur:0px; --o:.85; --d:100ms; --float:6s;   }
.f5  { top: 24%; right: 13%;  width: 55px;  height: 55px;  --r:15deg;  --blur:1px; --o:.6;  --d:300ms; --float:7s;   }
.f6  { bottom: 16%; left: 6%; width: 70px;  height: 70px;  --r:-20deg; --blur:0px; --o:.85; --d:500ms; --float:6.8s; }
.f7  { top: 62%; right: 9%;   width: 50px;  height: 50px;  --r:25deg;  --blur:2px; --o:.6;  --d:150ms; --float:8s;   }
.f8  { top: calc(7% + 50px);  left: calc(33% - 20px);   width: 65px;  height: 65px;  --r:-5deg;  --blur:1px; --o:.6;  --d:250ms; --float:7.2s; }
.f9  { bottom: calc(11% - 20px); right: calc(24% - 20px); width: 75px; height: 75px; --r:12deg;  --blur:0px; --o:.85; --d:350ms; --float:6.3s; }
.f10 { bottom: 14%; left: 15%; width: 85px; height: 85px;  --r:-8deg;  --blur:1px; --o:.6;  --d:450ms; --float:7.8s; }
.f11 { top: 33%; right: 19%;  width: 55px;  height: 55px;  --r:18deg;  --blur:2px; --o:.6;  --d:550ms; --float:8.2s; }
.f12 { bottom: calc(18% + 200px); left: calc(28% - 100px); width: 95px; height: 95px;  --r:-12deg; --blur:0px; --o:.85; --d:600ms; --float:6.6s; }

/* At the very top (before scroll) the nav is fully transparent with no outline */
.wd-nav.at-top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ============================================================
   GENERIC SECTION + SECTION HEAD
   ============================================================ */
.wd-section { padding: 96px 0; }
.wd-section-tint {
  background: linear-gradient(180deg, transparent 0%, hsl(228 50% 97% / 0.6) 100%);
}
.wd-section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.wd-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--primary));
  background: hsl(228 97% 61% / 0.08);
  border: 1px solid hsl(228 97% 61% / 0.15);
  padding: 6px 14px; border-radius: 9999px;
}
.wd-eyebrow-accent {
  color: #B8860B;
  background: hsl(42 100% 62% / 0.14);
  border-color: hsl(42 100% 62% / 0.28);
}
.wd-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.wd-lede { font-size: 1.06rem; color: var(--fg2); max-width: 560px; margin: 18px auto 0; line-height: 1.6; }

/* ============================================================
   BENEFITS GRID
   ============================================================ */
.wd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wd-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-md), var(--shadow-inner-highlight);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 232px;
  transition: transform var(--dur-normal) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth);
}
.wd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float-lg), var(--shadow-inner-highlight); }
.wd-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
/* Benefit-card icons are full-colour images - no tinted tile behind them */
.wd-card .wd-ic { background: transparent; }
.wd-ic img { width: 40px; height: 40px; object-fit: contain; }
.wd-card h3 { font-size: 1.25rem; }
.wd-card p { font-size: 15px; color: var(--fg2); }

/* ============================================================
   USE CASES - same builder, different jobs (tabbed switcher)
   ============================================================ */
/* Keep the intro subtitle on a single row (desktop) */
#use-cases .wd-section-head { max-width: 820px; }
#use-cases .wd-lede { max-width: 820px; }

/* Segmented switcher (winday-ai style) */
.wd-uc-switch {
  display: flex; gap: 2px;
  width: fit-content; max-width: 100%;
  margin: 34px auto 28px;
  padding: 5px;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border) / 0.7);
  box-shadow: var(--shadow-inner-highlight);
}
.wd-uc-seg {
  border: 0; background: transparent;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  color: var(--fg2);
  padding: 10px 22px; border-radius: 9999px; white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.wd-uc-seg:hover { color: var(--fg1); }
.wd-uc-seg.is-active { color: var(--fg1); background: hsl(var(--card)); box-shadow: var(--shadow-md); }

/* Content stage - full-bleed band (spans the whole page width); the colour
   comes from the ACTIVE niche gradient, so the stripe recolours per tab. */
.wd-uc-stage {
  position: relative;
  background: linear-gradient(120deg, #E2EAFF 0%, #CDDAFF 100%);
  margin-inline: calc(50% - 50vw);
  padding: 48px max(24px, calc(50vw - 596px));
  transition: background 0.5s var(--ease-smooth);
}
.wd-uc-stage:has(.wd-uc-panel[data-tint="blue"].is-active)   { background: linear-gradient(120deg, #E2EAFF 0%, #CDDAFF 100%); }
.wd-uc-stage:has(.wd-uc-panel[data-tint="green"].is-active)  { background: linear-gradient(120deg, #DEF7EE 0%, #C6EFDF 100%); }
.wd-uc-stage:has(.wd-uc-panel[data-tint="purple"].is-active) { background: linear-gradient(120deg, #ECE4FF 0%, #DDD0FF 100%); }
.wd-uc-stage:has(.wd-uc-panel[data-tint="pink"].is-active)   { background: linear-gradient(120deg, #FCE3F1 0%, #F8D2E8 100%); }
.wd-uc-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  /* stay transparent - the colour lives on the full-bleed stage, not the panel
     (overrides the generic [data-tint] tint utility) */
  background: transparent;
  animation: wd-uc-fade 0.45s var(--ease-smooth);
}
.wd-uc-panel[hidden] { display: none; }
@keyframes wd-uc-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Left: clearly composed text (dark on light bg) */
.wd-uc-text { max-width: 480px; }
.wd-uc-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--primary)); margin-bottom: 12px; }
.wd-uc-text h3 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; color: var(--fg1); }
/* Branded gradient accent word (no underline) */
.wd-uc-squiggle { display: inline-block; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.wd-uc-list { display: flex; flex-direction: column; gap: 12px; }
.wd-uc-list li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--fg2); line-height: 1.4; }
.wd-uc-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 6px;
  background: hsl(228 97% 61% / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234159F8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
/* Right: a fanned stack of 3 game previews, 50% larger (winday-ai-quiz hero style) */
.wd-uc-shot { position: relative; flex-shrink: 0; width: 500px; height: 560px; }
.wd-uc-shot::before {
  content: ""; position: absolute; inset: 2% 4%;
  background:
    radial-gradient(circle at 34% 32%, hsl(228 97% 61% / 0.20), transparent 60%),
    radial-gradient(circle at 70% 68%, hsl(262 83% 65% / 0.16), transparent 60%);
  filter: blur(40px); z-index: 0;
}
.wd-uc-card {
  position: absolute; top: 50%; left: 50%;
  width: 315px; aspect-ratio: 3 / 4;
  border-radius: 24px; overflow: hidden;
  border: 5px solid hsl(0 0% 100%);
  box-shadow: var(--shadow-float-lg), 0 0 0 1px hsl(var(--border) / 0.6);
  transition: transform 0.5s var(--ease-smooth);
  will-change: transform;
}
.wd-uc-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Floating labels around the pile (winday-ai-quiz hero style) */
.wd-uc-fl {
  position: absolute; z-index: 6;
  display: inline-flex; align-items: center; gap: 9px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 14px; padding: 9px 13px;
  box-shadow: var(--shadow-float);
  font-size: 13px; white-space: nowrap;
}
.wd-uc-fl b { font-weight: 700; color: var(--fg1); }
.wd-uc-fl-txt { display: flex; flex-direction: column; line-height: 1.25; }
.wd-uc-fl-txt em { font-style: normal; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg2); font-weight: 700; }
.wd-uc-fl-ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.wd-uc-fl-ic svg { width: 15px; height: 15px; }
.wd-ic-grad { background: var(--gradient-primary); }
.wd-ic-green { background: hsl(var(--success)); }
.wd-ic-yellow { background: var(--gradient-accent); color: #6B4A0A; }
/* positions + float */
.wd-uc-fl-prompt { top: 3%;  left: -46px; animation: wd-uc-float 5s ease-in-out infinite; }
.wd-uc-fl-gen    { top: 33%; right: -30px; animation: wd-uc-float 6s 0.5s ease-in-out infinite; }
.wd-uc-fl-style  { bottom: 6%; left: 0; animation: wd-uc-float 5.5s 1s ease-in-out infinite; }
@keyframes wd-uc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
/* fan: left-back, center-front, right-back */
.wd-uc-card:nth-child(1) { z-index: 1; transform: translate(-50%, -50%) translateX(-105px) rotate(-10deg) scale(0.9); filter: brightness(0.96); }
.wd-uc-card:nth-child(2) { z-index: 3; transform: translate(-50%, -50%) rotate(0deg); }
.wd-uc-card:nth-child(3) { z-index: 2; transform: translate(-50%, -50%) translateX(105px) rotate(10deg) scale(0.9); filter: brightness(0.96); }
/* gentle spread on hover */
.wd-uc-panel:hover .wd-uc-card:nth-child(1) { transform: translate(-50%, -50%) translateX(-128px) rotate(-13deg) scale(0.9); }
.wd-uc-panel:hover .wd-uc-card:nth-child(3) { transform: translate(-50%, -50%) translateX(128px) rotate(13deg) scale(0.9); }


/* ============================================================
   PRICING
   ============================================================ */
.wd-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.wd-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow-md), var(--shadow-inner-highlight);
  transition: transform var(--dur-normal) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth);
}
.wd-price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float-lg), var(--shadow-inner-highlight); }
.wd-price-card.is-featured {
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: var(--shadow-float), 0 0 0 1px hsl(var(--primary) / 0.18), var(--shadow-inner-highlight);
}
.wd-price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 9999px;
  box-shadow: 0 0 0 3px #B0D0FF, var(--shadow-md);
  white-space: nowrap;
}
.wd-price-name-row { display: flex; align-items: center; gap: 12px; }
.wd-price-icon { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.wd-price-name { font-family: var(--font-heading); font-size: 1.4rem; }
.wd-price-desc { font-size: 14px; color: var(--fg2); line-height: 1.5; margin-top: 8px; min-height: 42px; }
.wd-price-cost { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.wd-price-value { font-family: var(--font-heading); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; }
.wd-price-period { font-size: 13.5px; color: var(--fg2); }
.wd-price-credits {
  margin-top: 16px; padding: 11px 14px; border-radius: 12px;
  background: hsl(228 97% 61% / 0.08);
  color: hsl(var(--primary)); font-weight: 700; font-size: 14px; text-align: center;
}
.wd-price-list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 28px; }
.wd-price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--fg1); line-height: 1.4; }
.wd-price-list svg { flex-shrink: 0; color: hsl(var(--success)); margin-top: 1px; }
.wd-price-card .wd-cta,
.wd-price-card .wd-btn-outline { margin-top: auto; width: 100%; justify-content: center; }
.wd-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  color: hsl(var(--primary)); background: transparent;
  border: 1.5px solid hsl(var(--primary) / 0.32);
  padding: 11px 18px; border-radius: 12px; text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.wd-btn-outline:hover { background: hsl(228 97% 61% / 0.06); border-color: hsl(var(--primary) / 0.6); text-decoration: none; }

/* ============================================================
   FAQ
   ============================================================ */
.wd-faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.wd-faq-intro { position: sticky; top: 100px; }
.wd-faq-eyebrow { font-size: 15px; color: var(--fg2); }
.wd-faq-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.wd-faq-note { font-size: 15px; color: var(--fg2); line-height: 1.6; margin-top: 24px; max-width: 34ch; }
.wd-faq-note a { color: var(--fg1); text-decoration: underline; text-underline-offset: 3px; }
.wd-faq-note a:hover { color: hsl(var(--primary)); }

.wd-faq-list { border-top: 1px solid hsl(var(--border)); }
.wd-faq-item { border-bottom: 1px solid hsl(var(--border)); }
.wd-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 26px 4px;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--fg1);
  cursor: pointer;
}
.wd-faq-q:hover { color: hsl(var(--primary)); }
.wd-faq-plus {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 50%;
  color: var(--fg1);
  transition: transform var(--dur-normal) var(--ease-smooth), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.wd-faq-item.is-open .wd-faq-plus { transform: rotate(45deg); background: var(--gradient-primary); color: #fff; border-color: transparent; }
.wd-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-normal) var(--ease-smooth); }
.wd-faq-a-inner { overflow: hidden; }
.wd-faq-item.is-open .wd-faq-a { grid-template-rows: 1fr; }
.wd-faq-a p { font-size: 15.5px; color: var(--fg2); line-height: 1.6; max-width: 60ch; padding: 0 4px 26px; }

/* ============================================================
   SHOWCASE TICKER
   ============================================================ */
.wd-ticker-wrap {
  /* Clip only horizontally (hides the marquee at the sides) but leave vertical free,
     so a hovered card's pop-up and its shadow are never cut off. No mask. */
  overflow-x: clip;
  overflow-y: visible;
  padding: 24px 0;
}
.wd-ticker { display: flex; gap: 18px; width: max-content; animation: wd-scroll 60s linear infinite; }
.wd-ticker:hover { animation-play-state: paused; }
/* Second row scrolls the opposite way (left → right) */
.wd-ticker-rev { animation-direction: reverse; }
.wd-ticker-wrap-2 { margin-top: -12px; }
@keyframes wd-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wd-show-card {
  position: relative;
  flex-shrink: 0;
  width: 286px; /* 30% larger than the previous 220px (aspect-ratio scales height too) */
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-normal) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth);
}
.wd-show-card img { width: 100%; height: 100%; object-fit: cover; }
.wd-show-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-float-lg); }
.wd-ticker .wd-show-card:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.wd-show-card .wd-show-label {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--fg1); background: hsl(var(--card) / 0.92); backdrop-filter: blur(6px);
  padding: 6px 10px; border-radius: 9999px; box-shadow: var(--shadow-md);
}

/* ============================================================
   CTA BAND (with faint WINDAY 2.0 watermark)
   ============================================================ */
.wd-cta-band {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background: linear-gradient(115deg, #3A2CE6 0%, #4159F8 48%, #4E8BFF 100%);
}
.wd-cta-watermark {
  position: absolute;
  left: 50%; bottom: -0.14em;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(4rem, 21vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: #fff;
  opacity: 0.07;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.wd-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.wd-cta-text { flex: 1 1 440px; }
.wd-cta-text h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.wd-cta-text p {
  color: hsl(0 0% 100% / 0.85);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-top: 16px;
  max-width: 480px;
}
.wd-cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.wd-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: hsl(var(--primary));
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 30px;
  border-radius: 14px;
  box-shadow: 0 12px 30px hsl(230 80% 15% / 0.28);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.wd-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px hsl(230 80% 15% / 0.34);
  text-decoration: none;
}
.wd-cta-btn svg { transition: transform var(--dur-fast) var(--ease-smooth); }
.wd-cta-btn:hover svg { transform: translateX(3px); }
.wd-cta-note { color: hsl(0 0% 100% / 0.75); font-size: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.wd-footer {
  border-top: 1px solid hsl(var(--border) / 0.6);
  padding: 64px 0 32px;
  background: hsl(var(--card) / 0.4);
}
.wd-footer-main {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.wd-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wd-footer-desc { font-size: 13px; color: var(--fg2); line-height: 1.55; max-width: 50ch; }
.wd-footer-end { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.wd-footer-links { display: flex; gap: 24px; }
.wd-footer-links a { font-size: 15px; color: var(--fg1); text-decoration: none; transition: color var(--transition-fast); }
.wd-footer-links a:hover { color: hsl(var(--primary)); }
.wd-foot-lang { display: inline-flex; gap: 2px; padding: 3px; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); border-radius: 9999px; }
.wd-foot-lang a { padding: 6px 12px; border-radius: 9999px; font-size: 13px; font-weight: 700; color: var(--fg2); text-decoration: none; transition: color var(--transition-fast), background var(--transition-fast); }
.wd-foot-lang a:hover { color: var(--fg1); }
.wd-foot-lang a.is-active { color: #fff; background: var(--gradient-primary); }

.wd-footer-bottom {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 28px;
}
.wd-footer-bottom > span { font-size: 13px; color: var(--fg2); margin-right: auto; }
.wd-social { display: flex; gap: 10px; }
.wd-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--winday-blue-light); color: hsl(var(--primary));
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.wd-social a:hover { background: var(--gradient-primary); color: #fff; transform: translateY(-2px); }
.wd-social a .wd-soc-ic { width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.wd-footer-legal { display: flex; gap: 16px; }
.wd-footer-legal a { font-size: 13px; color: var(--fg2); text-decoration: none; }
.wd-footer-legal a:hover { color: hsl(var(--primary)); }

/* ============================================================
   BLOG (/blog)
   ============================================================ */
.wd-blog-hero { padding-top: 128px; padding-bottom: 8px; text-align: center; }
.wd-blog-hero .wd-lede { margin-left: auto; margin-right: auto; }
.wd-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wd-blog-card {
  display: flex; flex-direction: column;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-inner-highlight);
  transition: transform var(--dur-normal) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth);
}
.wd-blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float-lg), var(--shadow-inner-highlight); }
/* Cover image at the top of each card */
.wd-blog-cover { aspect-ratio: 16 / 10; background: hsl(var(--secondary)); overflow: hidden; }
.wd-blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-smooth) var(--ease-smooth); }
.wd-blog-card:hover .wd-blog-cover img { transform: scale(1.05); }
.wd-blog-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.wd-blog-body time { font-size: 13px; color: var(--fg2); }
.wd-blog-card h3 { font-size: 1.15rem; line-height: 1.25; }
.wd-blog-card h3 a { color: var(--fg1); text-decoration: none; }
.wd-blog-card h3 a:hover { color: hsl(var(--primary)); }
.wd-blog-card p { font-size: 14.5px; color: var(--fg2); line-height: 1.55; flex: 1 0 auto; }
.wd-blog-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: hsl(var(--primary)); text-decoration: none; margin-top: 4px; }
.wd-blog-more svg { transition: transform var(--dur-fast) var(--ease-smooth); }
.wd-blog-more:hover svg { transform: translateX(3px); }
@media (max-width: 1000px) { .wd-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .wd-blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG POST (single article) - 3-column layout
   ============================================================ */
/* Hero - centered on screen */
.wd-post-hero { padding: 120px 0 40px; text-align: center; }
.wd-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--fg2); }
.wd-breadcrumb a { color: var(--fg2); text-decoration: none; }
.wd-breadcrumb a:hover { color: hsl(var(--primary)); }
.wd-breadcrumb span { color: var(--fg3); }
.wd-post-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; margin: 16px auto 18px; max-width: 30ch; text-wrap: balance; }
.wd-post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; font-size: 14px; color: var(--fg2); }
.wd-post-meta .wd-mi { display: inline-flex; align-items: center; gap: 7px; }
.wd-post-meta svg { color: hsl(var(--primary)); }
.wd-post-stars { display: inline-flex; align-items: center; gap: 3px; color: #FFB400; }
/* Cover now lives at the top of the content column */
.wd-post-cover { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; margin: 0 0 28px; border: 1px solid hsl(var(--border) / 0.6); box-shadow: var(--shadow-md); }
.wd-post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 3-column body */
.wd-post-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 232px;
  grid-template-areas: "left cover right" "left content right";
  gap: 30px 48px;
  align-items: start;
  padding: 44px 0 88px;
}
.wd-post-cover { grid-area: cover; margin: 0; }
.wd-post-aside--left { grid-area: left; }
.wd-post-content { grid-area: content; min-width: 0; }
.wd-post-aside--right { grid-area: right; }
.wd-post-aside { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Panels (summarize / contents) - inline cards on desktop, bottom-sheets on mobile */
.wd-panel { position: relative; }
.wd-panel-close { display: none; position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: hsl(var(--secondary)); color: var(--fg1); font-size: 22px; line-height: 1; cursor: pointer; place-items: center; }
.wd-share-row.wd-post-hero-share { display: none; justify-content: center; margin-top: 22px; }

/* Mobile tools bar + backdrop (hidden until <=980px) */
.wd-post-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(13,17,45,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease-smooth), visibility 0.3s; }
.wd-post-backdrop.is-open { opacity: 1; visibility: visible; }
.wd-post-bar { display: none; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 190; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 9999px; box-shadow: var(--shadow-float), var(--shadow-inner-highlight); padding: 6px; gap: 4px; }
.wd-post-bar__btn { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 9px 18px; border-radius: 9999px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--fg1); cursor: pointer; transition: background var(--transition-fast); }
.wd-post-bar__btn:hover { background: hsl(var(--secondary)); }
.wd-post-bar__btn svg { color: hsl(var(--primary)); }

/* Side cards (summarize / toc / share) */
/* Desktop: plain (no surface). The mobile bottom-sheets re-add a surface below. */
.wd-side-card { padding: 0; }
.wd-side-title { font-family: var(--font-sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg2); margin-bottom: 12px; }
.wd-ai-list { display: flex; flex-direction: column; gap: 4px; }
.wd-ai-list a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--fg1); text-decoration: none; transition: background var(--transition-fast); }
.wd-ai-list a:hover { background: hsl(var(--secondary) / 0.8); }
.wd-ai-ic { width: 22px; height: 22px; flex-shrink: 0; background: hsl(var(--primary)); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
/* TOC */
.wd-toc { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid hsl(var(--border)); }
.wd-toc a { padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; color: var(--fg2); text-decoration: none; transition: color var(--transition-fast), border-color var(--transition-fast); }
.wd-toc a:hover { color: var(--fg1); }
.wd-toc a.is-active { color: hsl(var(--primary)); font-weight: 700; border-left-color: hsl(var(--primary)); }
/* Share */
.wd-share-row { display: flex; gap: 8px; }
.wd-share-row a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--winday-blue-light); color: hsl(var(--primary)); transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast); }
.wd-share-row a:hover { background: var(--gradient-primary); color: #fff; transform: translateY(-2px); }

/* Right CTA card */
.wd-post-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #3A2CE6 0%, #4159F8 55%, #4E8BFF 100%);
  border-radius: 22px; padding: 26px 24px; color: #fff;
}
.wd-post-cta .eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.7); }
.wd-post-cta h3 { color: #fff; font-size: 1.3rem; line-height: 1.2; margin: 10px 0 10px; }
.wd-post-cta p { font-size: 14px; color: rgba(255,255,255,0.82); line-height: 1.55; margin-bottom: 18px; }
.wd-post-cta .wd-cta-btn { width: 100%; justify-content: center; }

/* Article body typography */
.wd-post-content h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.2; margin: 44px 0 14px; scroll-margin-top: 90px; }
.wd-post-content h2:first-child { margin-top: 0; }
.wd-post-content h3 { font-family: var(--font-heading); font-size: 1.3rem; margin: 30px 0 10px; }
.wd-post-content p { font-size: 1.05rem; line-height: 1.72; color: var(--fg1); margin-bottom: 16px; }
.wd-post-content ul, .wd-post-content ol { margin: 0 0 18px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.wd-post-content li { font-size: 1.02rem; line-height: 1.6; color: var(--fg1); }
.wd-post-content figure { margin: 26px 0; }
.wd-post-content figure img { width: 100%; border-radius: 16px; border: 1px solid hsl(var(--border) / 0.6); }
.wd-post-content figcaption { font-size: 13px; color: var(--fg2); text-align: center; margin-top: 8px; }
.wd-post-lead { font-size: 1.18rem !important; line-height: 1.6 !important; color: var(--fg2) !important; }

/* Callouts */
.wd-callout { margin: 28px 0; }
.wd-callout strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; color: var(--fg1); margin-bottom: 8px; }
.wd-callout p { font-style: italic; font-size: 1.02rem !important; line-height: 1.65 !important; margin: 0 !important; color: var(--fg2) !important; }
/* "Did You Know?" - yellow left rule, no fill */
.wd-callout--info { border-left: 4px solid var(--winday-yellow); padding: 4px 0 4px 22px; }
/* "Pro Tip" - soft blue card with a blue left rule */
.wd-callout--tip { background: hsl(228 100% 97%); border: 1px solid hsl(228 97% 61% / 0.14); border-left: 4px solid var(--winday-blue); border-radius: 14px; padding: 20px 24px; }

/* Inline related-article card */
.wd-inline-article { display: flex; gap: 22px; align-items: center; background: hsl(228 100% 98%); border: 1px solid hsl(var(--border) / 0.7); border-radius: 20px; padding: 18px; margin: 30px 0; }
.wd-inline-article__img { width: 210px; flex-shrink: 0; border-radius: 14px; aspect-ratio: 16 / 11; object-fit: cover; }
.wd-inline-article__body { flex: 1; min-width: 0; }
.wd-inline-article h4 { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.2; margin-bottom: 8px; }
.wd-inline-article h4 a { color: hsl(var(--primary)); text-decoration: none; }
.wd-inline-article h4 a:hover { text-decoration: underline; }
.wd-inline-article p { font-size: 0.98rem !important; color: var(--fg2) !important; margin: 0 0 14px !important; }
.wd-inline-article__cta { display: block; text-align: center; background: hsl(228 97% 61% / 0.10); color: hsl(var(--primary)); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; padding: 14px; border-radius: 12px; text-decoration: none; transition: background var(--transition-fast); }
.wd-inline-article__cta:hover { background: hsl(228 97% 61% / 0.18); text-decoration: none; }

/* Inline compact "Start Winday" CTA */
.wd-inline-cta { text-align: center; background: linear-gradient(150deg, #3A2CE6 0%, #4159F8 55%, #4E8BFF 100%); border-radius: 22px; padding: 34px 28px; margin: 32px 0; color: #fff; }
.wd-inline-cta h3 { color: #fff; font-family: var(--font-heading); font-size: 1.7rem; margin-bottom: 10px; }
.wd-inline-cta p { color: rgba(255,255,255,0.9) !important; font-size: 1rem !important; line-height: 1.55 !important; margin: 0 auto 20px !important; max-width: 46ch; }
.wd-inline-cta__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gradient-accent); color: #1E2241; font-weight: 700; font-size: 15px; padding: 13px 28px; border-radius: 12px; text-decoration: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.22), var(--shadow-md); transition: transform var(--transition-fast); }
.wd-inline-cta__btn:hover { transform: translateY(-1px); text-decoration: none; }

/* Inline text links in body copy */
.wd-post-content p a, .wd-post-content li a { color: hsl(var(--primary)); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.wd-post-content p a:hover, .wd-post-content li a:hover { color: #2E42D8; }

/* Bullet list */
.wd-post-content ul { list-style: none; padding-left: 2px; }
.wd-post-content ul li { position: relative; padding-left: 26px; }
.wd-post-content ul li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-primary); }

/* Embedded game demo container */
.wd-embed { position: relative; border-radius: 18px; overflow: hidden; margin: 28px 0; border: 1px solid hsl(var(--border)); background: hsl(var(--secondary)); box-shadow: var(--shadow-md); }
.wd-embed-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid hsl(var(--border) / 0.6); font-size: 13px; font-weight: 600; color: var(--fg2); background: hsl(var(--card)); }
.wd-embed-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.wd-embed-body { display: flex; align-items: center; gap: 18px; padding: 18px; }
.wd-embed-body img { width: 110px; border-radius: 12px; flex-shrink: 0; box-shadow: var(--shadow-md); }
.wd-embed-body h4 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 6px; }
.wd-embed-body p { font-size: 13.5px !important; color: var(--fg2) !important; margin: 0 0 12px !important; }

/* Rate this article */
.wd-rate { text-align: center; padding: 52px 24px; margin: 8px 0 0; border-radius: 28px; background: linear-gradient(135deg, #171C3A 0%, #0D1580 100%); color: #fff; }
.wd-rate h3 { color: #fff; font-size: 1.6rem; }
.wd-rate p { color: rgba(255,255,255,0.7); font-size: 14px; margin: 8px 0 20px; }
.wd-rate-stars { display: inline-flex; gap: 6px; }
.wd-rate-stars button { background: transparent; border: 0; padding: 0; line-height: 0; cursor: pointer; color: rgba(255,255,255,0.3); transition: color var(--transition-fast), transform var(--transition-fast); }
.wd-rate-stars button:hover { transform: scale(1.12); }
.wd-rate-stars button.on { color: #FFB400; }
.wd-rate-thanks { display: none; margin-top: 14px; font-weight: 700; color: #FFD84D; }
.wd-rate.is-rated .wd-rate-thanks { display: block; }

/* Post FAQ (simple accordion, reuses .wd-faq-item styles) */
.wd-post-faq { max-width: 820px; margin: 0 auto; }
.wd-post-faq .wd-title { text-align: center; margin-bottom: 28px; }
.wd-post-faq .wd-faq-list { border-top: 1px solid hsl(var(--border)); }

/* Responsive */
@media (max-width: 980px) {
  .wd-post-layout { display: flex; flex-direction: column; gap: 22px; padding: 22px 0 100px; }
  .wd-post-cover { order: 1; }
  .wd-post-aside--right { order: 2; position: static; width: 100%; }
  .wd-post-cta { width: 100%; }
  .wd-post-content { order: 3; }
  .wd-post-aside--left { order: 4; position: static; width: 100%; }
  .wd-share-card { display: none; }          /* share moves into the hero */
  .wd-share-row.wd-post-hero-share { display: flex; }
  /* Summarize + Contents become fixed bottom-sheets, opened from the bottom bar */
  .wd-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
    background: hsl(var(--card));
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -14px 44px rgba(10,15,50,0.28);
    padding: 30px 22px 26px;
    transform: translateY(115%);
    transition: transform 0.32s var(--ease-smooth);
    max-height: 78vh; overflow-y: auto;
  }
  .wd-panel.is-open { transform: translateY(0); }
  .wd-panel-close { display: grid; }
  .wd-post-bar { display: flex; }
}
@media (max-width: 600px) {
  .wd-embed-body { flex-direction: column; text-align: center; }
  .wd-inline-article { flex-direction: column; align-items: stretch; gap: 14px; }
  .wd-inline-article__img { width: 100%; aspect-ratio: 16 / 9; }
}

/* ============================================================
   BUILDER - feature tabs + illustrated stage
   ============================================================ */
.wd-builder {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: stretch;
  margin-top: 8px;
}

/* ----- Left: tabs ----- */
.wd-btabs { display: flex; flex-direction: column; gap: 10px; align-self: center; }
.wd-btab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--fg1);
  overflow: hidden;
  transition: background var(--dur-normal) var(--ease-smooth), border-color var(--dur-normal) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth), transform var(--dur-normal) var(--ease-smooth);
}
.wd-btab:hover { background: hsl(var(--secondary) / 0.7); }
.wd-btab.is-active {
  background: hsl(var(--card));
  border-color: hsl(var(--border) / 0.7);
  box-shadow: var(--shadow-float), var(--shadow-inner-highlight);
}
/* big, bold, ghosted numbers */
.wd-btab-num {
  flex-shrink: 0;
  width: 42px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground) / 0.16);
  transition: color var(--dur-normal) var(--ease-smooth);
}
.wd-btab.is-active .wd-btab-num {
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.wd-btab-copy { display: flex; flex-direction: column; gap: 4px; }
.wd-btab-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
.wd-btab.is-active .wd-btab-title { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.wd-btab-desc {
  font-size: 14px; color: var(--fg2); line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--dur-normal) var(--ease-smooth), opacity var(--dur-normal) var(--ease-smooth), margin-top var(--dur-normal) var(--ease-smooth);
}
.wd-btab.is-active .wd-btab-desc { max-height: 140px; opacity: 1; margin-top: 2px; }
/* progress bar on the active tab (auto-advance) */
.wd-btab-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gradient-primary); border-radius: 3px; }
.wd-btab.is-active .wd-btab-bar { animation: wd-btab-fill var(--btab-dur, 6s) linear forwards; }
.wd-builder.is-paused .wd-btab.is-active .wd-btab-bar { animation-play-state: paused; }
.wd-builder.is-static .wd-btab-bar { display: none; }
@keyframes wd-btab-fill { from { width: 0; } to { width: 100%; } }

/* ----- Right: stage (single card that holds the content) ----- */
.wd-bstage {
  position: relative;
  border-radius: 28px;
  border: 1px solid hsl(var(--border) / 0.7);
  background:
    radial-gradient(120% 90% at 85% 0%, hsl(228 97% 61% / 0.09) 0%, transparent 55%),
    linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(228 40% 99%) 100%);
  box-shadow: var(--shadow-float-lg), var(--shadow-inner-highlight);
  overflow: hidden;
  min-height: 460px;
  display: grid;
}
.wd-bpanel {
  grid-area: 1 / 1;
  padding: 0;
  display: flex; align-items: stretch; justify-content: stretch;
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(0.99);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth), visibility 0.5s;
}
.wd-bpanel.is-active { opacity: 1; visibility: visible; transform: none; }
.wd-bpanel[hidden] { display: flex; } /* keep in grid stack; visibility handles show/hide */
/* the content wrapper now fills the single stage card - no inner card, no max-width */
.wd-mock {
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wd-mock-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.wd-mock-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--primary)); }
.wd-mock-head b { font-family: var(--font-heading); font-size: 1.18rem; letter-spacing: -0.01em; }

/* Panel 1 - goals */
.wd-goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wd-goal {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px; border-radius: 14px;
  border: 1.5px solid hsl(var(--border) / 0.8);
  background: hsl(var(--secondary) / 0.5);
  font-weight: 600; font-size: 15.5px; color: var(--fg1);
}
.wd-goal.is-sel { border-color: hsl(var(--primary) / 0.55); background: hsl(228 97% 61% / 0.06); box-shadow: 0 0 0 3px hsl(228 97% 61% / 0.10); }
.wd-goal-scratch { border-style: dashed; }
.wd-goal-ic { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; }
.wd-goal-ic svg { width: 18px; height: 18px; }
.wd-goal-check { width: 16px; height: 16px; color: hsl(var(--primary)); margin-left: auto; }

/* Panel 2 - create with AI */
.wd-ai-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.5);
  font-size: 16px; color: var(--fg1);
}
.wd-ai-spark { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--gradient-primary); box-shadow: var(--shadow-glow); }
.wd-ai-spark svg { width: 17px; height: 17px; }
.wd-ai-typed { line-height: 1.35; }
.wd-ai-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: hsl(var(--primary)); vertical-align: -2px; animation: wd-blink 1s step-end infinite; }
@keyframes wd-blink { 50% { opacity: 0; } }
.wd-ai-body { display: grid; grid-template-columns: 1fr 168px; gap: 18px; margin-top: 18px; align-items: stretch; }
.wd-ai-gen { display: flex; flex-direction: column; gap: 11px; }
.wd-vis-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: hsl(var(--primary)); background: hsl(228 97% 61% / 0.08); border: 1px solid hsl(228 97% 61% / 0.16); padding: 6px 12px; border-radius: 9999px; }
.wd-dots { display: inline-flex; gap: 3px; }
.wd-dots i { width: 4px; height: 4px; border-radius: 50%; background: hsl(var(--primary)); animation: wd-dot 1.2s infinite; }
.wd-dots i:nth-child(2) { animation-delay: 0.2s; }
.wd-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes wd-dot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.wd-ai-line { height: 11px; border-radius: 6px; background: linear-gradient(90deg, hsl(var(--secondary)) 25%, hsl(228 30% 90%) 37%, hsl(var(--secondary)) 63%); background-size: 400% 100%; animation: wd-shimmer 1.5s infinite; }
.wd-ai-line.l1 { width: 92%; } .wd-ai-line.l2 { width: 78%; } .wd-ai-line.l3 { width: 85%; }
@keyframes wd-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* generation log - assets / logo / copy */
.wd-ai-log { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.wd-ai-logrow { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; border: 1px solid hsl(var(--border) / 0.7); background: hsl(var(--card)); box-shadow: var(--shadow-md); }
.wd-ai-logic { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: hsl(var(--success)); }
.wd-ai-logic svg { width: 14px; height: 14px; }
.wd-ai-logic.wd-ai-spin { background: hsl(228 97% 61% / 0.12); color: hsl(var(--primary)); }
.wd-ai-logic.wd-ai-spin svg { animation: wd-spin 0.9s linear infinite; }
@keyframes wd-spin { to { transform: rotate(360deg); } }
.wd-ai-logtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wd-ai-logtxt b { font-size: 14px; font-weight: 700; color: var(--fg1); }
.wd-ai-logtxt em { font-style: normal; font-size: 12.5px; color: var(--fg2); line-height: 1.35; }
.wd-ai-thumbs { flex-shrink: 0; display: flex; gap: 6px; }
.wd-ai-thumbs img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; padding: 4px; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border) / 0.6); }
.wd-ai-logo { flex-shrink: 0; width: 56px; height: 34px; border-radius: 8px; border: 1px solid hsl(var(--border) / 0.6); background-size: 220%; background-position: center 14%; box-shadow: var(--shadow-md); }
.wd-ai-preview { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid hsl(var(--border) / 0.6); }
.wd-ai-preview img { width: 100%; height: 100%; object-fit: cover; }
.wd-ai-preview-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #fff; background: hsl(var(--success)); padding: 4px 9px; border-radius: 9999px; box-shadow: var(--shadow-md); }
.wd-ai-preview-tag svg { width: 12px; height: 12px; }

/* Panel 3 - publish */
.wd-mock-publish { display: flex; flex-direction: column; gap: 16px; }
/* game link bar */
.wd-pub-link { display: flex; align-items: center; gap: 10px; }
.wd-pub-linkbox { flex: 1; min-width: 0; display: flex; align-items: stretch; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); overflow: hidden; box-shadow: var(--shadow-md); }
.wd-pub-proto { flex-shrink: 0; display: flex; align-items: center; padding: 0 14px; background: hsl(var(--secondary) / 0.7); color: var(--fg2); font-size: 14px; border-right: 1px solid hsl(var(--border)); }
.wd-pub-url { padding: 13px 14px; font-size: 15px; font-weight: 600; color: var(--fg1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-pub-copy { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--primary)); display: grid; place-items: center; box-shadow: var(--shadow-md); transition: background var(--transition-fast); }
.wd-pub-copy:hover { background: hsl(var(--secondary)); }
.wd-pub-copy svg { width: 18px; height: 18px; }
/* option widgets - styled like the goal cards (2 per row) */
.wd-pub-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wd-pub-chip { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 14px; border: 1.5px solid hsl(var(--border) / 0.8); background: hsl(var(--secondary) / 0.5); font-size: 15.5px; font-weight: 600; color: var(--fg1); white-space: nowrap; }
.wd-pub-chip i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; }
.wd-pub-chip i svg { width: 18px; height: 18px; }

/* shared tint tiles (goals + channels) */
.wd-goal-ic[data-tint="blue"],   .wd-pub-chip i[data-tint="blue"]   { color: var(--winday-blue);   background: hsl(228 97% 61% / 0.12); }
.wd-goal-ic[data-tint="green"],  .wd-pub-chip i[data-tint="green"]  { color: var(--winday-green);  background: var(--winday-green-light); }
.wd-goal-ic[data-tint="yellow"], .wd-pub-chip i[data-tint="yellow"] { color: #C79200;              background: var(--winday-yellow-light); }
.wd-goal-ic[data-tint="purple"], .wd-pub-chip i[data-tint="purple"] { color: var(--winday-purple); background: var(--winday-purple-light); }
.wd-goal-ic[data-tint="pink"],   .wd-pub-chip i[data-tint="pink"]   { color: var(--winday-pink);   background: hsl(320 85% 60% / 0.10); }
.wd-goal-ic[data-tint="cyan"],   .wd-pub-chip i[data-tint="cyan"]   { color: #0EA5C6;              background: hsl(192 85% 45% / 0.12); }

/* Panel 4 - analytics (winday-ai multi-line chart + metric cards) */
.wd-stat-up { font-size: 11px; font-weight: 700; color: hsl(var(--success)); }
.wd-an-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.wd-an-head > b { font-family: var(--font-heading); font-size: 1.02rem; }
.wd-an-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.wd-an-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg2); }
.wd-an-legend i { width: 9px; height: 9px; border-radius: 50%; }
.wd-an-chart svg { width: 100%; height: auto; display: block; }
.wd-an-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-active .wd-an-line { animation: wd-an-draw 1.3s var(--ease-smooth) forwards; animation-delay: calc(var(--i, 0) * 0.18s); }
@keyframes wd-an-draw { to { stroke-dashoffset: 0; } }
.wd-an-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; padding-top: 16px; border-top: 1px solid hsl(var(--border) / 0.6); }
.wd-an-card { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px; border-radius: 13px; border: 1px solid hsl(var(--border) / 0.7); background: hsl(var(--secondary) / 0.45); }
.wd-an-card em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg2); }
.wd-an-card em i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wd-an-card b { font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: -0.01em; }

/* Panel 5 - scale up (many campaigns → one dashboard) */
.wd-mock-scale { padding: 20px; }
.wd-orbit { position: relative; width: 100%; aspect-ratio: 520 / 400; }
.wd-orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.wd-orbit-thumb { position: absolute; z-index: 2; width: 15%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border-radius: 11px; overflow: hidden; border: 2px solid hsl(var(--card)); box-shadow: var(--shadow-float); animation: wd-orbit-float 4s var(--ease-smooth) infinite; }
.wd-orbit-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-o1 { left: 18.5%; top: 21%; } .wd-o2 { left: 50%; top: 15.5%; animation-delay: -0.6s; }
.wd-o3 { left: 81.5%; top: 21%; animation-delay: -1.2s; } .wd-o4 { left: 18.5%; top: 79%; animation-delay: -1.8s; }
.wd-o5 { left: 50%; top: 84.5%; animation-delay: -2.4s; } .wd-o6 { left: 81.5%; top: 79%; animation-delay: -3s; }
@keyframes wd-orbit-float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 6px)); } }
/* central dashboard hub */
.wd-orbit-hub { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); width: 40%; min-width: 150px; background: hsl(var(--card)); border: 1px solid hsl(var(--border) / 0.7); border-radius: 16px; box-shadow: var(--shadow-float-lg), 0 0 0 6px hsl(228 97% 61% / 0.06); padding: 15px 16px; display: flex; flex-direction: column; gap: 9px; }
.wd-orbit-hub::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; box-shadow: 0 0 0 1px hsl(228 97% 61% / 0.14); animation: wd-hub-pulse 2.4s ease-in-out infinite; }
@keyframes wd-hub-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.wd-hub-head { display: flex; align-items: center; gap: 8px; color: hsl(var(--primary)); }
.wd-hub-head svg { width: 17px; height: 17px; }
.wd-hub-head b { font-family: var(--font-heading); font-size: 1.02rem; color: var(--fg1); }
.wd-hub-stat { display: flex; flex-direction: column; gap: 1px; }
.wd-hub-stat em { font-style: normal; font-size: 12px; color: var(--fg2); }
.wd-hub-stat strong { font-family: var(--font-heading); font-size: 1.6rem; letter-spacing: -0.02em; color: var(--fg1); }
.wd-hub-spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.wd-hub-spark i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--gradient-primary); opacity: 0.85; }

/* ============================================================
   GAME LANDING PAGES (/games/*)
   ============================================================ */
/* Centered hero */
.wd-ghero { position: relative; padding: 132px 24px 64px; text-align: center; overflow: hidden; }
.wd-ghero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, hsl(228 97% 61% / 0.10) 0%, transparent 60%);
}
.wd-ghero-inner { max-width: 1200px; margin: 0 auto; }
.wd-ghero-brow { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 30px; }
.wd-ghero-brow a, .wd-ghero-brow span { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: hsl(var(--primary)); text-decoration: none; line-height: 1; }
.wd-ghero-brow .wd-brow-side { opacity: 0.5; transition: opacity var(--transition-fast); }
.wd-ghero-brow .wd-brow-side:hover { opacity: 1; }
@media (max-width: 600px) { .wd-ghero-brow { gap: 6px 12px; } .wd-ghero-brow a, .wd-ghero-brow span { font-size: 11px; letter-spacing: 0.12em; } }
.wd-ghero-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: hsl(var(--primary)); margin-bottom: 20px; }
/* Game-pages top nav - centered row of the three game pages (eyebrow style) */
.wd-gnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.wd-gnav a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--fg1); background: transparent; border: 1px solid transparent; padding: 9px 18px; border-radius: 9999px; text-decoration: none; transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
.wd-gnav a:hover { border-color: hsl(var(--primary) / 0.4); background: hsl(228 97% 61% / 0.06); color: hsl(var(--primary)); transform: translateY(-1px); }
.wd-gnav a.is-active { border-color: hsl(var(--primary) / 0.4); background: hsl(228 97% 61% / 0.06); color: hsl(var(--primary)); }
@media (max-width: 680px) { .wd-gnav { gap: 8px; } }
.wd-ghero h1 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.7rem, 6.8vw, 5.4rem); line-height: 1.02; letter-spacing: -0.025em; }
/* Highlighted phrase - winday-ai-quiz .accent treatment (gold on soft-yellow) */
.wd-ghl { display: inline-block; color: #C48A0E; background: hsl(42 100% 62% / 0.25); padding: 0.02em 0.26em; border-radius: 0.3em; }
.wd-ghero .wd-hero-sub { max-width: 640px; margin: 22px auto 0; font-size: 1.12rem; color: var(--fg2); line-height: 1.6; }
.wd-ghero .wd-accent { white-space: nowrap; }

/* Animated fanned screenshot deck (casual + quiz heroes) */
.wd-stage { position: relative; width: 100%; max-width: 660px; height: clamp(440px, 54vw, 580px); margin: 46px auto 0; }
.wd-stage-glow {
  position: absolute; inset: -6% -4%; z-index: 0;
  background:
    radial-gradient(circle at 32% 32%, hsl(228 97% 61% / 0.20), transparent 60%),
    radial-gradient(circle at 70% 68%, hsl(262 83% 65% / 0.16), transparent 60%);
  filter: blur(44px);
}
.wd-stage-card {
  position: absolute; left: 50%; top: 0;
  width: 54%; aspect-ratio: 3 / 4;
  border-radius: 24px; overflow: hidden;
  border: 5px solid hsl(0 0% 100%);
  box-shadow: var(--shadow-float-lg), 0 0 0 1px hsl(var(--border) / 0.6);
  opacity: 0; /* JS positions + reveals; static fan under reduced-motion */
  transition: transform 1.1s var(--ease-smooth), opacity 1.1s var(--ease-smooth);
  will-change: transform, opacity;
}
.wd-stage-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-stage-tag {
  position: absolute; z-index: 6;
  display: inline-flex; align-items: center; gap: 9px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 14px; padding: 9px 13px; box-shadow: var(--shadow-float);
  font-size: 13px; white-space: nowrap;
}
.wd-stage-tag b { font-weight: 700; color: var(--fg1); }
.wd-stage-tag .wd-uc-fl-ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.wd-stage-tag .wd-uc-fl-ic svg { width: 15px; height: 15px; }
.wd-stage-tag-a { top: 8%; left: 2%;  animation: wd-uc-float 5s ease-in-out infinite; }
.wd-stage-tag-b { top: 34%; right: 1%; animation: wd-uc-float 6s 0.6s ease-in-out infinite; }

/* Wheel hero banner - scales proportionally to the content-area width */
.wd-wheel-banner { position: relative; width: 100%; max-width: 1200px; margin: 44px auto 0; }
.wd-wheel-banner::before {
  content: ""; position: absolute; inset: -8%; z-index: 0;
  background: radial-gradient(circle at 50% 45%, hsl(42 100% 62% / 0.22), transparent 62%), radial-gradient(circle at 50% 55%, hsl(228 97% 61% / 0.18), transparent 60%);
  filter: blur(46px);
}
.wd-wheel-banner img {
  position: relative; z-index: 1;
  width: 100%; height: auto; display: block;
  border-radius: 28px; border: 1px solid hsl(var(--border) / 0.6);
  box-shadow: var(--shadow-float-lg), var(--shadow-inner-highlight);
  animation: wd-uc-float 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .wd-wheel-banner img { animation: none; } }

/* Creation-UI mock (How it works) - mechanic editors */
.wd-cmock { width: 100%; display: grid; grid-template-columns: 1fr 190px; gap: 20px; align-items: center; }
.wd-cmock-editor { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wd-cmock-shot { border-radius: 16px; overflow: hidden; border: 1px solid hsl(var(--border) / 0.6); box-shadow: var(--shadow-md); }
.wd-cmock-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-cmock-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; }
/* segmented rows + rows shared by mechanic editors */
.wd-cm-seg { display: inline-flex; gap: 3px; padding: 4px; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border) / 0.7); border-radius: 10px; }
.wd-cm-seg span { font-size: 12.5px; font-weight: 600; color: var(--fg2); padding: 6px 12px; border-radius: 7px; }
.wd-cm-seg span.on { color: #fff; background: var(--gradient-primary); }
.wd-cm-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid hsl(var(--border) / 0.7); background: hsl(var(--card)); font-size: 13px; box-shadow: var(--shadow-sm); }
.wd-cm-row .wd-cm-dot { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; color: #fff; }
.wd-cm-row .wd-cm-prob { margin-left: auto; font-weight: 700; color: hsl(var(--primary)); }
.wd-cm-answer { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1.5px solid hsl(var(--border) / 0.8); background: hsl(var(--secondary) / 0.5); font-size: 13px; }
.wd-cm-answer.is-correct { border-color: hsl(var(--success) / 0.6); background: hsl(152 69% 45% / 0.10); }
.wd-cm-answer .wd-cm-letter { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; background: var(--gradient-primary); }
.wd-cm-answer.is-correct .wd-cm-letter { background: hsl(var(--success)); }
.wd-cm-answer .wd-cm-check { margin-left: auto; color: hsl(var(--success)); }

/* Footer - game pages button group */
.wd-footer:has(.wd-footer-games) { padding-top: 56px; padding-bottom: 64px; }
.wd-footer-games { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-bottom: 28px; border-bottom: 1px solid hsl(var(--border) / 0.5); }
.wd-footer-games-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--fg1); }
.wd-footer-games-links { display: flex; flex-wrap: wrap; gap: 10px; }
.wd-footer-games-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--fg1); background: hsl(var(--secondary)); border: 1px solid hsl(var(--border) / 0.7); padding: 9px 16px; border-radius: 9999px; text-decoration: none; transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
.wd-footer-games-links a:hover { border-color: hsl(var(--primary) / 0.4); background: hsl(228 97% 61% / 0.06); color: hsl(var(--primary)); transform: translateY(-1px); }

@media (max-width: 680px) {
  .wd-ghero { padding: 104px 20px 48px; }
  .wd-cmock { grid-template-columns: 1fr; }
  .wd-cmock-shot { max-width: 220px; }
  .wd-stage { height: clamp(360px, 92vw, 460px); }
  .wd-stage-card { width: 62%; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Reveal is opt-in only when JS is present, so content is never hidden without JS */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .wd-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .wd-nav-center, .wd-nav-right { display: none; }
  .wd-burger { display: flex; }
  .wd-uc-panel { grid-template-columns: 1fr; gap: 20px; padding: 8px 0; text-align: left; }
  .wd-uc-text { max-width: none; order: 2; }
  .wd-uc-shot { order: 1; justify-self: center; width: 340px; height: 360px; }
  .wd-uc-card { width: 210px; }
  .wd-uc-card:nth-child(1) { transform: translate(-50%, -50%) translateX(-72px) rotate(-10deg) scale(0.9); }
  .wd-uc-card:nth-child(3) { transform: translate(-50%, -50%) translateX(72px) rotate(10deg) scale(0.9); }
  .wd-uc-fl { display: none; } /* decorative floaters off on mobile to avoid overflow */
  .wd-uc-switch { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .wd-builder { grid-template-columns: 1fr; gap: 22px; }
  .wd-bstage { min-height: 400px; order: 2; }
  .wd-btabs { order: 1; }
  .wd-pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .wd-faq { grid-template-columns: 1fr; gap: 32px; }
  .wd-faq-intro { position: static; }
  .wd-footer-main { flex-direction: column; align-items: flex-start; gap: 24px; }
  .wd-footer-end { margin-left: 0; width: 100%; justify-content: space-between; }
  .wd-cta-band { padding: 52px 0; }
  .wd-cta-inner { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; }
  .wd-cta-text { flex: 0 0 auto; }   /* stop the 440px flex-basis becoming a tall column height */
  .wd-cta-action { align-items: flex-start; width: 100%; gap: 8px; }
  .wd-cta-text p { margin-top: 12px; }
  .wd-cta-btn { width: 100%; justify-content: center; }
}
@media (max-width: 680px) {
  .wd-section { padding: 56px 0; }
  /* Carousels: halve the game preview cards on mobile */
  .wd-show-card { width: 143px; border-radius: 14px; }
  .wd-show-card .wd-show-label { font-size: 9px; padding: 4px 8px; left: 8px; bottom: 8px; border-radius: 9999px; }
  .wd-ticker { gap: 10px; }
  .wd-ticker-wrap-2 { margin-top: -8px; }
  .wd-section-head { margin-bottom: 40px; }
  .wd-cta-band { padding: 44px 0; }
  .wd-grid-3 { grid-template-columns: 1fr; }
  .wd-prompt-row { flex-wrap: wrap; }
  .wd-prompt-btn { width: 100%; justify-content: center; }
  .wd-btn-full { display: none; }
  .wd-btn-short { display: inline; }
  /* Footer: center everything on mobile */
  .wd-footer-games { flex-direction: column; align-items: center; text-align: center; }
  .wd-footer-games-links { justify-content: center; }
  .wd-footer-end { margin-left: 0; width: 100%; flex-direction: column; align-items: center; gap: 16px; }
  .wd-footer-links { justify-content: center; }
  .wd-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .wd-footer-bottom > span { margin-right: 0; }
  .wd-social { justify-content: center; }
  .wd-footer-legal { justify-content: center; }
  .wd-bstage { min-height: 0; }
  .wd-bpanel { padding: 22px 16px; }
  .wd-mock { padding: 18px; }
  .wd-ai-body { grid-template-columns: 1fr; }
  .wd-ai-preview { aspect-ratio: 16 / 10; max-height: 150px; }
  .wd-mock-publish { grid-template-columns: 110px 1fr; gap: 14px; }
  .wd-btab { padding: 15px 16px; gap: 13px; }
  .wd-btab-title { font-size: 1.12rem; }
  .wd-btab-num { width: 34px; font-size: 2rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .wd-ticker { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   WHEEL DESIGN STUDIO - BENTO
   ============================================================ */
.wd-bento-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: hsl(var(--primary)); margin-bottom: 4px; }

.wd-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 52px; text-align: left; }
.wd-bento-card { grid-column: span 2; display: flex; flex-direction: column; gap: 20px; padding: 26px; border-radius: 24px; background: hsl(var(--card)); border: 1px solid hsl(var(--border) / 0.6); box-shadow: var(--shadow-sm); overflow: hidden; }
.wd-bento-wide { grid-column: span 4; flex-direction: row; align-items: flex-start; gap: 30px; }
.wd-bento-wide .wd-bento-copy { flex: 0 0 38%; }
.wd-bento-wide .wd-bento-mock { flex: 1 1 auto; min-width: 0; }

.wd-bento-copy { display: flex; flex-direction: column; }
.wd-bento-idx { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; color: hsl(var(--primary)); letter-spacing: 0.04em; margin-bottom: 10px; opacity: 0.85; }
.wd-bento-copy h3 { font-family: var(--font-heading); font-size: 1.22rem; letter-spacing: -0.01em; line-height: 1.15; }
.wd-bento-copy p { font-size: 0.92rem; color: var(--fg2); line-height: 1.55; margin-top: 8px; }
.wd-bento-mock { display: flex; flex-direction: column; gap: 9px; }

.wd-bento-dark { background: linear-gradient(160deg, #1b1f4a 0%, #2b1c54 100%); border-color: hsl(255 40% 40% / 0.5); color: #fff; }
.wd-bento-dark .wd-bento-idx { color: #c9b8ff; }
.wd-bento-dark .wd-bento-copy p { color: hsl(255 30% 85%); }
.wd-bento-dark .wd-bento-copy h3 { color: #fff; }

/* 01 - sectors setup (winday-ai style) */
.wd-wsec { gap: 11px; position: relative; }
.wd-wsec-steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wd-wsec-stepper { border: 1px solid hsl(var(--border)); background: hsl(var(--card) / 0.5); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.wd-wsec-st-title { font-size: 12.5px; font-weight: 600; color: var(--fg1); line-height: 1.1; text-align: center; }
.wd-wsec-st-desc { font-size: 10.5px; color: var(--fg2); line-height: 1.25; }
.wd-wsec-st-ctrl { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 3px; }
.wd-wsec-st-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid hsl(var(--border)); background: transparent; color: var(--fg2); font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer; transition: color var(--transition-fast), background var(--transition-fast); }
.wd-wsec-st-btn:hover { color: var(--fg1); background: hsl(var(--secondary) / 0.6); }
.wd-wsec-st-ctrl b { font-size: 1.05rem; font-weight: 700; color: hsl(var(--primary)); min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }

.wd-wsec-label { font-size: 12px; font-weight: 600; color: var(--fg1); margin-top: 3px; }
.wd-wsec-rows { display: flex; flex-direction: column; gap: 8px; }

.wd-wsec-row { display: flex; align-items: center; gap: 7px; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / 0.5); border-radius: 12px; padding: 8px 9px; }
.wd-wsec-grip { display: flex; flex-shrink: 0; color: var(--fg2); opacity: 0.5; }
.wd-wsec-kind { display: inline-flex; align-items: center; justify-content: space-between; gap: 4px; width: 106px; flex-shrink: 0; height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid hsl(var(--border)); background: hsl(var(--secondary) / 0.5); font-size: 12px; font-weight: 500; color: var(--fg1); font-family: inherit; cursor: pointer; transition: border-color var(--transition-fast); }
.wd-wsec-kind:hover { border-color: hsl(var(--primary) / 0.4); }
.wd-wsec-kind-label { white-space: nowrap; }
.wd-wsec-kind svg { color: var(--fg2); flex-shrink: 0; }
.wd-wsec-img { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; border: 1px solid hsl(var(--border)); color: var(--fg2); }
.wd-wsec-input { position: relative; flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; padding: 0 32px 0 10px; border-radius: 8px; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / 0.5); font-size: 12.5px; color: var(--fg1); overflow: hidden; }
.wd-wsec-input-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-wsec-input.is-muted { color: var(--fg2); opacity: 0.7; }
.wd-wsec-count { position: absolute; right: 8px; font-size: 9.5px; font-style: normal; color: hsl(var(--fg2) / 0.55); font-variant-numeric: tabular-nums; }
.wd-wsec-slider { position: relative; width: 72px; flex-shrink: 0; height: 12px; border-radius: 9999px; background: hsl(var(--secondary)); box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.25); cursor: pointer; touch-action: none; }
.wd-wsec-slider > i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v, 40%); border-radius: 9999px; background: hsl(var(--primary)); }
.wd-wsec-thumb { position: absolute; top: 50%; left: 40%; transform: translate(-50%, -50%); width: 12px; height: 22px; border-radius: 6px; border: 2px solid hsl(var(--primary)); background: hsl(var(--card)); box-shadow: var(--shadow-sm); cursor: grab; pointer-events: none; }
.wd-wsec-pct { width: 32px; flex-shrink: 0; text-align: right; font-size: 12px; font-weight: 700; color: var(--fg1); font-variant-numeric: tabular-nums; }

.wd-wsec-diff { display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: hsl(var(--secondary) / 0.5); }
.wd-wsec-diff button { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--fg2); padding: 7px 0; border-radius: 7px; border: none; background: transparent; font-family: inherit; cursor: pointer; transition: color var(--transition-fast); }
.wd-wsec-diff button:hover { color: var(--fg1); }
.wd-wsec-diff button.on { color: #fff; background: hsl(var(--primary)); box-shadow: var(--shadow-sm); }
.wd-wsec-diff button.on:hover { color: #fff; }

.wd-wsec-menu { position: absolute; z-index: 30; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 10px; box-shadow: var(--shadow-md); padding: 4px; min-width: 120px; }
.wd-wsec-menu[hidden] { display: none; }
.wd-wsec-menu button { display: block; width: 100%; text-align: left; font-size: 12.5px; padding: 7px 10px; border-radius: 7px; border: none; background: none; color: var(--fg1); font-family: inherit; cursor: pointer; }
.wd-wsec-menu button:hover { background: hsl(var(--secondary)); }
.wd-wsec-menu button.on { color: hsl(var(--primary)); font-weight: 600; }

/* 02 - AI logo generation */
.wd-logo-gen { gap: 12px; }
.wd-gen-head { display: flex; align-items: baseline; gap: 8px; }
.wd-gen-label { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--fg1); background: hsl(var(--secondary)); border: 1px solid hsl(var(--border) / 0.7); padding: 4px 10px; border-radius: 9999px; }
.wd-gen-prompt { font-size: 12px; color: var(--fg2); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wd-logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wd-logo-tile { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; background: #fff; border: 1px solid hsl(var(--border) / 0.6); box-shadow: var(--shadow-sm); display: grid; place-items: center; padding: 12px; overflow: hidden; cursor: pointer; transition: border-color var(--transition-fast); }
.wd-logo-tile:hover { border-color: hsl(var(--primary) / 0.4); }
.wd-logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.wd-logo-tile.is-sel { outline: 3px solid hsl(var(--primary)); outline-offset: 1px; }
.wd-logo-check { position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%; background: hsl(var(--primary)); color: #fff; display: none; place-items: center; }
.wd-logo-tile.is-sel .wd-logo-check { display: grid; }

/* 03 - palette */
.wd-pal-inputs { display: flex; gap: 8px; }
.wd-pal-input { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--fg1); padding: 8px 10px; border: 1px solid hsl(var(--border) / 0.7); border-radius: 9px; background: hsl(var(--card)); }
.wd-pal-input i { width: 16px; height: 16px; border-radius: 5px; border: 1px solid hsl(var(--border)); }
.wd-pal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.wd-pal-pair { position: relative; aspect-ratio: 1 / 1; border-radius: 28%; background: linear-gradient(90deg, var(--a) 0 50%, var(--b) 50% 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 1px 3px rgba(0,0,0,0.12); cursor: pointer; }
.wd-pal-pair.is-sel { outline: 2.5px solid hsl(var(--primary)); outline-offset: 2px; }
.wd-pal-check { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; background: hsl(var(--primary)); color: #fff; display: none; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.wd-pal-pair.is-sel .wd-pal-check { display: grid; }

/* 04 - vfx */
.wd-vfx { align-items: center; gap: 16px; }
.wd-vfx-stage { position: relative; width: 100%; display: grid; place-items: center; padding: 10px 0; }
.wd-vfx-wheel { --wa: #F0485F; --wb: #FDF7C3; width: 118px; height: 118px; border-radius: 50%; background: conic-gradient(var(--wa) 0 60deg, var(--wb) 60deg 120deg, var(--wa) 120deg 180deg, var(--wb) 180deg 240deg, var(--wa) 240deg 300deg, var(--wb) 300deg 360deg); box-shadow: 0 0 0 6px rgba(255,255,255,0.92), 0 0 30px 5px rgba(129,140,248,0.65); }
.wd-vfx-spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #FFD84D; box-shadow: 0 0 10px 2px rgba(255,216,77,0.9); opacity: 0.5; }
.wd-vfx-spark.s1 { top: 8%; left: 24%; }
.wd-vfx-spark.s2 { top: 16%; right: 22%; }
.wd-vfx-spark.s3 { bottom: 20%; left: 18%; }
.wd-vfx-spark.s4 { bottom: 12%; right: 26%; }
.wd-vfx-spark.s5 { top: 46%; right: 8%; }
.wd-vfx-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wd-vfx-chips span { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 9999px; color: hsl(255 30% 85%); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }
.wd-vfx-chips span.on { color: #1b1f4a; background: #FFD84D; border-color: #FFD84D; }

/* 05 - prizes */
.wd-prz-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; border: 1px solid hsl(var(--border) / 0.7); background: hsl(var(--card)); box-shadow: var(--shadow-sm); font-size: 13px; }
.wd-prz-row b { font-weight: 600; color: var(--fg1); }
.wd-prz-ic { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border) / 0.7); color: var(--fg2); font-weight: 800; font-size: 12px; }
.wd-prz-how { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--fg2); padding: 5px 10px; border-radius: 8px; border: 1px solid hsl(var(--border) / 0.7); background: hsl(var(--secondary) / 0.5); }

/* animations */
@keyframes wd-slide-grow { from { transform: scaleX(0.35); } to { transform: scaleX(1); } }
@keyframes wd-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes wd-wheel-glow { 0%, 100% { box-shadow: 0 0 0 6px rgba(255,255,255,0.92), 0 0 24px 4px rgba(129,140,248,0.5); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0.92), 0 0 40px 10px rgba(129,140,248,0.9); } }
@keyframes wd-spin { to { transform: rotate(360deg); } }
@keyframes wd-sel-pulse { 0%, 100% { outline-color: hsl(var(--primary) / 0.45); } 50% { outline-color: hsl(var(--primary)); } }
@media (prefers-reduced-motion: no-preference) {
  .wd-st-slider i { transform-origin: left; animation: wd-slide-grow 1.1s ease both; }
  .wd-vfx-wheel { animation: wd-wheel-glow 3s ease-in-out infinite, wd-spin 16s linear infinite; }
  .wd-vfx-spark { animation: wd-twinkle 1.9s ease-in-out infinite; }
  .wd-vfx-spark.s2 { animation-delay: 0.4s; }
  .wd-vfx-spark.s3 { animation-delay: 0.8s; }
  .wd-vfx-spark.s4 { animation-delay: 0.2s; }
  .wd-vfx-spark.s5 { animation-delay: 0.6s; }
  .wd-pal-pair.is-sel { animation: wd-sel-pulse 2.4s ease-in-out infinite; }
}

@media (max-width: 900px) {
  .wd-bento { grid-template-columns: 1fr 1fr; }
  .wd-bento-card, .wd-bento-wide { grid-column: span 1; }
  .wd-bento-wide { flex-direction: column; align-items: stretch; }
  .wd-bento-wide .wd-bento-copy { flex: none; }
}
@media (max-width: 620px) {
  .wd-bento { grid-template-columns: 1fr; }
  .wd-bento-card, .wd-bento-wide { grid-column: span 1; }
}
