/* ==========================================================================
   GeekWare — design system (mobile-first, RTL)
   ========================================================================== */

@font-face { font-family: "Vazirmatn"; src: url("/fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/Vazirmatn-FD-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/fonts/Vazirmatn-FD-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #07070d;
  --bg-2: #0d0d18;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-solid: #11111d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0fb;
  --muted: #a3a7c2;
  --faint: #6f7392;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --cyan: #22d3ee;
  --lime: #a3ff5b;
  --pink: #f472b6;
  --danger: #ff6b81;
  --warn: #fbbf24;
  --ok: #4ade80;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --grad-text: linear-gradient(100deg, #c4b5fd 0%, #818cf8 40%, #67e8f9 100%);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 10px 40px -10px rgba(139, 92, 246, 0.65);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1160px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, svg, canvas, audio { display: block; max-width: 100%; }
a { color: var(--violet-2); text-decoration: none; }
a:hover { color: #c4b5fd; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 0.5em; font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.6rem); }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
b, strong { font-weight: 700; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(139, 92, 246, 0.45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; right: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.i { width: 1.2em; height: 1.2em; flex: none; }
.i-inline { display: inline-block; vertical-align: -0.2em; width: 1em; height: 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-lime { color: var(--lime); text-shadow: 0 0 30px rgba(163, 255, 91, 0.35); white-space: nowrap; }

/* ---------- Dynamic background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-aurora::before, .bg-aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; will-change: transform;
}
.bg-aurora::before { width: 70vmax; height: 70vmax; top: -35vmax; right: -25vmax; background: radial-gradient(circle, #6d28d9 0%, transparent 65%); animation: drift1 26s var(--ease) infinite alternate; }
.bg-aurora::after { width: 60vmax; height: 60vmax; bottom: -30vmax; left: -25vmax; background: radial-gradient(circle, #0e7490 0%, transparent 65%); animation: drift2 32s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(-12vmax, 18vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(14vmax, -14vmax) scale(1.15); } }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: var(--h); padding: 0 1.3em; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap; cursor: pointer; user-select: none;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  position: relative; isolation: isolate;
}
.btn .i { width: 1.15em; height: 1.15em; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 44px -8px rgba(139, 92, 246, 0.85); }
.btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); background-size: 250% 100%; background-position: 150% 0; transition: background-position .8s var(--ease); z-index: -1; }
.btn-primary:hover::after { background-position: -50% 0; }
.btn-lime { background: var(--lime); color: #0b1400; box-shadow: 0 10px 40px -10px rgba(163, 255, 91, 0.6); }
.btn-lime:hover { color: #0b1400; transform: translateY(-2px); box-shadow: 0 14px 44px -8px rgba(163, 255, 91, 0.8); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-soft { background: rgba(139, 92, 246, 0.14); color: #d6ccff; border-color: rgba(139, 92, 246, 0.3); }
.btn-soft:hover { background: rgba(139, 92, 246, 0.24); color: #fff; }
.btn-sm { --h: 40px; padding: 0 1em; font-size: 0.92rem; border-radius: 12px; }
.btn-lg { --h: 56px; padding: 0 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-more { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; font-size: .95rem; }
.link-more .i { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link-more:hover .i { transform: translateX(-4px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.danger { color: var(--danger); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(7, 7, 13, 0.6); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(7, 7, 13, 0.8); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 1.2rem; }
.logo:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.main-nav { display: none; }
.main-nav a { color: var(--muted); font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); background: var(--surface); }
.main-nav.is-open { display: flex; flex-direction: column; position: absolute; top: var(--header-h); inset-inline: 0; padding: 12px var(--gutter) 20px; background: rgba(9, 9, 16, 0.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); animation: fadeDown .25s var(--ease); }
.main-nav.is-open a { padding: 14px 12px; font-size: 1.05rem; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

@media (min-width: 900px) {
  .main-nav { display: flex; gap: 4px; }
  .nav-toggle { display: none; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; bottom: 0; inset-inline: 0; z-index: 30; padding: 12px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(7,7,13,.97) 60%, rgba(7,7,13,0)); display: grid; gap: 4px; text-align: center; transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-note { font-size: .78rem; color: var(--muted); }
.header-cta { transition: opacity .25s, transform .25s var(--ease); }
@media (max-width: 899px) { .sticky-on .header-cta { opacity: 0; transform: scale(.9); pointer-events: none; } }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* ---------- Sections ---------- */
.section { padding-block: 72px; position: relative; }
.section-tight { padding-block: 32px 72px; }
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; max-width: none; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.section-lead { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.eyebrow .i { width: 1.1em; height: 1.1em; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; color: #0b1400; background: var(--lime); }
.badge-sm { padding: 2px 8px; font-size: .68rem; }
.tag { display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; color: #d6ccff; background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139, 92, 246, 0.3); }
.tag-lime { color: var(--lime); background: rgba(163, 255, 91, .1); border-color: rgba(163, 255, 91, .3); }
.meta { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: .85rem; }
.meta .i { width: 1em; height: 1em; }

ul.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
ul.checks li { position: relative; padding-inline-start: 32px; }
ul.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(163, 255, 91, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3ff5b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Reveal on scroll ---------- */
.js-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; padding-bottom: 24px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 99px; border: 1px solid rgba(163, 255, 91, 0.35); background: rgba(163, 255, 91, 0.07); color: var(--text); font-size: .88rem; margin-bottom: 22px; transition: background .2s; }
.pill:hover { color: var(--text); background: rgba(163, 255, 91, 0.13); }
.pill b { color: var(--lime); }
.pill .i { width: 1em; height: 1em; color: var(--lime); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(163, 255, 91, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(163, 255, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(163, 255, 91, 0); } }
.hero-title { font-size: clamp(2.3rem, 10vw, 4.8rem); line-height: 1.3; margin-bottom: 18px; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 3.6vw, 1.2rem); max-width: 640px; margin-bottom: 28px; }
.hero-sub strong { color: var(--text); }

.idea-box { width: 100%; max-width: 640px; padding: 10px; border-radius: 22px; background: rgba(17, 17, 29, 0.75); border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 0 6px rgba(139, 92, 246, 0.06); text-align: start; transition: border-color .25s, box-shadow .25s; }
.idea-box:focus-within { border-color: rgba(139, 92, 246, 0.6); box-shadow: var(--shadow), 0 0 0 6px rgba(139, 92, 246, 0.15); }
.idea-box textarea { width: 100%; border: 0; background: transparent; resize: none; padding: 10px 12px; font-size: 1.05rem; line-height: 1.8; outline: none; min-height: 64px; }
.idea-box textarea::placeholder { color: var(--faint); }
.idea-actions { display: flex; gap: 8px; }
.idea-actions .btn-primary { flex: 1; }
.idea-actions .btn-ghost { flex: none; }
@media (max-width: 340px) { .idea-actions .btn-ghost span { display: none; } }

.trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { color: var(--lime); width: 1em; height: 1em; }

.marquee { margin-top: 48px; overflow: hidden; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 12px; animation: marquee 50s linear infinite; }
.marquee span { padding: 8px 18px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; white-space: nowrap; direction: rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (min-width: 900px) {
  .hero { padding-top: 88px; }
}

/* ---------- MVP ---------- */
.mvp { display: grid; gap: 40px; align-items: center; }
.mvp-copy h2 { font-size: clamp(1.8rem, 6.5vw, 3rem); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.price-card { position: relative; padding: 2px; border-radius: 28px; background: conic-gradient(from var(--angle), #8b5cf6, #22d3ee, #a3ff5b, #8b5cf6); animation: spin 6s linear infinite; box-shadow: 0 30px 80px -30px rgba(139, 92, 246, .7); }
@keyframes spin { to { --angle: 360deg; } }
.price-card-inner { border-radius: 26px; padding: 28px 22px; background: radial-gradient(120% 80% at 100% 0%, rgba(139, 92, 246, .18), transparent 60%), #0c0c16; }
.price-top { display: flex; justify-content: space-between; align-items: center; }
.price-label { font-weight: 900; font-size: 1.1rem; letter-spacing: .1em; color: var(--muted); }
.price-tag { font-size: .78rem; padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(163,255,91,.35); color: var(--lime); }
.price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 2px; }
.price-num { font-size: clamp(3.4rem, 16vw, 4.6rem); font-weight: 900; line-height: 1.1; color: var(--lime); text-shadow: 0 0 40px rgba(163, 255, 91, .4); }
.price-unit { font-size: 1.3rem; font-weight: 700; }
.price-sub { color: var(--muted); font-size: .92rem; }
.price-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 10px; align-items: center; }
.price-list .i { color: var(--cyan); }
@media (min-width: 900px) { .mvp { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; } .mvp-copy { padding-top: 24px; } .price-card-inner { padding: 36px; } }
/* Order wizard inside the card: the feature list steps aside once the visitor is past the idea step. */
.price-order { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.price-order-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--lime); }
.price-card.is-ordering .price-list { display: none; }
.price-card.is-ordering .price-num { font-size: 2.6rem; }

.project-cta { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); }
.project-cta b { display: block; font-size: 1.05rem; }
.project-cta span { color: var(--muted); font-size: .92rem; }
.project-cta .btn { align-self: flex-start; }
@media (min-width: 620px) { .project-cta { flex-direction: row; align-items: center; justify-content: space-between; } .project-cta .btn { align-self: auto; } }
.services-foot { margin-top: 28px; }
.services-foot p { color: var(--muted); }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 14px; }
.service-card { position: relative; padding: 22px; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .45); background: var(--surface-2); }
.service-card.is-recommended { border-color: rgba(163, 255, 91, .25); }
.service-card .badge { position: absolute; top: 18px; inset-inline-end: 18px; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); margin-bottom: 14px; box-shadow: var(--glow); }
.service-icon .i { width: 26px; height: 26px; color: #fff; }
.service-card p { color: var(--muted); flex: 1; }
.service-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (min-width: 620px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- About / terminal ---------- */
.about { display: grid; gap: 36px; align-items: center; }
.about-copy p { color: var(--muted); }
.about-copy p strong { color: var(--text); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.value { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.value .i { color: var(--cyan); margin-top: 4px; }
.value b { display: block; font-size: .95rem; }
.value span { font-size: .82rem; color: var(--muted); }
.terminal { border-radius: 18px; overflow: hidden; background: #05050a; border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 80px -30px rgba(34, 211, 238, .4); font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--border); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: auto; font-size: .75rem; color: var(--faint); }
.terminal-body { margin: 0; padding: 18px; min-height: 290px; font-size: .82rem; line-height: 1.9; color: #cbd5e1; white-space: pre-wrap; word-break: break-word; }
.terminal-body .t-prompt { color: var(--lime); }
.terminal-body .t-ok { color: var(--ok); }
.terminal-body .t-dim { color: var(--faint); }
.terminal-body .t-hi { color: var(--cyan); }
.terminal-body .t-cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 64px; } .terminal-body { font-size: .9rem; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 14px; counter-reset: s; }
.pstep { position: relative; padding: 22px; padding-inline-start: 80px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.pstep h3 { margin-bottom: .2em; }
.pstep p { margin: 0; color: var(--muted); font-size: .95rem; }
.step-num { position: absolute; inset-inline-start: 20px; top: 22px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; background: var(--grad); box-shadow: var(--glow); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .pstep { padding: 24px; padding-top: 88px; }
  .step-num { top: 24px; }
}

/* ---------- Articles ---------- */
.articles-grid { display: grid; gap: 14px; }
.article-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; color: var(--text); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.article-card:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(34, 211, 238, .4); background: var(--surface-2); }
.article-card .tag { align-self: flex-start; }
.article-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.article-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34, 211, 238, .12); color: var(--cyan); }
.article-hero { display: grid; gap: 18px; padding: 26px; margin-bottom: 14px; color: var(--text); background: radial-gradient(100% 120% at 0% 0%, rgba(163,255,91,.1), transparent 60%), var(--surface); transition: border-color .3s; }
.article-hero:hover { color: var(--text); border-color: rgba(163, 255, 91, .4); }
.article-hero h2 { font-size: clamp(1.4rem, 5vw, 2rem); margin: 12px 0 8px; }
.article-hero p { color: var(--muted); }
.article-hero-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(163, 255, 91, .12); color: var(--lime); }
.article-hero-icon .i { width: 32px; height: 32px; }
@media (min-width: 620px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } .article-hero { grid-template-columns: auto 1fr; padding: 36px; } }
@media (min-width: 1000px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, background .25s; }
.faq-item[open] { border-color: rgba(139, 92, 246, .4); background: var(--surface-2); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { transition: transform .3s var(--ease); color: var(--muted); }
.faq-item[open] summary .i { transform: rotate(180deg); }
.faq-body { padding: 0 20px 6px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; text-align: center; padding: 48px 22px; border-radius: 28px; background: radial-gradient(80% 100% at 50% 0%, rgba(139, 92, 246, .35), transparent 70%), radial-gradient(60% 80% at 50% 100%, rgba(34, 211, 238, .18), transparent 70%), var(--surface-solid); border: 1px solid var(--border-strong); display: flex; flex-direction: column; align-items: center; }
.final-cta h2 { font-size: clamp(1.8rem, 7vw, 3rem); }
.final-cta p { color: var(--muted); max-width: 520px; }
.final-cta .micro { margin-top: 14px; font-size: .82rem; color: var(--faint); }
.final-cta-sm { padding: 36px 22px; margin: 48px 0 0; }
.final-cta-sm h2 { font-size: clamp(1.4rem, 5vw, 2rem); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 calc(100px + env(safe-area-inset-bottom)); background: rgba(5, 5, 10, .6); }
.footer-inner { display: grid; gap: 24px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.footer-links, .footer-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a, .footer-contact a { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.footer-links a:hover, .footer-contact a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--faint); font-size: .85rem; }
.to-top { color: var(--faint); }
@media (min-width: 900px) { .site-footer { padding-bottom: 32px; } .footer-inner { grid-template-columns: 2fr 1fr 1fr; align-items: start; } .footer-links, .footer-contact { flex-direction: column; } }

/* ---------- Page hero (blog, 404) ---------- */
.page-hero { padding: 48px 0 16px; }
.page-hero h1 { font-size: clamp(2rem, 8vw, 3.4rem); }
.nf-code { font-size: clamp(5rem, 25vw, 9rem); font-weight: 900; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; font-family: ui-monospace, monospace; }
.not-found { padding-block: 72px; }

/* ---------- Article ---------- */
.read-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 50; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: right; transform: scaleX(var(--p, 0)); }
.article-head { padding-top: 32px; padding-bottom: 8px; }
.article-head h1 { font-size: clamp(1.7rem, 7vw, 2.8rem); margin-top: 14px; }
.article-desc { color: var(--muted); font-size: 1.08rem; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--faint); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.prose { font-size: 1.06rem; line-height: 2.05; }
.prose .lead { font-size: 1.15rem; color: var(--text); padding: 18px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.prose h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #cfd2e6; }
.prose ul:not(.checks) { padding-inline-start: 1.3em; }
.prose ul:not(.checks) li { margin-bottom: .4em; }
.prose ul:not(.checks) li::marker { color: var(--violet-2); }
.prose ol { padding-inline-start: 1.5em; }
.prose ol li { margin-bottom: .6em; }
.prose ol li::marker { color: var(--violet-2); font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-inline-start: 3px solid var(--violet-2); background: var(--surface-2); border-radius: var(--radius-sm); color: var(--text); }
.prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); direction: ltr; unicode-bidi: isolate; }
.callout p { margin: .3em 0; }
.prose a { text-decoration: underline; text-decoration-color: rgba(167, 139, 250, .4); text-underline-offset: 4px; }
.prose .btn { text-decoration: none; }
.callout { margin: 1.6em 0; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .06); color: #cfd2e6; }
.callout strong { color: var(--cyan); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92rem; display: block; overflow-x: auto; white-space: nowrap; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.prose th, .prose td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border); }
.prose thead th { background: var(--surface-2); }
.prose tbody tr:last-child td { border-bottom: 0; }
@media (min-width: 700px) { .prose table { display: table; white-space: normal; } }
.grid-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 1.6em; }
.grid-list span { padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .92rem; }
.inline-cta { display: flex; flex-direction: column; gap: 14px; margin: 2em 0; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .1)); border: 1px solid rgba(139, 92, 246, .35); line-height: 1.8; }
.inline-cta b { display: block; font-size: 1.1rem; }
.inline-cta span { color: var(--muted); font-size: .95rem; }
@media (min-width: 700px) { .inline-cta { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ==========================================================================
   Order form
   ========================================================================== */
.page-order .site-footer { padding-bottom: 40px; }
.order-page { padding: 28px 0 40px; }
.order-head { text-align: center; margin-bottom: 20px; }
.order-head h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); margin-bottom: 4px; }
.order-head p { color: var(--muted); margin: 0; }

.stepper { margin: 0 auto 20px; max-width: 420px; position: relative; }
.stepper-bar { position: absolute; top: 15px; inset-inline: 16%; height: 2px; background: var(--border); }
.stepper-bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: right; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }
.stepper ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .78rem; color: var(--faint); }
.stepper i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg-2); border: 2px solid var(--border-strong); transition: all .3s var(--ease); }
.stepper li.is-active { color: var(--text); }
.stepper li.is-active i { border-color: var(--violet); background: var(--violet); box-shadow: var(--glow); }
.stepper li.is-done i { border-color: var(--violet); color: var(--violet-2); }

.order-form { display: grid; gap: 16px; }
.step { margin: 0; padding: 22px 18px; min-width: 0; }
/* float keeps the legend inside the card instead of sitting on the fieldset border */
.step-title { float: right; width: 100%; padding: 0; font-size: 1.3rem; font-weight: 900; margin-bottom: 16px; display: flex; flex-direction: column; gap: 2px; line-height: 1.5; }
.step-title ~ * { clear: both; }
.step-title:focus { outline: none; }
.page-order .header-cta { display: none; }
.step-kicker { font-size: .78rem; font-weight: 700; color: var(--cyan); }
.step-hint { color: var(--muted); font-size: .95rem; margin-top: -8px; }
.js-steps .step { display: none; }
.js-steps .step.is-current { display: block; animation: stepIn .45s var(--ease); }
.js-steps .step.is-current.from-back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(-24px); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(24px); } }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-label { font-weight: 700; font-size: .95rem; }
.field-label small { font-weight: 400; color: var(--faint); font-size: .82rem; }
.field-hint { color: var(--muted); font-size: .82rem; }
.field-label-row { display: flex; justify-content: space-between; align-items: center; }
.info-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--cyan); font-size: .88rem; font-weight: 700; cursor: pointer; padding: 6px; margin: -6px; }
.info-link .i { width: 1em; height: 1em; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="search"], textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: rgba(0, 0, 0, .25); font-size: 1rem; /* ≥16px avoids iOS zoom */
  transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
textarea { resize: vertical; line-height: 1.9; min-height: 130px; }
input:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); background: rgba(0, 0, 0, .35); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[dir="ltr"]::placeholder { text-align: right; }
.is-invalid input, .is-invalid textarea, input.is-invalid, textarea.is-invalid { border-color: var(--danger); }
.error { color: var(--danger); font-size: .85rem; min-height: 0; }
.error:empty { display: none; }
.field-foot { display: flex; justify-content: space-between; gap: 8px; }
.counter { color: var(--faint); font-size: .78rem; margin-inline-start: auto; }

/* plan segmented */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--border); }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 8px 4px; border-radius: 12px; transition: background .25s, color .25s, box-shadow .25s; line-height: 1.5; }
.seg b { font-size: .88rem; }
.seg small { font-size: .7rem; color: var(--faint); }
.seg input:checked + span { background: var(--grad); box-shadow: var(--glow); }
.seg input:checked + span small { color: rgba(255,255,255,.85); }
.seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* type options */
.type-grid { display: grid; gap: 8px; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option label { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; padding-inline-end: 56px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(0,0,0,.2); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.type-option label:hover { border-color: var(--border-strong); background: var(--surface); }
.type-option label:active { transform: scale(.985); }
.type-option input:checked + label { border-color: var(--violet); background: rgba(139, 92, 246, .14); box-shadow: 0 0 0 1px var(--violet) inset; }
.type-option input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }
.type-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--violet-2); transition: background .2s, color .2s; }
.type-option input:checked + label .type-icon { background: var(--grad); color: #fff; }
.type-text { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; flex: 1; }
.type-text small { color: var(--muted); font-size: .8rem; }
.type-option .badge { flex: none; }
.info-btn { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--cyan); display: grid; place-items: center; cursor: pointer; }
.info-btn:hover { background: rgba(34, 211, 238, .12); }
/* Sized by the wizard's own width, so the same markup works on the page and inside the narrow MVP card. */
.wizard { container-type: inline-size; }
@container (min-width: 540px) { .type-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 620px) { .step.card { padding: 28px; } }
.extras { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }

/* recorder */
.recorder { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; padding: 16px; border-radius: var(--radius); border: 1px dashed rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .06); }
.rec-btn { position: relative; width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--glow); transition: transform .2s var(--ease); }
.rec-btn:active { transform: scale(.94); }
.rec-btn .i { width: 28px; height: 28px; grid-area: 1 / 1; }
.rec-stop { display: none; }
.rec-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 107, 129, .8); opacity: 0; }
.recorder.is-recording .rec-btn { background: var(--danger); box-shadow: 0 10px 40px -10px rgba(255, 107, 129, .8); }
.recorder.is-recording .rec-mic { display: none; }
.recorder.is-recording .rec-stop { display: block; }
.recorder.is-recording .rec-ring { animation: ring 1.5s var(--ease) infinite; }
@keyframes ring { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.35); } }
.rec-info { display: flex; flex-direction: column; line-height: 1.6; }
.rec-info span { color: var(--muted); font-size: .88rem; }
.recorder.is-recording .rec-info b { color: var(--danger); }
.rec-device { grid-column: 1 / -1; width: 100%; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border, rgba(255, 255, 255, .12)); background: transparent; color: inherit; font: inherit; font-size: .85rem; }
.rec-device[hidden] { display: none; }
.rec-device option { color: #000; }
.recorder.is-recording .rec-device { display: none; }
.rec-wave { grid-column: 1 / -1; width: 100%; height: 48px; display: none; }
.recorder.is-recording .rec-wave { display: block; }
.rec-preview { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.rec-preview[hidden] { display: none; }
.rec-preview audio { flex: 1; min-width: 0; height: 44px; }
.rec-upload { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: .85rem; color: var(--muted); cursor: pointer; padding: 4px 0; }
.rec-upload:hover { color: var(--text); }
.rec-upload .i { width: 1em; height: 1em; }
.recorder.has-audio .rec-upload { display: none; }
.recorder.has-audio { border-style: solid; border-color: rgba(163, 255, 91, .4); background: rgba(163, 255, 91, .05); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--border-strong); background: rgba(0,0,0,.2); font-size: .92rem; transition: all .2s; cursor: pointer; }
.chip input:checked + span { background: rgba(139, 92, 246, .2); border-color: var(--violet); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.more { border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 16px; }
.more summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: .95rem; }
.more summary::-webkit-details-marker { display: none; }
.more summary small { color: var(--faint); font-weight: 400; }
.more summary .i { transition: transform .25s; color: var(--muted); }
.more[open] summary .i { transform: rotate(180deg); }
.more-body { padding: 4px 16px 16px; }
.privacy { display: flex; gap: 8px; align-items: flex-start; color: var(--faint); font-size: .82rem; margin: 0; }
.privacy .i { color: var(--ok); margin-top: 3px; width: 1em; height: 1em; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.form-nav { display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 5; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, rgba(7,7,13,0)); }
.form-nav [data-next], .form-nav [data-submit] { flex: 1; }
.js-steps .form-nav [hidden] { display: none; }
.form-nav:not(.is-js) [data-next], .form-nav:not(.is-js) [data-prev] { display: none; }
.form-nav.is-waiting { display: none; }
.form-nav { animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.btn-label { display: inline-flex; align-items: center; gap: .5em; }
.spinner { display: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: rot .8s linear infinite; }
.is-loading .spinner { display: block; }
.is-loading .btn-label { display: none; }
@keyframes rot { to { transform: rotate(360deg); } }
.btn[data-wait] .btn-label, .btn[data-wait] .spinner { display: none; }
.btn[data-wait]::after { content: attr(data-wait); font-variant-numeric: tabular-nums; }
.btn[data-wait]:disabled { cursor: progress; }
.form-error { padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255, 107, 129, .1); border: 1px solid rgba(255, 107, 129, .4); color: #ffc2cc; margin: 0; }
.draft-note { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--faint); font-size: .8rem; margin: 0; }
.draft-note .i { width: 1em; height: 1em; color: var(--ok); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* success */
.success { text-align: center; padding: 40px 22px; outline: none; }
.success[hidden] { display: none; }
.success h1, .success h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.success p { color: var(--muted); }
.success .code { color: var(--lime); font-size: 1.3rem; font-family: ui-monospace, monospace; letter-spacing: .05em; }
.success-check { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(163, 255, 91, .12); border: 2px solid var(--lime); color: var(--lime); animation: pop .6s var(--ease); box-shadow: 0 0 60px -10px rgba(163,255,91,.6); }
.success-check .i { width: 44px; height: 44px; }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.track-code { display: inline-flex; align-items: center; gap: 10px; padding: 6px; padding-inline-start: 16px; border-radius: var(--radius-sm); border: 1px dashed rgba(163, 255, 91, .45); background: rgba(163, 255, 91, .06); }
.track-code > span { color: var(--muted); font-size: .9rem; }
.track-code .icon-btn { width: 40px; height: 40px; }
.track-hint { font-size: .88rem; margin: 10px 0 0; }

/* compact wizard (home MVP card) */
.wizard-card .step { padding: 0; border: 0; }
.wizard-card .step-title { font-size: 1.1rem; margin-bottom: 10px; }
.wizard-card .step-hint { font-size: .88rem; margin-top: -4px; }
.wizard-card .recorder { padding: 12px; gap: 10px 12px; }
.wizard-card .rec-btn { width: 52px; height: 52px; }
.wizard-card .rec-btn .i { width: 22px; height: 22px; }
.wizard-card .divider { margin: 12px 0; }
.wizard-card textarea { min-height: 96px; }
.wizard-card .form-nav { position: static; padding: 6px 0 0; background: none; }
.wizard-card .success { padding: 8px 0 0; }
.wizard-card .success-check { width: 64px; height: 64px; margin-bottom: 12px; }
.wizard-card .success-check .i { width: 32px; height: 32px; }

/* bottom sheet */
.sheet { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; margin: 0; color: var(--text); overflow: visible; }
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; position: fixed; inset: 0; width: 100%; height: 100%; }
.sheet::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet-panel { position: relative; width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; padding: 14px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--surface-solid); border: 1px solid var(--border-strong); border-bottom: 0; animation: sheetUp .4s var(--ease); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--border-strong); margin: 0 auto 14px; }
.sheet-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.sheet-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); margin-bottom: 12px; box-shadow: var(--glow); }
.sheet-icon .i { width: 28px; height: 28px; color: #fff; }
.sheet h2 { font-size: 1.5rem; }
.sheet p { color: #cfd2e6; }
.sheet-sub { display: block; margin-bottom: 8px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-note { font-size: .78rem; color: var(--faint); text-align: center; margin: 12px 0 0; }
@media (min-width: 700px) {
  .sheet[open] { align-items: center; }
  .sheet-panel { border-radius: 26px; border-bottom: 1px solid var(--border-strong); padding: 28px; animation-name: fadeScale; }
  .sheet-grip { display: none; }
}
@keyframes fadeScale { from { opacity: 0; transform: scale(.95); } }

/* ==========================================================================
   Admin
   ========================================================================== */
.page-admin .bg-grid, .page-admin #bg-canvas { display: none; }
.admin-login { min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gutter); }
.login-card { width: 100%; max-width: 380px; padding: 32px 24px; text-align: center; display: grid; gap: 16px; }
.login-card img { margin: 0 auto; }
.login-card .field { text-align: start; }
.login-card h1 { font-size: 1.5rem; margin: 0; }
.error.is-visible { display: block; }
.admin-top { position: sticky; top: 0; z-index: 20; background: rgba(7, 7, 13, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.admin-top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 10px; }
.admin-tools { display: flex; gap: 8px; align-items: center; flex: 1; justify-content: flex-end; }
.admin-tools form { margin: 0; }
.search { position: relative; flex: 1; max-width: 340px; }
.search .i { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 1.1em; }
.search input { min-height: 44px; padding-inline-start: 38px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: .9rem; color: var(--muted); }
.tab[aria-pressed="true"] { background: rgba(139, 92, 246, .22); border-color: var(--violet); color: #fff; }
.tab .count { min-width: 22px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: .75rem; text-align: center; }
.admin-list { display: grid; gap: 12px; padding-block: 16px 60px; }
.o-card { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.o-card.is-new { border-color: rgba(163, 255, 91, .35); }
.o-card.is-target { box-shadow: 0 0 0 2px var(--cyan); }
.o-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.o-name { font-weight: 900; font-size: 1.1rem; }
.o-code { font-family: ui-monospace, monospace; color: var(--faint); font-size: .8rem; }
.o-status { flex: none; font-size: .78rem; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); }
.o-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.o-meta span { font-size: .78rem; padding: 2px 10px; border-radius: 99px; background: rgba(139, 92, 246, .12); color: #d6ccff; }
.o-desc { white-space: pre-wrap; color: #cfd2e6; font-size: .95rem; margin: 8px 0; max-height: 9.5em; overflow: hidden; position: relative; }
.o-desc.is-open { max-height: none; }
.o-more { border: 0; background: none; color: var(--cyan); cursor: pointer; padding: 0; font-size: .85rem; }
.o-contact { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.o-audio { width: 100%; margin: 8px 0; }
.o-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.o-actions button { min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: .85rem; color: var(--muted); }
.o-actions button[aria-pressed="true"] { background: rgba(139, 92, 246, .22); border-color: var(--violet); color: #fff; }
.o-time { color: var(--faint); font-size: .78rem; }
.empty { text-align: center; color: var(--faint); padding: 60px 0; }
@media (max-width: 600px) {
  .admin-tools { flex-wrap: wrap; }
  .search { order: 5; flex: 1 1 100%; max-width: none; }
}
@media (min-width: 900px) { .admin-list { grid-template-columns: repeat(2, 1fr); align-items: start; } }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 20px); z-index: 90; padding: 12px 20px; border-radius: 14px; background: #1b1b2b; border: 1px solid var(--border-strong); box-shadow: var(--shadow); opacity: 0; transition: all .3s var(--ease); pointer-events: none; font-size: .92rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js-reveal .reveal:not(.is-in) { opacity: 1; transform: none; }
  #bg-canvas { display: none; }
}

/* ==========================================================================
   Order tracking
   ========================================================================== */
.track-panel { padding: 22px 18px; }
@media (min-width: 620px) { .track-panel { padding: 28px; } }
.track-form { display: grid; gap: 4px; }
.track-form .btn { margin-top: 6px; }
.track-form input[dir="ltr"] { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; letter-spacing: .04em; }
.recent { display: grid; gap: 8px; margin-top: 6px; color: var(--faint); font-size: .85rem; }
.chip-btn { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border-strong); background: rgba(0,0,0,.2); font-family: ui-monospace, monospace; font-size: .9rem; cursor: pointer; transition: background .2s, border-color .2s; }
.chip-btn:hover { background: rgba(139, 92, 246, .2); border-color: var(--violet); }
.track-foot { text-align: center; color: var(--faint); font-size: .88rem; margin-top: 20px; }

.track-result { --tone: var(--cyan); outline: none; animation: fadeUp .45s var(--ease); }
.track-result.tone-done { --tone: var(--lime); }
.track-result.tone-bad { --tone: var(--danger); }
.track-result.tone-warn { --tone: var(--warn); }
.track-hello { color: var(--muted); margin-bottom: 10px; }
.track-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.track-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-weight: 900; font-size: 1.1rem; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); }
.track-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.track-status .code { font-family: ui-monospace, monospace; color: var(--muted); }
.track-stages { list-style: none; margin: 24px 0 16px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.track-stages::before { content: ""; position: absolute; top: 15px; inset-inline: 10%; height: 2px; background: var(--border); }
.track-stages li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .82rem; color: var(--faint); }
.track-stages i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--border-strong); }
.track-stages i .i { width: 16px; height: 16px; }
.track-stages li.is-done { color: var(--muted); }
.track-stages li.is-done i { border-color: var(--violet); background: var(--violet); color: #fff; }
.track-stages li.is-current { color: var(--text); font-weight: 700; }
.track-stages li.is-current i { border-color: var(--tone); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 18%, transparent); }
.track-stages li.is-current i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
.track-note { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); color: #cfd2e6; }
.track-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.track-meta div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); }
.track-meta dt { color: var(--faint); font-size: .78rem; }
.track-meta dd { margin: 0; font-weight: 700; font-size: .92rem; }


/* ---------- Tracking: team messages & card-to-card payment ---------- */
.track-msgs { margin: 16px 0; }
.track-msgs > b { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.track-msgs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.track-msgs li { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border-inline-start: 3px solid var(--violet); }
.track-msgs li:first-child { border-inline-start-color: var(--cyan); }
.track-msgs p { margin: 0; white-space: pre-wrap; }
.track-msg-time { display: block; margin-top: 6px; color: var(--faint); font-size: .75rem; }

.pay-box { margin: 18px 0; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-2); }
.pay-box.is-awaiting { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 7%, transparent); }
.pay-box.is-paid { border-color: color-mix(in srgb, var(--lime) 45%, transparent); background: color-mix(in srgb, var(--lime) 7%, transparent); }
.pay-title { display: block; font-size: 1.05rem; margin-bottom: 10px; }
.pay-done, .pay-sent { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.pay-hint { color: var(--muted); font-size: .88rem; margin: 10px 0 14px; }
.pay-card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); }
.pay-row { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.pay-row > span { color: var(--faint); font-size: .82rem; min-width: 5.5rem; }
.pay-row > b { font-size: 1rem; }
.pay-row .code { font-family: ui-monospace, monospace; letter-spacing: .06em; color: var(--lime); }
.pay-row .icon-btn { width: 36px; height: 36px; margin-inline-start: auto; }

.pay-form { display: grid; gap: 10px; margin-top: 14px; }
.pay-form textarea { resize: vertical; min-height: 64px; }
.file-pick { cursor: pointer; }
.pay-again { margin-top: 12px; }
.pay-again summary { cursor: pointer; color: var(--muted); font-size: .88rem; }

/* ---------- Admin: payment, customer messages, private note ---------- */
.o-pay { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0, 0, 0, .18); }
.o-pay.is-review { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.o-pay.is-paid { border-color: color-mix(in srgb, var(--lime) 45%, transparent); }
.o-pay-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .92rem; }
.o-pay-head span { color: var(--lime); }
.o-pay-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.o-amount { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: .8rem; }
.o-amount input { width: 9rem; min-height: 38px; padding: 0 10px; }
.o-receipt { margin-top: 10px; display: grid; gap: 6px; justify-items: start; }
.o-receipt img { max-height: 220px; max-width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.o-receipt p { margin: 0; white-space: pre-wrap; font-size: .9rem; color: #cfd2e6; }

.o-box { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.o-box summary { cursor: pointer; font-size: .9rem; color: var(--muted); list-style: none; }
.o-box summary::-webkit-details-marker { display: none; }
.o-box summary::before { content: "▸ "; color: var(--faint); }
.o-box[open] summary::before { content: "▾ "; }
.o-box summary .count { color: var(--faint); font-size: .8rem; }
.o-box-hint { color: var(--faint); font-size: .78rem; margin: 8px 0; }
.o-box textarea { width: 100%; resize: vertical; margin-bottom: 8px; }
.o-box-note textarea { border-color: color-mix(in srgb, var(--warn) 30%, var(--border)); }
.o-msgs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.o-msgs li { padding: 8px 10px; border-radius: 10px; background: var(--surface); border-inline-start: 3px solid var(--border-strong); }
.o-msgs li.is-in { border-inline-start-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); }
.o-msgs li.is-out { border-inline-start-color: var(--violet); }
.o-msgs p { margin: 0; white-space: pre-wrap; font-size: .9rem; }
.o-msgs .o-msg-from { display: block; font-size: .76rem; color: var(--faint); margin-bottom: 3px; }
.o-msgs .o-audio { margin: 6px 0 2px; }
.badge-new { font-size: .74rem; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
.o-card.has-reply { border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }
