/* ============================================================
   LoKa · Merchant Studio (website/loka/merchant) — /loka-merchant
   ------------------------------------------------------------
   From SOURCE/app/loka-merchant/page.tsx of the Dékolé Global
   reference (.lm-* in globals.css, loka-system.css and
   loka-ux-refinement.css, with the sizes the LoKa type layer
   gives them): a light page with the hero + operating status,
   the white back-office console (metrics, then the state card:
   open the merchant portal, sign in as a merchant, or "link
   your business"; your communities), the three selling modes
   with their markets, the dark "built for trust" band and the
   studio footer. The listings themselves are managed in the
   merchant portal since 12 Nov 2026 (css/merchant-loka.css).
   Everything is scoped under .lk-merchant .lkm; classes are
   .lkm-*.
   ============================================================ */

.lk-merchant .lkm {
  --lkm-ink: #0d1713;
  --lkm-line: #d4dfdb;
  --lkm-mono: var(--lk-mono, ui-monospace, monospace);
  --lkm-display: clamp(3.15rem, 6.25vw, 6.4rem);
  --lkm-section: clamp(2.25rem, 4.25vw, 4.5rem);
  --lkm-lead: clamp(1.03rem, 1.2vw, 1.22rem);
  min-height: 100vh;
  color: var(--lkm-ink);
  background:
    radial-gradient(circle at 78% 5%, rgba(119, 92, 255, .18), transparent 28%),
    radial-gradient(circle at 8% 18%, rgba(82, 227, 192, .18), transparent 26%),
    linear-gradient(180deg, #fff, #edf7f3);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lk-merchant .lkm :where(*:not(.fa)) { font-family: inherit; }
.lk-merchant .lkm :is(button, input, select, textarea) { font: inherit; }
.lk-merchant .lkm :is(input, select, textarea) { font-size: max(16px, 1em); }
.lk-merchant .lkm button { cursor: pointer; touch-action: manipulation; }
.lk-merchant .lkm :is(h1, h2, h3, p) { margin: 0; padding: 0; color: inherit; font-weight: 400; }
.lk-merchant .lkm p { line-height: 1.6; text-wrap: pretty; }
.lk-merchant .lkm :is(h1, h2) { text-wrap: balance; }
.lk-merchant .lkm [hidden] { display: none !important; }
.lk-merchant .lkm :is(a, button, input, select, textarea):focus-visible { outline: 3px solid rgba(105, 236, 210, .48); outline-offset: 3px; }
.lk-merchant .lkm .is-soon em { margin-left: 6px; font-style: normal; opacity: .7; }

/* Kickers */
.lk-merchant .lkm-console > header span,
.lk-merchant .lkm-modes > header > span,
.lk-merchant .lkm-trust > div:first-child > span {
  color: #7757d7;
  font: 800 10px/1.35 var(--lkm-mono);
  letter-spacing: .12em;
}

/* ============================================================
   Hero
   ============================================================ */
.lk-merchant .lkm-hero { padding: 82px max(28px, calc((100vw - 1420px) / 2)) 70px; }
.lk-merchant .lkm-signal { color: #147b63; font: 800 10px/1.3 var(--lkm-mono); letter-spacing: .16em; }
.lk-merchant .lkm-signal i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #22c59e;
  box-shadow: 0 0 13px #22c59e;
}
.lk-merchant .lkm-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 7vw;
  align-items: end;
  margin-top: 28px;
}
.lk-merchant .lkm-hero-grid > div { min-width: 0; }
.lk-merchant .lkm-hero-grid h1 {
  max-width: 900px;
  color: #0b1411;
  font-size: var(--lkm-display);
  font-weight: 720;
  line-height: .94;
  letter-spacing: -.062em;
}
.lk-merchant .lkm-hero-grid h1 em {
  color: transparent;
  background: linear-gradient(90deg, #31b994, #7b69ed 62%, #df4e86);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
}
.lk-merchant .lkm-hero-grid > div > p {
  max-width: 68ch;
  margin-top: 30px;
  color: #4e6059;
  font-size: 18px;
  font-weight: 480;
  line-height: 1.64;
  opacity: .94;
}
.lk-merchant .lkm-hero-grid > div > div { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.lk-merchant .lkm-hero-grid > div > div :is(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #17231e;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: background .2s;
}
.lk-merchant .lkm-hero-grid > div > div button { color: #fff; background: #111c18; }
.lk-merchant .lkm-hero-grid > div > div a { color: #244038; background: #fff; }
.lk-merchant .lkm-hero-grid > div > div a:hover { background: #f1f7f4; }
.lk-merchant .lkm-hero-grid > aside {
  padding: 24px;
  border: 1px solid #cbd9d4;
  border-radius: 20px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 18px 55px rgba(22, 49, 40, .08);
}
.lk-merchant .lkm-hero-grid > aside > span { color: #7b55d5; font: 800 9px/1.3 var(--lkm-mono); letter-spacing: .12em; }
.lk-merchant .lkm-hero-grid > aside > strong { display: block; margin: 13px 0 8px; font-size: 23px; font-weight: 700; }
.lk-merchant .lkm-hero-grid > aside > p { color: #52625c; font-size: 18px; font-weight: 480; line-height: 1.64; opacity: .94; }
.lk-merchant .lkm-hero-grid > aside > a { display: inline-block; margin-top: 14px; color: #126e57; font-size: 12px; font-weight: 850; text-decoration: none; }
.lk-merchant .lkm-hero-grid > aside > a:hover { text-decoration: underline; }

/* ============================================================
   Back-office console
   ============================================================ */
.lk-merchant .lkm-console {
  max-width: 1420px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #cdd9d5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 25px 75px rgba(18, 44, 35, .08);
  scroll-margin-top: 112px;
}
.lk-merchant .lkm-console > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.lk-merchant .lkm-console > header h2 {
  margin-top: 7px;
  color: #112521;
  font-size: var(--lkm-section);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.052em;
}
.lk-merchant .lkm-console > header nav { display: flex; flex-wrap: wrap; gap: 7px; }
.lk-merchant .lkm-console > header nav > :is(button, a) {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #d1dbd7;
  border-radius: 999px;
  color: #304039;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.lk-merchant .lkm-console > header nav > :is(button, a):hover { border-color: #9fb3ac; }
.lk-merchant .lkm-console > header nav > :is(button, a):first-child { border-color: #121d19; color: #fff; background: #121d19; }
.lk-merchant .lkm-console > header nav > button.is-on { border-color: #22c59e; color: #0a5a47; background: #e5fbf4; }

.lk-merchant .lkm-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  border-block: 1px solid #d9e1de;
}
.lk-merchant .lkm-metrics article { display: grid; gap: 4px; padding: 20px; border-right: 1px solid #dde4e2; }
.lk-merchant .lkm-metrics article:last-child { border-right: 0; }
.lk-merchant .lkm-metrics span { color: #71807a; font: 800 9px/1.3 var(--lkm-mono); }
.lk-merchant .lkm-metrics strong { color: #112521; font-size: 27px; font-weight: 700; letter-spacing: -.045em; }
.lk-merchant .lkm-metrics small { color: #65746e; font-size: .76rem; line-height: 1.4; opacity: .9; }

/* Sign-in state (guests) */
.lk-merchant .lkm-auth-state {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 24px;
  padding: 34px;
  border: 1px solid #d8e1de;
  border-radius: 17px;
  background: linear-gradient(135deg, #f1fffa, #f5f1ff);
}
.lk-merchant .lkm-auth-state span,
.lk-merchant .lkm-pipeline-key { color: #7658d2; font: 800 9px/1.3 var(--lkm-mono); letter-spacing: .13em; }
.lk-merchant .lkm-auth-state h3 { max-width: 720px; font-size: 30px; letter-spacing: -.045em; }
.lk-merchant .lkm-auth-state p { max-width: 720px; color: #54645e; font-size: 13px; }
.lk-merchant .lkm-auth-state a {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: #121d19;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

/* ============================================================
   Selling modes
   ============================================================ */
.lk-merchant .lkm-modes { max-width: 1420px; margin: 90px auto 0; padding: 0 28px; }
.lk-merchant .lkm-modes > header { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: end; }
.lk-merchant .lkm-modes > header > span { align-self: start; }
.lk-merchant .lkm-modes > header h2 {
  color: #112521;
  font-size: var(--lkm-section);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.052em;
}
.lk-merchant .lkm-modes > header p {
  grid-column: 2;
  max-width: 68ch;
  color: #506159;
  font-size: var(--lkm-lead);
  font-weight: 480;
  line-height: 1.64;
  opacity: .94;
}
.lk-merchant .lkm-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 45px;
  border-block: 1px solid #cdd9d5;
}
.lk-merchant .lkm-mode-grid > button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 42px;
  padding: 28px;
  border: 0;
  border-right: 1px solid #d4dfdb;
  color: #24332d;
  background: transparent;
  text-align: left;
}
.lk-merchant .lkm-mode-grid > button:last-child { border-right: 0; }
/* As on the reference: the modes are buttons; the picked one is tinted. */
.lk-merchant .lkm-mode-grid > button { font: inherit; cursor: pointer; }
.lk-merchant .lkm-mode-grid > button.active { background: linear-gradient(155deg, #edfff9, #f1efff); }
.lk-merchant .lkm-mode-code { color: #7658d2; font: 800 9px/1.3 var(--lkm-mono); }
.lk-merchant .lkm-mode-grid > button > strong { margin: 55px 0 14px; font-size: 24px; font-weight: 700; line-height: 1.5; }
.lk-merchant .lkm-mode-text { color: #56665f; font-size: 13px; line-height: 1.55; }
.lk-merchant .lkm-mode-features { display: grid; gap: 8px; margin-top: 20px; color: #35473f; font-size: 12px; line-height: 1.5; }
.lk-merchant .lkm-mode-grid > button > b { margin-top: auto; padding-top: 2px; color: #0b765b; font-size: 11px; font-weight: 700; }
.lk-merchant .lkm-modes > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px;
  border-bottom: 1px solid #d2ddda;
}
.lk-merchant .lkm-modes > footer > div { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: center; }
.lk-merchant .lkm-modes > footer b { color: #b2295b; font: 800 9px/1.3 var(--lkm-mono); }
.lk-merchant .lkm-modes > footer p { color: #5e6d67; font-size: 11px; }
.lk-merchant .lkm-rules { flex: 0 0 auto; color: #0f6f58; font-size: 11px; font-weight: 800; text-decoration: none; }
.lk-merchant a.lkm-rules:hover { text-decoration: underline; }

/* ============================================================
   Built for trust
   ============================================================ */
.lk-merchant .lkm-trust { margin-top: 95px; padding: 90px max(28px, calc((100vw - 1420px) / 2)); color: #fff; background: #101b17; }
.lk-merchant .lkm-trust > div:first-child { display: grid; grid-template-columns: .6fr 1.4fr; align-items: start; }
.lk-merchant .lkm-trust > div:first-child > span { color: #72e6ca; }
.lk-merchant .lkm-trust h2 { max-width: 830px; font-size: clamp(3.4rem, 5.5vw, 6rem); line-height: .86; letter-spacing: -.075em; }
.lk-merchant .lkm-trust > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 55px;
  border-block: 1px solid rgba(255, 255, 255, .16);
}
.lk-merchant .lkm-trust article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 260px;
  padding: 25px;
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.lk-merchant .lkm-trust article > span { color: #78e6cc; font: 800 9px/1.3 var(--lkm-mono); }
/* The reference's type layer turns these titles near-black on the dark
   band; they stay readable here. */
.lk-merchant .lkm-trust article > strong { margin-top: auto; color: #f3fffc; font-size: 18px; font-weight: 700; }
.lk-merchant .lkm-trust article > p { color: #9db0a9; font-size: .96rem; line-height: 1.58; opacity: .94; }

/* ============================================================
   Studio footer
   ============================================================ */
.lk-merchant .lkm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 35px max(28px, calc((100vw - 1420px) / 2));
  border-top: 1px solid #d5dfdc;
  background: #f9fbfa;
}
.lk-merchant .lkm-footer > div { display: grid; }
.lk-merchant .lkm-footer strong { font-size: 19px; font-weight: 700; }
.lk-merchant .lkm-footer > div > span { color: #68766f; font-size: 11px; }
.lk-merchant .lkm-footer nav { display: flex; flex-wrap: wrap; gap: 17px; }
.lk-merchant .lkm-footer nav > :is(a, span) { color: #405049; font-size: 11px; font-weight: 700; text-decoration: none; }
.lk-merchant .lkm-footer nav > a:hover { text-decoration: underline; }

/* ============================================================
   Phase 3 (real data): photos, the business-link state, your
   communities, the markets of a mode and the catalog picker
   ============================================================ */
.lk-merchant .lkm-hero-grid > div > div a.is-primary { color: #fff; background: #111c18; }
.lk-merchant .lkm-hero-grid > div > div a.is-primary:hover { background: #24332d; }

/* No business yet. */
.lk-merchant .lkm-link-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lk-merchant .lkm-link-list button {
  display: inline-grid;
  justify-items: start;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #121d19;
  font-size: 12px;
  font-weight: 850;
}
.lk-merchant .lkm-link-list button small { color: #b9cbc4; font-size: 10px; font-weight: 600; }
.lk-merchant .lkm-link-list button:disabled { opacity: .6; cursor: progress; }
.lk-merchant .lkm-auth-state p.lkm-pending { padding: 10px 14px; border-radius: 12px; color: #6248a6; background: #ece6ff; font-weight: 700; }

/* Your communities. */
.lk-merchant .lkm-communities {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #d8e1de;
  border-radius: 17px;
  background: linear-gradient(135deg, #f7fffc, #f7f4ff);
}
.lk-merchant .lkm-communities > header { display: grid; gap: 8px; }
.lk-merchant .lkm-communities > header span { color: #7658d2; font: 800 9px/1.3 var(--lkm-mono); letter-spacing: .13em; }
.lk-merchant .lkm-communities > header h3 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.lk-merchant .lkm-communities > header p { color: #5a6963; font-size: 12px; }
.lk-merchant .lkm-communities ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lk-merchant .lkm-communities li a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px 12px 9px 9px;
  border: 1px solid #dbe4e1;
  border-radius: 14px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}
.lk-merchant .lkm-communities li a:hover { border-color: #9fb3ac; }
.lk-merchant .lkm-cm-cover {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #22c59e, #7658d2);
  font-size: 13px;
  font-weight: 800;
}
.lk-merchant .lkm-cm-cover img { width: 100%; height: 100%; object-fit: cover; }
.lk-merchant .lkm-communities li a > span:nth-child(2) { display: grid; min-width: 0; }
.lk-merchant .lkm-communities li strong { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lk-merchant .lkm-communities li small { color: #63726c; font-size: 11px; }
.lk-merchant .lkm-communities li em { color: #7b4f60; font-style: normal; font-weight: 800; }
.lk-merchant .lkm-communities li b { color: #126e57; font-size: 11px; font-weight: 850; white-space: nowrap; }
.lk-merchant .lkm-cm-start {
  justify-self: start;
  align-self: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: #121d19;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

/* A mode's markets. */
.lk-merchant .lkm-mode-grid > button > .lkm-mode-markets { display: block; padding-top: 22px; color: #7658d2; font: 800 10px/1.5 var(--lkm-mono); letter-spacing: .06em; }

/* ============================================================
   Breakpoints (the reference's 1000 and 700)
   ============================================================ */
@media (max-width: 1000px) {
  .lk-merchant .lkm-hero-grid { grid-template-columns: 1fr; }
  .lk-merchant .lkm-console { margin-inline: 20px; }
  .lk-merchant .lkm-modes { padding-inline: 20px; }
  .lk-merchant .lkm-mode-grid { grid-template-columns: 1fr; }
  .lk-merchant .lkm-mode-grid > button { min-height: 300px; border-right: 0; border-bottom: 1px solid #d4dfdb; }
  .lk-merchant .lkm-trust > div:last-child { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .lk-merchant .lkm {
    --lkm-display: clamp(2.65rem, 13vw, 4.6rem);
    --lkm-section: clamp(2rem, 9.5vw, 3.25rem);
    --lkm-lead: 1rem;
  }
}

@media (max-width: 700px) {
  .lk-merchant .lkm-hero { padding: 58px 18px; }
  /* The reference keeps 18px here too (its .loka-merchant-page.loka-merchant-page .lm-hero p rule wins). */
  .lk-merchant .lkm-hero-grid > div > div { flex-direction: column; align-items: stretch; }
  .lk-merchant .lkm-hero-grid > div > div :is(button, a) { justify-content: center; }
  .lk-merchant .lkm-console { margin-inline: 10px; padding: 18px; }
  .lk-merchant .lkm-console > header { flex-direction: column; align-items: flex-start; }
  .lk-merchant .lkm-console > header nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .lk-merchant .lkm-console > header nav > button:first-child,
  .lk-merchant .lkm-console > header nav > a:not([data-lkm-live]) { grid-column: 1 / -1; }
  .lk-merchant .lkm-metrics { grid-template-columns: 1fr 1fr; }
  .lk-merchant .lkm-metrics article:nth-child(2) { border-right: 0; }
  .lk-merchant .lkm-metrics article:nth-child(-n + 2) { border-bottom: 1px solid #dde4e2; }
  .lk-merchant .lkm-auth-state { padding: 24px; }
  .lk-merchant .lkm-modes { margin-top: 70px; }
  .lk-merchant .lkm-modes > header { grid-template-columns: 1fr; }
  .lk-merchant .lkm-modes > header :is(h2, p) { grid-column: 1; }
  .lk-merchant .lkm-modes > footer { flex-direction: column; align-items: flex-start; }
  .lk-merchant .lkm-trust { padding: 70px 20px; }
  .lk-merchant .lkm-trust > div:first-child { grid-template-columns: 1fr; }
  .lk-merchant .lkm-trust h2 { margin-top: 20px; font-size: 4rem; }
  .lk-merchant .lkm-trust > div:last-child { grid-template-columns: 1fr; }
  .lk-merchant .lkm-trust article { min-height: 220px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .lk-merchant .lkm-footer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 30px 20px; }
  .lk-merchant .lkm-communities { grid-template-columns: 1fr; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .lk-merchant .lkm * { transition: none !important; }
}

/* Listings live in the merchant portal (LOKA_MERCHANT_PORTAL_PLAN.md, 12 Nov 2026):
   the console's state cards send a merchant there. */
.lk-merchant .lkm-state-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-merchant .lkm-auth-state .lkm-state-links a.is-light { border: 1px solid #c9d6d1; color: #121d19; background: #fff; }
.lk-merchant .lkm-auth-state .lkm-state-links a.is-light:hover { border-color: #8fa69e; }
.lk-merchant .lkm-auth-state p.lkm-state-note { color: #54645e; font-size: 12px; }
.lk-merchant .lkm-auth-state p.lkm-state-note a {
  display: inline; min-height: 0; margin: 0; padding: 0; border-radius: 0;
  color: #126e57; background: none; font-size: 12px; text-decoration: underline;
}
/* Another person's merchant login in this browser (12 Nov 2026): named, not shown as the member's. */
.lk-merchant .lkm-other-portal { margin-top: 24px; padding: 14px 18px; border: 1px solid #f0d28a; border-radius: 14px; color: #6b4a06; background: #fff8e6; font-size: 13px; line-height: 1.55; }
.lk-merchant .lkm-other-portal a { color: #126e57; font-weight: 800; text-decoration: underline; white-space: nowrap; }
