/* ==========================================================================
   Tokofy — marketing site styles
   Brand: Black #111111 · Madina Green #1B8A3C · White #FFFFFF · Nunito
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-latin-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink-2: #2a2d2b;
  --muted: #565c58;          /* 6.9:1 on white */
  --muted-2: #767c78;        /* 4.5:1 on white — use for small captions only */
  --green: #1B8A3C;          /* brand green (decor, large text, icons) */
  --green-ink: #15732F;      /* AA green for text & buttons on white (5.9:1) */
  --green-dark: #0F5A24;
  --green-50: #EEF7F0;
  --green-100: #D8EEDD;
  --green-bright: #3DBE62;   /* green for text on #111111 (7:1) */
  --bg: #FFFFFF;
  --bg-soft: #F6F7F5;
  --bg-soft-2: #EEF0EC;
  --line: #E4E7E2;
  --line-2: #D3D7D1;
  --danger: #B42318;
  --warn: #9A6100;
  --info: #1D4ED8;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(17,17,17,.06), 0 1px 1px rgba(17,17,17,.04);
  --shadow: 0 10px 30px -12px rgba(17,17,17,.18), 0 2px 6px rgba(17,17,17,.05);
  --shadow-lg: 0 30px 60px -20px rgba(17,17,17,.28), 0 8px 20px -8px rgba(17,17,17,.12);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.lead { text-wrap: pretty; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--green-100); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.section--dark .eyebrow { color: var(--green-bright); }
.section--dark .eyebrow::before { background: var(--green-bright); }
.h2 { font-size: clamp(32px, 4.4vw, 48px); }
.h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 16px; }
.section--dark .lead { color: #c9ccca; }
.text-green { color: var(--green-ink); }
.section--dark .text-green { color: var(--green-bright); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 800; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(17,17,17,.45); }
.btn:active { transform: translateY(0); }
.btn--green { --b-bg: var(--green-ink); --b-bd: var(--green-ink); }
.btn--green:hover { --b-bg: var(--green-dark); --b-bd: var(--green-dark); box-shadow: 0 8px 18px -8px rgba(21,115,47,.6); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-2); }
.btn--ghost:hover { --b-bd: var(--ink); box-shadow: none; }
.btn--white { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.btn--outline-white { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255,255,255,.35); }
.btn--outline-white:hover { --b-bd: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(17,17,17,.35); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: none; align-items: center; gap: 4px; margin-left: 16px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 16px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav__links a:hover { background: var(--bg-soft-2); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--green-ink); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__login { display: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.nav__login:hover { background: var(--bg-soft-2); }
.nav__toggle {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; display: inline-grid; place-items: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background-color .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav__mobile {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: 12px var(--gutter) 20px;
}
.nav.is-open .nav__mobile { display: block; animation: drop .25s var(--ease); }
.nav__mobile a:not(.btn) { display: block; padding: 14px 4px; font-weight: 800; font-size: 18px; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 16px; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
  .nav__links, .nav__login { display: inline-flex; }
  .nav__toggle, .nav__mobile, .nav.is-open .nav__mobile { display: none; }
}
@media (max-width: 420px) { .nav__actions .btn { padding: 0 14px; } .nav__logo img { height: 30px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(27,138,60,.10), transparent 70%),
    radial-gradient(500px 360px at 0% 90%, rgba(27,138,60,.06), transparent 70%),
    linear-gradient(#fff, #fff);
}
.hero__grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 1.08fr; } }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.pill__tag { background: var(--green-50); color: var(--green-ink); padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); letter-spacing: -0.035em; margin-top: 22px; }
.hero h1 .accent { color: var(--green-ink); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em; border-radius: 99px;
  background: var(--green-100); z-index: -1;
}
.hero .lead { max-width: 560px; margin-top: 22px; }

/* store-URL claim */
.claim { margin-top: 32px; max-width: 560px; }
.claim__box {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 6px; box-shadow: 0 14px 30px -18px rgba(17,17,17,.5);
  transition: box-shadow .2s, border-color .2s;
}
.claim__box:focus-within { border-color: var(--green-ink); box-shadow: 0 0 0 5px rgba(27,138,60,.15); }
.claim__prefix { padding-left: 16px; font-weight: 800; color: var(--muted); white-space: nowrap; user-select: none; }
.claim__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-weight: 800; font-size: 17px; padding: 10px 2px; color: var(--ink);
}
.claim__input::placeholder { color: #9aa09c; font-weight: 700; }
.claim__hint { margin-top: 12px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.claim__hint span { display: inline-flex; align-items: center; gap: 6px; }
.claim__hint svg { width: 16px; height: 16px; color: var(--green-ink); }
.claim__error { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--danger); min-height: 1em; }
@media (max-width: 520px) {
  .claim__box { flex-wrap: wrap; border-radius: 20px; padding: 6px 6px 6px 0; }
  .claim__prefix { padding-left: 14px; }
  .claim__box .btn { width: 100%; margin-left: 6px; }
}

/* ---------- Mockups ---------- */
.mock { position: relative; height: 624px; width: 100%; max-width: 600px; margin: 0 auto; }
.mock__dash {
  position: absolute; right: 0; top: 56px; width: calc(100% - 130px);
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock__app { display: grid; grid-template-columns: 150px 1fr; }
.mock__rail { background: var(--bg-soft); border-right: 1px solid var(--line); padding: 16px 12px; display: grid; align-content: start; gap: 10px; }
.mock__rail i { display: block; height: 10px; border-radius: 99px; background: var(--line); }
.mock__rail i:nth-child(2) { background: var(--ink); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock__bar b { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.mock__body { padding: 16px; display: grid; gap: 12px; }
.mock__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mock__kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.mock__kpi small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.mock__kpi strong { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }
.mock__chart { border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 4px; }
.mock__chart small { font-size: 11px; color: var(--muted); font-weight: 700; }
.mock__orders { display: grid; gap: 6px; }
.mock__order { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); }
.mock__order b { font-weight: 800; }
.mock__order span { color: var(--muted); }
.mock__order .status { margin-left: auto; }

.phone {
  position: absolute; z-index: 2; left: 0; top: 0;
  width: 270px; height: 584px; border-radius: 44px; padding: 12px;
  background: var(--ink); box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b2b2b;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 99px; background: #000; z-index: 3; }
.phone__screen { height: 100%; border-radius: 34px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.phone__screen > * { flex-shrink: 0; }
.ps__top { padding: 48px 16px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.ps__avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#f3c6b5,#d9846b); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; }
.ps__name { font-weight: 900; font-size: 15px; line-height: 1.1; }
.ps__url { font-size: 11px; color: var(--muted); font-weight: 700; }
.ps__cart { margin-left: auto; position: relative; width: 32px; height: 32px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; }
.ps__cart svg { width: 16px; height: 16px; }
.ps__cart em { position: absolute; top: -4px; right: -4px; background: var(--green); color: #fff; font-style: normal; font-size: 10px; font-weight: 900; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; }
.ps__banner { margin: 12px 14px 0; border-radius: 14px; padding: 14px; background: linear-gradient(120deg, #111 0%, #1f3a29 100%); color: #fff; }
.ps__banner small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-bright); }
.ps__banner p { font-weight: 900; font-size: 15px; line-height: 1.2; margin-top: 2px; }
.ps__chips { display: flex; gap: 6px; padding: 12px 14px 0; overflow: hidden; }
.ps__chips span { font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: var(--bg-soft); white-space: nowrap; }
.ps__chips span:first-child { background: var(--ink); color: #fff; }
.ps__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; }
.ps__item { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.ps__img { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.ps__img svg { width: 58%; height: 58%; }
.ps__meta { padding: 7px 8px 8px; }
.ps__meta b { display: block; font-size: 11px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps__meta span { font-size: 12px; font-weight: 900; }
.ps__checkout { margin: auto 14px 14px; background: var(--green-ink); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; font-weight: 900; font-size: 13px; }

.toast {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 10px;
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.toast b { display: block; font-weight: 900; font-size: 13px; }
.toast span { color: var(--muted); font-weight: 700; font-size: 12px; }
.toast__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-50); color: var(--green-ink); flex: none; }
.toast__ic svg { width: 18px; height: 18px; }
.toast--pay { right: 4%; bottom: 0; }
.toast--ship { left: 190px; top: 0; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 600px) {
  .mock { height: auto; max-width: 340px; padding: 40px 0 30px; }
  .phone { position: relative; margin: 0 auto; width: 266px; height: 584px; }
  .mock__dash { display: none; }
  .toast--ship { left: -6px; top: 6px; }
  .toast--pay { right: -6px; bottom: 6px; }
}

/* ---------- Status pills ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--new { background: #E8EEFF; color: #1E40AF; }
.status--processing { background: #FFF4DB; color: #8A5300; }
.status--shipped { background: #EFE9FF; color: #5B21B6; }
.status--delivered { background: var(--green-50); color: var(--green-ink); }
.status--rto { background: #FDECEA; color: #A8231A; }
.status--paid { background: var(--green-50); color: var(--green-ink); }
.status--pending { background: #FFF4DB; color: #8A5300; }

/* ---------- Compare (without vs with) ---------- */
.compare { display: grid; gap: 20px; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__card { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: #fff; }
.compare__card--with { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
.compare__card--with::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(61,190,98,.25), transparent 70%); }
.compare__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft-2); color: var(--muted); }
.compare__card--with .compare__label { background: rgba(61,190,98,.16); color: var(--green-bright); }
.compare__card h3 { margin-top: 18px; font-size: clamp(22px, 2.4vw, 28px); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.flow__step { padding: 8px 14px; border-radius: 12px; font-weight: 800; font-size: 15px; background: var(--bg-soft); border: 1px dashed var(--line-2); color: var(--ink-2); }
.flow__arrow { color: var(--muted-2); font-weight: 900; }
.compare__card--with .flow__step { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.compare__card--with .flow__step--hl { background: var(--green); border-color: var(--green); }
.compare__card--with .flow__arrow { color: var(--green-bright); }
.checklist { margin-top: 24px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.checklist--x svg { color: #B42318; }
.checklist--x li { color: var(--muted); }
.compare__card--with .checklist svg { color: var(--green-bright); }
.compare__card--with .checklist li { color: #e6e8e6; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step__num { counter-increment: step; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; font-size: 18px; }
.step__num::before { content: counter(step); }
.step:nth-child(1) .step__num { background: var(--green-ink); }
.step h3 { margin-top: 18px; font-size: 21px; }
.step p { margin-top: 8px; color: var(--muted); }
.step code { white-space: nowrap; font-family: inherit; font-weight: 800; color: var(--green-ink); background: var(--green-50); padding: 1px 8px; border-radius: 6px; }

/* ---------- Features ---------- */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.feature:hover { border-color: var(--green-100); transform: translateY(-3px); box-shadow: var(--shadow); }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-ink); }
.icon-tile svg { width: 24px; height: 24px; }
.feature h3 { margin-top: 18px; font-size: 20px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.feature ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.feature li { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-2); }

/* ---------- Audience chips ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 16px; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
@media (max-width: 600px) { .chips { gap: 8px; } .chip { font-size: 14px; padding: 7px 13px; } }

/* ---------- Ecosystem ---------- */
.eco { display: grid; gap: 16px; }
@media (min-width: 640px) { .eco { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .eco { grid-template-columns: repeat(3, 1fr); } }
.eco__card { padding: 26px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); transition: background-color .25s, border-color .25s; }
.eco__card:hover { background: rgba(255,255,255,.07); border-color: rgba(61,190,98,.5); }
.eco__card .icon-tile { background: rgba(61,190,98,.14); color: var(--green-bright); }
.eco__card small { display: block; margin-top: 18px; font-size: 13px; font-weight: 900; letter-spacing: .1em; color: var(--green-bright); }
.eco__card h3 { margin-top: 4px; font-size: 21px; }
.eco__card p { margin-top: 8px; color: #b9bdba; font-size: 16px; }
.equation { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-weight: 900; }
.equation span { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 15px; }
.equation span.is-brand { background: #fff; color: var(--ink); border-color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.equation span.is-brand img { width: 20px; height: 20px; }
.equation i { font-style: normal; color: var(--green-bright); }

/* ---------- Split sections ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 900; font-size: 15px; box-shadow: var(--shadow-sm); }
.badge svg { width: 18px; height: 18px; color: var(--green-ink); }
.bullets { margin-top: 26px; display: grid; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink-2); }
.bullets svg { width: 22px; height: 22px; flex: none; color: var(--green-ink); margin-top: 2px; }

.payflow { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.payflow__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payflow__head b { font-size: 18px; }
.payflow__steps { margin-top: 22px; display: grid; gap: 10px; }
.payflow__step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.payflow__step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(61,190,98,.16); color: var(--green-bright); font-weight: 900; }
.payflow__step b { display: block; font-size: 16px; }
.payflow__step span { color: #b9bdba; font-size: 14px; }
.payflow__methods { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.payflow__methods span { font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 99px; background: #fff; color: var(--ink); }

.domain { border-radius: var(--radius-xl); background: linear-gradient(160deg, var(--green-50), #fff 70%); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.urlbar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-sm); font-weight: 800; font-size: clamp(15px, 1.7vw, 18px); overflow: hidden; }
.urlbar svg { width: 18px; height: 18px; color: var(--green-ink); flex: none; }
.urlbar span { color: var(--muted); font-weight: 700; }
.urlbar--pro { border: 2px solid var(--ink); }
.domain__arrow { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-weight: 800; font-size: 14px; }
.domain__arrow::before, .domain__arrow::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.domain__list { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .domain__list { grid-template-columns: 1fr; } }
.domain__list li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.domain__list svg { width: 18px; height: 18px; color: var(--green-ink); flex: none; }
.tag-pro { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .04em; vertical-align: middle; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; max-width: 960px; margin: 0 auto; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--line); }
.plan--pro { background: var(--ink); color: #fff; border: 2px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(17,17,17,.6), 0 0 0 6px rgba(27,138,60,.18); }
.plan__ribbon { position: absolute; top: -14px; right: 28px; background: var(--green-ink); color: #fff; font-size: 13px; font-weight: 900; padding: 6px 14px; border-radius: 999px; letter-spacing: .02em; }
.plan__name { font-size: 15px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan--pro .plan__name { color: var(--green-bright); }
.plan__price { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.plan__price strong { font-size: clamp(48px, 6vw, 60px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.plan__price span { font-weight: 700; color: var(--muted); }
.plan--pro .plan__price span { color: #b9bdba; }
.plan__desc { margin-top: 12px; color: var(--muted); }
.plan--pro .plan__desc { color: #c9ccca; }
.plan .btn { margin-top: 24px; }
.plan__list { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan--pro .plan__list { border-top-color: rgba(255,255,255,.14); }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.plan__list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--green-ink); }
.plan--pro .plan__list svg { color: var(--green-bright); }
.plan__list .plan__list-head { font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan--pro .plan__list .plan__list-head { color: #b9bdba; }
.pricing-note { text-align: center; margin-top: 24px; color: var(--muted); font-size: 15px; }

.addons { display: grid; gap: 16px; }
@media (min-width: 900px) { .addons { grid-template-columns: repeat(3, 1fr); } }
.addon { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.addon h3 { margin-top: 16px; font-size: 21px; }
.addon p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.addon ul { margin-top: 16px; display: grid; gap: 8px; }
.addon li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.addon li svg { width: 18px; height: 18px; flex: none; color: var(--green-ink); margin-top: 3px; }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; min-width: 560px; border-collapse: collapse; }
.ptable th, .ptable td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; }
.ptable thead th { position: sticky; top: 0; background: #fff; font-size: 15px; vertical-align: bottom; }
.ptable thead th .p { display: block; font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.ptable thead th small { color: var(--muted); font-weight: 700; }
.ptable th:not(:first-child), .ptable td:not(:first-child) { text-align: center; width: 24%; }
.ptable .col-pro { background: var(--green-50); }
.ptable thead .col-pro { background: var(--green-50); }
.ptable tbody th { font-weight: 700; color: var(--ink-2); }
.ptable .group th { background: var(--bg-soft); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.ptable .group th.col-pro { background: var(--green-50); }
.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.yes { background: var(--green-ink); color: #fff; }
.yes svg { width: 15px; height: 15px; }
.no { color: var(--muted-2); font-weight: 900; }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 800; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--green-50); }
.faq .faq__a { padding: 0 22px 22px; color: var(--muted); }
.faq .faq__a p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(61,190,98,.28), transparent 65%); }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(61,190,98,.16), transparent 65%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 50px); max-width: 760px; margin: 0 auto; }
.cta-band p { margin: 16px auto 0; max-width: 560px; color: #c9ccca; font-size: 18px; }
.cta-band .claim { margin: 32px auto 0; }
.cta-band .claim__box { border-color: #fff; }
.cta-band .claim__hint { justify-content: center; color: #c9ccca; }
.cta-band .claim__hint svg { color: var(--green-bright); }
.cta-band .claim__error { color: #FF9C94; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: var(--section-y); }
.footer--flush { margin-top: 0; }
.footer__grid { display: grid; gap: 40px; }
@media (max-width: 819px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__brand img { height: 34px; width: auto; }
.footer__brand p { margin-top: 16px; color: var(--muted); max-width: 340px; font-size: 16px; }
.footer h4 { font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer ul { margin-top: 14px; display: grid; gap: 10px; }
.footer ul a { font-weight: 700; color: var(--ink-2); }
.footer ul a:hover { color: var(--green-ink); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 15px; font-weight: 600; }
.footer__bottom a { font-weight: 800; color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(27,138,60,.09), transparent 70%); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 60px); letter-spacing: -0.035em; max-width: 820px; margin: 0 auto; }
.page-hero .lead { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth { min-height: 100vh; display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth__main { display: flex; flex-direction: column; padding: 28px var(--gutter) 40px; }
.auth__main > .auth__logo img { height: 32px; width: auto; }
.auth__form-wrap { width: 100%; max-width: 440px; margin: auto; padding: 40px 0; }
.auth__form-wrap h1 { font-size: clamp(30px, 4vw, 38px); }
.auth__form-wrap > p { margin-top: 10px; color: var(--muted); }
.form { margin-top: 28px; display: grid; gap: 18px; }
.field label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field .err { font-size: 13px; color: var(--danger); font-weight: 700; margin-top: 6px; display: none; }
.field.has-error .err { display: block; }
.field.has-error .control { border-color: var(--danger); }
.control { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.control:focus-within { border-color: var(--green-ink); box-shadow: 0 0 0 4px rgba(27,138,60,.14); }
.control input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 16px; font-size: 16px; font-weight: 700; }
.control input::placeholder { color: #9aa09c; font-weight: 600; }
.control__prefix { padding: 0 0 0 16px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.control__prefix--box { align-self: stretch; display: grid; place-items: center; padding: 0 14px; background: var(--bg-soft); border-right: 1.5px solid var(--line-2); }
.control__prefix + input { padding-left: 4px; }
.control__prefix--box + input { padding-left: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--green-ink); margin-top: 2px; flex: none; }
.check a, .auth__alt a { color: var(--green-ink); font-weight: 800; }
.auth__alt { margin-top: 22px; text-align: center; color: var(--muted); }
.form-success { display: none; margin-top: 24px; padding: 18px; border-radius: 16px; background: var(--green-50); border: 1px solid var(--green-100); color: var(--ink); }
.form-success.is-visible { display: block; animation: drop .3s var(--ease); }
.form-success b { display: block; font-size: 17px; }
.form-success p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.demo-note { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--bg-soft); padding: 6px 12px; border-radius: 99px; margin-top: 18px; }
.auth__aside { display: none; position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 56px; }
@media (min-width: 960px) { .auth__aside { display: flex; flex-direction: column; justify-content: center; } }
.auth__aside::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(61,190,98,.25), transparent 65%); }
.auth__aside > * { position: relative; }
.auth__aside h2 { font-size: clamp(32px, 3.4vw, 44px); max-width: 480px; }
.auth__aside .checklist li { color: #e6e8e6; font-size: 17px; }
.auth__aside .checklist svg { color: var(--green-bright); }
.auth__card { margin-top: 40px; max-width: 420px; background: #fff; color: var(--ink); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg); }
.auth__card .urlbar { box-shadow: none; }
.auth__card small { display: block; margin-top: 10px; color: var(--muted); font-weight: 700; font-size: 13px; }

/* ==========================================================================
   Demo store (AB Fashion)
   ========================================================================== */
.store-preview-bar { background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.store-preview-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.store-preview-bar a { color: var(--green-bright); font-weight: 800; }
.store-preview-bar img { width: 20px; height: 20px; }
.store-preview-bar > .container > span { display: inline-flex; align-items: center; gap: 8px; }
.shop-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.shop-head__inner { display: flex; align-items: center; gap: 14px; height: 72px; }
.shop-logo { display: flex; align-items: center; gap: 12px; }
.shop-logo__mark { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #8E3B5E, #C4657A); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 16px; letter-spacing: -.02em; }
.shop-logo b { display: block; font-size: 19px; font-weight: 900; line-height: 1.1; }
.shop-logo small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.shop-search { flex: 1; max-width: 360px; margin-left: auto; display: none; }
@media (min-width: 760px) { .shop-search { display: flex; } }
.shop-search input { width: 100%; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; background: var(--bg-soft); font-weight: 700; outline: 0; }
.shop-search input:focus { border-color: var(--ink); background: #fff; }
.cart-btn { margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; font-weight: 800; }
@media (min-width: 760px) { .cart-btn { margin-left: 8px; } }
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--green); color: #fff; font-size: 12px; display: grid; place-items: center; }
.cart-btn.bump { animation: bump .4s var(--ease); }
@keyframes bump { 30% { transform: scale(1.08); } }
.shop-hero { padding-top: 28px; padding-bottom: 8px; }
.shop-banner { border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); background: linear-gradient(115deg, #2A1420 0%, #5E2440 55%, #8E3B5E 100%); color: #fff; display: grid; gap: 24px; align-items: center; overflow: hidden; position: relative; }
@media (min-width: 860px) { .shop-banner { grid-template-columns: 1.2fr 1fr; } }
.shop-banner small { font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: #FFD6E2; }
.shop-banner h1 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 8px; }
.shop-banner p { margin-top: 12px; color: #F3DCE5; max-width: 460px; }
.shop-banner .btn { margin-top: 22px; }
.shop-banner__art { display: none; justify-content: center; gap: 16px; }
@media (min-width: 860px) { .shop-banner__art { display: flex; } }
.shop-banner__art div { width: 150px; aspect-ratio: 3/4; border-radius: 22px; background: rgba(255,255,255,.12); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); }
.shop-banner__art div:nth-child(2) { transform: translateY(24px); }
.shop-banner__art svg { width: 64%; }
.shop-cats { display: flex; gap: 8px; overflow-x: auto; padding: 24px 0 8px; scrollbar-width: none; }
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cats button { flex: none; border: 1.5px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 800; font-size: 15px; transition: all .2s; }
.shop-cats button:hover { border-color: var(--ink); }
.shop-cats button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 16px 0 72px; }
@media (min-width: 760px) { .products { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .products { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.product { display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product__img { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; }
.product__img svg { width: 56%; height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.12)); }
.product__tag { position: absolute; top: 10px; left: 10px; background: #fff; font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 99px; }
.product__tag--sale { background: var(--ink); color: #fff; }
.product__body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.product__cat { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product__name { font-size: 16px; font-weight: 800; margin-top: 2px; line-height: 1.3; }
.product__price { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product__price strong { font-size: 18px; font-weight: 900; }
.product__price s { color: var(--muted-2); font-size: 14px; font-weight: 700; }
.product__price em { font-style: normal; color: var(--green-ink); font-size: 13px; font-weight: 900; }
.product .btn { margin-top: auto; }
.product__body .spacer { flex: 1; min-height: 12px; }
.product .btn.is-added { --b-bg: var(--green-ink); --b-bd: var(--green-ink); }

.drawer-overlay { position: fixed; inset: 0; background: rgba(17,17,17,.45); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; box-shadow: -20px 0 50px -20px rgba(0,0,0,.35); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 22px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer__empty { text-align: center; padding: 64px 12px; color: var(--muted); }
.drawer__empty svg { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--line-2); }
.drawer__empty b { display: block; color: var(--ink); font-size: 18px; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.citem__img { width: 64px; height: 76px; border-radius: 12px; display: grid; place-items: center; }
.citem__img svg { width: 60%; }
.citem b { display: block; font-weight: 800; font-size: 15px; line-height: 1.3; }
.citem span { font-weight: 800; font-size: 14px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; font-weight: 900; font-size: 16px; border-radius: 50%; }
.qty button:hover { background: var(--bg-soft); }
.qty output { min-width: 24px; text-align: center; font-weight: 900; font-size: 14px; }
.citem__remove { border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: underline; align-self: start; margin-top: 4px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 10px; background: var(--bg-soft); }
.drawer__row { display: flex; justify-content: space-between; font-weight: 700; color: var(--muted); }
.drawer__row--total { color: var(--ink); font-weight: 900; font-size: 19px; }
.drawer__pay { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer__pay span { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.drawer__secure { font-size: 13px; color: var(--muted); font-weight: 700; text-align: center; }

.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 20px; background: rgba(17,17,17,.5); }
.modal.is-open { display: grid; animation: fade .2s; }
.modal__card { width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 28px; text-align: center; box-shadow: var(--shadow-lg); animation: drop .3s var(--ease); }
.modal__card .icon-tile { margin: 0 auto; width: 56px; height: 56px; }
.modal__card h3 { margin-top: 16px; font-size: 24px; }
.modal__card p { margin-top: 8px; color: var(--muted); }
.modal__card .btn { margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }

.powered {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 800; color: var(--ink-2);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.powered:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.powered img { width: 24px; height: 24px; }
.powered strong { font-weight: 900; color: var(--ink); }
.shop-foot { border-top: 1px solid var(--line); padding: 28px 0 88px; color: var(--muted); font-size: 14px; font-weight: 600; }
.shop-foot .container { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.app { display: grid; min-height: 100vh; background: var(--bg-soft); }
@media (min-width: 1024px) { .app { grid-template-columns: 256px 1fr; background: linear-gradient(to right, #fff 255px, var(--line) 255px, var(--line) 256px, var(--bg-soft) 256px); } }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 120; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; transform: translateX(-100%); transition: transform .3s var(--ease); }
.sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) { .sidebar { position: sticky; top: 0; height: 100vh; width: auto; transform: none; } }
.sidebar__logo { padding: 4px 10px 20px; }
.sidebar__logo img { height: 30px; width: auto; }
.sidebar__store { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--bg-soft); margin-bottom: 16px; }
.sidebar__store .shop-logo__mark { width: 36px; height: 36px; font-size: 13px; }
.sidebar__store b { display: block; font-size: 15px; font-weight: 900; line-height: 1.2; }
.sidebar__store small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 800; font-size: 15px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.side-nav a svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.side-nav a:hover { background: var(--bg-soft); }
.side-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.side-nav a[aria-current="page"] svg { color: var(--green-bright); }
.side-nav .count { margin-left: auto; font-size: 12px; background: var(--green-50); color: var(--green-ink); padding: 1px 8px; border-radius: 99px; }
.side-nav a[aria-current="page"] .count { background: rgba(255,255,255,.15); color: #fff; }
.sidebar__upgrade { margin-top: auto; padding: 18px; border-radius: 18px; background: var(--ink); color: #fff; }
.sidebar__upgrade b { display: block; font-size: 16px; }
.sidebar__upgrade p { font-size: 13px; color: #c9ccca; margin-top: 4px; }
.sidebar__upgrade .btn { margin-top: 14px; }
.app__main { min-width: 0; }
.app__content > *, .dash-grid > * { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(246,247,245,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 3vw, 32px); }
.topbar h1 { font-size: 22px; }
.topbar .menu-btn { display: inline-grid; }
@media (min-width: 1024px) { .topbar .menu-btn { display: none; } }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar__url { display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.topbar__url svg { width: 16px; height: 16px; color: var(--green-ink); }
@media (min-width: 720px) { .topbar__url { display: inline-flex; } }
.sample-banner { margin: 20px clamp(16px, 3vw, 32px) 0; padding: 12px 16px; border-radius: 14px; background: #FFF8E6; border: 1px solid #F3DFAE; color: #6B4A00; font-weight: 700; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.sample-banner svg { width: 18px; height: 18px; flex: none; }
.sample-banner a { color: #6B4A00; text-decoration: underline; font-weight: 800; }
.app__content { padding: 20px clamp(16px, 3vw, 32px) 48px; display: grid; gap: 20px; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1200px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.kpi small { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.kpi small svg { width: 18px; height: 18px; color: var(--green-ink); }
.kpi strong { display: block; margin-top: 8px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; letter-spacing: -0.03em; }
.kpi span { font-size: 13px; font-weight: 700; color: var(--muted); }
.kpi .up { color: var(--green-ink); font-weight: 900; }
.dash-grid { display: grid; gap: 20px; }
@media (min-width: 1200px) { .dash-grid { grid-template-columns: 2fr 1fr; } }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card__head h2 { font-size: 18px; }
.card__head p { font-size: 14px; color: var(--muted); font-weight: 700; }
.seg { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.chart { position: relative; margin-top: 16px; }
.chart svg { width: 100%; height: 300px; overflow: visible; }
@media (min-width: 1200px) { .chart svg { height: 310px; } }
.chart__tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 800; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .15s; }
.chart__tip small { display: block; color: #b9bdba; font-weight: 700; font-size: 11px; }
.chart__tip.is-visible { opacity: 1; }
.list { margin-top: 14px; display: grid; gap: 4px; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.list li:last-child { border-bottom: 0; }
.list .thumb { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.list .thumb svg { width: 62%; }
.list b { font-weight: 800; display: block; line-height: 1.25; }
.list small { color: var(--muted); font-weight: 700; font-size: 13px; }
.list .end { margin-left: auto; text-align: right; font-weight: 900; white-space: nowrap; }
.stock-low { color: #8A5300; } .stock-out { color: #A8231A; }
.bars { margin-top: 16px; display: grid; gap: 14px; }
.bars div { display: grid; gap: 6px; }
.bars span { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; }
.bars span em { font-style: normal; color: var(--muted); }
.bars i { display: block; height: 10px; border-radius: 99px; background: var(--bg-soft-2); overflow: hidden; }
.bars i b { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.orders-table { width: 100%; border-collapse: collapse; margin-top: 12px; min-width: 720px; }
.orders-table th { text-align: left; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.orders-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; white-space: nowrap; }
.orders-table tr:last-child td { border-bottom: 0; }
.orders-table td b { font-weight: 900; }
.orders-table td small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.orders-table tbody tr { transition: background-color .15s; }
.orders-table tbody tr:hover { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.scrim { position: fixed; inset: 0; background: rgba(17,17,17,.4); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.hide-sm { display: inline; } @media (max-width: 600px) { .hide-sm { display: none !important; } }

/* ==========================================================================
   Store templates gallery
   ========================================================================== */
.tpl-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tpl-grid--home { }
@media (min-width: 1100px) { .tpl-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.tpl { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.tpl:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tpl[hidden] { display: none; }
.tpl__preview { display: block; position: relative; background: var(--soft, var(--bg-soft)); border-bottom: 1px solid var(--line); overflow: hidden; }
.tpl__bar { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.tpl__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.tpl__bar em { margin-left: 8px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 1px 10px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl__preview img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.tpl:hover .tpl__preview img { transform: scale(1.03); }
.tpl__meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tpl__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tpl__title h3 { font-size: 20px; }
.tpl__dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); flex: none; }
.tpl__meta p { color: var(--muted); font-size: 15px; font-weight: 600; }
.tpl__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }
.tpl__actions .btn { flex: 1 1 auto; padding: 0 14px; white-space: nowrap; }
.tpl-more { text-align: center; margin-top: 40px; }
.tpl-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 36px; max-width: 1000px; }
.tpl-filters button { border: 1.5px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--ink-2); transition: all .2s; }
.tpl-filters button:hover { border-color: var(--ink); }
.tpl-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tpl-filters button span { opacity: .6; font-weight: 700; margin-left: 4px; }
.tpl-count { text-align: center; color: var(--muted); font-weight: 700; margin: -20px 0 28px; font-size: 15px; }
.tpl-perks { display: grid; gap: 14px; margin-top: 56px; }
@media (min-width: 820px) { .tpl-perks { grid-template-columns: repeat(3, 1fr); } }
.tpl-perks div { padding: 22px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.tpl-perks b { display: block; font-size: 18px; margin-top: 12px; }
.tpl-perks p { color: var(--muted); margin-top: 4px; font-size: 15px; }
.select { width: 100%; border: 0; outline: 0; background: transparent; padding: 14px 16px; font-size: 16px; font-weight: 700; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.err-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err-page .code { font-size: clamp(80px, 14vw, 160px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.err-page .code span { color: var(--green); }
