/*
 * IOUEZ UI kit. Every rule is scoped to .iz-root so themes cannot break it, and it only uses the
 * --iz-* design tokens printed by IOUEZ\Design\Design (approved brand, dark by default).
 * Motion levels: [data-iz-motion="full|subtle|off"]; "reduce motion" on the device always wins.
 */

/* ---------- Theme shield + base ---------- */
.iz-root { color: var(--iz-ink); font-family: var(--iz-font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-align: left; letter-spacing: normal; }
.iz-root *, .iz-root *::before, .iz-root *::after { box-sizing: border-box; }
.iz-root :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
.iz-root :where(h1, h2, h3, h4) { font-family: var(--iz-display); color: var(--iz-ink); letter-spacing: -.025em; line-height: 1.1; font-weight: 800; text-transform: none; }
.iz-root :where(a) { color: inherit; text-decoration: none; box-shadow: none; }
.iz-root :where(img, svg) { max-width: 100%; height: auto; display: block; }
.iz-root :where(button, input, select, textarea) { font: inherit; color: inherit; }
.iz-root .iz-muted { color: var(--iz-muted); }
.iz-root .iz-pos { color: var(--iz-pos); } .iz-root .iz-neg { color: var(--iz-neg); }
.iz-root .iz-num, .iz-root .iz-balance strong { font-variant-numeric: tabular-nums; }
.iz-root .iz-grad-text { background: var(--iz-grad); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.iz-root :focus-visible { outline: 3px solid color-mix(in srgb, var(--iz-p1) 70%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Brand ---------- */
.iz-root .iz-brand { display: inline-flex; align-items: center; gap: .42em; font: 800 calc(var(--iz-logo, 36px) * .62)/1 var(--iz-display); letter-spacing: -.035em; color: var(--iz-ink); }
.iz-root .iz-brand .iz-logo { width: var(--iz-logo, 36px); height: var(--iz-logo, 36px); flex: none; }
.iz-root .iz-brand__name b { background: var(--iz-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.iz-root .iz-brand-link { display: inline-flex; flex-direction: column; gap: 6px; }
.iz-root .iz-tagline { color: var(--iz-muted); font-size: .9em; font-weight: 600; }

/* ---------- Buttons (bold outline + solid shadow) ---------- */
.iz-root .iz-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 14px;
  border: var(--iz-bw) solid var(--iz-edge); background: var(--iz-surface); color: var(--iz-ink); font: 800 15px/1 var(--iz-font); white-space: nowrap; cursor: pointer; overflow: hidden;
  box-shadow: 4px 4px 0 var(--iz-hard); transition: transform .18s ease, box-shadow .18s ease, background .2s ease; text-decoration: none; }
.iz-root .iz-btn--primary { background: var(--iz-p1); color: var(--iz-ongrad); box-shadow: 4px 4px 0 var(--iz-btnhard); }
.iz-root .iz-btn--ghost { background: var(--iz-surface); }
.iz-root .iz-btn--gold { background: var(--iz-accent); color: #0B1B3A; }
.iz-root .iz-btn--sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 12px; }
.iz-root .iz-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--iz-hard); }
.iz-root .iz-btn--primary:hover { box-shadow: 6px 6px 0 var(--iz-btnhard); }
.iz-root .iz-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--iz-hard); }
.iz-root .iz-btn--primary::after { content: ""; position: absolute; inset: 0; width: 45%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .45), transparent); transform: translateX(-130%); pointer-events: none; }
.iz-root[data-iz-motion="full"] .iz-btn--primary:hover::after, [data-iz-motion="full"] .iz-root .iz-btn--primary:hover::after { animation: iz-shimmer .9s ease; }

/* ---------- Surfaces ---------- */
.iz-root .iz-card { background: var(--iz-surface); border: var(--iz-bw) solid var(--iz-edge2); border-radius: calc(var(--iz-radius) + 6px); box-shadow: var(--iz-shadow-x) var(--iz-shadow-x) 0 var(--iz-hard); padding: 22px; }
.iz-root .iz-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 800 12px var(--iz-font); border: 2px solid var(--iz-edge2); background: color-mix(in srgb, var(--iz-p1) 14%, transparent); color: var(--iz-ink); }
.iz-root .iz-chip--gold { background: var(--iz-accent); color: #0B1B3A; border-color: transparent; }
.iz-root .iz-chip--pro, .iz-root .iz-chip--family { background: color-mix(in srgb, var(--iz-p3) 18%, transparent); }
.iz-root .iz-chip--business { background: color-mix(in srgb, var(--iz-accent) 22%, transparent); }
.iz-root .iz-chip--free { background: color-mix(in srgb, var(--iz-p1) 16%, transparent); }
.iz-root .iz-avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font: 800 13px var(--iz-font); color: #fff; background: linear-gradient(135deg, var(--iz-p3), var(--iz-p1)); border: 2px solid var(--iz-edge2); }
.iz-root .iz-balance { border-radius: calc(var(--iz-radius) + 6px); padding: 18px; color: var(--iz-ongrad); background: var(--iz-grad); background-size: 200% 200%; border: var(--iz-bw) solid var(--iz-edge2); box-shadow: var(--iz-shadow-x) var(--iz-shadow-x) 0 var(--iz-hard); }
.iz-root .iz-balance small { font-weight: 700; font-size: 12px; } .iz-root .iz-balance strong { display: block; font: 800 32px var(--iz-display); letter-spacing: -.02em; }
.iz-root .iz-row-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--iz-surface); border: 2px solid var(--iz-edge2); box-shadow: 3px 3px 0 var(--iz-hard); }
.iz-root .iz-row-card span:nth-child(2) { flex: 1; font-weight: 700; } .iz-root .iz-row-card small { display: block; color: var(--iz-muted); font-weight: 600; font-size: 12px; }
.iz-root .iz-row-card b { font-family: var(--iz-display); }

/* ---------- Store / app buttons ---------- */
.iz-root .iz-store-row { display: flex; flex-wrap: wrap; gap: 10px; } .iz-root .iz-align-center { justify-content: center; }
.iz-root .iz-store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 14px; background: var(--iz-ink); color: var(--iz-bg); border: var(--iz-bw) solid var(--iz-edge); box-shadow: 4px 4px 0 var(--iz-hard); transition: transform .18s, box-shadow .18s; }
.iz-root .iz-store:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--iz-hard); }
.iz-root .iz-store small { display: block; font-size: 10px; opacity: .75; line-height: 1; font-weight: 600; } .iz-root .iz-store b { font: 800 15px/1.15 var(--iz-font); }

/* ---------- Motion ---------- */
@keyframes iz-shimmer { to { transform: translateX(260%); } }
@keyframes iz-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes iz-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes iz-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes iz-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes iz-draw { to { stroke-dashoffset: 0; } }
@keyframes iz-pop { 0% { opacity: 0; transform: translateY(14px) scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes iz-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--iz-p1) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
/* Reveal: content is visible by default; JS adds .iz-will-reveal only when motion is allowed. */
.iz-will-reveal [data-iz-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
.iz-will-reveal [data-iz-reveal] { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.iz-will-reveal[data-iz-motion="subtle"] [data-iz-reveal]:not(.is-in) { transform: none; }
.iz-root[data-iz-motion="full"] .iz-grad-text, .iz-root[data-iz-motion="full"] .iz-balance { animation: iz-shift 9s ease infinite; }
.iz-root[data-iz-motion="full"] [data-iz-float] { animation: iz-float 7s ease-in-out infinite; }
.iz-root[data-iz-motion="off"] *, .iz-root[data-iz-motion="off"] *::before, .iz-root[data-iz-motion="off"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .iz-root *, .iz-root *::before, .iz-root *::after { animation: none !important; transition: none !important; } .iz-will-reveal [data-iz-reveal]:not(.is-in) { opacity: 1; transform: none; } }

/* ---------- Light / dark switch ---------- */
.iz-root .iz-mode-toggle { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; border: 2px solid var(--iz-edge2); background: var(--iz-surface); box-shadow: 3px 3px 0 var(--iz-hard); cursor: pointer; }
.iz-root .iz-mode-toggle svg { width: 20px; height: 20px; }
