/* Dokan site + owner panel. Persian RTL; logical properties only, so the same sheet works LTR.
   Light by default, dark via prefers-color-scheme. Tokens used by the admin panel keep their names.
   Identity: the logo's striped awning (stripes + scallops), its barcode and its amber -> orange -> rust gradient. */
@font-face {
  font-family: "Vazirmatn";
  src: url("Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #faf7f2;
  --bg-2: #f3ece2;
  --surface: #ffffff;
  --raised: #ffffff;
  --hover: #f6efe6;
  --border: #ece3d7;
  --border-strong: #d9cdbd;
  --text: #1a1410;
  --text-2: #4d443d;
  --muted: #6f655d;
  --accent: #e26c1c;
  --accent-hover: #c95a10;
  --accent-ink: #b14e0c;
  --accent-soft: rgba(226, 108, 28, 0.1);
  --accent-grad: linear-gradient(180deg, #f5862f 0%, #d9600f 100%);
  --brand-grad: linear-gradient(110deg, #fbbf24 0%, #f07a1a 48%, #c2410c 100%);
  --on-accent: #ffffff;
  --ok: #0f8f61;
  --ok-soft: rgba(15, 143, 97, 0.11);
  --warn: #c98a00;
  --danger: #d33f3f;
  --ink: #1a1411;
  --ink-2: #261d18;
  --band-tint: #f5ede2;
  --band-dark: #1a1411;
  --awn-a: #f07a1a;
  --awn-b: #fff3e3;
  --glow-a: rgba(249, 135, 46, 0.30);
  --glow-b: rgba(251, 191, 36, 0.26);
  --grid-line: rgba(90, 50, 20, 0.06);
  --shadow-sm: 0 1px 2px rgba(60, 35, 10, 0.06), 0 1px 1px rgba(60, 35, 10, 0.04);
  --shadow-md: 0 14px 34px -14px rgba(80, 45, 10, 0.25), 0 2px 6px rgba(60, 35, 10, 0.05);
  --shadow-lg: 0 50px 90px -34px rgba(90, 45, 5, 0.42), 0 14px 30px -14px rgba(90, 45, 5, 0.2);
  --radius: 14px;
  --radius-lg: 24px;
  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a0e;
    --bg-2: #141117;
    --surface: #16131a;
    --raised: #1c1821;
    --hover: #25202b;
    --border: #28232e;
    --border-strong: #3b3442;
    --text: #f4f0ec;
    --text-2: #bdb4ad;
    --muted: #938a85;
    --accent: #f2873a;
    --accent-hover: #ff9c55;
    --accent-ink: #ffab6b;
    --accent-soft: rgba(242, 135, 58, 0.14);
    --ok: #45d29f;
    --ok-soft: rgba(69, 210, 159, 0.13);
    --warn: #f5b31c;
    --danger: #f06b6b;
    --ink: #17110e;
    --ink-2: #231914;
    --band-tint: #16120f;
    --band-dark: #1b120d;
    --awn-a: #ea6f17;
    --awn-b: #f6dfc4;
    --glow-a: rgba(242, 120, 40, 0.26);
    --glow-b: rgba(245, 170, 40, 0.13);
    --grid-line: rgba(255, 220, 190, 0.045);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, 0.75);
    --shadow-lg: 0 50px 100px -34px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: 84px; -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-ink); }
img { max-inline-size: 100%; block-size: auto; }
.wrap { max-inline-size: 1200px; margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(242, 135, 58, 0.3); }

/* buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border-strong); background: var(--raised); color: var(--text);
  border-radius: 12px; padding-block: 8px; padding-inline: 16px; font: inherit; font-size: 0.95rem; font-weight: 650;
  cursor: pointer; text-decoration: none; line-height: 1.6;
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s, filter 0.2s;
}
.btn:hover { background: var(--hover); border-color: color-mix(in srgb, var(--accent) 30%, var(--border-strong)); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { inline-size: 18px; block-size: 18px; flex: none; }
.btn-primary {
  background: var(--accent-grad); border-color: transparent; color: var(--on-accent); font-weight: 750;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 -2px 0 rgba(120, 40, 0, 0.18) inset, 0 10px 22px -10px rgba(214, 92, 14, 0.75);
}
.btn-primary:hover { background: var(--accent-grad); border-color: transparent; filter: brightness(1.06) saturate(1.05); transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 -2px 0 rgba(120, 40, 0, 0.18) inset, 0 16px 30px -12px rgba(214, 92, 14, 0.85); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-ok { border-color: var(--ok); color: var(--ok); }
.btn-big { padding-block: 13px; padding-inline: 26px; font-size: 1.05rem; border-radius: 15px; }
.btn-block { inline-size: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 9px; padding-block: 6px; padding-inline: 10px; min-inline-size: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: 0.9rem; color: var(--text-2); }
label > input, label > select, label > textarea { display: block; inline-size: 100%; margin-block-start: 4px; }

/* the awning: stripes + scallops, sized by --r (scallop radius) and --h (stripe depth) */
.awn {
  --r: 16px; --h: 26px;
  block-size: calc(var(--h) + var(--r));
  background:
    linear-gradient(180deg, rgba(120, 40, 0, 0.45) 0 3px, transparent 3px),
    linear-gradient(180deg, rgba(255, 210, 120, 0.35), transparent 45%, rgba(120, 35, 0, 0.22)),
    repeating-linear-gradient(90deg, var(--awn-a) 0 calc(var(--r) * 2), var(--awn-b) calc(var(--r) * 2) calc(var(--r) * 4));
  background-size: 100% 100%, 100% 100%, calc(var(--r) * 4) 100%;
  background-position: 0 0, 0 0, 50% 0;
  -webkit-mask:
    linear-gradient(#000 0 0) 0 0 / 100% var(--h) no-repeat,
    radial-gradient(circle at 50% 0, #000 calc(var(--r) - 0.6px), transparent var(--r)) calc(50% + var(--r)) var(--h) / calc(var(--r) * 2) var(--r) repeat-x;
          mask:
    linear-gradient(#000 0 0) 0 0 / 100% var(--h) no-repeat,
    radial-gradient(circle at 50% 0, #000 calc(var(--r) - 0.6px), transparent var(--r)) calc(50% + var(--r)) var(--h) / calc(var(--r) * 2) var(--r) repeat-x;
}

/* shared header (site + panel) */
.top {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-block-end: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.top::before {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 3px;
  background: repeating-linear-gradient(90deg, var(--awn-a) 0 14px, transparent 14px 28px), var(--brand-grad);
  background-blend-mode: normal; opacity: 0.95;
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-block-size: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 850; font-size: 1.3rem; }
.brand img { inline-size: 38px; block-size: 38px; filter: drop-shadow(0 4px 8px rgba(160, 70, 10, 0.28)); transition: transform 0.4s var(--spring); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand small { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.top nav { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.top nav a:not(.btn) {
  position: relative; color: var(--text-2); text-decoration: none; font-size: 0.95rem; padding-block: 6px; padding-inline: 12px; border-radius: 9px;
  transition: color 0.2s;
}
.top nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 12px; inset-block-end: 2px; block-size: 2px; border-radius: 2px;
  background: var(--brand-grad); transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.top nav a:not(.btn):hover { color: var(--text); }
.top nav a:not(.btn):hover::after { transform: scaleX(1); }
.top .nav-cta { margin-inline-start: 10px; }

/* ---------------------------------------------------------------- public site */
.site { overflow-x: clip; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--accent-ink);
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 99px; padding-block: 4px; padding-inline: 14px; box-shadow: var(--shadow-sm);
}
.hero-pill .dot { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
/* section kicker: a tiny barcode then the label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 800; color: var(--accent-ink); letter-spacing: 0;
}
.eyebrow::before {
  content: ""; inline-size: 22px; block-size: 14px; flex: none; border-radius: 1px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 3.5px, currentColor 3.5px 4.5px, transparent 4.5px 6px, currentColor 6px 9px, transparent 9px 10.5px);
}
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the inline mark with a scanning beam over its barcode */
.mark { inline-size: 84px; block-size: 84px; margin-inline: auto; position: relative; }
.mark::after {
  content: ""; position: absolute; inset: 14% 10% -18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 122, 26, 0.5), transparent); filter: blur(14px);
}
.mark svg { display: block; inline-size: 100%; block-size: 100%; filter: drop-shadow(0 14px 22px rgba(170, 70, 10, 0.35)); }
.mark .scan { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mark .scan { animation: scan 3.6s ease-in-out 1.2s infinite; }
}
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  45% { transform: translateY(14px); opacity: 1; }
  52% { opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* hero */
.hero { position: relative; padding-block: 44px 0; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -70px 0 30%; z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 22%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 22%, #000 25%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset-inline: 0; inset-block-start: -120px; block-size: 820px; pointer-events: none;
  background:
    radial-gradient(38% 42% at 28% 32%, var(--glow-a), transparent 70%),
    radial-gradient(34% 38% at 74% 22%, var(--glow-b), transparent 70%);
}
.hero .hero-pill { margin-block-start: 22px; }
.hero h1 {
  text-wrap: balance; font-size: clamp(2.3rem, 6.4vw, 4.7rem); line-height: 1.22; letter-spacing: -0.015em; font-weight: 900;
  margin-block: 22px 18px; margin-inline: auto; max-inline-size: 14em;
}
.hero .lead { color: var(--text-2); font-size: clamp(1.05rem, 2.1vw, 1.28rem); line-height: 1.95; max-inline-size: 620px; margin-inline: auto; margin-block: 0; text-wrap: pretty; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-block-start: 32px; }
.btn-quiet { background: color-mix(in srgb, var(--surface) 75%, transparent); }
.hero .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-block: 20px 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.hero .meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero .meta svg { inline-size: 16px; block-size: 16px; padding: 2px; border-radius: 50%; color: var(--ok); background: var(--ok-soft); box-sizing: content-box; }
.version { margin-block: 10px 0; font-size: 0.85rem; color: var(--muted); }

/* hero composition: the product window is the shopfront under the Dokan awning */
.storefront { position: relative; margin-block-start: 52px; margin-inline: auto; max-inline-size: 1080px; perspective: 1800px; }
.storefront::before {
  content: ""; position: absolute; inset: 10% 4% -6%; z-index: -1; border-radius: 48px;
  background: conic-gradient(from 200deg at 50% 50%, #fbbf24, #f07a1a, #c2410c, #f59e0b, #fbbf24);
  filter: blur(80px); opacity: 0.42;
}
.awn-wrap {
  position: relative; z-index: 3; margin-inline: -28px; transform-origin: 50% 0;
  filter: drop-shadow(0 12px 12px rgba(110, 40, 0, 0.28));
}
.awn-wrap .awn { --r: 18px; --h: 34px; border-start-start-radius: 10px; border-start-end-radius: 10px; }
.storefront .window { margin-block-start: -18px; position: relative; z-index: 1; }
.window {
  border-radius: 16px; overflow: hidden; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border-strong) 70%, transparent);
  box-shadow: var(--shadow-lg);
  transform-origin: 50% 0;
}
.window-bar {
  display: flex; align-items: center; gap: 10px; block-size: 36px; padding-inline: 14px;
  background: #1c1a24; color: #cfccd9; font-size: 0.78rem;
}
.storefront .window-bar { block-size: 44px; padding-block-start: 10px; }
.window-bar .title { display: flex; align-items: center; gap: 8px; }
.window-bar .title img { inline-size: 18px; block-size: 18px; }
.window-bar .ctrls { margin-inline-start: auto; display: flex; gap: 14px; opacity: 0.7; }
.window-bar .ctrls i { inline-size: 10px; block-size: 10px; display: block; border: 1.5px solid currentColor; border-radius: 2px; }
.window-bar .ctrls i:first-child { border-width: 0 0 1.5px; border-radius: 0; }
.window-bar .ctrls i:last-child { border: 0; position: relative; }
.window-bar .ctrls i:last-child::before, .window-bar .ctrls i:last-child::after {
  content: ""; position: absolute; inset-inline-start: 4px; inset-block-start: -2px; inline-size: 1.5px; block-size: 14px; background: currentColor; transform: rotate(45deg);
}
.window-bar .ctrls i:last-child::after { transform: rotate(-45deg); }
.window img { display: block; inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.float {
  position: absolute; z-index: 4; background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-md);
  padding-block: 12px; padding-inline: 16px; text-align: start; font-size: 0.85rem;
}
.float b { display: block; font-size: 1.3rem; line-height: 1.4; font-weight: 850; }
.float b small { font-size: 0.7rem; font-weight: 500; color: var(--muted); }
.float .lbl { color: var(--muted); font-size: 0.78rem; }
.float-sales { inset-inline-start: -44px; inset-block-start: 30%; inline-size: 214px; }
.float-sales svg { display: block; inline-size: 100%; block-size: 38px; margin-block-start: 6px; }
.float-sales .up { color: var(--ok); font-weight: 700; font-size: 0.78rem; }
.float-scan { inset-inline-end: -48px; inset-block-start: 20%; display: flex; align-items: center; gap: 12px; }
.float-scan .ic { position: relative; overflow: hidden; inline-size: 40px; block-size: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.float-scan .ic svg { inline-size: 22px; block-size: 22px; }
.float-scan .beam { position: absolute; inset-inline: 4px; inset-block-start: 8px; block-size: 2px; border-radius: 2px; background: #ff3b1f; box-shadow: 0 0 8px 1px rgba(255, 59, 31, 0.6); opacity: 0; }
.float-offline { inset-inline-end: 8%; inset-block-end: -24px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.float-offline .pulse { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }

@media (prefers-reduced-motion: no-preference) {
  .awn-wrap { animation: unfurl 1.1s var(--spring) 0.35s both; }
  .float-sales { animation: bob 6s ease-in-out infinite; }
  .float-scan { animation: bob 7s ease-in-out 1s infinite; }
  .float-scan .beam { animation: beam 2.4s ease-in-out 1.6s infinite; }
  .float-offline .pulse { animation: pulse 2.2s infinite; }
  @supports (animation-timeline: view()) {
    .storefront { animation: untilt linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes unfurl { from { transform: scaleY(0.15); opacity: 0; } 40% { opacity: 1; } to { transform: none; } }
@keyframes untilt { from { transform: rotateX(14deg) scale(0.95); } to { transform: none; } }
@keyframes bob { 50% { transform: translateY(-9px); } }
@keyframes beam { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 55% { transform: translateY(22px); opacity: 1; } 65%, 100% { transform: translateY(22px); opacity: 0; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* intro: shop types + trust */
.intro { padding-block: 96px 0; }
.marquee { text-align: center; }
.marquee p { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }
.marquee-track {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee ul { display: flex; flex: none; gap: 10px; padding: 0; margin: 0; padding-inline-end: 10px; list-style: none; animation: marquee 42s linear infinite; }
.marquee li {
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap; border: 1px solid var(--border); background: var(--surface); border-radius: 12px;
  padding-block: 7px; padding-inline: 14px 16px; font-weight: 650; color: var(--text-2); font-size: 0.95rem;
}
.marquee li::before {
  content: ""; inline-size: 14px; block-size: 12px; opacity: 0.55;
  background: repeating-linear-gradient(90deg, var(--accent) 0 1.5px, transparent 1.5px 3px, var(--accent) 3px 5px, transparent 5px 6.5px);
}
.marquee-track:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(100%); } }
[dir="ltr"] .marquee ul { animation-name: marquee-ltr; }
@keyframes marquee-ltr { to { transform: translateX(-100%); } }

.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-block-start: 56px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm);
}
.trust > div { display: flex; gap: 16px; align-items: flex-start; padding: 26px; }
.trust > div + div { border-inline-start: 1px dashed var(--border-strong); }
.trust h3 { margin: 0 0 2px; font-size: 1.05rem; }
.trust p { margin: 0; color: var(--text-2); font-size: 0.93rem; line-height: 1.8; }

.ic-box {
  flex: none; inline-size: 46px; block-size: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform 0.4s var(--spring), background-color 0.3s, color 0.3s;
}
.ic-box svg { inline-size: 22px; block-size: 22px; }

/* sections + rhythm: plain / tinted band / dark band; bands end in awning scallops */
.section { padding-block: 120px 0; }
.band { position: relative; z-index: 1; margin-block-start: 120px; padding-block: 112px 120px; }
.band::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: calc(100% - 1px); block-size: 15px; pointer-events: none;
  background: radial-gradient(circle at 50% 0, var(--band-bg) 14.4px, transparent 15px) 50% 0 / 30px 15px repeat-x;
}
.band + .section { padding-block-start: 136px; }
.band-tint { --band-bg: var(--band-tint); background: var(--band-tint); }
.band-dark {
  --band-bg: var(--band-dark); background-color: var(--band-dark); color: #f5efe8;
  background-image:
    radial-gradient(60% 50% at 50% 0%, rgba(240, 122, 26, 0.22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 30px, transparent 30px 60px);
  background-size: 100% 100%, 100% 420px; background-repeat: no-repeat;
}
.section-head { text-align: center; max-inline-size: 720px; margin-inline: auto; margin-block-end: 56px; }
.section-head h2 { text-wrap: balance; font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.35; margin-block: 14px 14px; font-weight: 900; letter-spacing: -0.012em; }
.section-head p { margin: 0; color: var(--text-2); font-size: 1.1rem; text-wrap: pretty; }
.section-head.split { max-inline-size: none; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; text-align: start; }
.section-head.split h2 { margin-block-end: 0; }
.section-head.split p { padding-block-end: 8px; }
.section-head.start { text-align: start; margin-inline: 0; }
.band-dark .section-head p { color: #c9bfb6; }
.band-dark .eyebrow { color: #ffb37a; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-block: 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.card .tag { display: inline-block; font-size: 0.75rem; font-weight: 750; color: var(--accent-ink); background: var(--accent-soft); border-radius: 99px; padding-inline: 10px; }

/* features bento */
.bento { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); padding: 30px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
/* hover: a strip of awning slides down from the top edge */
.tile::before, .module::before {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 5px;
  background: repeating-linear-gradient(90deg, var(--awn-a) 0 12px, color-mix(in srgb, var(--awn-a) 35%, transparent) 12px 24px);
  transform: translateY(-100%); transition: transform 0.35s var(--ease);
}
.tile:hover, .module:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); }
.tile:hover::before, .module:hover::before { transform: none; }
.tile:hover .ic-box, .module:hover .ic-box { transform: rotate(-6deg) scale(1.06); }
.tile h3 { margin-block: 18px 8px; font-size: 1.22rem; font-weight: 800; }
.tile p { margin: 0; color: var(--text-2); }
.tile-wide { grid-column: span 2; }
.tile-pos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.tile-pos .visual { position: relative; padding-block: 10px; }
.tile-pos .visual::before {
  content: ""; position: absolute; inset: 0 8%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, var(--glow-a), transparent); filter: blur(10px);
}
.keys { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-block-start: 20px; font-size: 0.85rem; color: var(--text-2); }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
kbd {
  font-family: inherit; font-size: 0.78rem; font-weight: 750; direction: ltr;
  border: 1px solid var(--border-strong); border-block-end-width: 3px; border-radius: 7px; padding-inline: 7px; background: var(--bg); color: var(--text);
}
.receipt {
  position: relative; z-index: 1;
  background: #fffdf8; color: #2b2620; border-radius: 10px; padding-block: 16px 24px; padding-inline: 18px; font-size: 0.8rem; line-height: 2;
  box-shadow: 0 22px 34px -16px rgba(80, 50, 10, 0.45); transform: rotate(-2.5deg); max-inline-size: 260px; margin-inline: auto;
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100%;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100%;
  transition: transform 0.5s var(--spring);
}
.tile-pos:hover .receipt { transform: rotate(0deg) translateY(-4px); }
.receipt .r-head { text-align: center; font-weight: 800; border-block-end: 1px dashed #d7cdbd; padding-block-end: 6px; margin-block-end: 6px; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 10px; }
.receipt .r-total { border-block-start: 1px dashed #d7cdbd; margin-block-start: 6px; padding-block-start: 6px; font-weight: 800; font-size: 0.95rem; }
.receipt .r-bar { position: relative; block-size: 30px; margin-block-start: 8px; background: repeating-linear-gradient(90deg, #2b2620 0 2px, transparent 2px 4px, #2b2620 4px 5px, transparent 5px 8px, #2b2620 8px 11px, transparent 11px 12px); opacity: 0.85; }
.receipt .r-bar::after { content: ""; position: absolute; inset-inline: -6px; inset-block-start: 50%; block-size: 2px; background: #ff3b1f; box-shadow: 0 0 8px 1px rgba(255, 59, 31, 0.7); opacity: 0; }
.tile-pos:hover .receipt .r-bar::after { opacity: 1; }

/* mini illustrations inside tiles */
.stock, .invoices, .week, .mini-bars { margin-block-start: auto; padding-block-start: 22px; }
.stock { display: grid; gap: 9px; font-size: 0.82rem; }
.stock div { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: 10px; color: var(--text-2); }
.stock i { block-size: 7px; border-radius: 9px; background: var(--bg-2); position: relative; overflow: hidden; }
.stock i::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--v); border-radius: inherit; background: var(--brand-grad); }
.stock b { font-weight: 800; color: var(--text); display: inline-flex; align-items: center; gap: 4px; min-inline-size: 2.2em; justify-content: flex-end; }
.stock .low b { color: var(--danger); }
.stock .low i::before { background: var(--danger); }
.stock svg { inline-size: 14px; block-size: 14px; }
.invoices { display: grid; gap: 7px; font-size: 0.82rem; }
.invoices div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 5px; padding-inline: 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.invoices span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.invoices b { font-weight: 800; }
.invoices .ret { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--accent-soft); }
.invoices .ret span, .invoices .ret b { color: var(--accent-ink); }
.invoices svg { inline-size: 15px; block-size: 15px; }
.mini-bars { display: flex; align-items: flex-end; gap: 7px; block-size: 96px; box-sizing: content-box; }
.mini-bars i { flex: 1; block-size: var(--h); border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--accent) 28%, var(--bg-2)); transform-origin: bottom; transition: transform 0.6s var(--spring); }
.mini-bars i.today { background: linear-gradient(180deg, #fbbf24, #f07a1a 55%, #c2410c); }
.tile:hover .mini-bars i { transform: scaleY(1.06); }
.week { display: flex; gap: 6px; }
.week i { flex: 1; display: grid; place-items: center; aspect-ratio: 1; max-inline-size: 40px; border-radius: 10px; font-style: normal; font-size: 0.8rem; font-weight: 700;
  color: var(--ok); background: var(--ok-soft); position: relative; }
.week i::after { content: ""; position: absolute; inset-block-end: 5px; inline-size: 4px; block-size: 4px; border-radius: 50%; background: currentColor; }
.week i.now { color: #fff; background: var(--brand-grad); box-shadow: 0 8px 16px -8px rgba(214, 92, 14, 0.8); }

.tile-dark {
  grid-column: 1 / -1; background: var(--ink); color: #f5efe8; border-color: transparent;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 44px;
}
.tile-dark::after {
  content: ""; position: absolute; inset: auto -10% -70% auto; inline-size: 560px; block-size: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 135, 58, 0.34), transparent 65%); pointer-events: none;
}
.tile-dark h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-block-start: 16px; color: #fff; }
.tile-dark p { color: #cbc1b8; font-size: 1.03rem; }
.tile-dark .ic-box { background: rgba(242, 135, 58, 0.16); color: #ffb27a; border-color: rgba(242, 135, 58, 0.3); }
.tile-dark:hover { border-color: transparent; }
/* light mode: the offline tile is a warm sunlit panel, so it does not echo the dark band right after it */
@media (prefers-color-scheme: light) {
  .tile-dark { background: linear-gradient(135deg, #fff7ec 0%, #ffe9d2 100%); color: var(--text); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
  .tile-dark:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
  .tile-dark::after { background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 65%); }
  .tile-dark h3 { color: var(--text); }
  .tile-dark p { color: var(--text-2); }
  .tile-dark .ic-box { background: var(--surface); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
  .tile-dark .status-list div { background: #fff; border-color: rgba(194, 65, 12, 0.12); box-shadow: var(--shadow-sm); }
  .tile-dark .status-list svg { color: var(--ok); }
  .tile-dark .status-list .off { color: var(--muted); text-decoration-color: rgba(0, 0, 0, 0.25); }
  .tile-dark .status-list .off svg { color: var(--muted); }
}
.status-list { display: grid; gap: 10px; position: relative; z-index: 1; }
.status-list div {
  display: flex; align-items: center; gap: 12px; padding-block: 12px; padding-inline: 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.95rem;
}
.status-list svg { inline-size: 20px; block-size: 20px; color: #4ade80; flex: none; }
.status-list .off { color: #a79d95; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.status-list .off svg { color: #8d837c; }

/* showcase */
.showcase { text-align: center; }
.seg {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; margin-block-end: 34px; max-inline-size: 100%; overflow-x: auto;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.seg button {
  font: inherit; font-weight: 700; font-size: 0.95rem; border: 0; background: transparent; color: #cbc1b8;
  padding-block: 9px; padding-inline: 20px; border-radius: 11px; cursor: pointer; white-space: nowrap; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.seg button:hover { color: #fff; }
.seg button[aria-selected="true"] { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 20px -10px rgba(240, 122, 26, 0.9); }
.shots { position: relative; max-inline-size: 1040px; margin-inline: auto; }
.shots .window { margin: 0; border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.shots .window:not(.is-on) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .shots .window.is-on { animation: shot-in 0.5s var(--ease); }
}
@keyframes shot-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } }
.shots-caption { margin-block: 22px 0; color: #c9bfb6; font-size: 1rem; }

/* modules */
.modules { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.module { position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius-lg); transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; display: flex; flex-direction: column; gap: 6px; }
.module .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-end: 12px; }
.module .ic-box { background: var(--brand-grad); color: #fff; border: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 18px -10px rgba(194, 65, 12, 0.8); }
.module.is-full .ic-box { background: linear-gradient(135deg, #a78bfa, #7c3aed 55%, #5b21b6); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 10px 18px -10px rgba(91, 33, 182, 0.8); }
.module h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.module p { font-size: 0.92rem; line-height: 1.85; }
.module .tag.full { color: #6d28d9; background: rgba(124, 58, 237, 0.1); }
@media (prefers-color-scheme: dark) { .module .tag.full { color: #c4b5fd; background: rgba(167, 139, 250, 0.14); } }

/* plans */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.plan:not(.featured):hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan h3 { margin: 0; font-size: 1.9rem; font-weight: 900; line-height: 1.35; }
.plan h3 small { display: block; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.plan .plan-for { margin: 0; color: var(--text-2); font-size: 0.95rem; min-block-size: 3.6em; }
.plan.featured {
  background: var(--ink); color: #f5efe8; border-color: transparent; overflow: hidden; padding-block-start: 64px;
  box-shadow: 0 40px 70px -30px rgba(194, 65, 12, 0.6), var(--shadow-md);
  transform: translateY(-14px);
}
.plan.featured::before {
  content: ""; position: absolute; inset: auto -30% -40% auto; inline-size: 420px; block-size: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 122, 26, 0.28), transparent 65%); pointer-events: none;
}
.plan.featured > * { position: relative; }
.plan.featured > .awn { position: absolute; inset-inline: 0; inset-block-start: 0; --r: 12px; --h: 18px; }
.plan.featured h3 small, .plan.featured .plan-for { color: #c9bfb6; }
.plan .badge {
  position: absolute; inset-block-start: 46px; inset-inline-end: 24px;
  background: rgba(240, 122, 26, 0.16); color: #ffb37a; border: 1px solid rgba(240, 122, 26, 0.4);
  font-size: 0.8rem; font-weight: 800; padding-block: 2px; padding-inline: 12px; border-radius: 99px; white-space: nowrap;
}
.periods { display: flex; gap: 6px; flex-wrap: wrap; }
.periods span { font-size: 0.82rem; font-weight: 600; border: 1px solid var(--border-strong); border-radius: 99px; padding-inline: 12px; color: var(--text-2); background: var(--bg); }
.plan.featured .periods span { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #e7ddd3; }
.prices { display: grid; gap: 6px; margin: 0; }
.prices div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; border-block-end: 1px dashed var(--border); padding-block-end: 6px; }
.prices dt { color: var(--muted); font-size: 0.9rem; }
.prices dd { margin: 0; font-weight: 850; font-size: 1.15rem; }
.plan.featured .prices div { border-color: rgba(255, 255, 255, 0.14); }
.plan.featured .prices dt { color: #c9bfb6; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.7; }
.ck { flex: none; display: grid; place-items: center; inline-size: 22px; block-size: 22px; border-radius: 50%; margin-block-start: 2px; background: var(--ok-soft); color: var(--ok); }
.ck svg { inline-size: 14px; block-size: 14px; }
.plan li.inc { font-weight: 800; }
.plan li.inc .ck { background: var(--accent-soft); color: var(--accent-ink); }
.plan.featured .ck { background: var(--brand-grad); color: #fff; }
.plan.featured li.inc .ck { background: rgba(255, 255, 255, 0.12); color: #ffb37a; }
.plan .btn { margin-block-start: auto; }
.plan.featured .btn:not(.btn-primary) { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.plan hr { border: 0; border-block-start: 1px dashed var(--border-strong); margin: 0; inline-size: 100%; }
.plan.featured hr { border-color: rgba(255, 255, 255, 0.16); }
.plans-note { text-align: center; color: var(--text-2); margin-block: 36px 0; }
.plans-note strong { color: var(--text); }

.compare { margin-block-start: 36px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding-block: 16px; font-weight: 750; color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.compare summary::-webkit-details-marker { display: none; }
.compare summary svg { inline-size: 18px; block-size: 18px; transition: transform 0.3s var(--ease); }
.compare[open] summary svg { transform: rotate(180deg); }
.compare summary:hover { color: var(--text); background: var(--hover); }
.compare-table { overflow-x: auto; border-block-start: 1px solid var(--border); }
.compare table { font-size: 0.95rem; }
.compare th, .compare td { padding-block: 12px; padding-inline: 18px; text-align: center; border-block-end: 1px solid var(--border); position: static; background: none; }
.compare th:first-child, .compare td:first-child { text-align: start; }
.compare thead th { color: var(--text); font-weight: 850; font-size: 1rem; background: var(--bg-2); }
.compare thead th.hl { background: var(--accent-grad); color: #fff; }
.compare td.hl { background: var(--accent-soft); }
.compare tr.group td { background: var(--bg); color: var(--muted); font-size: 0.82rem; font-weight: 750; padding-block: 7px; }
.compare tbody tr:hover td { background: inherit; }
.compare tbody tr:not(.group):hover td:first-child { color: var(--accent-ink); }
.compare td svg { inline-size: 22px; block-size: 22px; vertical-align: middle; padding: 3px; border-radius: 50%; }
.compare .y { color: var(--ok); }
.compare .y svg { background: var(--ok-soft); }
.compare .n { color: var(--muted); opacity: 0.55; }

/* install */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); counter-reset: s; position: relative; }
.steps-grid::before {
  content: ""; position: absolute; inset-inline: 16%; inset-block-start: 54px; block-size: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 45%, transparent) 0 8px, transparent 8px 16px);
}
.step { position: relative; z-index: 1; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); counter-increment: s; text-align: center; }
.step::before {
  content: counter(s, persian); display: grid; place-items: center; inline-size: 50px; block-size: 50px; border-radius: 15px; margin-inline: auto;
  background: var(--brand-grad); color: #fff; font-weight: 900; font-size: 1.35rem; margin-block-end: 18px;
  box-shadow: 0 0 0 6px var(--surface), 0 12px 22px -10px rgba(214, 92, 14, 0.8);
}
.step h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; }
.step p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.step .btn { margin-block-start: 18px; }
.step .soon { display: inline-block; margin-block-start: 16px; font-size: 0.85rem; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 99px; padding-inline: 12px; }

.smartscreen {
  margin-block-start: 22px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(135deg, var(--surface), var(--bg-2));
}
.smartscreen h3 { margin: 0 0 8px; font-size: 1.12rem; display: flex; align-items: center; gap: 12px; }
.smartscreen h3 .ic-box { inline-size: 38px; block-size: 38px; border-radius: 12px; }
.smartscreen p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.ss-demo { display: flex; gap: 12px; align-items: center; direction: ltr; }
.ss-win {
  inline-size: 190px; border-radius: 6px; background: #1d5fb4; color: #fff; padding: 12px; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 11px; line-height: 1.5;
  box-shadow: 0 14px 26px -14px rgba(0, 40, 100, 0.7); text-align: left;
}
.ss-win b { display: block; font-size: 13px; font-weight: 600; margin-block-end: 6px; }
.ss-win .ss-muted { opacity: 0.85; }
.ss-win .ss-link { display: inline-block; margin-block-start: 6px; text-decoration: underline; font-weight: 600; }
.ss-win .ss-btns { display: flex; justify-content: flex-end; gap: 6px; margin-block-start: 10px; }
.ss-win .ss-btns span { border: 1px solid rgba(255, 255, 255, 0.7); padding: 2px 8px; }
.ss-hl { position: relative; outline: 2px solid #fbbf24; outline-offset: 2px; border-radius: 2px; }
.ss-arrow { color: var(--muted); }
.ss-arrow svg { inline-size: 22px; block-size: 22px; display: block; }

/* activate: steps + an in-app mock */
.activate { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.activate .section-head { margin-block-end: 36px; }
.steps-v { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: v; }
.steps-v li { position: relative; counter-increment: v; padding-inline-start: 64px; padding-block: 4px 22px; }
.steps-v li::before {
  content: counter(v, persian); position: absolute; inset-inline-start: 0; inset-block-start: 2px; inline-size: 44px; block-size: 44px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 900; font-size: 1.15rem; color: var(--accent-ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  box-shadow: var(--shadow-sm);
}
.steps-v li:last-child::before { background: var(--brand-grad); color: #fff; border-color: transparent; }
.steps-v li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 21px; inset-block: 52px 0; inline-size: 2px;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--accent) 45%, transparent) 0 6px, transparent 6px 12px);
}
.steps-v h3 { margin: 0 0 4px; font-size: 1.12rem; font-weight: 800; }
.steps-v p { margin: 0; color: var(--text-2); font-size: 0.96rem; }
.act-mock { border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; max-inline-size: 440px; justify-self: center; inline-size: 100%; }
.am-bar { display: flex; align-items: center; gap: 10px; padding-block: 12px; padding-inline: 18px; background: #1c1a24; color: #e9e5f0; font-weight: 750; font-size: 0.95rem; }
.am-body { padding: 22px; display: grid; gap: 12px; }
.am-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-field { display: grid; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.am-field b { font-weight: 650; font-size: 0.95rem; color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; padding-block: 6px; padding-inline: 12px; background: var(--bg); }
.am-btn { margin-block-start: 4px; text-align: center; font-weight: 800; color: #fff; background: var(--accent-grad); border-radius: 12px; padding-block: 9px; box-shadow: 0 10px 20px -12px rgba(214, 92, 14, 0.9); }
.am-ok { display: flex; align-items: center; gap: 12px; padding-block: 12px; padding-inline: 14px; border-radius: 14px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.am-ok .ck { inline-size: 30px; block-size: 30px; margin: 0; background: var(--ok); color: #fff; }
.am-ok .ck svg { inline-size: 18px; block-size: 18px; }
.am-ok b { display: block; color: var(--ok); line-height: 1.5; }
.am-ok small { color: var(--text-2); font-size: 0.82rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .act-mock.in .am-ok { animation: pop 0.7s var(--spring) 0.9s both; }
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }

/* faq */
.faq-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; }
.faq-layout .section-head { position: sticky; inset-block-start: 110px; margin-block-end: 0; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: border-color 0.25s, box-shadow 0.25s; }
.faq details:hover { border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-md); }
.faq summary { cursor: pointer; list-style: none; padding-block: 18px; padding-inline: 22px; font-weight: 750; font-size: 1.03rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; inline-size: 30px; block-size: 30px; border-radius: 10px;
  background:
    linear-gradient(currentColor, currentColor) 50% 50% / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 50% / 2px 12px no-repeat,
    var(--accent-soft);
  color: var(--accent-ink); transition: transform 0.35s var(--spring), background-color 0.25s;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0; padding-inline: 22px; padding-block: 0 20px; color: var(--text-2); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* closing call to action: the shopfront again */
.closing { padding-block-start: 136px; }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: 32px; padding-block: 96px 72px; padding-inline: 24px;
  background: var(--ink); color: #f5efe8;
}
.cta-band > .awn { position: absolute; inset-inline: 0; inset-block-start: 0; --r: 20px; --h: 30px; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 50% 20%, rgba(242, 135, 58, 0.38), transparent 70%),
    radial-gradient(30% 50% at 90% 100%, rgba(251, 191, 36, 0.16), transparent 70%),
    radial-gradient(30% 50% at 10% 100%, rgba(194, 65, 12, 0.22), transparent 70%);
}
.cta-band .mark { inline-size: 96px; block-size: 96px; margin-block-start: 12px; }
.cta-band h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); font-weight: 900; margin-block: 18px 12px; color: #fff; line-height: 1.4; text-wrap: balance; }
.cta-band p { color: #d0c6bd; margin: 0 auto; max-inline-size: 560px; font-size: 1.08rem; text-wrap: pretty; }
.cta-band .contact-text { margin-block-start: 14px; }
.cta-band .actions { margin-block-start: 30px; }
.btn-glass, .cta-band .btn:not(.btn-primary) { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-glass:hover, .cta-band .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.3); }

/* footer */
footer.foot { margin-block-start: 120px; border-block-start: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; position: relative; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 48px; padding-block: 48px 32px; }
.foot-brand { max-inline-size: 360px; }
.foot-brand p { margin: 10px 0 0; line-height: 1.85; }
.foot .brand { font-size: 1.15rem; }
.foot .brand img { inline-size: 34px; block-size: 34px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 26px; padding-block-start: 6px; }
.foot nav a { color: var(--text-2); text-decoration: none; transition: color 0.2s; }
.foot nav a:hover { color: var(--accent-ink); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px 28px; border-block-start: 1px dashed var(--border); font-size: 0.85rem; }
.foot-bottom .code {
  inline-size: 120px; block-size: 18px; opacity: 0.5;
  background: repeating-linear-gradient(90deg, var(--muted) 0 2px, transparent 2px 4px, var(--muted) 4px 5px, transparent 5px 7px, var(--muted) 7px 10px, transparent 10px 11px, var(--muted) 11px 12px, transparent 12px 15px);
}

/* reveal on scroll (only when JS is on) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .tile.reveal.in, .js .module.reveal.in { transition: opacity 0.8s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s; transition-delay: var(--d, 0s), 0s, 0s, 0s; }
  .js .tile.reveal.in:hover, .js .module.reveal.in:hover { transform: translateY(-4px); }
  .hero-enter > * { animation: enter 0.9s var(--ease) both; }
  .hero-enter > :nth-child(2) { animation-delay: 0.08s; }
  .hero-enter > :nth-child(3) { animation-delay: 0.14s; }
  .hero-enter > :nth-child(4) { animation-delay: 0.22s; }
  .hero-enter > :nth-child(5) { animation-delay: 0.28s; }
  .hero-enter > :nth-child(6) { animation-delay: 0.34s; }
  @keyframes enter { from { opacity: 0; transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { -webkit-mask-image: none; mask-image: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; flex: 1; }
  .marquee ul[aria-hidden] { display: none; }
}

/* responsive */
@media (max-width: 1180px) {
  .float-sales { inset-inline-start: 8px; }
  .float-scan { inset-inline-end: 8px; }
  .awn-wrap { margin-inline: -10px; }
  .modules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .top nav a:not(.btn) { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: 1 / -1; }
  .tile-dark { grid-template-columns: 1fr; padding: 30px; }
  .plans { grid-template-columns: 1fr; max-inline-size: 540px; margin-inline: auto; }
  .plan.featured { transform: none; order: -1; }
  .plan .plan-for { min-block-size: 0; }
  .trust { grid-template-columns: 1fr; }
  .trust > div + div { border-inline-start: 0; border-block-start: 1px dashed var(--border-strong); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { inset-inline: auto; inset-inline-start: 50%; inset-block: 40px; inline-size: 2px; block-size: auto;
    background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--accent) 45%, transparent) 0 8px, transparent 8px 16px); }
  .smartscreen { grid-template-columns: 1fr; }
  .ss-demo { justify-content: center; flex-wrap: wrap; }
  .section-head.split { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .section-head.split p { padding: 0; max-inline-size: 640px; margin-inline: auto; }
  .activate, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-layout .section-head { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-block-start: 40px; }
  .mark { inline-size: 76px; block-size: 76px; }
  .hero .hero-pill { margin-block-start: 20px; font-size: 0.82rem; }
  .hero .meta { gap: 4px 14px; font-size: 0.85rem; }
  .storefront { margin-block-start: 44px; }
  .awn-wrap { margin-inline: -6px; }
  .awn-wrap .awn { --r: 9px; --h: 18px; }
  .storefront .window { margin-block-start: -9px; border-radius: 10px; }
  .window-bar { block-size: 28px; font-size: 0.7rem; }
  .storefront .window-bar { block-size: 32px; padding-block-start: 6px; }
  .float { padding-block: 8px; padding-inline: 12px; border-radius: 12px; }
  .float-sales, .float-offline { display: none; }
  .float-scan { inset-inline-end: 8px; inset-block-start: auto; inset-block-end: -26px; font-size: 0.78rem; }
  .float-scan .ic { inline-size: 32px; block-size: 32px; }
  .intro { padding-block-start: 72px; }
  .section { padding-block-start: 84px; }
  .band { margin-block-start: 84px; padding-block: 76px 84px; }
  .band::after { block-size: 10px; background: radial-gradient(circle at 50% 0, var(--band-bg) 9.4px, transparent 10px) 50% 0 / 20px 10px repeat-x; }
  .band + .section, .closing { padding-block-start: 96px; }
  .section-head { margin-block-end: 40px; }
  .bento, .modules { grid-template-columns: 1fr; }
  .tile { padding: 24px; }
  .tile-pos { grid-template-columns: 1fr; }
  .trust > div { padding: 20px; }
  .brand small { display: none; }
  .top .nav-cta { padding-inline: 12px; font-size: 0.88rem; }
  .plan { padding: 26px; }
  .plan.featured { padding-block-start: 56px; }
  .plan .badge { inset-block-start: 40px; }
  .compare th, .compare td { padding-inline: 10px; }
  .ss-win { inline-size: 220px; }
  .ss-demo { flex-direction: column; }
  .ss-arrow svg { transform: rotate(-90deg) !important; }
  .steps-v li { padding-inline-start: 58px; }
  .am-row { grid-template-columns: 1fr; }
  .cta-band { padding-block: 72px 52px; border-radius: 24px; }
  .cta-band > .awn { --r: 11px; --h: 18px; }
  .foot-grid { flex-direction: column; align-items: center; text-align: center; }
  .foot-brand .brand { justify-content: center; }
  .foot nav { justify-content: center; }
  .foot-bottom { flex-direction: column; }
  .seg button { padding-inline: 12px; font-size: 0.88rem; }
}

/* ---------------------------------------------------------------- owner panel */
.panel-body { background: var(--bg); }
.login {
  position: relative; overflow: hidden; max-inline-size: 400px; margin-block: 12vh; margin-inline: auto; display: grid; gap: 14px;
  padding: 64px 30px 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.login > .awn { position: absolute; inset-inline: 0; inset-block-start: 0; --r: 10px; --h: 16px; }
.login-head { display: flex; align-items: center; gap: 12px; margin-block-end: 6px; }
.login-head img { inline-size: 44px; block-size: 44px; filter: drop-shadow(0 6px 10px rgba(160, 70, 10, 0.3)); }
.login-head h2 { margin: 0; font-size: 1.3rem; font-weight: 850; line-height: 1.4; }
.login-head small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.login input { padding-block: 9px; border-radius: 11px; }
.login .btn { padding-block: 10px; margin-block-start: 4px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-block-end: 1px solid var(--border); margin-block-end: 16px; }
.tabs button {
  background: none; border: 0; border-block-end: 2px solid transparent; color: var(--text-2);
  font: inherit; font-weight: 600; padding-block: 10px; padding-inline: 14px; cursor: pointer; transition: color 0.2s;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-block-end-color: var(--accent); }
.tabs .count { background: var(--accent); color: var(--on-accent); border-radius: 99px; padding-inline: 7px; font-size: 0.75rem; margin-inline-start: 4px; }
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-block-end: 12px; }
.bar input[type="search"] { flex: 1 1 220px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; inline-size: 100%; font-size: 0.9rem; }
th, td { text-align: start; padding-block: 9px; padding-inline: 12px; border-block-end: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: var(--bg-2); position: sticky; inset-block-start: 0; }
tr:hover td { background: var(--hover); }
tr.banned td { background: rgba(239, 107, 107, 0.08); }
.pill { display: inline-block; border-radius: 99px; padding-inline: 8px; font-size: 0.75rem; border: 1px solid var(--border-strong); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.warn { color: var(--warn); border-color: var(--warn); }
.pill.danger { color: var(--danger); border-color: var(--danger); }
.mono { font-family: Consolas, "Courier New", monospace; direction: ltr; unicode-bidi: isolate; }
dialog {
  background: var(--raised); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  inline-size: min(560px, calc(100vw - 32px)); padding: 22px; box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(10, 8, 14, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog h3 { margin-block-start: 0; }
.form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; color: var(--text); }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-block-start: 16px; }
.toast {
  position: fixed; inset-block-end: 16px; inset-inline: 0; margin-inline: auto; inline-size: fit-content; z-index: 100;
  background: var(--raised); border: 1px solid var(--border-strong); border-radius: 12px; padding-block: 10px; padding-inline: 16px; box-shadow: var(--shadow-md);
}
textarea.license { inline-size: 100%; min-block-size: 90px; font-family: Consolas, monospace; direction: ltr; font-size: 0.75rem; }
@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; }
}

/* dark-mode tuning for the ink surfaces */
@media (prefers-color-scheme: dark) {
  .tile-dark, .cta-band, .plan.featured { background: linear-gradient(150deg, #241912, #140f0c); border: 1px solid rgba(255, 170, 110, 0.12); }
  .receipt { box-shadow: 0 22px 40px -14px rgba(0, 0, 0, 0.85); }
  .awn-wrap { filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.55)); }
  .storefront::before { opacity: 0.3; }
}
