/* weetronic.com (02/11/2026): the home page (a product not yet shown) and the WeeOS page.
   Static files for the shared hosting; same colours and font as hub.weetronic.com. */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-vietnamese-400-normal.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-vietnamese-500-normal.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-vietnamese-600-normal.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-vietnamese-700-normal.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-vietnamese-800-normal.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-latin-800-normal.woff2') format('woff2');
}

:root {
  --primary: #2563eb;
  --primary-press: #1d4ed8;
  --primary-soft: #eff6ff;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #94a3b8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --wait: #92400e;
  --wait-soft: #fef3c7;
  --night: #0b1020;
  --night-2: #131a33;
  --glow: #60a5fa;
  --gold: #fbbf24;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 4px 16px rgb(15 23 42 / 0.06);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important; /* .note / .consent set their own display */
}
/* No style="" in the pages: the server's CSP allows style sheets only. */
.sprite {
  position: absolute;
}
.gap {
  margin-top: 12px;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    'Be Vietnam Pro',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img,
svg {
  max-width: 100%;
}
a {
  color: var(--primary);
}
h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: #fff;
  padding: 8px 12px;
}

/* ---- header ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(248 250 252 / 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}
.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--ink);
  background: #eef2f7;
}
.nav a[aria-current='page'] {
  color: var(--primary);
}
.nav .account {
  background: var(--primary);
  color: #fff;
}
.nav .account:hover {
  background: var(--primary-press);
  color: #fff;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background-color 0.15s,
    transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: var(--primary);
  color: #fff;
}
.btn.primary:hover {
  background: var(--primary-press);
}
.btn.outline {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #cbd5e1;
}
.btn.outline:hover {
  background: var(--bg);
}
.btn.primary:disabled:hover {
  background: var(--primary);
}

/* ---- footer ---- */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
}
.site-foot a {
  color: var(--muted);
  text-decoration: none;
}
.site-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ================= home: the box not yet opened ================= */
body.home {
  background: var(--night);
  color: #e2e8f0;
}
.home .site-head {
  background: rgb(11 16 32 / 0.75);
  border-color: rgb(148 163 184 / 0.15);
}
.home .nav a {
  color: #cbd5e1;
}
.home .nav a:hover {
  background: rgb(148 163 184 / 0.12);
  color: #fff;
}
.home .nav .account {
  color: #fff;
}
.home .site-foot {
  border-color: rgb(148 163 184 / 0.15);
  color: #94a3b8;
}
.home .site-foot a {
  color: #94a3b8;
}
.home .site-foot a:hover {
  color: #fff;
}
.teaser {
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 0 64px;
  background:
    radial-gradient(60% 50% at 50% 42%, rgb(37 99 235 / 0.28), transparent 70%),
    radial-gradient(
      40% 30% at 70% 80%,
      rgb(251 191 36 / 0.08),
      transparent 70%
    ),
    var(--night);
}
.teaser .stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff8, transparent),
    radial-gradient(1px 1px at 28% 68%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 72% 18%, #fff7, transparent),
    radial-gradient(1px 1px at 84% 58%, #fff5, transparent),
    radial-gradient(1px 1px at 55% 86%, #fff5, transparent),
    radial-gradient(1.5px 1.5px at 40% 12%, #fff6, transparent),
    radial-gradient(1px 1px at 92% 30%, #fff6, transparent),
    radial-gradient(1px 1px at 6% 80%, #fff5, transparent);
}
.teaser .wrap {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.box {
  width: min(300px, 72vw);
  height: auto;
  filter: drop-shadow(0 30px 50px rgb(37 99 235 / 0.35));
  animation: float 6s ease-in-out infinite;
}
.box .seam {
  animation: seam 3.2s ease-in-out infinite;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(96 165 250 / 0.12);
  color: #bfdbfe;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.teaser h1 {
  margin-top: 18px;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.teaser .lead {
  margin-top: 14px;
  max-width: 560px;
  font-size: 1.125rem;
  color: #cbd5e1;
}
.hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.hints li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgb(148 163 184 / 0.25);
  color: #e2e8f0;
  font-size: 0.875rem;
}
.while {
  margin-top: 44px;
  width: 100%;
  max-width: 560px;
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgb(19 26 51 / 0.85);
  border: 1px solid rgb(148 163 184 / 0.18);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.while:hover {
  border-color: rgb(96 165 250 / 0.6);
  background: rgb(19 26 51 / 1);
}
.while b {
  color: #fff;
  display: block;
}
.while small {
  color: #94a3b8;
  font-size: 0.875rem;
}
.while .go {
  margin-left: auto;
  color: var(--glow);
  flex: none;
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes seam {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .box,
  .box .seam {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ================= WeeOS page ================= */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(50% 60% at 85% 20%, rgb(37 99 235 / 0.1), transparent 70%),
    var(--bg);
}
.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 span {
  color: var(--primary);
}
.hero .lead {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
}
.section {
  padding: 56px 0;
}
.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section .sub {
  margin-top: 8px;
  color: var(--muted);
  max-width: 640px;
}
.grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.section.alt .card {
  box-shadow: none;
  border: 1px solid var(--border);
}
.feature .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 1.0625rem;
}
.feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.tag {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--muted);
}
.tag.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.tag.wait {
  background: var(--wait-soft);
  color: var(--wait);
}
.devices {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.device {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.device .top {
  display: flex;
  gap: 16px;
  align-items: center;
}
.device .pic {
  width: 72px;
  height: 80px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  flex: none;
}
.device h3 {
  font-size: 1.125rem;
}
.device dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-size: 0.9375rem;
}
.device dt {
  color: var(--faint);
}
.device dd {
  margin: 0;
}
.device .apps {
  font-size: 0.875rem;
  color: var(--muted);
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 72px;
  min-height: 96px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps b {
  display: block;
}
.steps span {
  color: var(--muted);
  font-size: 0.9375rem;
}
.install {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
.install details {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.install summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  min-height: 64px;
  font-weight: 700;
}
.install summary::-webkit-details-marker {
  display: none;
}
.install summary .chev {
  margin-left: auto;
  color: var(--faint);
  transition: transform 0.2s;
}
.install details[open] .chev {
  transform: rotate(90deg);
}
.install .body {
  padding: 0 20px 20px;
  color: var(--muted);
}
.install .body ol,
.install .body ul {
  padding-left: 22px;
  margin: 8px 0;
}
.install .body li + li {
  margin-top: 6px;
}
.note {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--wait-soft);
  color: var(--wait);
  font-size: 0.9375rem;
}
.note.info {
  background: var(--primary-soft);
  color: #1e3a8a;
}
.note svg {
  flex: none;
  margin-top: 2px;
}
.faq {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  max-width: 800px;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  min-height: 48px;
}
.faq p {
  padding: 0 0 16px;
  color: var(--muted);
}
.toc {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.toc a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.toc a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
[id] {
  scroll-margin-top: 80px;
}

/* ================= Metalio installer ================= */
.narrow-page {
  max-width: 720px;
  padding-top: 24px;
  padding-bottom: 48px;
}
.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
}
.narrow-page h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  margin-top: 8px;
}
.lead-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.0625rem;
}
.flow {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.step h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1875rem;
  margin-bottom: 10px;
}
.step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 0.9375rem;
  flex: none;
}
.step[data-state='active'] {
  box-shadow:
    0 0 0 2px var(--primary),
    var(--shadow);
}
.step[data-state='active'] .num {
  background: var(--primary);
  color: #fff;
}
.step[data-state='done'] .num {
  background: var(--ok);
  color: #fff;
}
.step[data-state='waiting'] {
  opacity: 0.6;
}
.step > p,
.step > .btn,
.step > .consent,
.step > .note {
  margin-top: 12px;
}
.step > .btn,
.restore .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.checklist {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}
.checklist li + li {
  margin-top: 6px;
}
.step .help,
.foot-help {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}
.trouble {
  margin-top: 12px;
  font-size: 0.9375rem;
}
.trouble summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.trouble ol {
  margin: 6px 0 0;
  padding-left: 22px;
  color: var(--muted);
}
.status:not(:empty) {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--ink);
  font-size: 0.9375rem;
}
.status.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.status.error {
  background: #fef2f2;
  color: #b91c1c;
}
.progress {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.2s;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  cursor: pointer;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: var(--primary);
}
.btn-link {
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.warn-inline {
  margin-top: 12px;
}
.restore {
  margin-top: 28px;
}
.restore h2 {
  font-size: 1.125rem;
}
.restore > p {
  margin-top: 6px;
  color: var(--muted);
}
.restore .btn {
  margin-top: 12px;
}
.file-pick {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.file-pick input {
  font: inherit;
  font-weight: 400;
}
body.working {
  cursor: progress;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 1fr;
  }
  .hero {
    padding: 80px 0 64px;
  }
  .section {
    padding: 72px 0;
  }
}
@media (max-width: 560px) {
  .nav .hide-sm {
    display: none;
  }
  .hero .actions .btn {
    width: 100%;
  }
  .hero-art svg {
    width: 96px;
    height: 125px;
  }
  .hero-art svg + svg {
    width: 76px;
    height: 99px;
  }
}
