/* Sellersbiz landing page
   Palette from the logo: blue #2F3393, red #E31B23, on white and deep navy. */
:root {
  --ink: #161936;
  --muted: #555A78;
  --brand: #2F3393;       /* logo blue */
  --brand-deep: #1B1E5C;  /* dark sections */
  --brand-soft: #DCDDF4;
  --accent: #E31B23;      /* logo red */
  --accent-deep: #C4141B;
  --paper: #FFFFFF;
  --mist: #F1F2FA;
  --line: #D9DBEC;
  --sp: #EE4D2D;   /* Shopee dot */
  --lz: #0F146D;   /* Lazada dot */
  --tt: #161936;   /* TikTok Shop dot */

  --display: 'Bricolage Grotesque', 'Noto Sans', system-ui, sans-serif;
  --body: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
}
:lang(zh) { --display: 'Noto Sans SC', 'Bricolage Grotesque', sans-serif; --body: 'Noto Sans SC', 'Noto Sans', sans-serif; }
:lang(ta) { --display: 'Noto Sans Tamil', 'Bricolage Grotesque', sans-serif; --body: 'Noto Sans Tamil', 'Noto Sans', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3 { line-height: 1.35; letter-spacing: 0; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0.01em; line-height: 1.3; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-tape { background: var(--accent); color: #fff; }
.btn-tape:hover { background: var(--accent-deep); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-green { background: var(--brand); color: #fff; }
.btn-green:hover { background: var(--brand-deep); }
.btn-outline { color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--brand); }
.brand-mark { display: inline-grid; place-items: center; flex: none; }
.brand-mark img { width: 38px; height: auto; }
.brand-foot .brand-mark { background: #fff; width: 34px; height: 34px; border-radius: 8px; }
.brand-foot .brand-mark img { width: 25px; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lang-pick select {
  appearance: none; -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23161936' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 28px 7px 12px; font: inherit; font-size: 0.9rem; cursor: pointer;
}
.lang-pick select option { color: var(--ink); }
.link-login { text-decoration: none; font-size: 0.95rem; white-space: nowrap; color: var(--brand); font-weight: 600; }
.link-login:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: var(--brand-deep); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.02;
  max-width: 15ch;
}
:lang(zh) .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 13em; line-height: 1.2; font-weight: 700; }
:lang(ta) .hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 22ch; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
:lang(ms) .hero h1 { max-width: 17ch; }
.lead { margin-top: 24px; font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 54ch; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: rgba(255,255,255,.6); }

/* The ledger: a thermal shipping label */
.ledger {
  position: relative; margin: 0; background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: 28px 28px 22px;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.55);
  transform: rotate(1.2deg);
  max-width: 440px; justify-self: end; width: 100%;
}
.ledger::before, .ledger::after { /* perforated top and bottom edges */
  content: ''; position: absolute; left: 0; right: 0; height: 8px;
  background: radial-gradient(circle at 6px 4px, var(--brand-deep) 3px, transparent 3.5px) repeat-x;
  background-size: 12px 8px;
}
.ledger::before { top: -4px; }
.ledger::after { bottom: -4px; }
.ledger-tape {
  position: absolute; top: -16px; left: 50%; width: 120px; height: 32px; margin-left: -60px;
  background: rgba(227,27,35,.85); transform: rotate(-3deg);
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.ledger-title { font-weight: 700; font-size: 0.95rem; }
.ledger-sku { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.ledger-product { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.ledger-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.ledger-rows li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 10px; margin: 0 -10px; border-bottom: 1px dashed var(--line);
  border-radius: 4px; transition: background-color .3s;
}
.ledger-rows li.row-wh { border-bottom: 1px solid var(--ink); }
.ledger-rows li.hit { background: #FDE9EA; }
.store { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-sp { background: var(--sp); }
.dot-lz { background: var(--lz); }
.dot-tt { background: var(--tt); box-shadow: 2px 0 0 #25F4EE, -2px 0 0 #FE2C55; }
.dot-wh { background: var(--brand); border-radius: 2px; }
.qty { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: right; }
.qty.tick { animation: tick .6s ease-out; }
@keyframes tick { 0% { color: var(--brand); transform: translateY(-4px); } 100% { color: var(--ink); transform: none; } }
.ledger-status { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 0.92rem; min-height: 2.8em; color: var(--muted); }
.ledger-status.is-order { color: var(--ink); font-weight: 600; }
.ledger-status.is-sync { color: var(--brand); font-weight: 600; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.is-order .pulse { background: var(--accent-deep); animation: pulse 1s ease-in-out infinite; }
.is-sync .pulse { background: var(--brand); }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
.ledger-barcode {
  margin-top: 14px; height: 38px; width: 308px; max-width: 100%;
  background: url("../img/barcode-ledger.svg") left center / 100% 100% no-repeat;
}

/* Marketplace strip */
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 72px; padding: 22px 24px; border-top: 1px solid rgba(255,255,255,.12); }
.strip-label { color: rgba(255,255,255,.6); font-size: 0.9rem; }
.strip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.strip-list li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.05rem; }
.strip-list .dot-tt { background: #fff; }
.strip-list .dot-lz { background: #8C92FF; }
.strip-countries { margin-left: auto; }
.strip-countries li { font-weight: 500; color: rgba(255,255,255,.75); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.sec { padding: 104px 0; scroll-margin-top: 68px; }
.sec-mist { background: var(--mist); }
.sec-ink { background: var(--brand); color: #fff; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.body-lg { margin-top: 18px; font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--line); }
.tabs [role="tab"] {
  appearance: none; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--muted);
  padding: 12px 16px; margin-bottom: -2px; border-bottom: 3px solid transparent;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.panel { padding-top: 40px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; max-width: 14ch; }
:lang(ta) .panel h3 { font-size: 1.45rem; max-width: none; }
.feat-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.feat-list > div { border-top: 2px solid var(--ink); padding-top: 14px; }
.feat-list dt { font-weight: 700; font-size: 1.05rem; }
.feat-list dd { margin: 6px 0 0; color: var(--muted); }
.soon { font-style: normal; font-size: 0.78rem; font-weight: 600; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }

/* Bundle calculator */
.calc { background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 8px 24px 0; }
.calc-row { display: grid; grid-template-columns: 2.4rem 1fr auto 1fr auto 3rem; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.calc-item { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; border-radius: 4px; }
.calc-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.calc-num small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.calc-op { color: var(--muted); font-size: 1.3rem; }
.calc-res { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.7rem; text-align: right; color: var(--muted); }
.calc-res.win { color: var(--brand); }
.calc-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 20px; flex-wrap: wrap; }
.calc-total > span { color: var(--muted); font-size: 0.95rem; }
.calc-total b { background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 4px; font-size: 1.05rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--brand);
}
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 26px; left: 56px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps p { margin-top: 8px; color: var(--muted); }

/* Apps */
.sec-ink h2 { color: #fff; }
.apps { margin: 32px 0 0; display: grid; gap: 22px; }
.apps > div { border-left: 3px solid rgba(255,255,255,.55); padding-left: 18px; }
.apps dt { font-weight: 700; font-size: 1.1rem; }
.apps dd { margin: 4px 0 0; color: rgba(255,255,255,.8); }
.label-card {
  justify-self: center; width: 310px; aspect-ratio: 105 / 148; background: var(--paper); color: var(--ink);
  border-radius: 4px; padding: 20px; position: relative; transform: rotate(-2deg);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 10px;
}
.lc-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--ink); padding-bottom: 10px; }
.lc-top img { width: 30px; height: auto; }
.lc-mp { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; }
.lc-bars { height: 64px; background: url("../img/barcode-label.svg") center / 100% 100% no-repeat; }
.lc-track { margin-top: -6px; text-align: center; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; }
.lc-to { border-top: 1px dashed var(--line); padding-top: 10px; font-size: 0.85rem; line-height: 1.45; }
.lc-to span { display: block; font-size: 0.72rem; color: var(--muted); }
.lc-to b { display: block; font-size: 0.98rem; }
.lc-to p { color: var(--ink); }
.lc-grid { margin-top: auto; display: grid; grid-template-columns: 1.6fr 0.8fr 1fr; border: 2px solid var(--ink); }
.lc-grid div { padding: 8px 10px; min-width: 0; }
.lc-grid div + div { border-left: 2px solid var(--ink); }
.lc-grid span { display: block; font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-grid b { font-size: 0.95rem; white-space: nowrap; }
:lang(ta) .lc-stamp { font-size: 1rem; }
.lc-stamp {
  position: absolute; right: 14px; bottom: 92px; transform: rotate(-10deg);
  border: 3px solid var(--brand); color: var(--brand); background: rgba(255,255,255,.9);
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; padding: 4px 14px; border-radius: 6px;
}

/* Languages */
.lang-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lang-buttons button {
  font: inherit; font-size: 1.35rem; font-weight: 600; text-align: left;
  padding: 22px 24px; background: var(--paper); color: var(--ink);
  border: 2px solid var(--line); border-radius: 6px; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.lang-buttons button[lang="zh"] { font-family: 'Noto Sans SC', sans-serif; }
.lang-buttons button[lang="ta"] { font-family: 'Noto Sans Tamil', sans-serif; }
.lang-buttons button:hover { border-color: var(--brand); }
.lang-buttons button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }

/* Contact */
.contact { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Footer */
.foot { background: var(--brand-deep); color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.foot-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.brand-foot { color: #fff; font-size: 1.15rem; }
.foot-row p { margin-top: 12px; max-width: 40ch; font-size: 0.95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: flex-start; }
.foot-links a { text-decoration: none; font-size: 0.95rem; }
.foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.85rem; color: rgba(255,255,255,.55); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .link-login { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .panel, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .ledger { justify-self: start; transform: rotate(0.6deg); }
  .panel h3 { max-width: none; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -12px rgba(22,25,54,.25);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .top-row { position: relative; gap: 16px; }
  .strip-countries { margin-left: 0; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .sec { padding: 72px 0; }
  .hero { padding-top: 48px; }
  .strip { margin-top: 56px; }
  .feat-list { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li:not(:last-child)::after { display: none; }
  .top-actions .btn-tape { display: none; }
  .lang-buttons button { font-size: 1.1rem; padding: 16px 18px; }
  .calc { padding: 4px 16px 0; }
  .calc-row { grid-template-columns: 2.2rem 1fr auto 1fr auto 2.4rem; gap: 6px; }
  .calc-num { font-size: 1.25rem; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs [role="tab"] { white-space: nowrap; }
  .label-card { width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
