/* ==========================================================================
   GM Niazi: design system
   Ink navy + one confident blue, flat surfaces, category colours on tool icons.
   Light by default, dark optional. No external requests: fonts are self-hosted.
   ========================================================================== */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: optional; }

:root {
  --ink: #0b1b34;
  --ink-2: #12274a;
  --blue: #1d5bd8;
  --blue-dark: #174bb5;

  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --surface-strong: #eef2f8;
  --border: #e0e6f0;
  --border-strong: #c9d3e3;
  --text: #0f1e38;
  --text-soft: #47556e;
  --text-faint: #66738a;
  --accent: #1d5bd8;
  --accent-soft: #e9f0fd;
  --ok: #067a55;
  --warn: #a35a06;
  --err: #c9302c;
  --star: #d98a00;

  /* tool category colours: foreground / tile */
  --cat-calc: #1d5bd8;   --cat-calc-bg: #e9f0fd;
  --cat-career: #067a6c; --cat-career-bg: #e0f5f1;
  --cat-prod: #b4540a;   --cat-prod-bg: #fcefe0;
  --cat-util: #6a3fd1;   --cat-util-bg: #efe9fc;

  --shadow-sm: 0 1px 2px rgba(11, 27, 52, .05);
  --shadow: 0 1px 2px rgba(11, 27, 52, .05), 0 8px 24px -12px rgba(11, 27, 52, .14);
  --shadow-lg: 0 2px 4px rgba(11, 27, 52, .06), 0 20px 40px -20px rgba(11, 27, 52, .22);

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1424;
  --bg-alt: #0f1b2f;
  --surface: #13203a;
  --surface-strong: #1b2b49;
  --border: #243555;
  --border-strong: #33476c;
  --text: #edf2fb;
  --text-soft: #b3c0d6;
  --text-faint: #8b9ab3;
  --accent: #7aa5f8;
  --accent-soft: #1a2f55;
  --ok: #3ccb9d;
  --warn: #eeb04f;
  --err: #f28782;
  --star: #f2b84b;
  --cat-calc: #8db4fa;   --cat-calc-bg: #1a2f55;
  --cat-career: #55d4c0; --cat-career-bg: #123a3b;
  --cat-prod: #f2a968;   --cat-prod-bg: #3f2a18;
  --cat-util: #b79df5;   --cat-util-bg: #2c2452;
  --shadow-sm: none;
  --shadow: 0 8px 24px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 20px 40px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -0.022em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }
[hidden] { display: none !important; }

.ic { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 88px) 0; position: relative; }
.section.alt { background: color-mix(in srgb, var(--bg-alt) 78%, transparent); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 0; }
.section-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-row .section-head { margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 62ch; }
.muted { color: var(--text-soft); }
.small { font-size: .88rem; }
.gradient-text { color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .01em; }
:root[data-theme="dark"] .brand-mark { background: var(--blue); }
.brand span.name { font-size: 1.02rem; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 13px; border-radius: 8px; color: var(--text-soft); font-weight: 500; font-size: .94rem; }
.nav-links a:hover { color: var(--text); background: var(--surface-strong); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); display: inline-grid; place-items: center; cursor: pointer; font-size: 1.12rem; transition: background .15s, color .15s, border-color .15s; }
.icon-btn:hover { background: var(--surface-strong); color: var(--text); text-decoration: none; }
.menu-toggle { display: none; }
.voice-btn .i-off { display: none; }
.voice-btn.is-off .i-on { display: none; }
.voice-btn.is-off .i-off { display: block; }
.voice-btn.is-off { color: var(--muted, var(--text-soft)); }
#theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] #theme-toggle .i-moon { display: none; }
.menu-toggle .i-x { display: none; }
.menu-toggle[aria-expanded="true"] .i-x { display: block; }
.menu-toggle[aria-expanded="true"] .i-menu { display: none; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-grid; }
  .nav-links { position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 20px 18px; display: none; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .96rem; font-family: inherit; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; text-decoration: none; line-height: 1.25; }
.btn:hover { text-decoration: none; }
.btn .ic { font-size: 1.08em; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-strong); }
.btn-sm { padding: 7px 13px; font-size: .88rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: #e7edf7; }
.btn-outline-dark { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-dark:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
a.card { display: block; color: inherit; }
a.card:hover, .card.hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow); text-decoration: none; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.tag { display: inline-block; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.icon-chip { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); }
.icon-chip.cat-calculators { background: var(--cat-calc-bg); color: var(--cat-calc); }
.icon-chip.cat-career { background: var(--cat-career-bg); color: var(--cat-career); }
.icon-chip.cat-productivity { background: var(--cat-prod-bg); color: var(--cat-prod); }
.icon-chip.cat-utilities { background: var(--cat-util-bg); color: var(--cat-util); }

/* ---------- Home hero ---------- */
.hero { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 84px) 0 clamp(44px, 6vw, 72px); }
.hero h1 { color: #fff; font-size: clamp(2.15rem, 5vw, 3.6rem); max-width: 17ch; margin-bottom: .4em; }
.hero .lead { color: #bccae0; font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 56ch; margin-bottom: 26px; }
.hero .eyebrow { color: #8fb6ff; }
.hero-search { display: flex; gap: 8px; max-width: 620px; background: #fff; padding: 6px; border-radius: 13px; align-items: center; }
.hero-search .ic { color: #66738a; font-size: 1.25rem; margin-left: 12px; }
.hero-search input { border: 0; background: transparent; color: #0f1e38; min-height: 44px; padding: 8px 6px; box-shadow: none !important; }
.hero-search input::placeholder { color: #66738a; }
.hero-search .btn { flex: none; }
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-cats a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .22); color: #dfe7f4; font-size: .9rem; font-weight: 500; }
.hero-cats a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-tiles a { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 13px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); color: #fff; font-family: var(--display); font-weight: 600; font-size: .97rem; line-height: 1.25; transition: background .15s, border-color .15s; }
.hero-tiles a:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .28); text-decoration: none; }
.hero-tiles .icon-chip { margin: 0; width: 40px; height: 40px; font-size: 1.25rem; border-radius: 10px; }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-tiles { display: none; } }
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: .93rem; color: var(--text-soft); }
.trust li .ic { font-size: 1.25rem; color: var(--accent); }
.trust li b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .trust ul { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hero-search .btn { display: none; } }

/* ---------- Maker band ---------- */
.maker { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.maker-id { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.maker-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.maker-mono { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
:root[data-theme="dark"] .maker-mono { background: var(--blue); }
.maker-id b { display: block; font-family: var(--display); font-size: 1.08rem; }
.maker-id span { color: var(--text-soft); font-size: .92rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.15; }
.stat span { color: var(--text-soft); font-size: .88rem; line-height: 1.4; display: block; margin-top: 4px; }
@media (max-width: 860px) { .maker { grid-template-columns: 1fr; } }

/* ---------- Page header / breadcrumbs ---------- */
.page-hero { padding: clamp(28px, 4.5vw, 52px) 0 clamp(24px, 3.5vw, 40px); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); max-width: 24ch; }
.page-hero .lead { margin-bottom: 0; }
.tool-hero { display: flex; gap: 18px; align-items: flex-start; }
.tool-hero .icon-chip { width: 56px; height: 56px; font-size: 1.75rem; border-radius: 14px; margin: 2px 0 0; flex: none; }
@media (max-width: 560px) { .tool-hero { flex-direction: column; gap: 12px; } }
.breadcrumb { font-size: .86rem; color: var(--text-faint); margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--text-soft); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.t-item { position: relative; padding: 0 0 26px 34px; }
.t-item::before { content: ""; position: absolute; left: 1px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue); }
.section.alt .t-item::before { background: var(--bg-alt); }
.t-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.t-role { font-family: var(--display); font-weight: 700; font-size: 1.04rem; }
.t-date { font-size: .86rem; color: var(--text-faint); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-org { color: var(--text-soft); font-size: .95rem; margin-bottom: 8px; }
.t-item ul { margin: 8px 0 0; color: var(--text-soft); }
.t-item li { margin-bottom: 4px; }

/* ---------- Tools directory ---------- */
.search-bar { position: relative; max-width: 560px; }
.search-bar input { padding-left: 44px; height: 50px; font-size: 1rem; }
.search-bar .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 1.15rem; color: var(--text-faint); z-index: 1; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; }
.chip { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); cursor: pointer; font: inherit; font-size: .9rem; font-weight: 500; }
.chip:hover { color: var(--text); background: var(--surface-strong); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.tool-card { position: relative; display: flex; flex-direction: column; }
.tool-card p { color: var(--text-soft); font-size: .93rem; flex: 1; line-height: 1.55; }
.tool-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: .8rem; color: var(--text-faint); }
.tool-card h3 a { color: inherit; }
.fav-btn { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--border-strong); cursor: pointer; font-size: 1.15rem; display: grid; place-items: center; z-index: 3; transition: color .15s, background .15s; }
.fav-btn:hover { color: var(--star); background: var(--surface-strong); }
.fav-btn[aria-pressed="true"] { color: var(--star); }
[data-fav][aria-pressed="true"] .ic { fill: currentColor; }
.btn[data-fav][aria-pressed="true"] { border-color: var(--star); color: var(--star); }
.empty-state { text-align: center; padding: 44px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-soft); }
.empty-state b { display: block; color: var(--text); font-size: 1.08rem; margin-bottom: 6px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: .97rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; padding: 10px 13px; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type="checkbox"] { width: 19px; height: 19px; min-height: 0; accent-color: var(--blue); }
input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }
input[type="range"] { padding: 0; min-height: 30px; accent-color: var(--blue); border: 0; }
input[type="file"] { padding: 9px; }
.field { margin-bottom: 16px; }
.field .hint { display: block; color: var(--text-faint); font-size: .8rem; margin-top: 5px; }
.field.check { display: flex; align-items: center; gap: 10px; }
.field.check label { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-error, .inline-error { color: var(--err); font-size: .88rem; margin: 6px 0 0; }
.form-error:empty { display: none; }
.form-success { color: var(--ok); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Tool workspace ---------- */
.tool-layout, .post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
@media (max-width: 1080px) { .tool-layout, .post-layout { grid-template-columns: minmax(0, 1fr); } }
.content-block { margin-top: 40px; }
.content-block p { color: var(--text-soft); }
.tool-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.tool-result { margin-top: 22px; padding: 18px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); }
.tool-result:empty { display: none; }
.result-empty { color: var(--text-soft); text-align: center; padding: 8px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.result-box { padding: 13px 15px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.result-box small { display: block; color: var(--text-faint); font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.result-box b { display: block; font-family: var(--display); font-size: 1.28rem; letter-spacing: -0.02em; word-break: break-word; font-variant-numeric: tabular-nums; }
.result-box.big { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: #fff; }
.result-box.big small { color: #a9b9d3; }
.result-box.big b { font-size: clamp(1.7rem, 5vw, 2.4rem); color: #fff; }
.result-box.big b.pos { color: #5fe0b4; } .result-box.big b.neg { color: #ff9c97; } .result-box.big b.warn { color: #f6c26b; }
.result-note { margin: 14px 0 0; color: var(--text-soft); font-size: .92rem; }
.pos { color: var(--ok); } .neg { color: var(--err); } .warn { color: var(--warn); }
.output-text { width: 100%; white-space: pre-wrap; font-family: var(--mono); font-size: .88rem; line-height: 1.6; min-height: 240px; }
.out-card { padding: 13px 15px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.out-card p { margin: 0; flex: 1; word-break: break-word; }
.out-card small { color: var(--text-faint); display: block; margin-top: 4px; }
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data th { background: var(--surface-strong); font-size: .78rem; font-weight: 600; color: var(--text-soft); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.progress { height: 10px; border-radius: 999px; background: var(--surface-strong); overflow: hidden; margin: 10px 0; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--blue); transition: width .4s; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; padding: 4px; border-radius: 11px; background: var(--surface-strong); width: fit-content; max-width: 100%; }
.tab { padding: 8px 15px; border: 0; border-radius: 8px; background: transparent; color: var(--text-soft); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.repeat-row { padding: 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; background: var(--bg-alt); position: relative; }
.repeat-row .remove { position: absolute; top: 10px; right: 10px; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 36px 20px; text-align: center; color: var(--text-soft); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.drag, .dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone b { color: var(--text); display: block; font-size: 1.05rem; margin-bottom: 4px; }
.qr-stage { display: grid; place-items: center; padding: 20px; background: #fff; border-radius: 12px; min-height: 240px; border: 1px solid var(--border); }
.qr-stage canvas { image-rendering: pixelated; max-width: 100%; height: auto; }
.resume-preview { background: #fff; color: #111; border-radius: 10px; padding: clamp(18px, 4vw, 40px); font-size: .9rem; line-height: 1.5; box-shadow: var(--shadow); border: 1px solid var(--border); }
.resume-preview h2 { font-size: 1.7rem; margin: 0; color: #111; }
.resume-preview h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--rp-accent, #1d5bd8); color: var(--rp-accent, #1d5bd8); }
.resume-preview .rp-sub { color: #444; margin: 2px 0 0; }
.resume-preview .rp-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.resume-preview .rp-row span:last-child { font-weight: 500; color: #555; white-space: nowrap; }
.resume-preview ul { margin: 4px 0 10px; padding-left: 1.2em; }
.resume-preview.compact { font-size: .82rem; line-height: 1.38; }
.two-col-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .two-col-tool { grid-template-columns: 1fr; } }
.tool-panel .two-col-tool .tool-actions { margin-top: 0; }

/* ---------- Share ---------- */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.share-label { font-size: .88rem; font-weight: 600; color: var(--text-soft); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; line-height: 1.2; }
.share-btn:hover { background: var(--surface-strong); text-decoration: none; }
.share-btn .ic { font-size: 1.05rem; }
.share-btn[data-net="whatsapp"] .ic { color: #1faa59; }
.share-btn[data-net="linkedin"] .ic { color: #0a66c2; }
.share-btn[data-net="facebook"] .ic { color: #1877f2; }
.content-block .share-row { margin-top: 0; }
@media (max-width: 520px) { .share-btn span { display: none; } .share-btn { padding: 9px 12px; } .share-label { flex: 1 0 100%; } }

/* ---------- Sidebar ---------- */
.side-col { display: grid; gap: 20px; position: sticky; top: 86px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.side-card h2 { font-size: .98rem; margin-bottom: 10px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--text); font-size: .92rem; font-weight: 500; line-height: 1.3; }
.side-links a:hover { color: var(--accent); text-decoration: none; }
.side-links .icon-chip { width: 30px; height: 30px; font-size: 1rem; border-radius: 8px; margin: 0; flex: none; }
.side-col .ad-slot { margin: 0; }
@media (max-width: 1080px) { .side-col { position: static; } }

/* ---------- Ads ---------- */
.ad-slot { margin: 32px auto; text-align: center; max-width: 100%; clear: both; }
.ad-slot[data-ad-state="off"] { display: none; }
.ad-slot::before { content: "Advertisement"; display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
/* Reserve space so ads loading in do not push the page around. */
.ad-slot ins, .ad-ph { display: block; min-height: 100px; }
.ad-slot.ad-sidebar ins, .ad-slot.ad-sidebar .ad-ph { min-height: 250px; }
/* Collapse a slot when Google has no ad to show. */
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-ph { display: grid; place-items: center; border: 1px dashed var(--accent); border-radius: 8px; color: var(--accent); font-size: .85rem; background: var(--accent-soft); }

/* ---------- Prose / articles ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.7em; font-size: 1.48rem; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-soft); font-size: 1.04rem; line-height: 1.75; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 3px solid var(--blue); background: var(--bg-alt); border-radius: 0 10px 10px 0; color: var(--text); font-weight: 500; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; color: var(--text-soft); }
.prose th { background: var(--bg-alt); color: var(--text); font-weight: 600; }
.prose code { font-family: var(--mono); background: var(--surface-strong); padding: 2px 6px; border-radius: 5px; font-size: .86em; color: var(--text); overflow-wrap: anywhere; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-faint); font-size: .88rem; margin-top: 14px; }
.post-card { display: flex; flex-direction: column; align-items: flex-start; }
.post-card h3 { margin-top: 12px; }
.post-card h3 a { color: inherit; }
.post-card .muted { font-size: .94rem; line-height: 1.55; flex: 1; }
.callout { padding: 18px 22px; border-radius: var(--radius); background: var(--accent-soft); margin: 1.6em 0; }
.callout p { margin: 0; color: var(--text); }
details.faq { border: 1px solid var(--border); border-radius: 11px; padding: 2px 18px; margin-bottom: 8px; background: var(--surface); }
details.faq summary { cursor: pointer; font-weight: 600; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--text-faint); font-size: 1.3rem; line-height: 1; font-weight: 400; }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { color: var(--text-soft); margin-bottom: 14px; }
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps li { counter-increment: s; position: relative; padding: 2px 0 14px 42px; color: var(--text-soft); }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .86rem; }

/* ---------- CTA / footer ---------- */
.cta-band { border-radius: 18px; padding: clamp(30px, 5vw, 56px); text-align: center; background: var(--ink); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #bccae0; max-width: 56ch; margin: 0 auto 22px; }
.site-footer { border-top: 1px solid var(--border); padding: 52px 0 26px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .footer-h { margin: 0 0 .7em; font-weight: 600; font-size: .9rem; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; font-size: .93rem; }
.site-footer a:not(.brand):not(.icon-btn) { color: var(--text-soft); }
.site-footer a:not(.brand):not(.icon-btn):hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; color: var(--text-faint); font-size: .86rem; }
.social { display: flex; gap: 8px; margin-top: 16px; }

/* ---------- Toast & consent ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 300; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; transition: all .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; max-width: 640px; margin: 0 auto; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.consent p { font-size: .88rem; line-height: 1.5; color: var(--text-soft); margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Resume page ---------- */
.skill-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-cloud span { padding: 5px 11px; border-radius: 7px; background: var(--surface-strong); font-size: .88rem; font-weight: 500; }
.resume-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
@media (max-width: 980px) { .resume-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.resume-side { position: sticky; top: 86px; display: grid; gap: 16px; }
@media (max-width: 980px) { .resume-side { position: static; } }
.contact-list { list-style: none; padding: 0; margin: 10px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; color: var(--text-soft); overflow-wrap: anywhere; }
.contact-list .ic { font-size: 1.1rem; color: var(--text-faint); }
.t-item details.faq { margin: 0; }
.t-item details.faq summary { align-items: flex-start; }
@media (max-width: 640px) {
  .t-item details.faq summary { flex-wrap: wrap; gap: 4px 12px; }
  .t-item details.faq summary > span:first-child { flex: 1 1 0; min-width: 0; }
  .t-item details.faq summary > .t-date { order: 3; flex: 1 0 100%; white-space: normal; }
}
.t-item details.faq ul { padding-bottom: 12px; color: var(--text-soft); }
.print-only { display: none; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .ad-slot, .consent, .toast, .no-print, .skip-link, .breadcrumb, .side-col { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; color: #000; }
  .section, .page-hero { padding: 12px 0; background: none !important; border: 0; }
  .card, .t-item { break-inside: avoid; background: none; border-color: #ccc; box-shadow: none; }
  .prose p, .prose li, .t-item ul, .t-org, .muted, .lead { color: #222 !important; }
  h1, h2, h3, .t-role { color: #000 !important; }
  .resume-grid, .tool-layout, .post-layout { grid-template-columns: 1fr !important; }
  .resume-side { display: none; }
  a { color: #000; }
}
body.printing-tool > *:not(main) { display: none !important; }

a.stretch { color: inherit; }
a.stretch:hover { text-decoration: none; color: var(--accent); }
a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.post-card, .tool-card { position: relative; }
@media (max-width: 640px) { .nav { height: 62px; } .nav-links { top: 62px; } }

/* ==========================================================================
   Polish layer (Nov 2026): gradients, depth, motion and a dark footer.
   ========================================================================== */
:root {
  --grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  --glow-a: 124, 58, 237; --glow-b: 37, 99, 235; --glow-c: 79, 70, 229; --c-mid: #4f46e5;
  --grad-soft: linear-gradient(135deg, #eef4ff 0%, #f3efff 100%);
  --shadow-glow: 0 10px 30px -10px rgba(var(--glow-b), .55);
  --radius: 16px;
}
:root[data-theme="dark"] {
  --grad-soft: linear-gradient(135deg, #14234a 0%, #221a45 100%);
  --shadow-glow: 0 10px 30px -10px rgba(99, 102, 241, .6);
}
::selection { background: var(--c-mid); color: #fff; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .gradient-text { background: linear-gradient(135deg, #8db4fa, #c4b5fd); -webkit-background-clip: text; background-clip: text; }

/* Header: frosted glass */
.site-header { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); }
.brand-mark, :root[data-theme="dark"] .brand-mark { background: var(--grad); box-shadow: var(--shadow-glow); border-radius: 10px; }
.brand span.name { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.nav-links a { border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 1100px) { .nav-links { border-radius: 0 0 18px 18px; } .nav-links a { border-radius: 10px; } }

/* Buttons */
.btn { border-radius: 12px; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--grad); border: 0; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--grad); transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(var(--glow-c), .7); filter: brightness(1.06); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-sm { border-radius: 10px; }
.btn-on-dark:hover, .btn-outline-dark:hover { transform: translateY(-1px); }

/* Cards */
.card { border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-lg); }
.tool-card { overflow: hidden; }
.tool-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .2s; }
.tool-card:hover::before { opacity: 1; }
.tool-card .meta span:last-child { color: var(--ok); font-weight: 600; }
.icon-chip { border-radius: 13px; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent); transition: transform .2s; }
.card:hover .icon-chip { transform: scale(1.06) rotate(-3deg); }
.tag { border-radius: 999px; padding: 4px 11px; }
.grid { gap: 20px; }

/* Section heads */
.eyebrow { padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); font-size: .72rem; letter-spacing: .1em; }
.section-head h2 { position: relative; padding-bottom: 14px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; border-radius: 4px; background: var(--grad); }
.section.alt { background: var(--grad-soft); }
.link-arrow .ic { transition: transform .15s; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* Home hero: deep navy with soft glows and a faint grid */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(900px 480px at 85% -10%, rgba(var(--glow-a), .45), transparent 60%), radial-gradient(700px 420px at -5% 110%, rgba(var(--glow-b), .45), transparent 60%), linear-gradient(160deg, var(--ink) 0%, var(--ink) 50%, var(--ink-2) 100%); padding: clamp(56px, 8vw, 104px) 0 clamp(52px, 7vw, 92px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero .eyebrow { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #c7d7ff; }
.hero h1 { background: linear-gradient(180deg, #ffffff 35%, #c9d6f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-search { border-radius: 16px; padding: 7px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .06); }
.hero-cats a { border-radius: 999px; background: rgba(255, 255, 255, .04); transition: background .15s, border-color .15s, transform .15s; }
.hero-cats a:hover { border-color: rgba(255, 255, 255, .45); transform: translateY(-1px); }
.hero-tiles a { border-radius: 16px; transition: transform .2s, background .2s, border-color .2s; }
.hero-tiles a:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .12); border-color: rgba(167, 139, 250, .55); }
.hero-grid > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-grid > *:nth-child(2) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Trust strip */
.trust { background: var(--bg); }
.trust ul { padding: 22px 0; }
.trust li { padding: 12px 16px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--border); }
.trust li .ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--grad); color: #fff; }

/* Inner page headers */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(700px 300px at 100% 0%, rgba(var(--glow-a), .13), transparent 65%), radial-gradient(600px 300px at 0% 100%, rgba(var(--glow-b), .12), transparent 65%), var(--bg-alt); padding: clamp(36px, 5.5vw, 68px) 0 clamp(30px, 4.5vw, 52px); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--accent) 24%, transparent) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 100%); mask-image: linear-gradient(90deg, transparent 45%, #000 100%); opacity: .7; }
.page-hero h1 { letter-spacing: -0.035em; }
.tool-hero .icon-chip { box-shadow: var(--shadow); }

/* Stats & maker */
.stat { transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .stat b { background: linear-gradient(135deg, #8db4fa, #c4b5fd); -webkit-background-clip: text; background-clip: text; }
.maker-mono, :root[data-theme="dark"] .maker-mono { background: var(--grad); box-shadow: var(--shadow-glow); }

/* Timeline & skills */
.t-item::before { border-color: var(--c-mid); box-shadow: 0 0 0 4px rgba(var(--glow-c), .15); }
.timeline::before { background: linear-gradient(180deg, var(--c-mid), var(--border)); }
.skill-cloud span { border-radius: 999px; padding: 6px 13px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Tool workspace */
.tool-panel { border-radius: 20px; position: relative; overflow: hidden; }
.tool-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.result-box { border-radius: 12px; }
.result-box.big { background: radial-gradient(400px 160px at 100% 0%, rgba(var(--glow-a), .5), transparent 70%), linear-gradient(135deg, var(--ink), var(--ink-2)); border: 0; }
.tabs { border-radius: 14px; }
.tab { border-radius: 10px; transition: background .15s, color .15s; }
.chip { border-radius: 999px; transition: background .15s, color .15s, border-color .15s; }
.chip[aria-pressed="true"], :root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; box-shadow: var(--shadow-glow); }
input, select, textarea { border-radius: 11px; }
.search-bar input { border-radius: 14px; box-shadow: var(--shadow); }
.side-card { box-shadow: var(--shadow-sm); }
details.faq { border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
details.faq[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }
details.faq summary::after { color: var(--accent); }
ol.steps li::before { background: var(--grad); color: #fff; border-radius: 10px; }
.callout { background: var(--grad-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border)); }
.prose blockquote { border-left-color: var(--c-mid); background: var(--grad-soft); }

/* Feature and product cards (home) */
.feature-card { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 40px); border-color: transparent; background: radial-gradient(520px 240px at 100% 0%, rgba(245, 158, 11, .16), transparent 70%), radial-gradient(520px 240px at 0% 100%, rgba(var(--glow-a), .12), transparent 70%), var(--surface); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border); }
.feature-card .tag { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; }
.product-card { display: flex; flex-direction: column; overflow: hidden; position: relative; padding-top: 26px; }
.product-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.product-card li::marker, .feature-card li::marker { color: var(--accent); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: radial-gradient(600px 260px at 100% 0%, rgba(var(--glow-a), .55), transparent 65%), radial-gradient(600px 260px at 0% 100%, rgba(var(--glow-b), .5), transparent 65%), var(--ink); border-radius: 24px; box-shadow: var(--shadow-lg); }

/* Footer: dark */
.site-footer { background: #0a1426; border-top: 0; color: #c3cee0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.site-footer .brand, .site-footer .footer-h { color: #fff; }
.site-footer .muted { color: #9fb0ca; }
.site-footer a:not(.brand):not(.icon-btn) { color: #b8c5da; }
.site-footer a:not(.brand):not(.icon-btn):hover { color: #fff; }
.site-footer .icon-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #dbe4f3; }
.site-footer .icon-btn:hover { background: var(--grad); border-color: transparent; color: #fff; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .1); color: #8b9bb6; }

/* Misc */
.toast { background: var(--grad); }
.consent { border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { .card:hover, .btn:hover, .stat:hover, .hero-tiles a:hover { transform: none !important; } }
@media print { .site-footer::before, .tool-panel::before, .page-hero::after, .hero::before, .product-card::before { display: none; } }

/* ---------- Motion (only when the visitor allows animation) ---------- */
.scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 120; pointer-events: none; }
.site-header { transition: box-shadow .25s, background .25s; }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(11, 27, 52, .45); }
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal: content is hidden only after the script marks the page ready. */
  html.motion .rv { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, border-color .2s; transition-delay: var(--d, 0s); }
  html.motion .rv.rv-left { transform: translateX(-28px); }
  html.motion .rv.in { opacity: 1; transform: none; }

  /* Living hero: drifting colour glows */
  .hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(var(--glow-a), .38), transparent 65%); filter: blur(10px); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
  .hero-grid::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%; left: -140px; bottom: -220px; background: radial-gradient(circle, rgba(var(--glow-b), .4), transparent 65%); filter: blur(10px); animation: drift 18s ease-in-out infinite alternate-reverse; pointer-events: none; }
  @keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.12); } 100% { transform: translate(30px, 80px) scale(.95); } }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  @keyframes riseT { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
  .hero-tiles a { animation: fadein .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-tiles a:nth-child(1) { animation-delay: .2s, 1s; } .hero-tiles a:nth-child(2) { animation-delay: .28s, 1.6s; }
  .hero-tiles a:nth-child(3) { animation-delay: .36s, 2.2s; } .hero-tiles a:nth-child(4) { animation-delay: .44s, 2.8s; }
  .hero-tiles a:nth-child(5) { animation-delay: .52s, 3.4s; } .hero-tiles a:nth-child(6) { animation-delay: .6s, 4s; }
  .hero-tiles a:hover { animation-play-state: paused; }
  @keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
  .hero-cats a { animation: riseT .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .3s; }
  .hero-cats a:nth-child(2) { animation-delay: .36s; } .hero-cats a:nth-child(3) { animation-delay: .42s; } .hero-cats a:nth-child(4) { animation-delay: .48s; } .hero-cats a:nth-child(5) { animation-delay: .54s; }

  /* Inner page headers glide in */
  .page-hero .container > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .page-hero .container > *:nth-child(2) { animation-delay: .06s; } .page-hero .container > *:nth-child(3) { animation-delay: .12s; } .page-hero .container > *:nth-child(4) { animation-delay: .18s; } .page-hero .container > *:nth-child(5) { animation-delay: .24s; }

  /* Flowing gradients */
  .gradient-text, .brand-mark, .site-footer::before, .scroll-progress, .tool-panel::before, .product-card::before { background-size: 200% 200%; animation: flow 6s ease infinite; }
  @keyframes flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

  /* Button shine sweep */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
  .btn-primary:hover::after { left: 120%; }

  /* Gentle pulse on the "New app" label */
  .feature-card .tag { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .45); } 50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } }

  /* Section-title underline grows in */
  html.motion .section-head.rv h2::after { width: 0; transition: width .8s .3s cubic-bezier(.2, .7, .2, 1); }
  html.motion .section-head.rv.in h2::after { width: 48px; }

  /* Timeline dots pop */
  html.motion .t-item.rv::before { transform: scale(0); transition: transform .5s .25s cubic-bezier(.3, 1.6, .5, 1); }
  html.motion .t-item.rv.in::before { transform: scale(1); }
}
@media print { .scroll-progress { display: none; } html.motion .rv { opacity: 1 !important; transform: none !important; } }

/* ---------- Home v2 ---------- */
.hero h1 { max-width: 18ch; }
.hero-cats { gap: 8px; }
.hero-cats a { padding: 6px 12px; font-size: .85rem; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #c3d0e6; font-size: .92rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(52, 211, 153, .16); color: #5fe0b4; }
.hero-tiles { align-items: stretch; }
.hero-tiles a { justify-content: space-between; min-height: 116px; }

.metrics { position: relative; z-index: 2; margin-top: -34px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.metrics .stat { border: 0; border-radius: 0; background: transparent; padding: 22px 24px; text-align: center; }
.metrics .stat + .stat { border-left: 1px solid var(--border); }
.metrics .stat:hover { transform: none; box-shadow: none; }
.metrics .stat b { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
@media (max-width: 760px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } .metrics .stat:nth-child(3) { border-left: 0; } .metrics .stat:nth-child(n+3) { border-top: 1px solid var(--border); } .metrics .stat { padding: 18px 12px; } }

.cat-card { display: flex; flex-direction: column; }
.cat-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cat-head .icon-chip { margin: 0; flex: none; }
.cat-head h3 { margin: 0 0 2px; font-size: 1.12rem; }
.cat-head p { margin: 0; }
.cat-list { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.cat-list li + li { border-top: 1px solid var(--border); }
.cat-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 2px; color: var(--text); font-weight: 500; font-size: .95rem; }
.cat-list a .ic { color: var(--text-faint); opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .15s; }
.cat-list a:hover { color: var(--accent); text-decoration: none; }
.cat-list a:hover .ic { opacity: 1; transform: none; color: var(--accent); }
.cat-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: var(--shadow-lg); }

.product-card .btn-row { flex-direction: column; align-items: stretch; }
.product-card .btn { width: 100%; }

.feat { padding: 26px; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.feat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.4rem; margin-bottom: 16px; box-shadow: var(--shadow-glow); }
.feat h3 { font-size: 1.12rem; }
.feat p { margin: 0; font-size: .95rem; }

.how { margin-top: clamp(44px, 6vw, 72px); text-align: center; }
.how-title { margin-bottom: 28px; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; counter-reset: none; }
.how-steps::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent); }
.how-step { position: relative; padding: 0 10px; }
.how-n { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.3rem; box-shadow: var(--shadow-glow), 0 0 0 8px var(--bg); position: relative; }
.how-step h3 { font-size: 1.1rem; }
.how-step p { margin: 0 auto; max-width: 30ch; font-size: .95rem; }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; gap: 28px; } .how-steps::before { display: none; } }

.faq-wrap { max-width: 820px; }
.faq-wrap .section-head h2::after { left: 50%; transform: translateX(-50%); }
.cta-band .eyebrow { background: rgba(255, 255, 255, .1); color: #c7d7ff; }
.cta-band .btn-row { gap: 12px; }

/* ---------- Audit 2026-11: ad space reservation (reduce layout shift) ---------- */
.ad-slot { contain: layout; }
@media (max-width: 640px) { .ad-slot ins, .ad-slot .ad-ph { min-height: 280px; } .ad-slot.ad-sidebar ins, .ad-slot.ad-sidebar .ad-ph { min-height: 280px; } }

/* ---------- Welcome screen (home page, once per session) ---------- */
html.wl, html.wl-open { overflow: hidden; }
html.wl body::before { content: ""; position: fixed; inset: 0; z-index: 9998; background: #0b1b34; }
.welcome { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px 16px; color: #fff; text-align: center; overflow: hidden;
  background: radial-gradient(700px 420px at 85% 0%, rgba(var(--glow-a), .5), transparent 60%), radial-gradient(640px 400px at 0% 100%, rgba(var(--glow-b), .5), transparent 60%), linear-gradient(160deg, var(--ink), var(--ink) 55%, var(--ink-2));
  transition: opacity .55s ease, transform .55s ease, filter .55s ease; }
.welcome::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 70%); pointer-events: none; }
.welcome.out { opacity: 0; transform: scale(1.05); filter: blur(6px); pointer-events: none; }
.wl-inner { position: relative; max-width: 640px; }
.wl-bots { display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 6vw, 56px); margin-bottom: 18px; }
.wl-bot-wrap { position: relative; width: clamp(96px, 24vw, 150px); }
.wl-bot { width: 100%; height: auto; overflow: visible; }
.wl-b .wl-bot { transform: scaleX(-1); }
.wl-shadow { fill: rgba(0, 0, 0, .35); }
.wl-bulb { fill: #fbbf24; }
.wl-eye { fill: #67e8f9; }
.wl-arm { transform-box: view-box; transform-origin: 98px 98px; }
.wl-bubble { position: absolute; left: 50%; top: -14px; transform: translate(-50%, -100%) scale(0); transform-origin: 50% 120%; white-space: nowrap; background: #fff; color: #1e1b4b; font-family: var(--display); font-weight: 800; font-size: clamp(.8rem, 2.6vw, .95rem); padding: 6px 12px; border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.wl-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.wl-kicker { margin: 0 0 4px; color: #c7d7ff; font-weight: 600; letter-spacing: .02em; }
.wl-title { margin: 0 0 8px; color: #fff; font-size: clamp(1.9rem, 6.5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.035em; }
.wl-title span { background: linear-gradient(135deg, #93c5fd, #c4b5fd 55%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-sub { margin: 0 auto 22px; color: #bccae0; max-width: 40ch; }
.wl-bar { width: min(260px, 70vw); height: 5px; margin: 0 auto 18px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.wl-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899); transform-origin: 0 50%; transform: scaleX(0); animation: wl-fill var(--wl-dur, 3400ms) linear forwards; }
.wl-skip { font: inherit; font-size: .88rem; font-weight: 600; color: #dbe4f3; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background .15s, border-color .15s; }
.wl-skip:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); }
.wl-skip:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wl-sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 12px 2px rgba(167, 139, 250, .8); }
.wl-sparks i:nth-child(1) { left: 12%; top: 22%; } .wl-sparks i:nth-child(2) { left: 82%; top: 18%; } .wl-sparks i:nth-child(3) { left: 22%; top: 72%; } .wl-sparks i:nth-child(4) { left: 74%; top: 76%; }
.wl-sparks i:nth-child(5) { left: 50%; top: 10%; } .wl-sparks i:nth-child(6) { left: 6%; top: 48%; } .wl-sparks i:nth-child(7) { left: 92%; top: 50%; } .wl-sparks i:nth-child(8) { left: 38%; top: 88%; }
@keyframes wl-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .wl-a { animation: wl-in-l .9s cubic-bezier(.2, .9, .25, 1.2) .1s both; }
  .wl-b { animation: wl-in-r .9s cubic-bezier(.2, .9, .25, 1.2) .25s both; }
  .wl-bot-wrap .wl-bot { animation: wl-float 2.4s ease-in-out 1s infinite; }
  .wl-b .wl-bot { animation-name: wl-float-m; animation-delay: 1.3s; }
  .wl-arm { animation: wl-wave .7s ease-in-out .9s 4 alternate; }
  .wl-eye { transform-box: fill-box; transform-origin: center; animation: wl-blink 2.6s ease-in-out .6s infinite; }
  .wl-bulb { animation: wl-glow 1.2s ease-in-out infinite alternate; }
  .wl-led { animation: wl-glow 0.8s ease-in-out infinite alternate; } .wl-led2 { animation-delay: .4s; }
  .wl-a .wl-bubble { animation: wl-pop .45s cubic-bezier(.3, 1.6, .5, 1) .95s both; }
  .wl-b .wl-bubble { animation: wl-pop .45s cubic-bezier(.3, 1.6, .5, 1) 1.25s both; }
  .wl-kicker { animation: wl-rise .6s ease 1.0s both; }
  .wl-title { animation: wl-rise .7s cubic-bezier(.2, .7, .2, 1) 1.15s both; }
  .wl-sub { animation: wl-rise .7s ease 1.35s both; }
  .wl-bar, .wl-skip { animation: wl-rise .6s ease 1.45s both; }
  .wl-sparks i { animation: wl-twinkle 2.2s ease-in-out infinite; }
  .wl-sparks i:nth-child(2n) { animation-delay: .7s; } .wl-sparks i:nth-child(3n) { animation-delay: 1.3s; }
  .wl-shadow { transform-box: fill-box; transform-origin: center; animation: wl-shadow 2.4s ease-in-out 1s infinite; }
}
.welcome.still .wl-bubble { transform: translate(-50%, -100%) scale(1); }
@keyframes wl-in-l { from { opacity: 0; transform: translateX(-60px) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes wl-in-r { from { opacity: 0; transform: translateX(60px) rotate(8deg); } to { opacity: 1; transform: none; } }
@keyframes wl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wl-float-m { 0%, 100% { transform: scaleX(-1) translateY(0); } 50% { transform: scaleX(-1) translateY(-10px); } }
@keyframes wl-wave { from { transform: rotate(-12deg); } to { transform: rotate(22deg); } }
@keyframes wl-blink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes wl-glow { from { opacity: .55; } to { opacity: 1; filter: drop-shadow(0 0 6px currentColor); } }
@keyframes wl-pop { from { transform: translate(-50%, -100%) scale(0); } to { transform: translate(-50%, -100%) scale(1); } }
@keyframes wl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wl-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }
@keyframes wl-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .6; } }
@media print { .welcome { display: none !important; } }

/* ---------- Audit 2026-11: tool space reservation and link visibility ---------- */
#tool-root:not([data-ready]) { min-height: 520px; }
@media (max-width: 640px) { #tool-root:not([data-ready]) { min-height: 640px; } }
/* Links inside running text must not rely on colour alone (WCAG 1.4.1). */
main p a:not(.btn):not(.stretch):not(.link-arrow), main li > p a, .result-note a, details.faq p a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.site-footer p a, .side-card p a { text-decoration: underline; text-underline-offset: 2px; }
#fx-body:empty { min-height: 600px; }
@media (max-width: 640px) { #fx-body:empty { min-height: 780px; } }


/* ---------- GM Free Tools (2026-11-07) ---------- */
:root { --cat-docs: #be123c; --cat-docs-bg: #ffe4e6; }
:root[data-theme="dark"] { --cat-docs: #fda4af; --cat-docs-bg: #4c0519; }
.icon-chip.cat-docs { background: var(--cat-docs-bg); color: var(--cat-docs); }

/* Dashboard hero */
.ft-hero { padding-bottom: clamp(36px, 5vw, 60px); }
.ft-hero h1 { max-width: 20ch; }
.ft-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 22px; padding: 6px 8px 6px 16px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow-lg); transition: border-color .15s, box-shadow .15s; }
.ft-search:focus-within { border-color: var(--accent); box-shadow: var(--shadow-lg), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.ft-search .ic { font-size: 1.2rem; color: var(--text-faint); }
.ft-search input { border: 0; box-shadow: none !important; background: transparent; min-height: 46px; padding: 6px 4px; font-size: 1.02rem; }
.ft-kbd { flex: none; font: 600 .78rem var(--mono); color: var(--text-faint); border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 7px; }
@media (max-width: 640px) { .ft-kbd { display: none; } }
.ft-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; max-width: 980px; }
.ft-feat { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.ft-feat b { display: block; font-size: .95rem; }
.ft-feat span:not(.ft-feat-ic) { display: block; color: var(--text-soft); font-size: .86rem; line-height: 1.45; }
.ft-feat-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.1rem; }
@media (max-width: 820px) { .ft-feats { grid-template-columns: 1fr; } }
.ft-section { padding-top: clamp(28px, 4vw, 44px); }
.ft-chips { margin-top: 0; }
.ft-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--surface-strong); color: var(--text-soft); font-size: .74rem; font-weight: 700; }
.chip[aria-pressed="true"] .ft-count { background: rgba(255, 255, 255, .22); color: #fff; }

/* Cards */
.ft-card { padding: 22px; }
.ft-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ft-new { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; }
.ft-go { display: inline-flex; align-items: center; gap: 4px; color: var(--accent) !important; font-weight: 600 !important; }
.ft-go .ic { transition: transform .15s; }
.ft-card:hover .ft-go .ic { transform: translateX(4px); }
.ft-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 36px; padding: 24px 26px; border-radius: 18px; background: var(--grad-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border)); }
.ft-more h2 { font-size: 1.2rem; margin: 0 0 4px; }
.ft-more p { margin: 0; }

/* Shared bits for the new tools */
.sr-only:focus-within { position: static; }
.mono, textarea.mono { font-family: var(--mono); font-size: .88rem; line-height: 1.55; }
.file-list { display: grid; gap: 8px; margin: 14px 0 4px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.file-n { flex: none; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; }
.file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-size: .93rem; }
.file-name small { display: block; color: var(--text-faint); font-weight: 500; }
.file-btns { display: flex; gap: 4px; flex: none; }
.file-btns .btn { padding: 6px 10px; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.thumb { margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.thumb img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; background: var(--surface-strong); }
.thumb figcaption { display: flex; gap: 6px; align-items: center; font-size: .78rem; margin: 6px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.thumb figcaption .file-n { min-width: 22px; height: 22px; font-size: .72rem; }
.thumb-btns { display: flex; gap: 4px; }
.thumb-btns .btn { flex: 1; padding: 5px 0; }
.qs-stage { position: relative; max-width: 480px; margin: 14px auto; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.qs-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qs-frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: no-preference) { .qs-frame::after { content: ""; position: absolute; left: 6%; right: 6%; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, #22d3ee, transparent); animation: qs-scan 1.8s ease-in-out infinite alternate; } }
@keyframes qs-scan { to { top: 88%; } }
.cc-pick { display: flex; gap: 8px; }
.cc-pick input[type="color"] { width: 52px; flex: none; }
.cc-pick input[type="text"] { font-family: var(--mono); text-transform: uppercase; }
.cc-preview { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); margin: 6px 0 4px; transition: background .15s, color .15s; }
.cc-preview p { margin: 0 0 8px; color: inherit; } .cc-preview p:last-child { margin: 0; }
.cc-big { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.cc-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.cc-badge { display: inline-block; min-width: 64px; text-align: center; font-size: .76rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.cc-badge.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.cc-badge.no { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
.pomo-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pomo-wrap { position: relative; width: min(260px, 72vw); margin: 18px auto 8px; aspect-ratio: 1; }
.pomo-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.pomo-track { fill: none; stroke: var(--surface-strong); stroke-width: 12; }
.pomo-bar { fill: none; stroke: var(--c-mid); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .3s linear, stroke .3s; }
[data-mode="short"] .pomo-bar { stroke: #059669; } [data-mode="long"] .pomo-bar { stroke: #0891b2; }
.pomo-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pomo-time { font-family: var(--display); font-size: clamp(2.6rem, 11vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.pomo-label { color: var(--text-soft); font-weight: 600; margin-top: 6px; }
.gp-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 0 12px; align-items: end; padding: 12px 14px 0; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--bg-alt); }
.gp-row .gp-del { margin-bottom: 16px; }
@media (max-width: 640px) { .gp-row { grid-template-columns: 1fr 1fr; } .gp-row .field:first-child { grid-column: 1 / -1; } }
.bmi-scale { position: relative; height: 12px; border-radius: 99px; margin: 18px 0 6px; background: linear-gradient(90deg, #f59e0b 0 14%, #10b981 14% 40%, #f59e0b 40% 60%, #ef4444 60%); }
.bmi-scale i { position: absolute; top: -5px; width: 4px; height: 22px; border-radius: 4px; background: var(--text); transform: translateX(-50%); box-shadow: 0 0 0 3px var(--surface); }
.bmi-legend { display: flex; justify-content: space-between; }
.pw-out { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-out input { flex: 1 1 260px; font-family: var(--mono); font-size: 1.12rem; letter-spacing: .02em; min-height: 50px; }
.pw-meter { height: 8px; border-radius: 99px; background: var(--surface-strong); overflow: hidden; margin: 12px 0 6px; }
.pw-meter i { display: block; height: 100%; border-radius: inherit; transition: width .3s; background: var(--ok); }
.pw-meter i.neg { background: var(--err); } .pw-meter i.warn { background: var(--warn); }
.jf-snip { font-family: var(--mono); font-size: .84rem; background: var(--surface-strong); padding: 10px 12px; border-radius: 10px; overflow-x: auto; }
.tc-btns { gap: 6px; }

/* ---------- Refinement 2026-11-07: calmer, no endless loops ---------- */
/* Gradients stay static; drifting glows and pulsing badges stop. Entrance animations and hover feedback remain. */
.gradient-text, .brand-mark, .site-footer::before, .scroll-progress, .tool-panel::before, .product-card::before,
.feature-card .tag, .hero::after, .hero-grid::before { animation: none !important; }
.section-head h2::after { width: 40px; height: 3px; }
.hero-cats a.hero-cat-new { border-color: rgba(251, 191, 36, .55); color: #fde68a; }
.hero-cats a.hero-cat-new:hover { background: rgba(251, 191, 36, .12); }
.contact-tips { padding-left: 1.1em; color: var(--text-soft); }
.contact-tips li { margin-bottom: 8px; }
.contact-tips strong { color: var(--text); }

/* ---------- GM Free Tools & Gadgets (2026-11-08) ---------- */
:root { --cat-img: #0e7490; --cat-img-bg: #cffafe; --cat-lang: #4d7c0f; --cat-lang-bg: #ecfccb; }
:root[data-theme="dark"] { --cat-img: #67e8f9; --cat-img-bg: #083344; --cat-lang: #bef264; --cat-lang-bg: #1a2e05; }
.icon-chip.cat-img { background: var(--cat-img-bg); color: var(--cat-img); }
.icon-chip.cat-lang { background: var(--cat-lang-bg); color: var(--cat-lang); }

/* GM monogram */
.brand .brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); box-shadow: var(--shadow-glow); display: grid; place-items: center; color: #fff; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.gm-logo { width: 25px; height: auto; display: block; }
.site-footer .brand-mark { width: 44px; height: 44px; }
.site-footer .gm-logo { width: 28px; }
@media (max-width: 640px) { .site-header .brand .brand-mark { width: 38px; height: 38px; } .site-header .gm-logo { width: 23px; } }
.nav-links a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1101px) { .nav-links a { padding: 8px 9px; font-size: .88rem; } }

/* Hub */
.hub-sub { font-size: 1.15rem; margin: 0 0 12px; }
.hub-filtering [data-list-section], .hub-filtering .hub-pop { display: none !important; }
.pop-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pop-chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .92rem; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pop-chip:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--accent); }
.pop-chip .icon-chip { width: 30px; height: 30px; margin: 0; border-radius: 99px; font-size: 1rem; }
.hub-section { margin-bottom: clamp(30px, 4vw, 46px); }
.hub-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hub-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 0 0 2px; }
.hub-head p { margin: 0; }
.hub-ic { width: 46px; height: 46px; margin: 0; flex: none; font-size: 1.4rem; }
.hub-section .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ft-hero h1 { max-width: 22ch; }

/* Upload areas, progress and results */
.dropzone:focus-within { border-color: var(--accent); background: var(--accent-soft); outline: 2px solid var(--accent); outline-offset: 2px; }
.gm-prog { margin: 14px 0 4px; }
.gm-prog-bar { height: 10px; border-radius: 99px; background: var(--surface-strong); overflow: hidden; }
.gm-prog-bar i { display: block; height: 100%; width: 2%; border-radius: inherit; background: var(--grad); transition: width .25s ease; }
.gm-prog-txt { font-size: .86rem; color: var(--text-soft); margin-top: 6px; }
.xp-sheets { display: grid; gap: 6px; }
.xp-sheet { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 0; }
.pr-bar { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 14px 0; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pr-card { position: relative; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-align: center; transition: border-color .15s, box-shadow .15s; }
.pr-card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.pr-frame { display: grid; place-items: center; height: 150px; background: var(--surface-strong); border-radius: 8px; overflow: hidden; }
.pr-img { max-width: 112px; max-height: 112px; width: auto; height: auto; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); transition: transform .25s ease; opacity: .25; }
.pr-frame.ready .pr-img { opacity: 1; }
.pr-sel { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 700; z-index: 2; margin: 0; background: var(--surface); padding: 2px 7px 2px 4px; border-radius: 99px; border: 1px solid var(--border); }
.pr-sel input { width: 16px; height: 16px; }
.pr-ctl { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.pr-deg { color: var(--accent); font-weight: 700; }
.ring-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(5, 12, 30, .72); backdrop-filter: blur(4px); padding: 20px; }
.ring-modal > div { background: var(--surface); border-radius: 20px; padding: 30px 34px; text-align: center; box-shadow: var(--shadow-lg); display: grid; gap: 14px; min-width: min(320px, 88vw); }
.ring-modal b { font-family: var(--display); font-size: 1.5rem; }
.ring-modal span { color: var(--text-soft); }
@media (prefers-reduced-motion: no-preference) { .ring-modal > div { animation: rise .3s ease both; } }

/* Clocks and timers */
.clock-face { display: grid; place-content: center; text-align: center; gap: 6px; min-height: 260px; border-radius: 20px; padding: 28px 18px; background: #0b1b34; color: #e8f1ff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 50px -26px rgba(11, 27, 52, .7); }
.clock-face[data-theme-name="day"] { background: #fff; color: #0f1e38; box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); }
.clock-face[data-theme-name="neon"] { background: #03120a; color: #39ff88; text-shadow: 0 0 18px rgba(57, 255, 136, .55); }
.clock-face[data-theme-name="amber"] { background: #140c02; color: #ffb000; text-shadow: 0 0 18px rgba(255, 176, 0, .45); }
.clock-time { font-family: var(--mono); font-weight: 700; font-size: clamp(2.6rem, 11vw, 5.6rem); letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.clock-date { font-size: clamp(1rem, 2.6vw, 1.35rem); opacity: .88; }
.clock-zone { opacity: .6; }
.clock-face:fullscreen { min-height: 100vh; border-radius: 0; }
.clock-face:fullscreen .clock-time { font-size: clamp(3rem, 18vw, 14rem); }
.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 6px 0 14px; }
.wc-card { position: relative; padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: background .3s; }
.wc-card.night { background: linear-gradient(160deg, #0b1b34, #1c2352); color: #e8f1ff; border-color: transparent; }
.wc-card.night .muted { color: #b8c6de; }
.wc-name { font-weight: 700; font-size: 1.05rem; }
.wc-time { font-family: var(--mono); font-size: 2rem; font-weight: 700; margin: 4px 0; font-variant-numeric: tabular-nums; }
.wc-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: inherit; opacity: .45; cursor: pointer; }
.wc-x:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.sw-face { display: grid; place-items: center; min-height: 190px; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--border); margin-bottom: 8px; }
.sw-face span { font-family: var(--mono); font-weight: 700; font-size: clamp(2.6rem, 11vw, 5rem); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ct-inputs { max-width: 440px; margin-inline: auto; grid-template-columns: repeat(3, 1fr); }
.cd-title { text-align: center; font-family: var(--display); font-size: 1.4rem; font-weight: 700; margin: 8px 0; }
.cd-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; margin: 8px auto; }
.cd-box { padding: 18px 6px; border-radius: 16px; text-align: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.cd-box b { display: block; font-family: var(--mono); font-size: clamp(1.8rem, 7vw, 3rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-box span { font-size: .78rem; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
#cd-note { text-align: center; }
.alarm-now { font-family: var(--mono); font-size: 2.2rem; font-weight: 700; text-align: center; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.al-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 8px; }
.al-row.off { opacity: .55; }
.al-info { flex: 1; min-width: 0; } .al-info b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; } .al-info small { color: var(--text-soft); }
.al-sw { position: relative; display: inline-block; width: 46px; height: 26px; margin: 0; flex: none; }
.al-sw input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.al-sw span { position: absolute; inset: 0; border-radius: 99px; background: var(--border-strong); transition: background .2s; }
.al-sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.al-sw input:checked + span { background: var(--accent); } .al-sw input:checked + span::after { transform: translateX(20px); }
.al-sw input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Calculator */
.calc { max-width: 440px; margin: 0 auto; }
.calc.is-sci { max-width: 720px; }
.calc-screen { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; }
.calc-screen input { border: 0; background: transparent; box-shadow: none !important; font-family: var(--mono); font-size: 1.5rem; text-align: right; padding: 4px 0; min-height: 0; }
.calc-res { font-family: var(--mono); font-size: 1.15rem; color: var(--text-soft); text-align: right; min-height: 1.6em; overflow-wrap: anywhere; }
.calc-res.err { color: var(--err); font-size: .95rem; }
.calc-opts { margin-bottom: 10px; }
.calc-grid { display: grid; gap: 10px; }
.calc.is-sci .calc-grid { grid-template-columns: 1.25fr 1fr; align-items: start; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-sci { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.calc-key { min-height: 52px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: 600 1.1rem var(--display); cursor: pointer; transition: transform .1s, background .15s, border-color .15s; }
.calc-key:hover { background: var(--surface-strong); border-color: var(--border-strong); } .calc-key:active { transform: scale(.96); }
.calc-key.k-op { background: var(--accent-soft); color: var(--accent); } .calc-key.k-fn { background: var(--surface-strong); }
.calc-key.k-eq { background: var(--grad); color: #fff; border-color: transparent; grid-column: span 1; }
.calc-key.k-sci { font-size: .95rem; background: var(--bg-alt); }
.calc-hist { display: grid; gap: 4px; }
.calc-hist button { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font-family: var(--mono); font-size: .92rem; text-align: left; }
.calc-hist button:hover { border-color: var(--accent); } .calc-hist span { color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .calc.is-sci .calc-grid { grid-template-columns: 1fr; } }

/* Barcode, colour, notepad, random, typing */
.bc-stage { display: grid; place-items: center; padding: 24px 12px; border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; }
.bc-stage svg { max-width: 100%; height: auto; }
.cp-top { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.cp-swatch { position: relative; height: 220px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), var(--shadow); }
.cp-swatch input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.cp-swatch::after { content: "Click to pick"; position: absolute; inset: auto 0 12px; text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); font-weight: 600; font-size: .85rem; pointer-events: none; }
.cp-row { margin-bottom: 10px; } .cp-in { display: flex; gap: 8px; } .cp-in input { font-family: var(--mono); font-size: .92rem; }
.cp-canvas { max-width: 100%; height: auto; border-radius: 10px; cursor: crosshair; border: 1px solid var(--border); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cp-chip { min-width: 86px; height: 52px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .12); font: 600 .78rem var(--mono); cursor: pointer; display: grid; place-items: center; padding: 0 8px; transition: transform .15s; }
.cp-chip:hover { transform: translateY(-2px); }
.cp-pal { margin-bottom: 10px; }
@media (max-width: 760px) { .cp-top { grid-template-columns: 1fr; } .cp-swatch { height: 130px; } }
.np { display: grid; grid-template-columns: 230px 1fr; gap: 16px; }
.np-side { display: grid; gap: 8px; align-content: start; }
.np-list { display: grid; gap: 6px; max-height: 380px; overflow: auto; }
.np-item { text-align: left; padding: 9px 11px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); cursor: pointer; }
.np-item.on { border-color: var(--accent); background: var(--accent-soft); }
.np-item b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .np-item small { color: var(--text-faint); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-main textarea { min-height: 340px; width: 100%; font-size: 1rem; line-height: 1.6; }
.np-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.np-btns { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 760px) { .np { grid-template-columns: 1fr; } .np-list { max-height: 160px; } }
.rn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.rn-chip { padding: 8px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font: 700 1.1rem var(--mono); }
.rn-ol { padding-left: 1.4em; } .rn-ol li { margin-bottom: 4px; }
.ty-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 14px; }
.ty-stats div { text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--border); }
.ty-stats b { display: block; font: 800 1.7rem var(--display); font-variant-numeric: tabular-nums; } .ty-stats span { font-size: .78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.ty-text { font-family: var(--mono); font-size: 1.12rem; line-height: 1.9; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; user-select: none; word-break: break-word; }
.ty-text .ok { color: var(--ok); } .ty-text .bad { color: var(--err); background: color-mix(in srgb, var(--err) 14%, transparent); border-radius: 3px; } .ty-text .cur { background: var(--accent-soft); border-bottom: 2px solid var(--accent); }
.ty-in { font-family: var(--mono); }
@media (max-width: 560px) { .ty-stats { grid-template-columns: repeat(2, 1fr); } .ty-text { font-size: 1rem; } }
@media print { .ring-modal, .brand-mark { display: none !important; } }

/* Welcome screen: GM monogram above the title */
.wl-logo { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #2563eb, #4f46e5 55%, #7c3aed); box-shadow: 0 16px 40px -14px rgba(99, 102, 241, .85); }
.wl-logo svg { width: 38px; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) { .wl-logo { animation: wl-rise .6s cubic-bezier(.3, 1.4, .5, 1) .8s both; } }
@media (max-height: 640px) { .wl-logo { width: 50px; height: 50px; margin-bottom: 8px; } .wl-logo svg { width: 30px; } .wl-bot-wrap { width: clamp(80px, 20vw, 120px); } }

/* ---------- menu icons (Lucide-style, 1.85 stroke) ---------- */
.nav-links a { display: flex; align-items: center; gap: 7px; }
.nav-links .nav-ic { width: 16px; height: 16px; flex: none; opacity: .85; }
.nav-links a[aria-current="page"] .nav-ic, .nav-links a:hover .nav-ic { opacity: 1; }
@media (max-width: 1100px) { .nav-links .nav-ic { width: 20px; height: 20px; } .nav-links a { gap: 12px; } }
@media (max-width: 1360px) and (min-width: 1101px) { .nav-links a { padding: 8px 8px; font-size: .86rem; gap: 6px; } .nav-links .nav-ic { width: 15px; height: 15px; } }
.gm-card .emoji { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 16%, var(--surface)), color-mix(in srgb, #7c3aed 14%, var(--surface))); color: var(--blue); font-size: 0; }
.gm-card .emoji svg { width: 24px; height: 24px; }

/* promo films on About Us: load only on play */
.gm-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; margin: 14px 0 26px; }
.gm-videos figure { margin: 0; }
.gm-videos video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #0b1b34; display: block; }
.gm-videos figcaption { font-size: .88rem; color: var(--text-soft); margin-top: 6px; }

/* shown on the welcome screen only when the browser blocks sound until the first tap */
.wl-tap { display: none; margin: 14px 0 0; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; font-weight: 600; color: #cfe0ff; }
.wl-tap svg { width: 18px; height: 18px; }
html.wl-needs-tap .wl-tap { display: flex; }

/* founder photo (About Us and Contact Us) */
.founder-card { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; align-items: start; margin: 12px 0 24px; }
.founder-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); background: var(--surface-strong); }
.founder-sm { width: 120px; margin-bottom: 12px; border-radius: 14px; }
@media (max-width: 640px) { .founder-card { grid-template-columns: minmax(0, 1fr); } .founder-card .founder-img { max-width: 260px; } }

/* photo pop-up (grows from the photo, Esc / backdrop / X close it) */
.founder-img { cursor: zoom-in; }
.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(5, 10, 24, 0); transition: background .4s ease; cursor: zoom-out; }
.lightbox.lb-on { background: rgba(5, 10, 24, .88); }
.lb-img { position: fixed; transform-origin: 0 0; border-radius: 14px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); cursor: default; transition: transform .42s cubic-bezier(.2, .8, .2, 1), border-radius .42s ease; will-change: transform; background: #0b1b34; }
.lb-cap, .lb-close { opacity: 0; transition: opacity .3s ease .25s; }
.lightbox.lb-on .lb-cap, .lightbox.lb-on .lb-close { opacity: 1; }
.lb-cap { position: fixed; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; color: #dbe4f3; font-size: .9rem; text-align: center; padding: 0 16px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lightbox, .lb-img, .lb-cap, .lb-close { transition: none; } }
.lb-close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close:hover, .lb-close:focus-visible { background: rgba(255, 255, 255, .25); outline: 2px solid #fff; outline-offset: 2px; }

/* About Us: photo beside the introduction */
.about-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1040px; }
.about-text h2:first-child { margin-top: 0; }
.about-photo { margin: 0; position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 12px 12px 16px; box-shadow: var(--shadow); }
.about-photo .founder-img { width: 100%; height: auto; aspect-ratio: 1087 / 1447; border-radius: 14px; box-shadow: none; transition: transform .25s ease; }
.about-photo .founder-img:hover { transform: scale(1.015); }
.about-photo figcaption { display: grid; gap: 2px; padding: 12px 6px 0; }
.about-photo figcaption b { font-size: 1.05rem; }
.about-photo figcaption span { color: var(--accent, var(--blue)); font-weight: 600; font-size: .9rem; }
.about-photo figcaption em { color: var(--text-soft); font-size: .8rem; font-style: normal; }
@media (max-width: 860px) { .about-top { grid-template-columns: minmax(0, 1fr); } .about-photo { position: static; max-width: 320px; order: -1; } }

/* About Us: founder introduction above "Who we are" */
.founder-intro { padding: 0 0 22px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.founder-intro .kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--blue)); margin-bottom: 8px; }
.founder-intro p { font-size: 1.08rem; line-height: 1.7; margin: 0; }

/* Floating Shop Now flip button */
.shop-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 140; width: 176px; height: 52px; perspective: 700px; text-decoration: none; color: #fff; animation: sf-float 3.2s ease-in-out infinite; }
.shop-fab::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--grad); opacity: .5; animation: sf-ring 2.6s ease-out infinite; z-index: -1; }
.sf-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.shop-fab:hover .sf-inner, .shop-fab:focus-visible .sf-inner { transform: rotateX(180deg); }
.sf-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: .95rem; letter-spacing: .01em; box-shadow: 0 10px 28px rgba(79, 70, 229, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.sf-front { background: var(--grad); }
.sf-back { background: var(--grad); transform: rotateX(180deg); font-size: .88rem; }
.shop-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--c-mid); border-radius: 999px; }
@keyframes sf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes sf-ring { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.35, 1.7); opacity: 0; } }
@keyframes sf-auto { 0%, 70% { transform: rotateX(0); } 78%, 92% { transform: rotateX(180deg); } 100% { transform: rotateX(360deg); } }
@media (hover: none) { .sf-inner { animation: sf-auto 8s ease-in-out infinite; } }
@media (max-width: 520px) { .shop-fab { width: 150px; height: 46px; right: 12px; bottom: 76px; } .sf-face { font-size: .85rem; } .sf-back { font-size: .78rem; } }
@media (prefers-reduced-motion: reduce) { .shop-fab, .shop-fab::before, .sf-inner { animation: none; } .sf-inner { transition: none; } }
@media print { .shop-fab { display: none; } }

/* Contextual shop offer */
.shop-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 28px 0; padding: 18px 20px; border: 1px solid var(--border); border-left: 4px solid var(--c-mid); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.shop-promo > div:first-child { flex: 1 1 320px; min-width: 0; }
.shop-promo h2 { font-size: 1.15rem; margin: 4px 0 4px; }
.shop-promo p { margin: 0; color: var(--text-soft); }
.shop-promo .sp-tag { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-mid); }
.shop-promo .sp-buy { display: flex; align-items: center; gap: 14px; }
.shop-promo .sp-buy b { font-size: 1.2rem; }

/* Kids learning games */
.kg-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kg-pills .pill { min-height: 44px; font-size: 1rem; }
.kg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 14px; }
.kg-track { flex: 1 1 140px; height: 12px; border-radius: 99px; background: var(--border); overflow: hidden; }
.kg-track i { display: block; height: 100%; background: linear-gradient(90deg, #facc15, #f97316); transition: width .4s ease; }
.kg-area { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); text-align: center; min-height: 260px; }
.kg-q { font-size: 1.25rem; font-weight: 700; margin: 0 0 12px; }
.kg-big { display: grid; justify-items: center; gap: 6px; margin: 6px auto 16px; font-size: 2.2rem; font-weight: 800; line-height: 1.4; }
.kg-emoji { font-size: 2.6rem; letter-spacing: 2px; word-break: break-word; }
.kg-word { font-size: 1.2rem; font-weight: 700; }
.kg-swatch { width: 110px; height: 110px; border-radius: 24px; border: 3px solid var(--border); display: block; }
.kg-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; max-width: 560px; margin: 0 auto; }
.kg-btn { min-height: 64px; padding: 10px 14px; font-size: 1.3rem; font-weight: 700; border-radius: 16px; border: 2px solid var(--border); background: var(--bg); color: inherit; cursor: pointer; touch-action: manipulation; }
.kg-btn:hover, .kg-btn:focus-visible { border-color: #4f46e5; }
.kg-btn.good { background: #dcfce7; border-color: #16a34a; color: #14532d; }
.kg-btn.bad { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }
.kg-btn:disabled { opacity: .45; }
.kg-slot { font-size: 2rem; letter-spacing: 6px; font-weight: 800; margin-bottom: 14px; min-height: 2.6rem; }
.kg-mem { display: grid; grid-template-columns: repeat(4, minmax(60px, 90px)); gap: 10px; justify-content: center; }
.kg-card { aspect-ratio: 1; font-size: 2rem; border-radius: 14px; border: 2px solid var(--border); background: #e0e7ff; color: #3730a3; cursor: pointer; touch-action: manipulation; }
.kg-card.up { background: #fff; }
.kg-card.done { background: #dcfce7; border-color: #16a34a; }
.kg-msg { min-height: 1.6rem; margin: 12px 0 6px; font-weight: 700; }
.kg-msg.ok { color: #15803d; }
.kg-msg.no { color: #b91c1c; }
.kg-next { min-height: 48px; }
.kg-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kg-certbox input { width: 100%; max-width: 360px; min-height: 44px; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .kg-track i { transition: none; } }

/* Affiliate box */
.aff-box { margin: 28px 0; padding: 16px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.aff-box h2 { font-size: 1.1rem; margin: 0 0 6px; } .aff-box ul { margin: 8px 0 0; padding-left: 20px; }

/* ===== Kids Corner premium gadgets ===== */
.kc-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.kc-levels { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.kc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 14px; }
.kc-track { flex: 1 1 130px; height: 12px; border-radius: 99px; background: var(--border); overflow: hidden; }
.kc-track i { display: block; height: 100%; background: linear-gradient(90deg, #facc15, #f97316); transition: width .4s ease; }
.kc-day { font-size: .85rem; color: var(--text-soft); } .kc-day.ok { color: #15803d; font-weight: 700; }
.kc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 14px; background: #1e1b4b; color: #fff; font-weight: 700; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: kc-pop .35s ease both; }
.kc-toast.out { opacity: 0; transition: opacity .4s; }
.kc-confetti { position: fixed; z-index: 390; pointer-events: none; width: 0; height: 0; }
.kc-confetti span { position: absolute; font-size: 1.4rem; opacity: 0; animation: kc-burst 1.1s ease-out forwards; }
@keyframes kc-burst { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(40deg); } }
@keyframes kc-pop { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* puzzles */
.kc-board { display: grid; gap: 6px; margin: 10px auto 12px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.kc-board.done { box-shadow: 0 0 0 3px #22c55e; }
.kc-tile { position: relative; aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: #e2e8f0; cursor: pointer; touch-action: manipulation; }
.kc-tile canvas { width: 100%; height: 100%; display: block; }
.kc-tile.sel { border-color: #4f46e5; transform: scale(.94); } .kc-tile.ok { border-color: #22c55e; } .kc-tile.empty { background: transparent; border: 2px dashed var(--border); cursor: default; }
.kc-num { position: absolute; left: 4px; top: 3px; font-style: normal; font-weight: 800; font-size: .8rem; color: #fff; text-shadow: 0 1px 3px #000; }
.kc-info { margin: 4px 0 0; color: var(--text-soft); text-align: center; }
.kc-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.kc-peek { position: fixed; inset: 0; z-index: 380; display: grid; place-items: center; background: rgba(0, 0, 0, .65); } .kc-peek canvas { width: min(86vw, 340px); height: auto; border-radius: 14px; }
/* brain simon */
.kc-simon { display: grid; grid-template-columns: repeat(2, minmax(90px, 130px)); gap: 12px; justify-content: center; margin: 12px auto; }
.kc-pad { aspect-ratio: 1; border: 4px solid rgba(255, 255, 255, .6); border-radius: 22px; opacity: .55; cursor: pointer; transition: transform .1s, opacity .1s; touch-action: manipulation; }
.kc-pad.lit { opacity: 1; transform: scale(1.06); box-shadow: 0 0 0 4px #fff, 0 0 24px currentColor; } .kc-pad:disabled { cursor: default; }
/* space */
.kc-space { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .kc-space { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.kc-solar { width: 100%; height: auto; max-width: 560px; justify-self: center; border-radius: 24px; }
.kc-orb { transform-origin: 300px 300px; animation: kc-spin linear infinite; } .kc-solar:hover .kc-orb { animation-play-state: paused; }
@keyframes kc-spin { to { transform: rotate(360deg); } }
.kc-pl { cursor: pointer; } .kc-pl:hover, .kc-pl:focus-visible { stroke: #fff; stroke-width: 3; outline: none; }
.kc-card { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); } .kc-card h3 { margin: 0 0 8px; } .kc-card.pop { animation: kc-pulse .4s ease; }
@keyframes kc-pulse { 50% { transform: scale(1.02); } }
.kc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; } .kc-tags span { padding: 3px 10px; border-radius: 99px; background: #eef2ff; color: #3730a3; font-size: .82rem; font-weight: 600; }
.kc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
/* animals */
.kc-agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin: 12px 0; }
.kc-animal { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); color: inherit; cursor: pointer; touch-action: manipulation; transition: transform .15s, border-color .15s; } .kc-animal span { font-size: 2.2rem; } .kc-animal:hover, .kc-animal:focus-visible { transform: translateY(-3px); border-color: #4f46e5; }
/* music */
.kc-piano { position: relative; display: flex; height: 190px; margin: 12px 0; user-select: none; touch-action: none; }
.kc-key { border: 1px solid #94a3b8; background: #fff; color: #475569; border-radius: 0 0 10px 10px; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: .8rem; font-weight: 700; flex: none; transition: background .08s; } .kc-key.on { background: #c7d2fe; }
.kc-key.black { position: absolute; top: 0; width: 6.4%; height: 62%; background: #111827; color: #e2e8f0; z-index: 2; border-radius: 0 0 8px 8px; } .kc-key.black.on { background: #4f46e5; } .kc-key.next { box-shadow: inset 0 0 0 4px #facc15, 0 0 14px #facc15; }
.kc-drums { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-bottom: 8px; }
.kc-drum { position: relative; min-height: 70px; border-radius: 18px; border: 3px solid #4f46e5; background: linear-gradient(135deg, #e0e7ff, #fce7f3); color: #1e1b4b; font-weight: 800; cursor: pointer; touch-action: none; } .kc-drum i { position: absolute; right: 8px; top: 4px; font-size: .7rem; opacity: .6; font-style: normal; } .kc-drum.on { transform: scale(.94); background: #c7d2fe; }
/* blocks and colours */
.kc-canvas { max-width: 640px; margin: 10px auto; border-radius: 14px; overflow: hidden; border: 2px solid var(--border); touch-action: none; } .kc-canvas canvas { width: 100%; height: auto; display: block; cursor: crosshair; }
.kc-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kc-swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border); cursor: pointer; } .kc-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #4f46e5; transform: scale(1.1); }
/* science */
.kc-tank { position: relative; width: min(260px, 80%); height: 190px; margin: 10px auto; border: 4px solid #94a3b8; border-top: 0; border-radius: 0 0 18px 18px; overflow: hidden; background: #f0f9ff; }
.kc-water { position: absolute; left: 0; right: 0; bottom: 0; height: 68%; background: linear-gradient(#7dd3fc, #38bdf8); opacity: .85; }
.kc-obj { position: absolute; left: 50%; top: 4px; font-size: 2.6rem; transform: translateX(-50%); transition: top 1.2s cubic-bezier(.3, .7, .3, 1); } .kc-obj.floats { top: 28%; animation: kc-bob 2s ease-in-out infinite 1.2s; } .kc-obj.sinks { top: calc(100% - 3.4rem); }
@keyframes kc-bob { 50% { transform: translateX(-50%) translateY(-5px); } }
.kc-mixres { width: 130px; height: 130px; border-radius: 50%; margin: 10px auto; display: grid; place-items: center; background: #e2e8f0; font-weight: 800; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--border); transition: background .5s; text-align: center; padding: 8px; }
.kc-paint { display: grid; gap: 4px; justify-items: center; padding: 8px 10px; border-radius: 14px; border: 2px solid var(--border); background: var(--bg); color: inherit; cursor: pointer; font-weight: 700; } .kc-paint i { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .2); display: block; } .kc-paint.sel { border-color: #4f46e5; transform: scale(1.06); }
.kc-plant { position: relative; height: 220px; max-width: 220px; margin: 8px auto; border-radius: 16px; background: linear-gradient(#e0f2fe, #f0fdf4); overflow: hidden; } .kc-sun { position: absolute; right: 12px; top: 8px; font-size: 2rem; }
.kc-stem { position: absolute; left: 50%; bottom: 58px; width: 12px; transform: translateX(-50%); background: #22c55e; border-radius: 8px; transition: height .6s ease, background .4s; max-height: 130px; } .kc-stem.weak { background: #bef264; } .kc-stem.wet { background: #a3a380; } .kc-pot { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 3.6rem; line-height: 1; }
.kc-sliders { display: grid; gap: 12px; max-width: 360px; margin: 10px auto; text-align: left; } .kc-sliders input { width: 100%; }
.kc-states { height: 140px; display: grid; place-items: center; } .kc-ice { font-size: 5rem; transition: transform .3s; }
/* cartoon */
.kc-cartoon { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); } @media (min-width: 760px) { .kc-cartoon { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); align-items: start; } }
.kc-char { border-radius: 20px; overflow: hidden; border: 2px solid var(--border); max-width: 320px; margin-inline: auto; width: 100%; } .kc-char svg { width: 100%; height: auto; display: block; }
.kc-optgrid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .kc-optbtn { padding: 8px 14px; min-height: 44px; border-radius: 12px; border: 2px solid var(--border); background: var(--bg); color: inherit; font-weight: 600; cursor: pointer; } .kc-optbtn[aria-pressed="true"] { border-color: #4f46e5; background: #eef2ff; color: #3730a3; }
/* kids hub: welcome, zones, rewards */
.kc-welcome { position: relative; overflow: hidden; padding: 36px 0 28px; background: linear-gradient(135deg, #ede9fe, #fce7f3 55%, #e0f2fe); }
.kc-floaters span { position: absolute; font-size: 1.8rem; opacity: .75; animation: kc-float 7s ease-in-out infinite; pointer-events: none; } .kc-floaters span:nth-child(1) { left: 5%; top: 14%; } .kc-floaters span:nth-child(2) { left: 22%; top: 72%; animation-delay: -2s; } .kc-floaters span:nth-child(3) { left: 46%; top: 10%; animation-delay: -4s; } .kc-floaters span:nth-child(4) { right: 8%; top: 18%; animation-delay: -1s; } .kc-floaters span:nth-child(5) { right: 26%; top: 74%; animation-delay: -3s; } .kc-floaters span:nth-child(6) { right: 3%; top: 56%; animation-delay: -5s; }
@keyframes kc-float { 50% { transform: translateY(-16px) rotate(8deg); } }
.kc-wgrid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; max-width: 880px; margin: 0 auto; position: relative; }
@media (max-width: 560px) { .kc-wgrid { grid-template-columns: 1fr; text-align: center; } .kc-bolo { margin-inline: auto; } }
.kc-bolo { width: 150px; height: auto; animation: kc-bounce 3s ease-in-out infinite; display: block; } @keyframes kc-bounce { 50% { transform: translateY(-8px); } }
.kc-wave { transform-origin: 125px 80px; animation: kc-waving 1.8s ease-in-out infinite; } @keyframes kc-waving { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-22deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-16deg); } }
.kc-eyes { transform-origin: 80px 47px; animation: kc-blink 4s infinite; } @keyframes kc-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.kc-bubble { position: relative; padding: 16px 20px; border-radius: 22px; background: #fff; box-shadow: 0 8px 24px rgba(79, 70, 229, .15); color: #1f2937; } .kc-bubble h2 { margin: 0 0 6px; font-size: 1.4rem; color: #3730a3; } .kc-bubble p { margin: 0 0 10px; transition: opacity .25s; } .kc-bubble p.swap { opacity: 0; }
.kc-zone { margin: 0 0 4px; } .kc-zone h2 { display: flex; align-items: center; gap: 10px; }
.kc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.kc-tl { display: grid; gap: 6px; padding: 16px; border-radius: 20px; text-decoration: none; color: #1f2937; background: var(--tint, #eef2ff); border: 2px solid transparent; transition: transform .18s, box-shadow .18s, border-color .18s; min-height: 132px; align-content: start; }
.kc-tl:hover, .kc-tl:focus-visible { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 12px 26px rgba(15, 23, 42, .14); border-color: #4f46e5; }
.kc-tl .kc-emoji { font-size: 2.2rem; line-height: 1; } .kc-tl b { font-size: 1.1rem; } .kc-tl span.kc-d { font-size: .92rem; color: #374151; } .kc-tl .go { color: #4338ca; font-weight: 700; font-size: .9rem; }
.kc-rw { max-width: 880px; margin: 0 auto; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 14px; }
.kc-rw-top { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; } .kc-rw-stars { display: flex; align-items: baseline; gap: 6px; font-size: 2rem; } .kc-rw-stars b { font-size: 2.4rem; } .kc-rw-prog { flex: 1 1 200px; display: grid; gap: 4px; }
.kc-daily { padding: 12px 14px; border-radius: 14px; background: #fef9c3; color: #713f12; display: grid; gap: 2px; } .kc-daily.ok { background: #dcfce7; color: #14532d; }
.kc-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .kc-badges li { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--bg); border: 2px dashed var(--border); text-align: center; opacity: .6; } .kc-badges li span { font-size: 1.8rem; filter: grayscale(1); } .kc-badges li.got { opacity: 1; border: 2px solid #facc15; background: #fffbeb; } .kc-badges li.got span { filter: none; } .kc-badges small { font-size: .72rem; color: var(--text-soft); }
.kc-cert input { min-height: 44px; max-width: 320px; width: 100%; }
@media (prefers-reduced-motion: reduce) { .kc-orb, .kc-bolo, .kc-wave, .kc-eyes, .kc-floaters span, .kc-obj.floats, .kc-toast, .kc-card.pop { animation: none; } .kc-obj, .kc-stem, .kc-tl, .kc-track i { transition: none; } .kc-confetti { display: none; } }
@media print { .kc-toast, .kc-confetti { display: none; } }

/* ===== Kids hub: animated background and cards ===== */
.kc-page main { position: relative; z-index: 1; }
.kc-page .section, .kc-page .section.alt { background: transparent; }
.kc-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #e0f2fe 0%, #fdf2f8 55%, #fef9c3 100%); }
.kc-bg .blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; animation: kc-drift 26s ease-in-out infinite alternate; }
.kc-bg .b1 { background: #c4b5fd; left: -20vmax; top: -18vmax; } .kc-bg .b2 { background: #fbcfe8; right: -22vmax; top: 18vh; animation-duration: 32s; animation-delay: -8s; } .kc-bg .b3 { background: #a5f3fc; left: 20vw; bottom: -30vmax; animation-duration: 36s; animation-delay: -15s; } .kc-bg .b4 { background: #fde68a; right: 8vw; bottom: -26vmax; width: 46vmax; height: 46vmax; animation-duration: 29s; animation-delay: -4s; }
@keyframes kc-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(9vmax, 6vmax) scale(1.18); } }
.kc-bg .fl { position: absolute; bottom: -60px; font-size: 1.9rem; opacity: 0; will-change: transform, opacity; animation: kc-rise linear infinite; }
@keyframes kc-rise { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 10% { opacity: .85; } 50% { transform: translate3d(var(--sx, 30px), -55vh, 0) rotate(14deg); } 90% { opacity: .85; } 100% { transform: translate3d(calc(var(--sx, 30px) * -1), -115vh, 0) rotate(-12deg); opacity: 0; } }
/* cards: pop in when they scroll into view, float gently, wiggle and shine on hover */
.kc-page .kc-tl { position: relative; overflow: hidden; opacity: 0; transform: translateY(26px) scale(.92); box-shadow: 0 6px 16px rgba(79, 70, 229, .12); border: 2px solid rgba(255, 255, 255, .8); backdrop-filter: none; }
.kc-page .kc-tl.in { animation: kc-card-in .65s cubic-bezier(.2, 1.2, .3, 1) both, kc-card-bob 5s ease-in-out 1s infinite; animation-delay: calc(var(--i, 0) * 70ms), calc(1s + var(--i, 0) * 120ms); }
@keyframes kc-card-in { from { opacity: 0; transform: translateY(26px) scale(.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes kc-card-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.kc-page .kc-tl::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-18deg); pointer-events: none; }
.kc-page .kc-tl:hover, .kc-page .kc-tl:focus-visible { animation: kc-wiggle .6s ease both; border-color: #7c3aed; box-shadow: 0 14px 30px rgba(124, 58, 237, .28); }
.kc-page .kc-tl:hover::after, .kc-page .kc-tl:focus-visible::after { animation: kc-shine .8s ease; }
@keyframes kc-wiggle { 0% { transform: translateY(-4px) rotate(0); } 25% { transform: translateY(-8px) rotate(-1.6deg); } 50% { transform: translateY(-8px) rotate(1.6deg); } 75% { transform: translateY(-8px) rotate(-1deg); } 100% { transform: translateY(-6px) rotate(0); } }
@keyframes kc-shine { to { left: 130%; } }
.kc-page .kc-tl .kc-emoji { display: inline-block; animation: kc-emoji 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -300ms); } .kc-page .kc-tl:hover .kc-emoji { animation: kc-spinpop .7s ease; }
@keyframes kc-emoji { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.1); } }
@keyframes kc-spinpop { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(15deg); } 100% { transform: scale(1) rotate(0); } }
.kc-page .section-head h2 { text-shadow: 0 2px 0 rgba(255, 255, 255, .7); }
.kc-page .kc-rw { background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(79, 70, 229, .12); }
.kc-page .kc-badges li.got { animation: kc-glow 2.6s ease-in-out infinite; } @keyframes kc-glow { 50% { box-shadow: 0 0 0 4px rgba(250, 204, 21, .45); } }
.kc-page .kc-welcome { background: transparent; }
:root[data-theme="dark"] .kc-bg { background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 60%, #172554 100%); } :root[data-theme="dark"] .kc-bg .blob { opacity: .28; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kc-bg { background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 60%, #172554 100%); } :root:not([data-theme="light"]) .kc-bg .blob { opacity: .28; } }
@media (prefers-reduced-motion: reduce) { .kc-bg .blob, .kc-bg .fl, .kc-page .kc-tl, .kc-page .kc-tl.in, .kc-page .kc-tl .kc-emoji, .kc-page .kc-badges li.got { animation: none !important; } .kc-page .kc-tl { opacity: 1; transform: none; } .kc-bg .fl { display: none; } }
@media (max-width: 560px) { .kc-bg .blob { filter: blur(50px); } .kc-bg .fl:nth-child(n+9) { display: none; } }

/* ===== Kids Corner world: clouds, stars, bubbles, rainbow, music panel, 3D cartoon look ===== */
.kc-bg .cloud { position: absolute; left: -240px; width: var(--w, 140px); height: calc(var(--w, 140px) * .36); border-radius: 99px; background: #fff; opacity: .9; filter: drop-shadow(0 6px 8px rgba(99, 102, 241, .12)); animation: kc-cloud linear infinite; will-change: transform; }
.kc-bg .cloud::before, .kc-bg .cloud::after, .kc-bg .cloud b { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.kc-bg .cloud::before { width: 46%; height: 120%; left: 14%; top: -52%; } .kc-bg .cloud::after { width: 34%; height: 90%; right: 14%; top: -34%; } .kc-bg .cloud b { display: none; }
@keyframes kc-cloud { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 520px)); } }
.kc-bg .star { position: absolute; width: 14px; height: 14px; background: #fde047; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); transform: scale(var(--z, 1)); animation: kc-twinkle 4s ease-in-out infinite; opacity: .85; }
@keyframes kc-twinkle { 0%, 100% { opacity: .35; transform: scale(calc(var(--z, 1) * .8)) rotate(0); } 50% { opacity: 1; transform: scale(calc(var(--z, 1) * 1.15)) rotate(20deg); } }
.kc-bg .bubble { position: absolute; bottom: -80px; width: var(--sz, 24px); height: var(--sz, 24px); border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .95) 0 14%, rgba(186, 230, 253, .35) 15% 60%, rgba(196, 181, 253, .25)); animation: kc-bubble linear infinite; will-change: transform; }
@keyframes kc-bubble { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 8% { opacity: .9; } 50% { transform: translate3d(24px, -55vh, 0); } 100% { transform: translate3d(-18px, -118vh, 0); opacity: 0; } }
.kc-bg .rainbow { position: absolute; left: 50%; bottom: -34vmin; width: 92vmin; height: 92vmin; margin-left: -46vmin; border-radius: 50%; opacity: .32; background: radial-gradient(circle, transparent 0 52%, #ef4444 52% 56%, #f97316 56% 60%, #facc15 60% 64%, #22c55e 64% 68%, #3b82f6 68% 72%, #8b5cf6 72% 76%, transparent 76%); animation: kc-rainbow 9s ease-in-out infinite; }
@keyframes kc-rainbow { 50% { opacity: .5; transform: scale(1.04); } }
.kc-fx { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 160; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 99px; background: rgba(255, 255, 255, .94); border: 2px solid #c7d2fe; box-shadow: 0 5px 0 #a5b4fc, 0 12px 22px rgba(67, 56, 202, .22); }
.kc-fx-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 4px 12px; border-radius: 99px; border: 0; background: #eef2ff; color: #3730a3; font-weight: 800; font-size: .85rem; cursor: pointer; transition: transform .08s; } .kc-fx-btn:active { transform: translateY(2px); } .kc-fx-btn.on { background: linear-gradient(#818cf8, #6366f1); color: #fff; } .kc-fx-btn span { font-size: 1.15rem; }
.kc-fx-vol input { width: 84px; vertical-align: middle; accent-color: #6366f1; }
@media (max-width: 560px) { .kc-fx { padding: 5px 8px; gap: 4px; } .kc-fx-btn b { display: none; } .kc-fx-btn { padding: 4px 10px; } .kc-fx-vol input { width: 64px; } }
:root[data-theme="dark"] .kc-fx { background: rgba(30, 27, 75, .95); border-color: #4338ca; box-shadow: 0 5px 0 #312e81, 0 12px 22px rgba(0, 0, 0, .4); } :root[data-theme="dark"] .kc-bg .cloud, :root[data-theme="dark"] .kc-bg .cloud::before, :root[data-theme="dark"] .kc-bg .cloud::after { background: #c7d2fe; opacity: .5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kc-fx { background: rgba(30, 27, 75, .95); border-color: #4338ca; } :root:not([data-theme="light"]) .kc-bg .cloud, :root:not([data-theme="light"]) .kc-bg .cloud::before, :root:not([data-theme="light"]) .kc-bg .cloud::after { background: #c7d2fe; opacity: .5; } }
/* 3D cartoon look for Kids Corner buttons and cards (looks only; behaviour is unchanged) */
.kc-page .btn { border-radius: 16px; font-weight: 800; }
.kc-page .btn-primary { background: linear-gradient(#818cf8, #6366f1); border: 0; color: #fff; box-shadow: 0 5px 0 #4338ca, 0 10px 16px rgba(67, 56, 202, .28); transition: transform .08s, box-shadow .08s; } .kc-page .btn-primary:hover { filter: brightness(1.06); } .kc-page .btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 #4338ca, 0 4px 8px rgba(67, 56, 202, .25); }
.kc-page .btn-ghost { background: #fff; border: 2px solid #c7d2fe; color: #3730a3; box-shadow: 0 4px 0 #c7d2fe; transition: transform .08s, box-shadow .08s; } .kc-page .btn-ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 #c7d2fe; }
.kc-page .pill { border-radius: 99px; border-width: 2px; box-shadow: 0 3px 0 rgba(99, 102, 241, .25); transition: transform .08s, box-shadow .08s; } .kc-page .pill:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(99, 102, 241, .25); }
.kc-page .kg-btn, .kc-page .kc-paint, .kc-page .kc-optbtn { box-shadow: 0 4px 0 rgba(15, 23, 42, .14); transition: transform .08s, box-shadow .08s, border-color .15s; } .kc-page .kg-btn:active, .kc-page .kc-paint:active, .kc-page .kc-optbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(15, 23, 42, .14); }
.kc-page .tool-panel, .kc-page .kg-area, .kc-page .kc-card, .kc-page .kc-bar, .kc-page .content-block { background: rgba(255, 255, 255, .88); } .kc-page .kg-area, .kc-page .kc-card { box-shadow: 0 8px 0 rgba(99, 102, 241, .1), 0 14px 26px rgba(79, 70, 229, .1); border-radius: 22px; }
.kc-page .kc-animal, .kc-page .kc-tile { box-shadow: 0 5px 0 rgba(15, 23, 42, .12); } .kc-page .kc-animal:hover { transform: translateY(-4px) rotate(-1deg); }
:root[data-theme="dark"] .kc-page .tool-panel, :root[data-theme="dark"] .kc-page .kg-area, :root[data-theme="dark"] .kc-page .kc-card, :root[data-theme="dark"] .kc-page .kc-bar, :root[data-theme="dark"] .kc-page .content-block { background: rgba(30, 27, 75, .85); }
@media (prefers-reduced-motion: reduce) { .kc-bg .cloud, .kc-bg .star, .kc-bg .bubble, .kc-bg .rainbow { animation: none; } .kc-bg .bubble { display: none; } .kc-bg .cloud { left: 12%; } }
/* === colour themes === */
/* A palette is chosen from the header button and saved in localStorage ("niazi.accent"). Navy Blue is the default. */
:root[data-accent="royal"] { --ink: #0a1a5c; --ink-2: #14297a; --blue: #3355e8; --accent: #3355e8; --accent-soft: #e8edff; --blue-dark: #2843c4; --grad: linear-gradient(135deg, #3b82f6 0%, #3355e8 55%, #5b3fe0 100%); --grad-soft: linear-gradient(135deg, #eaf0ff 0%, #eeeaff 100%); --glow-a: 91, 63, 224; --glow-b: 59, 130, 246; --glow-c: 51, 85, 232; --c-mid: #3355e8; --shadow-glow: 0 10px 30px -10px rgba(51, 85, 232, .55); }
:root[data-theme="dark"][data-accent="royal"] { --blue: #8aa2ff; --accent: #8aa2ff; --accent-soft: #1b2a66; --bg: #090f2b; --bg-alt: #0d1538; --surface: #121c47; --surface-strong: #1a2759; --border: #26356f; --border-strong: #35468c; --grad-soft: linear-gradient(135deg, #131f55 0%, #1d1a55 100%); --shadow-glow: 0 10px 30px -10px rgba(51, 85, 232, .6); }
:root[data-theme="dark"][data-accent="royal"] .gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; filter: brightness(1.25); }
:root[data-accent="emerald"] { --ink: #052e22; --ink-2: #0a4a38; --blue: #0a8a5c; --accent: #0a8a5c; --accent-soft: #e3f6ee; --blue-dark: #077548; --grad: linear-gradient(135deg, #10b981 0%, #059669 55%, #0d9488 100%); --grad-soft: linear-gradient(135deg, #e7f8f0 0%, #e4f6f6 100%); --glow-a: 13, 148, 136; --glow-b: 16, 185, 129; --glow-c: 5, 150, 105; --c-mid: #059669; --shadow-glow: 0 10px 30px -10px rgba(5, 150, 105, .55); }
:root[data-theme="dark"][data-accent="emerald"] { --blue: #3ddc97; --accent: #3ddc97; --accent-soft: #0f3a2c; --bg: #07140f; --bg-alt: #0a1d16; --surface: #10291f; --surface-strong: #16382b; --border: #1f4a39; --border-strong: #2c6650; --grad-soft: linear-gradient(135deg, #0c2a20 0%, #0b2f2f 100%); --shadow-glow: 0 10px 30px -10px rgba(5, 150, 105, .6); }
:root[data-theme="dark"][data-accent="emerald"] .gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; filter: brightness(1.25); }
:root[data-accent="teal"] { --ink: #06303a; --ink-2: #0b4756; --blue: #0e7490; --accent: #0e7490; --accent-soft: #def4f8; --blue-dark: #0b5f76; --grad: linear-gradient(135deg, #06b6d4 0%, #0e7490 55%, #0f766e 100%); --grad-soft: linear-gradient(135deg, #e0f6fa 0%, #def5ee 100%); --glow-a: 15, 118, 110; --glow-b: 6, 182, 212; --glow-c: 14, 116, 144; --c-mid: #0e7490; --shadow-glow: 0 10px 30px -10px rgba(14, 116, 144, .55); }
:root[data-theme="dark"][data-accent="teal"] { --blue: #4fd6e3; --accent: #4fd6e3; --accent-soft: #0d3a45; --bg: #06141a; --bg-alt: #0a1e26; --surface: #0f2a35; --surface-strong: #153846; --border: #1d4857; --border-strong: #2a6379; --grad-soft: linear-gradient(135deg, #0b2c36 0%, #0b3030 100%); --shadow-glow: 0 10px 30px -10px rgba(14, 116, 144, .6); }
:root[data-theme="dark"][data-accent="teal"] .gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; filter: brightness(1.25); }
:root[data-accent="purple"] { --ink: #1e1048; --ink-2: #2f1b6e; --blue: #7c3aed; --accent: #7c3aed; --accent-soft: #f0e9fd; --blue-dark: #6527d1; --grad: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #c026d3 100%); --grad-soft: linear-gradient(135deg, #f1ebff 0%, #f9e9fb 100%); --glow-a: 192, 38, 211; --glow-b: 124, 58, 237; --glow-c: 109, 40, 217; --c-mid: #7c3aed; --shadow-glow: 0 10px 30px -10px rgba(109, 40, 217, .55); }
:root[data-theme="dark"][data-accent="purple"] { --blue: #b79df5; --accent: #b79df5; --accent-soft: #2b2052; --bg: #0e0a1f; --bg-alt: #140e2c; --surface: #1c1440; --surface-strong: #271b58; --border: #35266f; --border-strong: #4a378f; --grad-soft: linear-gradient(135deg, #221648 0%, #35133f 100%); --shadow-glow: 0 10px 30px -10px rgba(109, 40, 217, .6); }
:root[data-theme="dark"][data-accent="purple"] .gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; filter: brightness(1.25); }
:root[data-accent="graphite"] { --ink: #111827; --ink-2: #1f2937; --blue: #3f4a5c; --accent: #3f4a5c; --accent-soft: #eceff3; --blue-dark: #2d3646; --grad: linear-gradient(135deg, #64748b 0%, #475569 55%, #334155 100%); --grad-soft: linear-gradient(135deg, #eef1f5 0%, #e9edf2 100%); --glow-a: 100, 116, 139; --glow-b: 71, 85, 105; --glow-c: 51, 65, 85; --c-mid: #475569; --shadow-glow: 0 10px 30px -10px rgba(51, 65, 85, .55); }
:root[data-theme="dark"][data-accent="graphite"] { --blue: #b4bfce; --accent: #b4bfce; --accent-soft: #232b38; --bg: #0d1015; --bg-alt: #12161c; --surface: #1a1f27; --surface-strong: #232a35; --border: #2c3441; --border-strong: #3f4a5b; --grad-soft: linear-gradient(135deg, #1a202a 0%, #20252e 100%); --shadow-glow: 0 10px 30px -10px rgba(51, 65, 85, .6); }
:root[data-theme="dark"][data-accent="graphite"] .gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; filter: brightness(1.25); }
::selection { background: var(--c-mid); }
.nav-actions { position: relative; }
.pal-pop { position: absolute; right: 0; top: calc(100% + 12px); z-index: 130; width: 248px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.pal-pop[hidden] { display: none; } .pal-pop h2 { margin: 0 0 10px; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.pal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pal-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; text-align: left; min-height: 40px; transition: border-color .15s, background .15s; }
.pal-opt:hover { border-color: var(--border-strong); background: var(--surface-strong); } .pal-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pal-opt i { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.pal-note { margin: 10px 0 0; font-size: .72rem; color: var(--text-faint); }
@media (max-width: 520px) { .pal-pop { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; } }
#palette-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
/* header stays on one line with the colour button added */
@media (min-width: 1101px) and (max-width: 1500px) { .nav { gap: 8px; } .nav-links a { padding: 8px 8px; font-size: .88rem; } }
@media (min-width: 1101px) and (max-width: 1215px) { .nav-links a svg { display: none; } }
/* === crun blue === */
:root { --accent: #2563eb; --accent-soft: #eaf1ff; --blue: #2563eb; --blue-dark: #1d4ed8; --bg-alt: #f5f8ff; --grad: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); --grad-soft: linear-gradient(135deg, #eef4ff 0%, #f5f8ff 100%); --shadow-glow: 0 10px 30px -10px rgba(37, 99, 235, .5); --glow-a: 59, 130, 246; --glow-b: 37, 99, 235; --glow-c: 37, 99, 235; --c-mid: #2563eb; --radius: 16px; }
.btn-primary { box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .6); }
.card { border-radius: 18px; }

/* === unified layer === */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { margin-bottom: clamp(20px, 3vw, 30px); }
h1, h2, h3 { letter-spacing: -.02em; text-wrap: balance; }
.page-hero { background: radial-gradient(760px 260px at 85% -20%, rgba(var(--glow-b), .12), transparent 70%), color-mix(in srgb, var(--bg-alt) 70%, transparent); }
.page-hero h1 { letter-spacing: -.03em; }
.site-footer { padding: 44px 0 24px; }
input, select, textarea { border-radius: 12px; }
@media (max-width: 640px) {
  .btn { min-height: 44px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .chip, .pop-chip, .site-footer li a { min-height: 36px; display: inline-flex; align-items: center; }
  .site-footer li { margin-bottom: 4px; }
}

/* === motion layer === */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: ease; }
.btn:active, .icon-btn:active { transform: scale(.97); }
main .hero::before { display: block; content: ""; position: absolute; z-index: -1; inset: auto; left: -120px; top: 40px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow-b), .16), transparent 68%); -webkit-mask-image: none; mask-image: none; background-size: auto; animation: gm-float 14s ease-in-out infinite alternate; }
main .hero::after { display: block; content: ""; position: absolute; z-index: -1; right: -100px; top: -60px; left: auto; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow-a), .16), transparent 68%); filter: none; animation: gm-float 17s ease-in-out infinite alternate-reverse; }
@keyframes gm-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(26px, 22px, 0); } }
@media (prefers-reduced-motion: reduce) { main .hero::before, main .hero::after { animation: none; } @view-transition { navigation: none; } }
main .hero-cats { display: none; }

/* === tab identity === */
body[data-tab="tools"] { --tab: #2563eb; --tab2: #06b6d4; }
body[data-tab="hcm"] { --tab: #4f46e5; --tab2: #8b5cf6; }
body[data-tab="kids"] { --tab: #db2777; --tab2: #f59e0b; }
body[data-tab="learn"] { --tab: #047857; --tab2: #14b8a6; }
body[data-tab="people"] { --tab: #b45309; --tab2: #f43f5e; }
body[data-tab="about"] { --tab: #1e40af; --tab2: #6366f1; }
body[data-tab="contact"] { --tab: #0369a1; --tab2: #6366f1; }
body[data-tab="shop"] { --tab: #7c3aed; --tab2: #ec4899; }
body[data-tab="jobs"] { --tab: #0f766e; --tab2: #2563eb; }
body[data-tab="business"] { --tab: #4338ca; --tab2: #2563eb; }
:root:not([data-accent]) body[data-tab] { --tab-t: var(--tab); }
:root[data-theme="dark"]:not([data-accent]) body[data-tab] { --tab-t: color-mix(in srgb, var(--tab) 55%, #fff); }
:root:not([data-accent]) body[data-tab] .page-hero:not([class*="kc-"]) { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(640px 260px at 8% -12%, color-mix(in srgb, var(--tab) 18%, transparent), transparent 70%), radial-gradient(560px 240px at 96% 0%, color-mix(in srgb, var(--tab2) 18%, transparent), transparent 70%), color-mix(in srgb, var(--bg-alt) 70%, transparent); }
:root:not([data-accent]) body[data-tab] .page-hero:not([class*="kc-"])::before { content: ""; position: absolute; z-index: -1; right: 6%; top: -50px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tab2) 28%, transparent), transparent 68%); animation: gm-float 13s ease-in-out infinite alternate; }
:root:not([data-accent]) body[data-tab] .page-hero .eyebrow { color: var(--tab-t); background: color-mix(in srgb, var(--tab) 12%, transparent); }
:root:not([data-accent]) body[data-tab] .gradient-text { background: linear-gradient(110deg, var(--tab), var(--tab2), var(--tab)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gm-shimmer 8s linear infinite; }
:root:not([data-accent]) body[data-tab] .btn-primary { background: linear-gradient(135deg, var(--tab), var(--tab2)); box-shadow: 0 10px 24px -12px var(--tab); }
:root:not([data-accent]) body[data-tab] a.card:hover, :root:not([data-accent]) body[data-tab] .card.hover:hover, :root:not([data-accent]) body[data-tab] .tool-card:hover { border-color: color-mix(in srgb, var(--tab) 55%, var(--border)); box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--tab) 55%, transparent); }
:root:not([data-accent]) body[data-tab] .icon-chip:not([class*="cat-"]):not(.ftd-chip) { background: color-mix(in srgb, var(--tab) 12%, var(--surface)); color: var(--tab-t); }
body[data-tab] .page-hero .ft-feat { background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.page-hero { position: relative; }
.page-hero > .container { position: relative; z-index: 1; }
.tab-float { position: absolute; z-index: 1; right: max(20px, calc((100% - var(--maxw)) / 2 + 20px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.tab-float span { padding: 8px 15px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--tab-t, var(--accent)); background: color-mix(in srgb, var(--surface) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--tab, var(--accent)) 25%, var(--border)); box-shadow: 0 10px 22px -14px var(--tab, var(--accent)); animation: gm-bob 6s ease-in-out infinite alternate; }
.tab-float span:nth-child(2n) { margin-right: 34px; animation-delay: -2s; }
.tab-float span:nth-child(3n) { margin-right: 14px; animation-delay: -4s; }
@keyframes gm-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes gm-shimmer { to { background-position: 200% center; } }
@media (max-width: 1100px) { .tab-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .tab-float span, body[data-tab] .gradient-text, body[data-tab] .page-hero::before { animation: none !important; } }

/* === hero orbit === */
.hero-orbit { display: none; }
@media (min-width: 1300px) {
  main .hero { position: relative; }
  .hero-orbit { position: absolute; top: 64px; z-index: 1; display: flex; flex-direction: column; gap: 18px; width: 252px; }
  .hero-orbit-l { right: calc(50% + 370px); align-items: flex-end; }
  .hero-orbit-r { left: calc(50% + 370px); align-items: flex-start; }
  .ho-card { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border)); background: color-mix(in srgb, var(--surface) 76%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 38px -22px rgba(var(--glow-b), .55); color: var(--text); text-decoration: none; animation: gm-bob 6.5s ease-in-out infinite alternate; transition: border-color .2s, box-shadow .2s; }
  .ho-card:hover { border-color: var(--accent); box-shadow: 0 22px 44px -20px rgba(var(--glow-b), .7); text-decoration: none; }
  .ho-b, .ho-e { animation-delay: -2.4s; } .ho-c, .ho-f { animation-delay: -4.6s; }
  .hero-orbit-l .ho-b { margin-right: 28px; width: calc(100% - 28px); } .hero-orbit-r .ho-e { margin-left: 28px; width: calc(100% - 28px); }
  .ho-ic { flex: none; width: 40px; height: 40px; margin: 0 !important; border-radius: 12px; }
  .ho-ic svg { width: 20px; height: 20px; }
  .ho-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; }
  .ho-t b { font-family: var(--display); font-size: .92rem; }
  .ho-t small { font-size: .72rem; color: var(--text-soft); }
  .ho-ok { color: #15803d !important; font-weight: 600; }
  .ho-bar { display: block; height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
  .ho-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad); transform-origin: 0 50%; animation: ho-fill 4.5s ease-in-out infinite; }
  @keyframes ho-fill { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }
  .ho-dots { letter-spacing: .12em; font-size: .9rem; color: var(--text); line-height: 1; }
  .ho-qr { position: relative; display: block; width: 45px; height: 45px; }
  .ho-qr i { position: absolute; left: calc(var(--x) * 9px); top: calc(var(--y) * 9px); width: 8px; height: 8px; border-radius: 2px; background: var(--text); }
  .ho-lines { display: flex; flex-direction: column; gap: 4px; }
  .ho-lines i { display: block; height: 5px; border-radius: 99px; background: var(--border-strong); }
  .ho-lines i:nth-child(1) { width: 90%; } .ho-lines i:nth-child(2) { width: 70%; } .ho-lines i:nth-child(3) { width: 80%; }
  .ho-bars { display: flex; align-items: flex-end; gap: 5px; height: 28px; }
  .ho-bars i { display: block; width: 12px; border-radius: 4px 4px 0 0; background: var(--grad); opacity: .85; }
  .ho-bars i:nth-child(1) { height: 40%; } .ho-bars i:nth-child(2) { height: 65%; } .ho-bars i:nth-child(3) { height: 50%; } .ho-bars i:nth-child(4) { height: 90%; }
  .ho-conv { font-family: var(--display); font-weight: 700; font-size: .95rem; } .ho-conv em { font-style: normal; color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) { .ho-card, .ho-bar i { animation: none !important; } }

/* === tech theme === */
html.tech { background: var(--bg); }
html.tech body { background: transparent; }
/* tech scene */
.tech-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.tech-bg canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.tech-bg canvas.on { opacity: 1; }
.tb-scene { position: absolute; inset: -3%; will-change: transform; transition: transform .9s ease-out; }
.tb-img { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; filter: blur(2.5px) saturate(1.05); transition: opacity 1.8s ease; }
.tech-bg.ready .tb-img { opacity: .5; }
@media (max-width: 700px) { .tb-img { background-position: 78% center; } }
.tb-aurora { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; will-change: transform; }
.tb-a1 { left: -18vmax; top: -24vmax; background: radial-gradient(circle, rgba(var(--glow-b), .2), transparent 66%); animation: tb-drift-a 36s ease-in-out infinite alternate; }
.tb-a2 { right: -22vmax; top: 4vmax; background: radial-gradient(circle, rgba(var(--glow-a), .16), transparent 66%); animation: tb-drift-b 44s ease-in-out infinite alternate; }
.tb-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 75%); mask-image: linear-gradient(transparent, #000 75%); }
.tb-floor::before { content: ""; position: absolute; left: -40%; right: -40%; top: 0; bottom: 0; background-image: linear-gradient(rgba(var(--glow-b), .13) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--glow-b), .13) 1px, transparent 1px); background-size: 56px 56px; transform: perspective(520px) rotateX(62deg); transform-origin: 50% 100%; }
.tb-floor::after { content: ""; position: absolute; top: 0; bottom: 0; left: -35%; width: 35%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); animation: tb-sweep 11s ease-in-out infinite; }
.tb-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .86) 22%, rgba(255, 255, 255, .86) 78%, rgba(255, 255, 255, .5)), linear-gradient(180deg, rgba(255, 255, 255, .3), transparent 40%); }
:root[data-theme="dark"] .tb-img { filter: invert(1) hue-rotate(180deg) brightness(.7) saturate(.9) blur(2.5px); }
:root[data-theme="dark"] .tech-bg.ready .tb-img { opacity: .4; }
:root[data-theme="dark"] .tb-veil { background: linear-gradient(90deg, rgba(8, 14, 32, .55), rgba(8, 14, 32, .86) 22%, rgba(8, 14, 32, .86) 78%, rgba(8, 14, 32, .55)); }
:root[data-theme="dark"] .tb-floor::after { opacity: .2; }
@keyframes tb-drift-a { to { transform: translate3d(9vmax, 7vmax, 0); } }
@keyframes tb-drift-b { to { transform: translate3d(-8vmax, 9vmax, 0); } }
@keyframes tb-sweep { to { transform: translateX(400%); } }
@media (prefers-reduced-motion: reduce) { .tb-aurora, .tb-floor::after { animation: none; } }
main .hero { background: radial-gradient(900px 420px at 50% -8%, rgba(var(--glow-b), .1), transparent 70%); }
/* navigation: gradient tabs, glow and an animated indicator */
.nav-links a { position: relative; }
.nav-links li:nth-child(1) a { --nt: #2563eb; } .nav-links li:nth-child(2) a { --nt: #0891b2; } .nav-links li:nth-child(3) a { --nt: #4f46e5; } .nav-links li:nth-child(4) a { --nt: #db2777; }
.nav-links li:nth-child(5) a { --nt: #047857; } .nav-links li:nth-child(6) a { --nt: #b45309; } .nav-links li:nth-child(7) a { --nt: #1e40af; } .nav-links li:nth-child(8) a { --nt: #0369a1; }
.nav-links a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--nt, var(--accent)), #22d3ee); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:hover { background: color-mix(in srgb, var(--nt, var(--accent)) 9%, transparent); color: var(--text); }
.nav-links a[aria-current="page"] { background: linear-gradient(135deg, color-mix(in srgb, var(--nt, var(--accent)) 17%, transparent), color-mix(in srgb, #22d3ee 14%, transparent)); color: var(--nt, var(--accent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nt, var(--accent)) 26%, transparent), 0 8px 18px -10px var(--nt, var(--accent)); }
:root[data-theme="dark"] .nav-links a[aria-current="page"] { color: color-mix(in srgb, var(--nt, var(--accent)) 55%, #fff); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), #22d3ee, transparent); opacity: .45; }
@media (max-width: 1100px) { .nav-links a::after { display: none; } }
/* entrance animations */
@keyframes gm-rise { from { opacity: 0; transform: translateY(14px); } }
body:not([data-tab="kids"]) .page-hero > .container, body:not([data-tab="kids"]) main .hero > .container { animation: gm-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .tb-wave { animation: none; } body .page-hero > .container, body main .hero > .container { animation: none !important; } }
/* kids stays independent of the technology theme */
body[data-tab="kids"] .page-hero { background: var(--bg-alt) !important; }

/* === welcome ring === */
html.wl body::before { background: #010a29; }
.welcome { background: #010a29; }
.welcome::before { background-image: linear-gradient(rgba(56, 189, 248, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, .06) 1px, transparent 1px); }
.welcome .wl-stage { position: relative; width: min(60vmin, 640px); aspect-ratio: 1; margin: 0 auto 4px; }
@media (max-width: 600px) { .welcome .wl-stage { width: min(80vw, 54vh); } }
.wl-ring { position: absolute; inset: 0; }
.wl-ring-img, .wl-ticks, .wl-glow { position: absolute; inset: 0; width: 100%; height: 100%; }
.wl-ring-img { object-fit: contain; }
.wl-ticks { overflow: visible; }
.wl-glow { border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .35), rgba(79, 70, 229, .18) 45%, transparent 68%); }
.welcome .wl-logo { position: absolute; left: 50%; top: 50%; margin: 0; translate: -50% -50%; width: 15%; height: auto; aspect-ratio: 1; border-radius: 28%; z-index: 1; }
.welcome .wl-logo svg { width: 62%; }
.wl-flash { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; background: radial-gradient(circle, #fff, rgba(125, 211, 252, .65) 38%, transparent 70%); opacity: 0; pointer-events: none; z-index: 3; }
.welcome .wl-bots { position: absolute; inset: 0; display: block; margin: 0; z-index: 2; }
.welcome .wl-bot-wrap { position: absolute; width: 25%; opacity: 0; }
.welcome .wl-a { left: 3%; top: 36%; } .welcome .wl-b { right: 3%; top: 36%; } .welcome .wl-c { left: 37.5%; top: 58%; width: 25%; }
.welcome .wl-c .wl-bubble { top: -6px; }
.welcome.go .wl-bot-wrap, .welcome.still .wl-bot-wrap { opacity: 1; }
.welcome .wl-type { display: inline; background: linear-gradient(135deg, #93c5fd, #c4b5fd 55%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome .wl-title { min-height: 1.15em; }
.wl-caret { display: inline-block; width: 3px; height: .9em; margin-left: 4px; vertical-align: -0.08em; background: #67e8f9; animation: wl-caret .8s steps(2) infinite; }
.wl-actions { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 48px; flex-wrap: wrap; }
.wl-enter { display: none; font: inherit; font-weight: 700; font-size: 1rem; color: #fff; padding: 11px 28px; border-radius: 999px; border: 1px solid rgba(125, 211, 252, .55); background: linear-gradient(135deg, #2563eb, #4f46e5 60%, #7c3aed); cursor: pointer; opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; transition: opacity .45s ease, transform .45s ease, box-shadow .25s ease; }
.welcome.ready .wl-enter { opacity: 1; transform: none; pointer-events: auto; }
.welcome.ready .wl-enter:hover, .welcome.ready .wl-enter:focus-visible { box-shadow: 0 0 0 3px rgba(125, 211, 252, .25), 0 0 28px rgba(56, 189, 248, .65); outline: none; transform: translateY(-2px); }
.welcome.ready .wl-bar { animation: none !important; opacity: 0; transition: opacity .4s ease; }
.welcome.leaving .wl-bot-wrap { transition: transform .4s cubic-bezier(.6, 0, .9, .4), opacity .35s ease; transform: translate(var(--ex), var(--ey)) scale(0); opacity: 0; }
.welcome.leaving .wl-ring { transition: transform .6s cubic-bezier(.5, 0, 1, .6), opacity .5s ease .05s; transform: scale(3.4); opacity: 0; }
.welcome.leaving .wl-logo { transition: transform .7s ease, opacity .5s ease; transform: scale(2.4); opacity: 0; }
.welcome.leaving .wl-inner > :not(.wl-stage) { transition: opacity .35s ease; opacity: 0; }
@media (max-height: 700px) { .welcome .wl-sub { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .wl-ring-img { animation: wl-cw 36s linear infinite; }
  .wl-ticks-a { animation: wl-ccw 26s linear infinite; }
  .wl-ticks-b { animation: wl-ccw 52s linear infinite reverse; }
  .wl-glow { animation: wl-pulse 3.6s ease-in-out infinite; }
  .welcome .wl-ring { animation: wl-ring-in .5s cubic-bezier(.2, .8, .2, 1) both; }
  .welcome.go .wl-flash { animation: wl-flash .6s ease-out both; }
  .welcome.go .wl-a { animation: wl-emerge .6s cubic-bezier(.2, .9, .25, 1.25) .02s both; }
  .welcome.go .wl-b { animation: wl-emerge .6s cubic-bezier(.2, .9, .25, 1.25) .1s both; }
  .welcome.go .wl-c { animation: wl-emerge .6s cubic-bezier(.2, .9, .25, 1.25) .18s both; }
  .welcome .wl-bot-wrap .wl-bot { animation: wl-float 2.6s ease-in-out .9s infinite; }
  .welcome .wl-b .wl-bot { animation-name: wl-float-m; animation-delay: 1.1s; }
  .welcome .wl-c .wl-bot { animation-delay: 1.3s; }
  .welcome .wl-arm { animation: wl-wave .4s ease-in-out .45s 3 alternate; }
  .welcome .wl-a .wl-bubble { animation: wl-pop .3s cubic-bezier(.3, 1.6, .5, 1) .5s both; }
  .welcome .wl-b .wl-bubble { animation: wl-pop .3s cubic-bezier(.3, 1.6, .5, 1) .65s both; }
  .welcome .wl-c .wl-bubble { animation: wl-pop .3s cubic-bezier(.3, 1.6, .5, 1) .8s both; }
  .welcome .wl-bubble { opacity: 0; }
  .welcome .wl-kicker { animation: wl-rise .35s ease .2s both; }
  .welcome .wl-sub { animation: wl-rise .4s ease .9s both; }
  .welcome .wl-bar { animation: wl-rise .3s ease .1s both; }
  .welcome .wl-bar i { animation-duration: var(--wl-ready, 4500ms); animation-timing-function: linear; }
  .welcome .wl-skip { animation: wl-rise .3s ease .1s both; }
  .welcome .wl-logo { animation: none; }
}
.welcome.still .wl-bubble { opacity: 1; }
@keyframes wl-cw { to { transform: rotate(360deg); } }
@keyframes wl-ccw { to { transform: rotate(-360deg); } }
@keyframes wl-pulse { 0%, 100% { opacity: .45; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes wl-ring-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes wl-flash { 0% { opacity: 0; transform: scale(.2); } 25% { opacity: .95; } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes wl-emerge { 0% { opacity: 0; transform: translate(var(--ex), var(--ey)) scale(0); } 55% { opacity: 1; transform: translate(calc(var(--ex) * -.06), calc(var(--ey) * -.06)) scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes wl-caret { 50% { opacity: 0; } }
.fo-safe a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; color: var(--accent) !important; }

/* === welcome video === */
.welcome .wl-video { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.welcome.vid .wl-video { opacity: 1; pointer-events: auto; }
.welcome.vid .wl-inner { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.welcome.vid .wl-sparks { opacity: .35; }
.wl-vframe { position: relative; height: min(90vh, 177.78vw); aspect-ratio: 9 / 16; max-width: 100vw; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(125, 211, 252, .4), 0 0 70px rgba(56, 189, 248, .28), 0 30px 80px rgba(0, 0, 0, .65); }
.wl-vid { display: block; width: 100%; height: 100%; object-fit: cover; }
.wl-vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .16); }
.wl-vbar b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #38bdf8, #a78bfa, #f472b6); transform-origin: 0 50%; transform: scaleX(0); }
.wl-vctl { position: absolute; left: 16px; right: 16px; top: max(14px, env(safe-area-inset-top)); display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.wl-vctl button { pointer-events: auto; font: inherit; font-size: .86rem; font-weight: 600; color: #fff; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .32); background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transition: background .2s, border-color .2s; }
.wl-vctl button:hover, .wl-vctl button:focus-visible { background: rgba(0, 0, 0, .65); border-color: rgba(125, 211, 252, .7); outline: none; }
@media (max-width: 600px) { .wl-vframe { height: 100vh; height: 100dvh; width: 100vw; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; } }
.wl-hint { position: absolute; left: 50%; top: max(64px, calc(env(safe-area-inset-top) + 56px)); translate: -50% 0; display: none; align-items: center; gap: 8px; margin: 0; padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: #fff; white-space: nowrap; background: rgba(15, 23, 42, .62); border: 1px solid rgba(125, 211, 252, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.wl-hint svg { width: 18px; height: 18px; }
.welcome.vid.muted .wl-hint { display: inline-flex; }
@media (prefers-reduced-motion: no-preference) { .welcome.vid.muted .wl-hint { animation: wl-hintpulse 1.8s ease-in-out infinite; } }
@keyframes wl-hintpulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }