/* ---------- Tokens ---------- */
:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --font-display: "Chakra Petch", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 68px;
  --cut: 16px;

  color-scheme: light;
  --bg: #f4f7ff;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: #ffffff;
  --text: #0b1224;
  --muted: #55637f;
  --line: rgba(11, 18, 36, 0.1);
  --line-strong: rgba(11, 18, 36, 0.2);
  --brand: #2456e6;
  --brand-2: #4f86ff;
  --accent: #0e9fbf;
  --amber: #d98a12;
  --amber-bg: rgba(217, 138, 18, 0.1);
  --glow: rgba(36, 86, 230, 0.22);
  --glow-soft: rgba(36, 86, 230, 0.1);
  --grid: rgba(36, 86, 230, 0.07);
  --blob-op: 0.26;
  --header-bg: rgba(244, 247, 255, 0.82);
  --success: #15935c;
  --danger: #d2353b;
  --particle: 36, 86, 230;
  --particle-line: 0.2;
  --keybox-bg: #0b1224;
  --keybox-text: #35f0ff;
  --overlay: rgba(11, 18, 36, 0.45);
  --on-brand: #ffffff;
  --logo-light: block;
  --logo-dark: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #060a17;
    --bg-2: #090e1f;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: #0e1529;
    --text: #f2f5ff;
    --muted: #9aa8c9;
    --line: rgba(141, 180, 255, 0.14);
    --line-strong: rgba(141, 180, 255, 0.28);
    --brand: #2f6bff;
    --brand-2: #8db4ff;
    --accent: #35f0ff;
    --amber: #ffb547;
    --amber-bg: rgba(255, 181, 71, 0.12);
    --glow: rgba(47, 107, 255, 0.45);
    --glow-soft: rgba(47, 107, 255, 0.16);
    --grid: rgba(141, 180, 255, 0.06);
    --blob-op: 0.5;
    --header-bg: rgba(6, 10, 23, 0.74);
    --success: #34d88e;
    --danger: #ff5c63;
    --particle: 120, 165, 255;
    --particle-line: 0.32;
    --keybox-bg: rgba(0, 0, 0, 0.38);
    --keybox-text: #35f0ff;
    --overlay: rgba(2, 4, 12, 0.62);
    --on-brand: #ffffff;
    --logo-light: none;
    --logo-dark: block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060a17;
  --bg-2: #090e1f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: #0e1529;
  --text: #f2f5ff;
  --muted: #9aa8c9;
  --line: rgba(141, 180, 255, 0.14);
  --line-strong: rgba(141, 180, 255, 0.28);
  --brand: #2f6bff;
  --brand-2: #8db4ff;
  --accent: #35f0ff;
  --amber: #ffb547;
  --amber-bg: rgba(255, 181, 71, 0.12);
  --glow: rgba(47, 107, 255, 0.45);
  --glow-soft: rgba(47, 107, 255, 0.16);
  --grid: rgba(141, 180, 255, 0.06);
  --blob-op: 0.5;
  --header-bg: rgba(6, 10, 23, 0.74);
  --success: #34d88e;
  --danger: #ff5c63;
  --particle: 120, 165, 255;
  --particle-line: 0.32;
  --keybox-bg: rgba(0, 0, 0, 0.38);
  --keybox-text: #35f0ff;
  --overlay: rgba(2, 4, 12, 0.62);
  --on-brand: #ffffff;
  --logo-light: none;
  --logo-dark: block;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: inherit; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
img { max-width: 100%; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Background ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-layer .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 100%);
}
.bg-layer .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-op); }
.bg-layer .blob.a { width: 48vw; height: 48vw; max-width: 760px; max-height: 760px; background: var(--brand); top: -20vw; left: -12vw; }
.bg-layer .blob.b { width: 36vw; height: 36vw; max-width: 560px; max-height: 560px; background: var(--accent); bottom: -18vw; right: -10vw; opacity: calc(var(--blob-op) * 0.55); }

.cursor-glow {
  position: fixed; left: -320px; top: -320px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 60%);
  pointer-events: none; z-index: -1; opacity: 0; transition: opacity .5s ease; will-change: transform;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-mark { display: inline-flex; align-items: center; }
.logo-mark img { height: 28px; width: auto; }
.logo-mark .logo-light { display: var(--logo-light); }
.logo-mark .logo-dark { display: var(--logo-dark); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--text); }
.logo-text b { color: var(--brand); font-style: italic; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14.5px;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 12px var(--glow); transition: width .08s linear;
}
.icon-btn.menu-btn { display: none; }
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 10px 16px 16px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
}
.mobile-menu a { color: var(--text); text-decoration: none; padding: 14px 10px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-menu a:last-child { border-bottom: 0; }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button {
  border: 0; background: transparent; color: var(--muted); padding: 5px 11px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .02em; transition: background .15s, color .15s;
}
.seg button.on { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 14px var(--glow); }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.cart-btn:hover { border-color: var(--brand); }
.cart-btn .badge {
  position: absolute; top: -7px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px;
  background: var(--accent); color: #031018; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-btn.bump .badge { animation: bump .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes bump { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--brand); }
.icon-btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.icon-btn.ghost:hover { color: var(--text); background: var(--surface); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; font-weight: 600; font-size: 15px; line-height: 1.1; border: 0; cursor: pointer; text-decoration: none;
  color: var(--text); background: transparent; border-radius: 10px;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: var(--on-brand); filter: drop-shadow(0 10px 22px var(--glow)); isolation: isolate; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.42) 50%, transparent 62%), linear-gradient(135deg, var(--brand), var(--brand-2));
  background-image: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.42) 50%, transparent 62%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--brand-2)));
  background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0; background-repeat: no-repeat;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background-position .6s ease;
}
.btn-primary:hover { transform: translateY(-2px); filter: drop-shadow(0 14px 28px var(--glow)) brightness(1.06); }
.btn-primary:hover::before { background-position: -30% 0, 0 0; }
.btn-ghost { border: 1px solid var(--line-strong); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 14px; font-size: 13.5px; --cut: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--brand); }
.linkish.danger:hover { color: var(--danger); }
.linkish.sub { color: var(--muted); font-size: 13px; }
.linkish.sub:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.beam {
  position: absolute; top: -20%; left: -10%; width: 2px; height: 140%;
  background: linear-gradient(180deg, transparent, var(--accent) 35%, var(--brand-2) 65%, transparent);
  transform: rotate(24deg) translateX(-200px); opacity: 0; filter: blur(0.5px);
  animation: beam 2.2s cubic-bezier(.2, .8, .2, 1) .35s forwards;
  box-shadow: 0 0 24px var(--accent);
}
@keyframes beam {
  0% { transform: rotate(24deg) translateX(-20vw); opacity: 0; }
  20% { opacity: .9; }
  100% { transform: rotate(24deg) translateX(118vw); opacity: 0; }
}
.hero-inner {
  position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 88px 24px 80px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 66px); font-weight: 700; font-style: italic; letter-spacing: -0.02em; line-height: 1.02;
  margin: 0 0 22px; max-width: 13ch;
}
.lead { font-size: 18px; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.chip svg { color: var(--brand-2); }

.tilt-wrap { perspective: 1200px; position: relative; }
.license-card {
  position: relative; padding: 26px 28px 24px;
  background: linear-gradient(160deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 70%, var(--bg)));
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  transform-style: preserve-3d; transition: transform .15s ease-out; will-change: transform; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.license-card::after {
  content: ""; position: absolute; right: 0; top: 0; width: 30px; height: 30px;
  background: linear-gradient(225deg, var(--brand) 0 50%, transparent 50%);
  clip-path: polygon(100% 0, 100% 100%, 0 0); opacity: .9;
}
.license-card .sheen {
  position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 40%);
}
.license-card .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.license-card .status { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 12.5px; color: var(--success); }
.license-card .status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 1.6s infinite; }
.license-card .status.working { color: var(--amber); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.license-card h3 { font-size: 24px; margin: 20px 0 4px; }
.license-card .plan { color: var(--muted); font-size: 14px; }
.keybox {
  margin-top: 22px; padding: 14px 16px; background: var(--keybox-bg); border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 8px;
}
.keybox .key { font-family: var(--font-mono); font-size: 19px; letter-spacing: .06em; color: var(--keybox-text); min-height: 1.4em; display: inline-flex; align-items: center; }
.keybox .caret { display: inline-block; width: 2px; height: 1.05em; background: currentColor; margin-left: 3px; animation: blink 1s steps(2) infinite; }
.keybox .icon-btn { color: var(--keybox-text); border-color: transparent; background: rgba(255, 255, 255, 0.06); }
@keyframes blink { 50% { opacity: 0; } }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps li { position: relative; padding-top: 12px; font-size: 13px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line-strong); }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--success); box-shadow: 0 0 10px var(--success); }
.steps li.active::before { background: linear-gradient(90deg, var(--amber), var(--line-strong)); background-size: 200% 100%; animation: slide 1.1s linear infinite; }
@keyframes slide { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.card-foot { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13px; color: var(--muted); }
.float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); animation: floaty 6s ease-in-out infinite;
}
.float svg { color: var(--accent); }
.float.f1 { top: -18px; left: -22px; }
.float.f2 { bottom: -18px; right: -14px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.section-head .lead { font-size: 16.5px; }
.section-head .lead.narrow { max-width: 48ch; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat {
  text-align: left; border: 1px solid var(--line); background: var(--surface); padding: 18px 16px 16px; cursor: pointer;
  color: var(--text); font: inherit; display: flex; flex-direction: column; gap: 12px; border-radius: 12px;
  transition: border-color .18s, transform .18s, background .18s;
}
.cat:hover { border-color: var(--brand); transform: translateY(-3px); background: var(--surface-2); }
.cat .ic {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.cat strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.cat span { font-size: 13px; color: var(--muted); }
.cat .count { font-family: var(--font-mono); font-size: 12px; color: var(--brand-2); margin-top: auto; }

/* Deal */
.deal {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; margin-bottom: 36px;
  padding: 30px 32px; border: 1px solid var(--line-strong); position: relative; overflow: hidden; border-radius: 14px;
  background: linear-gradient(120deg, var(--amber-bg), transparent 55%), var(--surface);
}
.deal .tag { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-weight: 600; font-size: 14px; }
.deal h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 10px 0 8px; }
.deal .deal-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 20px; font-family: var(--font-mono); }
.deal .was { text-decoration: line-through; color: var(--muted); font-size: 16px; }
.deal .now { font-size: 34px; font-weight: 600; }
.deal .pct { background: var(--amber); color: #1a1200; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.deal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.deal-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.countdown { display: flex; gap: 8px; }
.countdown .unit { background: var(--surface-2); border: 1px solid var(--line); padding: 10px 10px 8px; min-width: 66px; text-align: center; border-radius: 10px; }
.countdown .n { font-family: var(--font-mono); font-size: 26px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .l { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.deal-glyph { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; color: var(--on-brand); background: linear-gradient(135deg, hsl(var(--h), 85%, 56%), hsl(calc(var(--h) + 45), 85%, 50%)); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.deal-glyph svg { width: 52px; height: 52px; }

/* Store controls */
.store-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.search { flex: 1 1 260px; position: relative; }
.search input {
  width: 100%; padding: 12px 14px 12px 42px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--glow-soft); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 8px 14px; border-radius: 999px;
  cursor: pointer; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.pill:hover { border-color: var(--brand); color: var(--text); }
.pill.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); box-shadow: 0 0 16px var(--glow); }
.pill .n { font-family: var(--font-mono); font-size: 11.5px; opacity: .75; }
select.sort {
  padding: 11px 36px 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; outline: none; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.results { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.product {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: 0 0 0 1px var(--glow-soft), 0 20px 40px -20px var(--glow); }
.tile {
  height: 152px; position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--h), 85%, 56%), hsl(calc(var(--h) + 45), 85%, 48%));
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.tile.tall { height: 100%; min-height: 240px; }
.tile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.38), transparent 45%), repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 16px);
}
.tile svg { width: 56px; height: 56px; color: #fff; position: relative; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35)); transition: transform .25s; }
.product:hover .tile svg { transform: scale(1.08) rotate(-3deg); }
.badge-ribbon {
  position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  background: rgba(0, 0, 0, 0.38); color: #fff; padding: 4px 9px; border-radius: 6px; backdrop-filter: blur(6px);
}
.badge-ribbon.deal { background: var(--amber); color: #1a1200; }
.wish {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; z-index: 2;
  background: rgba(10, 14, 30, 0.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, transform .15s;
}
.wish:hover { transform: scale(1.08); }
.wish.on { color: #ff6b8f; }
.wish.on svg { fill: currentColor; }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.vendor { font-size: 12.5px; color: var(--muted); }
.product h3 { font-size: 18px; font-weight: 600; }
.product h3 .linkish:hover { color: var(--brand); }
.tagline { color: var(--muted); font-size: 14px; }
.lic { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.lic svg { color: var(--brand-2); flex: none; }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; }
.price { font-family: var(--font-mono); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .was { text-decoration: line-through; color: var(--muted); font-size: 13px; font-weight: 500; }
.price .from { font-family: var(--font-body); font-size: 12px; color: var(--muted); font-weight: 500; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 12px; }
.empty h4 { color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty .empty-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand-2); }
.empty .btn { margin-top: 16px; }

/* How it works */
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.track::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent), var(--success)); opacity: .5; }
.step { position: relative; padding-top: 0; }
.step .num {
  position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--bg); border: 2px solid var(--brand); color: var(--brand-2); font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.step:nth-child(2) .num { border-color: var(--accent); color: var(--accent); }
.step:nth-child(3) .num { border-color: var(--success); color: var(--success); }
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Why Smaash */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 48px; }
.why-item { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.why-item .ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; color: var(--brand-2); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.why-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: 14.5px; }

/* Business */
.biz { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.tiers { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.tier {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px;
}
.tier.hot { border-color: var(--brand); box-shadow: 0 0 0 1px var(--glow-soft), 0 0 30px var(--glow-soft); }
.tier strong { font-family: var(--font-display); font-size: 17px; display: block; }
.tier .seats { font-size: 12.5px; color: var(--muted); }
.tier ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tier .pr { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--brand-2); text-align: right; white-space: nowrap; }
.form-card { padding: 26px; border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: 14px; }
.form-card h3 { font-size: 20px; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, textarea.input, select.input {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font: inherit; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { resize: vertical; min-height: 96px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--glow-soft); }
.input.err { border-color: var(--danger); }
.err-msg { font-size: 12.5px; color: var(--danger); }
.hint { font-size: 12.5px; color: var(--muted); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.fine { font-size: 12.5px; color: var(--muted); }
.sent { text-align: center; padding: 28px 10px; }
.sent .ok { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--success); color: #03110a; box-shadow: 0 0 30px var(--success); }
.sent h3 { font-size: 22px; margin-bottom: 6px; }
.sent p { color: var(--muted); }
.demo-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.demo-note svg { flex: none; margin-top: 2px; color: var(--amber); }

/* FAQ */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.q { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.q.open { border-color: var(--line-strong); }
.q > button {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); font: inherit; font-weight: 600; font-size: 16px;
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer;
}
.q .chev { color: var(--muted); transition: transform .25s; flex: none; }
.q.open .chev { transform: rotate(180deg); color: var(--brand); }
.q .a { padding: 0 20px 18px; color: var(--muted); font-size: 15px; max-width: 70ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.office { padding: 26px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; display: flex; flex-direction: column; gap: 18px; }
.office .row { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.office .row svg { color: var(--brand-2); margin-top: 3px; }
.office strong { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 3px; }
.office p, .office span { color: var(--muted); font-size: 14.5px; }
.office .clock { font-family: var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand p { color: var(--muted); font-size: 14px; max-width: 40ch; margin-top: 14px; }
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; font-family: var(--font-body); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer li a, .footer li button { color: var(--muted); text-decoration: none; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.footer li a:hover, .footer li button:hover { color: var(--brand); }
.footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 12.5px; }

/* Drawer & modals */
.overlay { position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 70; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 80;
  background: var(--surface-2); border-left: 1px solid var(--line-strong); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: slide-in .28s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
}
@keyframes slide-in { from { transform: translateX(48px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.drawer-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-weight: 500; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px 16px; }
.line-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item .thumb { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, hsl(var(--h), 85%, 56%), hsl(calc(var(--h) + 45), 85%, 48%)); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.li-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.li-info strong { font-size: 15px; }
.li-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.li-price { font-family: var(--font-mono); font-weight: 600; font-size: 15px; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--text); cursor: pointer; font-size: 17px; line-height: 1; }
.qty button:hover { background: var(--surface); color: var(--brand); }
.qty span { min-width: 30px; text-align: center; font-family: var(--font-mono); font-size: 13.5px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.promo { display: flex; gap: 8px; }
.promo-applied { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--success); }
.promo-applied .linkish { margin-left: auto; }
.totals { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.totals .row { display: flex; justify-content: space-between; }
.totals .row span:last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.totals .disc { color: var(--success); }
.totals .grand { font-size: 19px; font-weight: 600; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line-strong); }

.modal-wrap {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: var(--overlay); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
}
.modal {
  position: relative; width: 100%; max-width: 640px; max-height: 100%; overflow: auto;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); animation: pop .22s cubic-bezier(.2, .8, .2, 1);
}
.modal.wide { max-width: 860px; }
@keyframes pop { from { transform: translateY(14px) scale(.985); opacity: 0; } }
.modal .close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.modal-body { padding: 28px; }
.modal-body h2 { font-size: 24px; margin-bottom: 6px; }

.pm { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 420px; }
.pm-visual { display: flex; flex-direction: column; }
.pm-visual .tile { flex: 1; border-radius: 0; }
.pm-trust { list-style: none; margin: 0; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--muted); border-right: 1px solid var(--line); }
.pm-trust li { display: flex; gap: 10px; align-items: center; }
.pm-trust svg { color: var(--success); flex: none; }
.pm-info { padding: 28px 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.pm-info h2 { font-size: 26px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 14px; }
.features li { display: flex; gap: 8px; align-items: center; }
.features svg { color: var(--success); flex: none; }
.plans { display: flex; flex-direction: column; gap: 8px; }
.plan-opt {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; border-radius: 10px; transition: border-color .15s;
}
.plan-opt:hover { border-color: var(--line-strong); }
.plan-opt.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.plan-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); }
.plan-opt.on .radio { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--bg-2); background: var(--brand); }
.plan-opt .pp { font-family: var(--font-mono); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plan-opt .pp s { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.plan-opt .save { font-style: normal; background: var(--amber-bg); color: var(--amber); font-size: 11.5px; padding: 2px 6px; border-radius: 5px; font-family: var(--font-body); }
.pm-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

/* Checkout */
.stepper { display: flex; gap: 6px; margin: 4px 0 24px; }
.stepper span { flex: 1; font-size: 12.5px; color: var(--muted); padding-top: 10px; position: relative; }
.stepper span::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line-strong); }
.stepper span.on { color: var(--text); font-weight: 600; }
.stepper span.on::before { background: var(--brand); box-shadow: 0 0 10px var(--glow); }
.stepper span.done::before { background: var(--success); }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; border-radius: 10px; transition: border-color .15s;
}
.method .mi { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); color: var(--brand-2); }
.method strong { display: block; font-size: 14.5px; }
.method span { font-size: 12.5px; color: var(--muted); }
.method.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.review { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review .r { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.review .r:last-child { border-bottom: 0; }
.review .r .mono { white-space: nowrap; }
.review .r.total { font-weight: 600; font-size: 16px; background: var(--surface); }
.checkout-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.keys { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.keys .kgroup { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.keys .kgroup strong { display: block; font-size: 15px; }
.keys .kgroup .sub { font-size: 13px; color: var(--muted); }
.keys .k { margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--keybox-bg); color: var(--keybox-text); border-radius: 8px; font-family: var(--font-mono); font-size: 15px; letter-spacing: .05em; }
.keys .k .icon-btn { margin-left: auto; width: 32px; height: 32px; color: inherit; border-color: transparent; background: rgba(255, 255, 255, 0.07); }

/* Orders & invoice */
.orders { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.orders h4 { font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.order-row > div { display: flex; flex-direction: column; min-width: 0; }
.order-row strong { font-weight: 600; font-size: 13px; }
.invoice { padding: 30px 34px; font-size: 14px; }
.inv-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 22px; border-bottom: 2px solid var(--line-strong); }
.inv-head .logo-mark img { height: 34px; }
.inv-brand { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.inv-meta { text-align: right; }
.inv-meta h2 { font-size: 26px; margin-bottom: 8px; }
.inv-meta dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 3px 14px; justify-content: end; font-size: 13px; }
.inv-meta dt { color: var(--muted); text-align: right; }
.inv-meta dd { margin: 0; font-family: var(--font-mono); text-align: right; }
.inv-paid { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 6px; background: var(--success); color: #03110a; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px 0; }
.inv-parties h4 { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.inv-parties strong { display: block; font-size: 15px; margin-bottom: 2px; }
.inv-parties p { color: var(--muted); font-size: 13.5px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line-strong); }
.inv-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-table th.num, .inv-table td.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-table tfoot td { border-bottom: 0; padding: 7px 8px; }
.inv-table tfoot td:first-child { text-align: right; color: var(--muted); }
.inv-table tfoot tr.total td { font-weight: 700; font-size: 16px; padding-top: 12px; border-top: 2px solid var(--line-strong); color: var(--text); }
.inv-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; }

/* Toasts, misc */
.toasts { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); padding: 11px 16px; border-radius: 10px; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); animation: up .25s ease; }
.toast svg { color: var(--accent); flex: none; }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }
.totop { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav, .cart-label { display: none; }
  .icon-btn.menu-btn { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 56px 24px 64px; }
  .hero h1 { max-width: none; }
  .hero-visual { max-width: 520px; }
  .track { grid-template-columns: 1fr; gap: 22px; }
  .track::before { display: none; }
  .biz, .contact, .why { grid-template-columns: 1fr; }
  .deal { grid-template-columns: 1fr; }
  .deal-side { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .pm { grid-template-columns: 1fr; }
  .pm-visual .tile { min-height: 180px; }
  .pm-trust { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
}
@media (max-width: 640px) {
  .container, .header-inner { padding: 0 16px; }
  .section { padding: 64px 0; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .form-grid, .methods, .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tier { grid-template-columns: 1fr; gap: 8px; }
  .tier .pr { text-align: left; }
  .float.f1 { left: 0; top: -14px; }
  .float.f2 { right: 0; }
  .countdown .unit { min-width: 58px; }
  .deal-glyph { display: none; }
  .modal-body, .pm-info { padding: 22px 18px; }
  .invoice { padding: 22px 18px; }
  .inv-head { flex-direction: column; }
  .inv-meta, .inv-meta dt, .inv-meta dd { text-align: left; }
  .inv-meta dl { justify-content: start; }
  .inv-parties { grid-template-columns: 1fr; gap: 16px; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row > span { display: none; }
  .checkout-foot { flex-direction: column-reverse; align-items: stretch; }
  .checkout-foot .btn { width: 100%; }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; }
  body.has-invoice::before, body.has-invoice #root > :not(.invoice-wrap) { display: none !important; }
  .invoice-wrap { position: static !important; display: block !important; padding: 0 !important; background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; animation: none !important; }
  .invoice-wrap .modal { max-width: none !important; max-height: none !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; color: #000 !important; animation: none !important; }
  .invoice-wrap .modal .close, .invoice-wrap .no-print { display: none !important; }
  .invoice { padding: 0 !important; color: #000 !important; }
  .invoice .muted, .invoice .inv-brand, .invoice .inv-parties p, .invoice .inv-parties h4, .invoice .inv-table th, .invoice .inv-foot, .invoice .inv-meta dt, .invoice .inv-table tfoot td:first-child { color: #444 !important; }
  .invoice .inv-table th, .invoice .inv-table td, .invoice .inv-head, .invoice .inv-foot, .invoice .inv-table tfoot tr.total td { border-color: #bbb !important; }
  .invoice .inv-table tfoot tr.total td { color: #000 !important; }
  .invoice .logo-mark .logo-light { display: block !important; }
  .invoice .logo-mark .logo-dark { display: none !important; }
  .invoice .inv-paid { background: #e6f6ee !important; color: #0a7a44 !important; border: 1px solid #0a7a44; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .beam { display: none; }
}
