/* mageera.dev - public site. Colours are tokens; --accent comes from Settings. */
:root {
  color-scheme: light;
  --bg: #f7f7fb; --bg-alt: #eef0f6; --card: #ffffff; --line: #e4e6ef;
  --text: #0f1220; --muted: #5b6176; --soft: rgba(15, 18, 32, .05);
  --code-bg: #0f1220; --code-text: #e6e8f2;
  --shadow: 0 1px 2px rgba(15,18,32,.04), 0 8px 30px rgba(15,18,32,.06);
  --radius: 18px; --wrap: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0d14; --bg-alt: #0f121b; --card: #141823; --line: #232838;
    --text: #eef0f7; --muted: #9aa1b6; --soft: rgba(255,255,255,.05);
    --code-bg: #0a0c12; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d14; --bg-alt: #0f121b; --card: #141823; --line: #232838;
  --text: #eef0f7; --muted: #9aa1b6; --soft: rgba(255,255,255,.05);
  --code-bg: #0a0c12; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.icon { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons and small parts */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font: 700 .95rem/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
/* --btn-bg comes from Settings: a solid colour or a gradient. */
.btn-primary { background: var(--btn-bg, var(--accent)); border-color: transparent; color: #fff; box-shadow: none; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--text); }
.btn-wa { background: #1fa855; color: #fff; margin-top: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.pill { font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; text-decoration: none; margin-right: auto; display: inline-flex; align-items: baseline; }
.brand img { height: 34px; width: auto; }
.dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--soft); }
.nav .nav-cta { color: #fff; margin-left: 8px; padding: 9px 16px; border-radius: 999px; }
.nav .nav-cta:hover { color: #fff; background: var(--btn-bg, var(--accent)); }
.topbar-tools { display: flex; gap: 8px; }
.menu-btn { display: none; }
.when-open, .show-dark { display: none; }
:root[data-theme="dark"] .show-dark { display: block; } :root[data-theme="dark"] .show-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .show-dark { display: block; } :root:not([data-theme="light"]) .show-light { display: none; } }
@media (max-width: 860px) {
  .topbar-in { height: 56px; }
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: 56px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .18s; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav .nav-cta { margin: 8px 0 0; padding: 13px; }
  body.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.menu-open .when-open { display: block; } body.menu-open .when-closed { display: none; }
}

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-glow { position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
.code-card { background: var(--code-bg); color: var(--code-text); border-radius: 20px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); overflow: hidden; transform: rotate(-1.5deg); }
.code-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-top span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .code-top span:nth-child(2) { background: #febc2e; } .code-top span:nth-child(3) { background: #28c840; }
.code-top em { margin-left: 8px; font-style: normal; font-size: .78rem; opacity: .55; }
.code-card pre { margin: 0; padding: 20px 22px 58px; font: 500 .9rem/1.75 ui-monospace, "SF Mono", Consolas, monospace; overflow-x: auto; }
.code-card b { color: #c792ea; font-weight: 600; } .code-card i { color: #82aaff; font-style: normal; } .code-card s { color: #c3e88d; text-decoration: none; } .code-card u { color: #697098; text-decoration: none; }
/* Home-page projects under the hero picture, shown one at a time. */
.float-cards { position: absolute; left: -24px; bottom: -22px; display: grid; animation: float 5s ease-in-out infinite; }
.float-card { grid-area: 1 / 1; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: var(--accent); text-decoration: none; opacity: 0; transform: translateY(10px) scale(.97); pointer-events: none; transition: opacity .45s, transform .45s; }
.float-card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.float-card strong { display: block; color: var(--text); font-size: .92rem; } .float-card small { display: block; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-8px); } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 56px; }
.stats div { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.stats strong { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 40px 0 72px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.row-head { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 26px; transition: transform .2s, border-color .2s; }
.service:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.service-icon, .product-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 18px; }
.service p { margin: 0; }

.project { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.project:hover { transform: translateY(-4px); }
.project:hover .cover img { transform: scale(1.04); }
.cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project .cover { aspect-ratio: 1147 / 576; }
.cover-blank { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, var(--card)), var(--bg-alt)); }
.cover-blank span { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -.04em; color: color-mix(in srgb, var(--accent) 70%, var(--text)); opacity: .9; }
.cover-sm { aspect-ratio: 16 / 8; border-radius: 12px; margin-bottom: 18px; }
.cover-hero { border-radius: var(--radius); aspect-ratio: 1147 / 576; border: 1px solid var(--line); }
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.3rem; }
.project-body .chips { margin: 4px 0 16px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }

.product { padding: 26px; display: flex; flex-direction: column; }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.product .tagline { font-weight: 600; margin-bottom: 8px; }
.product .link-arrow { margin-top: auto; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 24px; }
.step-no { display: block; font-size: .9rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.step p { margin: 0; font-size: .95rem; }
.stack { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }

.review { margin: 0; padding: 26px; display: flex; flex-direction: column; }
.quote-mark { color: var(--accent); margin-bottom: 10px; }
.review blockquote { margin: 0 0 20px; font-size: 1.02rem; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review figcaption img, .avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.review strong, .review small { display: block; }

.about { max-width: 820px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; } .prose li { margin-bottom: .4em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--accent); margin-top: 3px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-card { padding: 28px; }
.contact-form { display: grid; gap: 14px; }
.contact-form .grid-2 { gap: 14px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem/1.4 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: #e5484d; }
.err, .form-error { color: #e5484d; font-weight: 600; font-size: .85rem; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, #e5484d 12%, transparent); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; padding: 40px 10px; }
.sent .icon { color: #1fa855; width: 48px; height: 48px; padding: 10px; border-radius: 50%; background: color-mix(in srgb, #1fa855 14%, transparent); margin: 0 auto 14px; box-sizing: content-box; }

/* Inner pages */
.page-head { padding: 64px 0 32px; }
.page-head .lead { max-width: 640px; }
.back { display: inline-block; text-decoration: none; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filters a { text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .92rem; color: var(--muted); }
.filters a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 24px 0 0; }
.facts dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.facts a { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.small-title { font-size: 1.1rem; margin-top: 32px; }
.cta-band { padding: 64px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-in h2 { margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 24px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-grid > div > a:not(.brand) { display: block; text-decoration: none; padding: 4px 0; font-weight: 500; }
.footer-grid > div > a:not(.brand):hover { color: var(--accent); }
.footer .brand { margin-bottom: 10px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.socials a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #1fa855; color: #fff; box-shadow: 0 10px 30px -8px rgba(31,168,85,.7); }

/* Gentle fade-in while scrolling (site.js adds .in). */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float-cards, .pulse { animation: none; } html { scroll-behavior: auto; } }

/* Tablet */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
/* Phone: compact and app-like. */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding: 36px 0 32px; }
  .hero .lead { margin-bottom: 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .btn-lg { padding: 12px 18px; font-size: .95rem; }
  .code-card { transform: none; border-radius: 16px; }
  .code-card pre { font-size: .74rem; padding: 14px 16px 20px; }
  .float-cards { position: relative; left: auto; bottom: auto; width: max-content; max-width: 100%; margin: -18px 12px 0 auto; }
  .float-card { padding: 9px 12px; }
  .stats { margin-top: 40px; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stats div { padding: 12px 14px; } .stats strong { font-size: 1.4rem; }
  .section { padding: 48px 0; }
  .section-tight { padding: 20px 0 48px; }
  .section-head { margin-bottom: 22px; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; gap: 12px; }
  .service, .product, .step, .review { padding: 18px; }
  .service-icon, .product-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 12px; }
  .project-body { padding: 16px 18px 18px; }
  .project-body h3 { font-size: 1.12rem; }
  .card { border-radius: 16px; }
  .contact-card { padding: 18px; }
  .contact-form .grid-2 { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
  .page-head { padding: 32px 0 12px; }
  .cta-band { padding: 40px 0; }
  .footer { padding: 36px 0 90px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

/* Mascot: Chooty the robot dog (assets/robo.js moves it; these draw and animate it). */
.robo-home { width: 100%; max-width: 400px; aspect-ratio: 220 / 240; margin: 0 auto; }
.hero-visual.has-robo .float-cards { position: relative; left: auto; bottom: auto; width: max-content; max-width: 100%; margin: 26px auto 0; }
.robo { position: fixed; left: 0; top: 0; z-index: 45; width: 220px; height: 240px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 0 0; opacity: 0; transition: opacity .4s; -webkit-tap-highlight-color: transparent; }
.robo.ready { opacity: 1; }
.robo:focus-visible { outline: none; }
.robo:focus-visible .robo-svg { filter: drop-shadow(0 0 6px var(--accent)); }
.robo-svg { width: 100%; height: 100%; overflow: visible; transform: rotate(var(--tilt, 0deg)); transition: transform .25s ease-out; }
.robo-svg * { transform-box: view-box; }
.r-shell { fill: #fbfcff; stroke: #d6dbe8; stroke-width: 3; }
.r-belly { fill: #eef1f8; }
.r-paw { fill: #fbfcff; stroke: #d6dbe8; stroke-width: 3; }
.r-ear { fill: #e4e8f2; stroke: #d0d6e4; stroke-width: 3; }
.r-screen { fill: #11152a; }
.r-accent { fill: var(--accent); }
.r-code { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.r-stalk, .r-tail-line { fill: none; stroke: #cfd5e3; stroke-width: 5; stroke-linecap: round; }
.r-tail-line { stroke-width: 7; }
.r-bulb { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); animation: r-bulb 1.8s ease-in-out infinite; }
.r-eye { fill: #6ff3ff; filter: drop-shadow(0 0 5px rgba(111, 243, 255, .9)); }
.r-glint { fill: #fff; }
.r-muzzle { fill: #fbfcff; stroke: #d6dbe8; stroke-width: 3; }
.r-nose { fill: #1a1d2c; }
.r-mouth { fill: none; stroke: #1a1d2c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.r-tongue { fill: #ff7aa2; opacity: 0; transform-origin: 110px 132px; transform: scaleY(.3); transition: opacity .2s, transform .2s; }
.r-happy { fill: none; stroke: #6ff3ff; stroke-width: 4; stroke-linecap: round; opacity: 0; }
.r-cheek { fill: #ff9ab8; opacity: .7; }
.r-shadow { fill: rgba(15, 18, 32, .16); transform-origin: 110px 230px; animation: r-shadow 3s ease-in-out infinite; }
.r-bob { animation: r-bob 3s ease-in-out infinite; }
.r-eyes { transform-origin: 110px 90px; animation: r-blink 4.6s infinite; }
.r-look { transform: translate(var(--lx, 0px), var(--ly, 0px)); transition: transform .18s ease-out; }
.r-tag { transform-origin: 110px 170px; animation: r-beat 1.4s ease-in-out infinite; }
.r-tail { transform-origin: 150px 196px; animation: r-wag .9s ease-in-out infinite; }
.r-ear-l { transform-origin: 62px 56px; animation: r-ear-l 3s ease-in-out infinite; }
.r-ear-r { transform-origin: 158px 56px; animation: r-ear-r 3s ease-in-out infinite; }
.robo.waving .r-tail { animation: r-wag .22s ease-in-out infinite; }
.robo.waving .r-leg-r { transform-origin: 129px 180px; animation: r-paw 1.5s ease-in-out; }
.robo.happy .r-look { opacity: 0; }
.robo.happy .r-happy { opacity: 1; }
.robo.happy .r-tongue { opacity: 1; transform: none; }
.robo.hop .robo-svg { animation: r-hop .9s ease-out; }
.robo:hover .r-cheek { opacity: 1; }
@keyframes r-bob { 50% { transform: translateY(-8px); } }
@keyframes r-shadow { 50% { transform: scaleX(.85); opacity: .6; } }
@keyframes r-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes r-bulb { 50% { opacity: .45; } }
@keyframes r-beat { 15%, 45% { transform: scale(1.2); } 30% { transform: scale(1); } }
@keyframes r-wag { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg); } }
@keyframes r-ear-l { 50% { transform: rotate(-7deg); } }
@keyframes r-ear-r { 50% { transform: rotate(7deg); } }
@keyframes r-paw { 15%, 70% { transform: translateY(-26px) rotate(-18deg); } 35%, 55% { transform: translateY(-30px) rotate(-6deg); } }
@keyframes r-hop { 30% { transform: translateY(-34px) rotate(-8deg); } 60% { transform: translateY(0) rotate(4deg); } 80% { transform: translateY(-8px) rotate(0); } }
.robo-bubble { position: fixed; left: 0; top: 0; z-index: 46; width: max-content; max-width: 230px; padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; line-height: 1.35; pointer-events: none; opacity: 0; scale: .85; transform-origin: 0 100%; transition: opacity .25s, scale .25s; }
.robo-bubble.show { opacity: 1; scale: 1; }
body.menu-open .robo, body.menu-open .robo-bubble { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .robo-home { max-width: 230px; }
  .robo-bubble { max-width: 180px; font-size: .82rem; padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .r-bob, .r-shadow, .r-bulb, .r-tag, .r-tail, .r-ear-l, .r-ear-r { animation: none; }
  .robo.waving .r-tail, .robo.waving .r-leg-r, .robo.hop .robo-svg { animation: none; }
}

/* ---- Client accounts (/account/) ---- */
.nav-account { display: inline-flex; align-items: center; gap: 6px; }
.account-page { padding: 48px 0 90px; }
.account-narrow { max-width: 480px; }
.account-wide { max-width: 1040px; }
.account-title { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 18px; }
.auth-box { padding: 28px; }
.auth-links { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }
.auth-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.form.stack { display: grid; gap: 14px; }
.form.stack .btn { justify-self: start; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check.invalid { color: #e5484d; }
.notice { display: block; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; font-weight: 600; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.notice a { color: var(--accent); }
.notice-err { background: color-mix(in srgb, #e5484d 10%, transparent); border-color: color-mix(in srgb, #e5484d 35%, transparent); color: #e5484d; }
.account-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.account-tabs a, .account-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 600 .9rem var(--font); text-decoration: none; cursor: pointer; }
.account-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.account-tabs form { margin: 0 0 0 auto; }
.account-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; }
.account-hero h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.account-hero p { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.account-hero .btn { margin-left: auto; }
.avatar.lg { width: 60px; height: 60px; font-size: 1.5rem; }
.account-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.account-card { padding: 24px; }
.account-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 14px; }
.enquiries { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.enquiries li { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.enquiries p { margin: 6px 0; font-size: .95rem; }
.enq-top { display: flex; justify-content: space-between; gap: 10px; }
.small { font-size: .84rem; }
.btn-danger { background: transparent; border-color: color-mix(in srgb, #e5484d 45%, var(--line)); color: #e5484d; }
.btn-link { background: none; border: 0; padding: 6px 0; color: var(--muted); text-decoration: underline; font: 600 .9rem var(--font); cursor: pointer; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.split form { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.split h4, .form h4 { margin: 0; }
.status-on { display: flex; align-items: center; gap: 8px; color: #1fa855; font-weight: 600; margin: 0; }
.setup-steps { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 8px; }
.qr { width: 210px; max-width: 100%; aspect-ratio: 1; margin: 10px 0; padding: 6px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { display: inline-block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--soft); letter-spacing: .08em; word-break: break-all; }
.inline-form { display: flex; align-items: end; gap: 10px; margin-bottom: 6px; }
.inline-form .field { max-width: 180px; }
.inline-form input { font-size: 1.2rem; letter-spacing: .25em; text-align: center; }
.codes-box { padding: 16px; margin-bottom: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.codes-box h3 { margin: 0 0 4px; }
.codes { columns: 2; margin: 10px 0 0; padding-left: 22px; }
.codes code { font-size: 1.02rem; font-weight: 700; letter-spacing: .05em; }
@media (max-width: 860px) {
  .nav-account { padding: 12px; }
}
@media (max-width: 760px) {
  .account-page { padding: 28px 0 70px; }
  .account-grid, .split { grid-template-columns: 1fr; }
  .auth-box, .account-card { padding: 18px; }
  .account-hero .btn { margin-left: 0; width: 100%; }
}
.notice .icon { vertical-align: -3px; margin-right: 4px; }

/* Buying SuiteMageera (buy.php, account/checkout.php, account/order.php) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan h2 { margin: 0; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.plan-price strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price span { font-weight: 700; }
.plan-price small { flex-basis: 100%; }
.plan-list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list .icon { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.plan .btn { margin-top: auto; justify-content: center; }
.buy-note { margin-top: 18px; }
.buy-closed { padding: 32px; text-align: center; }
.checkout h1, .order h1 { font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.pay-options { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.pay-options legend { font-weight: 700; margin-bottom: 8px; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pay-option span { display: grid; flex: 1; }
.pay-option b { white-space: nowrap; }
.key-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 10px; }
.key-box code { flex: 1; min-width: 0; font: 700 1.15rem/1.3 ui-monospace, Consolas, monospace; letter-spacing: .04em; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); overflow-wrap: anywhere; user-select: all; }
.next-steps { padding-left: 20px; display: grid; gap: 6px; }
.licenses { margin-bottom: 20px; }
.licenses .row-head { margin-bottom: 8px; }
.license-row { padding: 14px 0; border-top: 1px solid var(--line); }
.license-row:first-of-type { border-top: 0; }
.license-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .plan { padding: 20px; }
  .key-box code { font-size: 1rem; }
  .key-box .btn { width: 100%; justify-content: center; }
}
[hidden] { display: none !important; }
