/* Providea Loyalty demo: screen styles. Builds on ui.css (the Providea Influence design system). */
@layer screens {
  /* Providea Loyalty colour mode (Figma file iTB6C2Lj8WAcHrZ3cWX10e, PI Semantic modes "Loyalty Light/Dark", 18 Nov 2026):
     crimson primary and peach soft fills; neutrals and status colours stay as in Influence. */
  :root {
    --bg-brand: #6e1418; --bg-brand-raised: #8a1c22; --bg-brand-subtle: #ffe9dc; --bg-warm: #ffe9dc;
    --text-brand: #a51d26; --text-on-brand-muted: #ffceb4; --text-accent: #ffceb4; --border-on-brand: #8a1c22;
    --action-primary: #c4232c; --action-primary-hover: #a51d26; --action-on-primary: #ffffff; --action-accent: #ffceb4; --action-on-accent: #6e1418; --focus-ring: #ff9f80;
    --glow-emerald: #e04848; --glow-lime: #ffba95;
    --frost-soft: radial-gradient(120% 140% at 100% 0%, #ffceb4 0%, rgb(255 206 180 / 0) 55%), radial-gradient(90% 120% at 85% 100%, #fff3ea 0%, rgb(255 243 234 / 0) 60%), linear-gradient(135deg, #fff6f0 0%, #ffe9dc 100%);
    --frost-strong: radial-gradient(80% 160% at 50% 120%, #e04848 0%, rgb(224 72 72 / 0) 60%), radial-gradient(60% 120% at 70% 50%, rgb(255 186 149 / 0.55) 0%, rgb(255 186 149 / 0) 60%), linear-gradient(135deg, #6e1418 0%, #c4232c 100%);
    --frost-bar: linear-gradient(90deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0) 45%, #fff1e8 80%, #ffe9dc 100%);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
      --bg-brand: #3d1416; --bg-brand-raised: #4f1a1d; --bg-brand-subtle: #2e201c; --bg-warm: #2e201c;
      --text-brand: #f4978c; --border-on-brand: #4f1a1d; --action-primary: #ef6a6f; --action-primary-hover: #f48a8e; --action-on-primary: #1f0a0b; --focus-ring: #ff9f80; --glow-emerald: #ef6a6f;
      --frost-soft: radial-gradient(120% 140% at 100% 0%, rgb(239 106 111 / 0.1) 0%, rgb(239 106 111 / 0) 55%), linear-gradient(135deg, #252121 0%, #202020 100%);
      --frost-bar: linear-gradient(90deg, rgb(25 25 25 / 0) 0%, rgb(25 25 25 / 0) 55%, rgb(239 106 111 / 0.06) 100%);
    }
  }
  :root[data-theme='dark'] {
    --bg-brand: #3d1416; --bg-brand-raised: #4f1a1d; --bg-brand-subtle: #2e201c; --bg-warm: #2e201c;
    --text-brand: #f4978c; --border-on-brand: #4f1a1d; --action-primary: #ef6a6f; --action-primary-hover: #f48a8e; --action-on-primary: #1f0a0b; --focus-ring: #ff9f80; --glow-emerald: #ef6a6f;
    --frost-soft: radial-gradient(120% 140% at 100% 0%, rgb(239 106 111 / 0.1) 0%, rgb(239 106 111 / 0) 55%), linear-gradient(135deg, #252121 0%, #202020 100%);
    --frost-bar: linear-gradient(90deg, rgb(25 25 25 / 0) 0%, rgb(25 25 25 / 0) 55%, rgb(239 106 111 / 0.06) 100%);
  }
  :root { --bar-h: 56px; }
  html, body { min-height: 100%; }
  body { overflow-x: hidden; }
  .ic { flex-shrink: 0; }
  .muted { color: var(--text-muted); }
  .lv-value { overflow-wrap: anywhere; text-align: right; }
  .tag, .tier, .ch, .unit-pill { min-width: max-content; }
  .lv-label { max-width: 50%; }
  .sec { color: var(--text-secondary); }
  .w-full { width: 100%; }
  .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
  .gap-4 { --gap: 4px; } .gap-12 { --gap: 12px; } .gap-24 { --gap: 24px; }
  .divider { height: 1px; background: var(--border-default); margin: 12px 0; }
  .center { text-align: center; }
  .strike { text-decoration: line-through; color: var(--text-muted); }
  .ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .demo-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--status-warning-bg); color: var(--status-warning); font-size: var(--fs-small); line-height: var(--lh-small); }
  .demo-note .ic { margin-top: 1px; }
  .info-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-subtle); border: 1px solid var(--border-default); color: var(--text-secondary); font-size: var(--fs-small); line-height: var(--lh-small); }

  /* ── Demo bar (switcher between the three views) ── */
  .demobar {
    position: sticky; top: 0; z-index: 80; display: flex; align-items: center; gap: 16px; height: var(--bar-h); padding: 0 24px;
    background: color-mix(in srgb, var(--bg-canvas) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-default);
  }
  .demobar .logo { flex: 1 1 0; min-width: 0; }
  .demo-switch { flex: 0 0 auto; }
  .demo-switch .tab { gap: 6px; }
  .demobar-actions { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
  .demo-tag { gap: 6px; }
  .demo-tag-short { display: none; }
  .lang-btn { min-width: 40px; padding: 0 10px; }
  @media (max-width: 900px) { .demo-tag-long { display: none; } .demo-tag-short { display: inline; } }
  @media (max-width: 767px) {
    :root { --bar-h: 52px; }
    .demobar { gap: 8px; padding: 0 12px; }
    .demobar .logo { flex: 0 0 auto; }
    .demobar .logo-word, .demo-switch .tab span, .demo-reset { display: none; }
    .demo-switch .tab { padding: 0 12px; }
    .demobar-actions { gap: 4px; }
    .demo-tag .ic { display: none; }
  }

  /* ── Tier chips ── */
  .tier { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); font-size: var(--fs-caption); font-weight: 600; line-height: 1; white-space: nowrap; flex-shrink: 0; }
  .tier-sm { height: 20px; padding: 0 7px; font-size: 11px; }
  .tier-silver { background: #eceef1; color: #4b5563; }
  .tier-gold { background: #f7ebcc; color: #7a5a12; }
  .tier-platinum { background: #2b3440; color: #e9edf3; }
  :root[data-theme='dark'] .tier-silver { background: #2e3136; color: #c9ced6; }
  :root[data-theme='dark'] .tier-gold { background: #3a3020; color: #e9c46a; }
  :root[data-theme='dark'] .tier-platinum { background: #dfe4ec; color: #1f2733; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .tier-silver { background: #2e3136; color: #c9ced6; }
    :root:not([data-theme='light']) .tier-gold { background: #3a3020; color: #e9c46a; }
    :root:not([data-theme='light']) .tier-platinum { background: #dfe4ec; color: #1f2733; }
  }

  .qr { display: block; width: 100%; height: auto; border-radius: 6px; }
  .qr-box { padding: 12px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border-default); }

  /* ── Landing (index): Providea Influence family (reeded brand panels, nested white panels, Inter),
     with Loyalty's own composition and motifs (the sale relay, stamps, tickets). ── */
  .lp { --lp-px: var(--page-px); --lp-inset: max(var(--lp-px), calc((100% - 1360px) / 2)); --lp-shadow: 0 24px 48px -22px rgb(110 20 24 / 0.38), 0 8px 18px -12px rgb(31 30 28 / 0.18);
    display: flex; flex-direction: column; gap: 128px; padding-bottom: 24px; }
  .lp-wrap { width: 100%; max-width: calc(1280px + 2 * var(--lp-px)); margin: 0 auto; padding: 0 var(--lp-px); }
  .lp-h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; max-width: 15ch; text-wrap: balance; }
  .lp-h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; max-width: 24ch; }
  :is(.lp-h1, .lp-h2) em { font-style: normal; }
  .lp-sub { font-size: 17px; line-height: 1.55; color: var(--text-secondary); max-width: 58ch; text-wrap: pretty; }
  .lp-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
  .lp-head.is-center { align-items: center; text-align: center; }
  .lp-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
  .lp-head-row > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .lp-tex { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .lp-tex img { width: 100%; height: 100%; object-fit: cover; }
  .lp-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-brand); transition: gap var(--dur); }
  a:hover > .lp-go, .lp-go:hover { gap: 10px; }

  /* ── Hero: Influence family (brand reeded-glass panel, nested panels), Loyalty composition.
     Headline split left/right on top; below it one sale travels kasir → HP member → dashboard. ── */
  .lh { padding-top: 16px; }
  .lh-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 48px; padding: 64px 56px 28px; border-radius: 28px; background: var(--bg-brand); color: #fff; }
  .lh-tex img { transform: scaleX(-1); }
  .lh-tex::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(24 3 5 / 0.62) 0%, rgb(24 3 5 / 0.2) 42%, rgb(24 3 5 / 0.45) 100%); }
  .lh-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: end; }
  .lh-h1 { font-size: clamp(38px, 4.2vw, 58px); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
  .lh-h1 span { display: block; color: rgb(255 255 255 / 0.6); }
  .lh-sub { font-size: 17px; line-height: 1.55; color: rgb(255 255 255 / 0.8); max-width: 46ch; text-wrap: pretty; }
  .lh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
  .lh-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--radius-pill); background: #fff; color: #1f1e1c; font-size: 15px; font-weight: 600; white-space: nowrap; transition: gap var(--dur) var(--ease), background-color var(--dur); }
  .lh-btn:hover { gap: 12px; }
  .lh-btn.is-glass { background: rgb(255 255 255 / 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.24); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .lh-btn.is-glass:hover { background: rgb(255 255 255 / 0.18); gap: 8px; }
  .lh-cap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgb(255 255 255 / 0.62); }

  .rl { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); align-items: stretch; }
  .rl-card { display: flex; flex-direction: column; min-width: 0; padding: 0 5px 5px; border-radius: 18px; background: rgb(255 255 255 / 0.09); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: transform 450ms var(--ease), box-shadow 450ms var(--ease), background-color 450ms; }
  .rl-card.is-on { transform: translateY(-6px); background: rgb(255 255 255 / 0.14); box-shadow: inset 0 0 0 1px rgb(255 206 180 / 0.7), 0 0 0 5px rgb(255 206 180 / 0.12), 0 28px 50px -24px rgb(0 0 0 / 0.6); }
  .rl-h { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 9px; font-size: 13px; color: rgb(255 255 255 / 0.7); min-width: 0; }
  .rl-h b { color: #fff; font-weight: 600; white-space: nowrap; }
  .rl-h > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rl-n { margin-left: auto; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 600; background: rgb(255 255 255 / 0.14); transition: background-color 300ms, color 300ms; }
  .rl-card.is-on .rl-n, .rl-card.is-done .rl-n { background: var(--action-accent); color: var(--action-on-accent); }
  .rl-b { flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: 232px; padding: 18px; border-radius: 13px; background: var(--bg-surface); color: var(--text-primary); }
  .rl-link { position: relative; align-self: center; height: 2px; margin: 0 6px; border-radius: 2px; background: rgb(255 255 255 / 0.18); transition: background-color 300ms; }
  .rl-link.is-done { background: rgb(255 206 180 / 0.55); }
  .rl-link i { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--action-accent); box-shadow: 0 0 14px 2px rgb(255 206 180 / 0.7); opacity: 0; }
  .rl-link.is-on i { animation: rl-go 600ms var(--ease) forwards; }
  @keyframes rl-go { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 1; } }
  /* kasir */
  .rl-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .rl-av { width: 38px; height: 38px; font-size: 14px; }
  .rl-who-t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
  .rl-who-t b { max-width: 100%; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rl-sale { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border-default); }
  .rl-sale small, .rl-sale span { font-size: 12px; color: var(--text-secondary); }
  .rl-sale b { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
  .rl-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: var(--radius-md); background: var(--action-primary); color: var(--action-on-primary); font-size: 14px; font-weight: 600; transition: transform 150ms var(--ease), filter 150ms; }
  .rl-btn.is-press { transform: scale(0.95); filter: brightness(0.85); }
  /* HP member: the brand's own card (white label, Kamtono cobalt sample brand) */
  .rl-mc { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; border-radius: var(--radius-md); background: radial-gradient(90% 120% at 100% 0%, rgb(92 207 255 / 0.45) 0%, rgb(92 207 255 / 0) 55%), linear-gradient(135deg, #2148D8 0%, #0F2690 100%); color: #fff; }
  .rl-mc::after { content: ''; position: absolute; right: -36px; bottom: -64px; width: 150px; height: 150px; border-radius: 50%; border: 20px solid rgb(255 255 255 / 0.07); pointer-events: none; }
  .rl-mc-top { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
  .rl-mc-top b { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
  .rl-mc-top > span:last-child { margin-left: auto; }
  .rl-mc small { font-size: 11px; opacity: 0.8; }
  .rl-mc-pts { display: flex; align-items: center; gap: 8px; }
  .rl-mc-pts b { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
  .rl-plus { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill); background: #ffceb4; color: #6e1418; opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 400ms var(--ease); }
  .rl-plus.is-pop { opacity: 1; transform: none; }
  .rl-st { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
  .rl-st i, .mx-st i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
  .rl-st i.is-on { box-shadow: none; background: #1535BD; color: #fff; }
  .rl-st i.is-new { animation: rl-stamp 520ms var(--ease); }
  @keyframes rl-stamp { 0% { transform: scale(1.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
  .rl-note { margin-top: -6px; font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
  .rl-wa { margin-top: auto; display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: #e7f8ee; color: #14532d; font-size: 12px; line-height: 1.4;
    opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 400ms var(--ease); }
  .rl-wa .ic { color: #1fa855; margin-top: 1px; }
  .rl-wa.is-pop { opacity: 1; transform: none; }
  :root[data-theme='dark'] .rl-wa { background: #183326; color: #a7e8c0; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .rl-wa { background: #183326; color: #a7e8c0; } }
  /* dashboard */
  .rl-big { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
  .rl-chart { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
  .rl-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
  .rl-days { display: flex; gap: 6px; } .rl-days span { flex: 1; text-align: center; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; }
  .rl-days span:last-child { color: var(--text-primary); font-weight: 600; }
  .rl-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--bg-brand-subtle); transition: height 600ms var(--ease); }
  .rl-bars i.is-today { background: var(--action-primary); }
  .rl-last { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border-default); font-size: 12px; color: var(--text-secondary); min-width: 0; }
  .rl-last b { min-width: 0; color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* ── Four ways back: outer tinted panel, inner white well with a small live UI, text below ── */
  .mx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .mx { display: flex; flex-direction: column; min-height: 100%; padding: 6px; border-radius: 22px; background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border-default); transition: box-shadow var(--dur); }
  .mx:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
  .mx-well { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 204px; padding: 20px; border-radius: 16px; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-default); overflow: hidden; }
  .mx-txt { display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 4px; }
  .mx-txt h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
  .mx-txt p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
  .mx > .lp-go { margin-top: auto; padding: 14px 14px 12px; font-size: 14px; }
  .mx-st { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 232px; width: 100%; margin: 0 auto; }
  .mx-st i.is-on { box-shadow: none; background: #1535BD; color: #fff; }
  .mx-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: 232px; width: 100%; margin: 0 auto; font-size: 13px; color: var(--text-secondary); }
  .mx-big { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
  .mx-eq { font-size: 14px; color: var(--text-secondary); }
  .mx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .mx-tiers { display: flex; flex-direction: column; gap: 4px; }
  .mx-tr { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); }
  .mx-tr > span:nth-child(2) { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mx-tr b { text-align: right; color: var(--text-primary); font-weight: 600; }
  .mx-tr.is-me { background: var(--bg-brand-subtle); }
  .mx-bar { height: 6px; border-radius: 3px; background: var(--bg-active); overflow: hidden; }
  .mx-bar i { display: block; height: 100%; border-radius: inherit; background: var(--action-primary); }
  .mx-small { font-size: 12px; color: var(--text-secondary); }
  .mx-vc { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-brand-subtle); }
  .mx-vc::before, .mx-vc::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--bg-surface); }
  .mx-vc::before { left: -7px; } .mx-vc::after { right: -7px; }
  .mx-vc > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 4px; }
  .mx-vc b { font-size: 14px; font-weight: 600; }
  .mx-vc small { font-size: 12px; color: var(--text-secondary); }
  .mx-vc.is-used { padding-top: 9px; padding-bottom: 9px; background: var(--bg-active); opacity: 0.75; }
  .mx-vc.is-used b { text-decoration: line-through; text-decoration-color: var(--text-muted); }
  .mx-qr { flex-shrink: 0; display: inline-flex; padding: 6px; margin-right: 4px; border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-primary); }

  /* ── Sample case: nested panel (header strip + inner card), timeline left, figures right ── */
  .cs { padding: 6px; border-radius: 24px; background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border-default); }
  .cs-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px 16px; min-width: 0; }
  .cs-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cs-id b { font-size: 16px; font-weight: 600; }
  .cs-id small { font-size: 13px; color: var(--text-secondary); }
  .cs-h > .tag { margin-left: auto; }
  .cs-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); overflow: hidden; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border-default); }
  .cs-tl { display: flex; flex-direction: column; padding: 36px 36px 12px; border-right: 1px solid var(--border-default); }
  .cs-tl li { display: grid; grid-template-columns: 104px 16px minmax(0, 1fr); column-gap: 14px; }
  .cs-when { padding-top: 1px; font-size: 13px; color: var(--text-muted); }
  .cs-rail { position: relative; }
  .cs-rail::before { content: ''; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--action-primary); box-shadow: 0 0 0 4px var(--bg-brand-subtle); }
  .cs-rail::after { content: ''; position: absolute; left: 7px; top: 22px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--border-default); }
  .cs-tl li:last-child .cs-rail::after { display: none; }
  .cs-step { display: flex; flex-direction: column; gap: 4px; padding-bottom: 28px; }
  .cs-step b { font-size: 15px; font-weight: 600; }
  .cs-step span { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
  .cs-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border-default); }
  .cs-fig { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 32px; background: var(--bg-surface); }
  .cs-big { font-size: clamp(34px, 3.4vw, 48px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
  .cs-fig small { font-size: 14px; line-height: 1.45; color: var(--text-secondary); max-width: 28ch; }

  @media (max-width: 1100px) {
    .lh-panel { padding: 48px 32px 24px; gap: 40px; }
    .lh-top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .rl { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); }
    .rl-b { padding: 14px; }
    .rl-st { gap: 3px; }
    .mx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 860px) {
    .rl { grid-template-columns: minmax(0, 1fr); }
    .rl-link { justify-self: center; width: 2px; height: 28px; margin: 4px 0; }
    .rl-link i { left: 50%; top: 0; margin: 0 0 0 -5px; }
    .rl-link.is-on i { animation-name: rl-down; }
    @keyframes rl-down { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 1; } }
    .rl-b { min-height: 0; }
    .rl-card.is-on { transform: none; }
    .cs-in { grid-template-columns: minmax(0, 1fr); }
    .cs-tl { border-right: 0; border-bottom: 1px solid var(--border-default); padding: 28px 24px 8px; }
  }
  @media (max-width: 640px) {
    .lh { padding-top: 8px; }
    .lh-panel { padding: 36px 18px 18px; border-radius: 22px; gap: 32px; }
    .lh-h1 { font-size: clamp(34px, 9.6vw, 42px); }
    .lh-sub { font-size: 16px; }
    .lh-btn { height: 44px; padding: 0 18px; }
    .mx-grid { grid-template-columns: minmax(0, 1fr); }
    .cs-h { flex-wrap: wrap; }
    .cs-id { flex: 1 1 200px; }
    .cs-h > .tag { margin-left: 48px; }
    .cs-fig .stat-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cs-tl li { grid-template-columns: 16px minmax(0, 1fr); }
    .cs-when { grid-column: 2; padding: 0 0 2px; }
    .cs-rail { grid-row: 1 / span 2; grid-column: 1; }
    .cs-step { grid-column: 2; }
    .cs-fig { padding: 22px 18px; }
    .cs-big { font-size: 32px; }
    .cs-fig small { font-size: 13px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .rl-card, .rl-btn, .rl-plus, .rl-bars i { transition: none; }
    .rl-st i.is-new { animation: none; }
  }

  /* showcase: selectable rows left, the real screen on a peach stage right */
  .lp-show { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
  .lp-tabs { display: flex; flex-direction: column; gap: 10px; }
  .lp-tab { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 20px; border-radius: 20px; border: 1px solid var(--border-default); background: var(--bg-surface); text-align: left; transition: background var(--dur), border-color var(--dur); }
  .lp-tab:hover { border-color: var(--border-strong); }
  .lp-tab > .ic { grid-row: span 2; margin-top: 2px; color: var(--text-secondary); }
  .lp-tab b { font-size: 17px; font-weight: 600; }
  .lp-tab span { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
  .lp-tab.is-active { background: var(--bg-brand-subtle); border-color: transparent; }
  .lp-tab.is-active > .ic { color: var(--text-brand); }
  .lp-tab-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--action-primary); }
  .lp-tab.is-active .lp-tab-bar { animation: lp-bar 6s linear forwards; }
  .lp-show.is-static .lp-tab.is-active .lp-tab-bar { animation: none; width: 100%; }
  @keyframes lp-bar { to { width: 100%; } }
  .lp-tabs .lp-go { padding: 8px 4px 0; }
  .lp-screen { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; min-height: 540px; padding: 44px 40px 0; border-radius: 28px;
    background: radial-gradient(70% 80% at 80% 0%, rgb(224 72 72 / 0.22), rgb(224 72 72 / 0) 60%), var(--bg-warm); }
  .lsc-shot { position: relative; z-index: 1; display: flex; justify-content: center; width: 100%; max-height: 560px; overflow: hidden; }
  .lsc-img { display: block; width: 100%; height: auto; }
  .lsc-frame { max-width: 1040px; width: 100%; border: 1px solid var(--border-default); border-bottom: 0; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--bg-surface); box-shadow: var(--lp-shadow); }
  .lsc-chrome { position: relative; display: flex; align-items: center; justify-content: center; height: 36px; border-bottom: 1px solid var(--border-default); font-size: 11px; color: var(--text-secondary); }
  .lsc-chrome i { position: absolute; left: 14px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); box-shadow: 16px 0 var(--border-strong), 32px 0 var(--border-strong); }
  .lsc-device { box-shadow: var(--lp-shadow); }
  .lsc-device.is-member { width: 330px; border-radius: 48px 48px 0 0; overflow: hidden; }
  .lsc-device.is-kasir { width: min(940px, 100%); border-radius: 34px 34px 0 0; overflow: hidden; }

  /* bento: made for Indonesia */
  .lp-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); gap: 16px; }
  .lp-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px; background: var(--bg-subtle); border: 1px solid var(--border-default); }
  .lp-tile.is-big { grid-column: span 2; grid-row: span 2; background: var(--bg-brand); color: #fff; border-color: transparent; justify-content: space-between; }
  .lp-tile.is-wide { grid-column: span 2; }
  .lp-tile.is-big .lp-tex::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgb(15 2 3 / 0.82) 0%, rgb(15 2 3 / 0.55) 45%, rgb(15 2 3 / 0.2) 100%); }
  .lp-tile-t { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
  .lp-tile.is-big .lp-tile-t { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.03em; max-width: 16ch; }
  .lp-tile-x { font-size: 15px; line-height: 1.55; color: var(--text-secondary); max-width: 44ch; }
  .lp-tile.is-big .lp-tile-x { color: rgb(255 255 255 / 0.78); }
  .lp-tile .ic.big { color: var(--text-brand); }
  .lp-tile.is-big .lp-go { color: #ffceb4; }
  .lp-fig { font-size: 52px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--text-brand); }
  .lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
  .lp-chips span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--bg-surface); border: 1px solid var(--border-default); font-size: 13px; font-weight: 500; }
  .lp-chips span.is-on { border-color: color-mix(in srgb, var(--text-brand) 40%, transparent); color: var(--text-brand); background: var(--bg-brand-subtle); }
  .lp-wa { align-self: flex-start; max-width: 360px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: #fff; color: #1f1e1c; box-shadow: 0 16px 34px -18px rgb(0 0 0 / 0.6); font-size: 14px; line-height: 1.5; }
  .lp-wa-h { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #0d6b38; }
  .lp-wa-t { align-self: flex-end; font-size: 11px; color: #73726e; }

  /* three people */
  .lp-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .lp-person { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 100%; padding: 32px 28px 28px; border-radius: 24px; border: 1px solid var(--border-default); background: var(--bg-surface); }
  .lp-person::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--acc); }
  .lp-person-ic { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--acc); color: #fff; }
  .lp-person h3 { font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
  .lp-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
  .lp-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
  .lp-checks .ic { color: var(--acc); margin-top: 2px; }
  .lp-person .lp-go { margin-top: auto; color: var(--text-primary); }

  /* FAQ: two columns of cards */
  .lp-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .lp-qa { border-radius: 18px; background: var(--bg-subtle); border: 1px solid var(--border-default); transition: background var(--dur); }
  .lp-qa.is-open { background: var(--bg-surface); border-color: var(--border-strong); }
  .lp-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 22px; text-align: left; font-size: 17px; line-height: 1.35; font-weight: 600; }
  .lp-q-ic { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg-active); }
  .lp-qa.is-open .lp-q-ic { background: var(--action-primary); color: var(--action-on-primary); }
  .lp-a { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
  .lp-a[hidden] { display: none; }

  /* closing: the demo stamp card */
  .lp-close { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 0 var(--lp-inset); padding: 64px; border-radius: 32px; background: var(--bg-brand); color: #fff;
    -webkit-mask: radial-gradient(circle 18px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 18px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 18px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 18px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
  .lp-close .lp-tex { opacity: 0.7; }
  .lp-close-t { font-size: clamp(34px, 4vw, 58px); line-height: 1.03; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
  .lp-close-x { margin-top: 16px; font-size: 18px; line-height: 1.5; color: rgb(255 255 255 / 0.78); max-width: 40ch; }
  .lp-close-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; height: 56px; padding: 0 28px; border-radius: var(--radius-pill); background: #ffceb4; color: #6e1418; font-size: 16px; font-weight: 600; transition: gap var(--dur), transform 150ms var(--ease); }
  .lp-close-btn:hover { gap: 14px; }
  .lp-close-btn:active { transform: scale(0.97); }
  .lp-stamps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lp-stamp { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border-radius: 18px; border: 1.5px dashed rgb(255 255 255 / 0.32); background: rgb(255 255 255 / 0.06); color: #fff; transition: background var(--dur); }
  .lp-stamp:hover { background: rgb(255 255 255 / 0.12); }
  .lp-stamp-dot { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1.5px dashed rgb(255 255 255 / 0.45); }
  .lp-stamp b { display: block; font-weight: 600; }
  .lp-stamp small { font-size: 13px; color: rgb(255 255 255 / 0.7); }
  .lp-stamp.is-on { border-style: solid; border-color: transparent; background: #fff; color: #6e1418; }
  .lp-stamp.is-on .lp-stamp-dot { border: 0; background: #c4232c; color: #fff; rotate: -8deg; }
  .lp-stamp.is-on small { color: #a51d26; }
  .lp-count { margin-top: 14px; font-size: 14px; color: rgb(255 255 255 / 0.75); }

  .lfoot { display: flex; flex-direction: column; gap: 8px; margin-top: -56px; }
  .lfoot .logo-mark { color: var(--action-primary); display: inline-flex; }
  .lfoot .row { gap: 16px; }

  /* entrances */
  .lp.is-anim [data-reveal] { transition: opacity 700ms var(--ease) var(--rd, 0ms), transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0ms); }
  .lp.is-anim [data-reveal]:not([data-shown]) { opacity: 0; transform: translate3d(0, 24px, 0); }
  @media (prefers-reduced-motion: reduce) { .lp-tab.is-active .lp-tab-bar { animation: none !important; } .lp-tab.is-active .lp-tab-bar { width: 100%; } }
  :root[data-theme='dark'] .lp-screen { outline: 1px solid var(--border-default); outline-offset: -1px; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .lp-screen { outline: 1px solid var(--border-default); outline-offset: -1px; } }

  @media (max-width: 1199px) {
    .lp { gap: 104px; }
    .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-close { padding: 56px 48px; }
  }
  @media (max-width: 1023px) {
    .lp-show { grid-template-columns: minmax(0, 1fr); }
    .lp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-tabs .lp-go { grid-column: 1 / -1; }
    .lp-people { grid-template-columns: minmax(0, 1fr); }
    .lp-close { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 767px) {
    .lp { gap: 80px; }
    .lp-tabs, .lp-faq { grid-template-columns: minmax(0, 1fr); }
    .lp-screen { min-height: 0; padding: 28px 16px 0; }
    .lsc-shot { max-height: 440px; }
    .lsc-device.is-member { width: 250px; border-radius: 36px 36px 0 0; }
    .lsc-device.is-kasir { border-radius: 16px 16px 0 0; }
    .lp-bento { grid-template-columns: minmax(0, 1fr); }
    .lp-tile.is-big, .lp-tile.is-wide { grid-column: auto; grid-row: auto; }
    .lp-tile { padding: 24px; }
    .lp-close { margin: 0 8px; padding: 40px 24px; border-radius: 24px; }
    .lp-stamps { grid-template-columns: minmax(0, 1fr); }
    .lfoot { margin-top: -40px; }
  }

  /* ── Device frames ── */
  .dev-black { background: #0f0f0e; box-shadow: 0 0 0 1px #2a2a28, 0 30px 60px -20px rgb(10 15 13 / 0.35); }

  /* ── Member view (phone) ── */
  .mv { display: grid; grid-template-columns: minmax(220px, 300px) auto minmax(220px, 320px); grid-template-areas: 'steps phone notes'; justify-content: center; align-items: start; gap: 32px; padding: 24px; }
  .mv-steps { grid-area: steps; position: sticky; top: calc(var(--bar-h) + 24px); }
  .mv-notes { grid-area: notes; position: sticky; top: calc(var(--bar-h) + 24px); }
  .mv-phone { grid-area: phone; }
  .steps { display: flex; flex-direction: column; gap: 2px; }
  .steps-group { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); padding: 10px 10px 4px; font-weight: 500; }
  .step { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 36px; padding: 7px 10px; border-radius: var(--radius-sm); text-align: left; color: var(--text-secondary); }
  .step:hover { background: var(--bg-active); color: var(--text-primary); }
  .step.is-active { background: var(--bg-surface); color: var(--text-primary); font-weight: 500; box-shadow: inset 0 0 0 1px var(--border-default); }
  .step > span:last-child { padding-top: 1px; }
  .step-n { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; background: var(--bg-active); color: var(--text-secondary); flex-shrink: 0; }
  .step.is-active .step-n { background: var(--action-primary); color: var(--action-on-primary); }
  .note-body { display: flex; flex-direction: column; gap: 12px; }
  .note-body p { color: var(--text-secondary); }
  .note-list { display: flex; flex-direction: column; gap: 8px; }
  .note-list li { display: flex; gap: 8px; color: var(--text-secondary); font-size: var(--fs-label); line-height: var(--lh-label); }
  .note-list li .ic { color: var(--text-brand); margin-top: 1px; }
  @media (max-width: 1180px) {
    .mv { grid-template-columns: minmax(240px, 320px) auto; grid-template-areas: 'steps phone' 'notes phone'; }
    .mv-steps, .mv-notes { position: static; }
  }

  .phone { width: 390px; height: min(844px, calc(100dvh - var(--bar-h) - 48px)); min-height: 680px; border-radius: 54px; padding: 11px; position: sticky; top: calc(var(--bar-h) + 24px); }
  .phone-screen {
    position: relative; height: 100%; border-radius: 44px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-canvas);
    /* the member page wears the sample brand's look (white label): Kamtono cobalt instead of Providea crimson */
    --sj: #1535BD; --sj-deep: #0F2690; --sj-soft: #E6EBFF; --sj-ink: #1A34AE;
    --action-primary: var(--sj); --action-primary-hover: var(--sj-deep); --action-on-primary: #fff;
    --text-brand: var(--sj-ink); --bg-brand-subtle: var(--sj-soft); --focus-ring: #5CCFFF;
  }
  :root[data-theme='dark'] .phone-screen { --sj: #8DA2FF; --sj-deep: #B3C1FF; --sj-soft: #1B2142; --sj-ink: #A9B8FF; --action-on-primary: #0A1035; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .phone-screen { --sj: #8DA2FF; --sj-deep: #B3C1FF; --sj-soft: #1B2142; --sj-ink: #A9B8FF; --action-on-primary: #0A1035; } }
  .ps-status { height: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-size: 15px; font-weight: 600; position: relative; z-index: 6; }
  .ps-island { position: absolute; left: 50%; top: 11px; width: 120px; height: 34px; border-radius: 20px; background: #0f0f0e; transform: translateX(-50%); }
  .ps-sig { display: inline-flex; gap: 5px; align-items: center; }
  .ps-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
  .ps-body::-webkit-scrollbar { display: none; }
  .ps-tabbar { flex-shrink: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 74px; padding: 6px 4px 20px; background: var(--bg-surface); border-top: 1px solid var(--border-default); }
  .ps-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-muted); font-size: 11px; line-height: 14px; min-width: 0; }
  .ps-tab.is-active { color: var(--sj); font-weight: 600; }
  .ps-tab .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--sj); color: var(--action-on-primary); font-size: 10px; line-height: 16px; font-weight: 600; text-align: center; }
  .ps-layer { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
  .ps-layer > * { pointer-events: auto; }
  .ps-pad { padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
  .ps-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 20px 0; height: 48px; }
  .ps-head-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
  .ps-back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); font-size: var(--fs-label); }
  .ps-title { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.015em; }
  .ps-sub { color: var(--text-secondary); }

  .sj-logo { display: inline-flex; width: var(--s); height: var(--s); border-radius: 28%; overflow: hidden; background: #1535BD; flex-shrink: 0; }
  .sj-logo img { width: 100%; height: 100%; display: block; }
  .sj-wm { display: block; width: auto; flex-shrink: 0; }
  .sj-lock { display: inline-flex; align-items: center; gap: 8px; }
  .cup { display: block; flex-shrink: 0; }
  .sj-word { font-weight: 800; letter-spacing: -0.02em; text-transform: lowercase; }

  /* in-phone sheet */
  .psheet-scrim { position: absolute; inset: 0; background: rgb(15 15 14 / 0.45); animation: fade-in 160ms var(--ease); }
  .psheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; display: flex; flex-direction: column; background: var(--bg-surface); border-radius: 24px 24px 0 0; animation: slide-in-up 220ms var(--ease); box-shadow: var(--elevation-overlay); }
  .psheet-grip { width: 36px; height: 4px; border-radius: 999px; background: var(--border-strong); margin: 8px auto 0; flex-shrink: 0; }
  .psheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 4px 20px; }
  .psheet-body { overflow-y: auto; padding: 8px 20px 28px; display: flex; flex-direction: column; gap: 14px; }

  /* WhatsApp-style banner notification inside the phone */
  .pnotif { position: absolute; left: 10px; right: 10px; top: 54px; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 20px; text-align: left;
    background: color-mix(in srgb, var(--bg-surface) 90%, transparent); backdrop-filter: blur(16px); box-shadow: var(--elevation-overlay); animation: notif-in 320ms var(--ease); border: 1px solid var(--border-default); }
  @keyframes notif-in { from { transform: translateY(-24px); opacity: 0; } }
  .pnotif-app { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #25d366; color: #fff; flex-shrink: 0; }
  .pnotif-app.is-wallet { background: #141413; }

  /* camera */
  .cam { position: relative; height: 100%; min-height: 560px; background: radial-gradient(120% 80% at 50% 40%, #3a3a37 0%, #121211 70%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; }
  .cam-frame { position: relative; width: 250px; padding: 18px; border-radius: 18px; }
  .cam-frame::before { content: ''; position: absolute; inset: -6px; border-radius: 24px; border: 3px solid #fff; -webkit-mask: linear-gradient(#000 0 0) top left / 34px 34px no-repeat, linear-gradient(#000 0 0) top right / 34px 34px no-repeat, linear-gradient(#000 0 0) bottom left / 34px 34px no-repeat, linear-gradient(#000 0 0) bottom right / 34px 34px no-repeat; mask: linear-gradient(#000 0 0) top left / 34px 34px no-repeat, linear-gradient(#000 0 0) top right / 34px 34px no-repeat, linear-gradient(#000 0 0) bottom left / 34px 34px no-repeat, linear-gradient(#000 0 0) bottom right / 34px 34px no-repeat; }
  .standee { background: #FFF5EA; color: #0F2690; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transform: rotate(-2deg); }
  .standee .qr { width: 150px; }
  .cam-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #fdd835; color: #141413; font-weight: 600; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); animation: pop-in 260ms var(--ease); }
  .cam-hint { font-size: var(--fs-label); color: rgb(255 255 255 / 0.75); text-align: center; }
  .scanline { position: absolute; left: 8px; right: 8px; height: 2px; background: #fdd835; box-shadow: 0 0 12px #fdd835; animation: scan 1.8s ease-in-out infinite alternate; top: 10%; border-radius: 2px; }
  @keyframes scan { to { top: 88%; } }

  /* brand page header (join) */
  .sj-hero { position: relative; overflow: hidden; padding: 20px 20px 24px; background: radial-gradient(120% 120% at 100% 0%, rgb(92 207 255 / 0.4) 0%, rgb(92 207 255 / 0) 55%), linear-gradient(160deg, #2148D8, #0F2690); color: #fff; display: flex; flex-direction: column; gap: 10px; }
  .sj-hero > * { position: relative; }
  .sj-hero .sj-hero-mascot { position: absolute; right: -14px; top: 10px; width: 116px; transform: rotate(8deg); pointer-events: none; }
  .sj-hero .row, .sj-hero .ps-title { padding-right: 96px; }
  .perk { display: flex; gap: 10px; align-items: center; font-size: var(--fs-label); line-height: var(--lh-label); }
  .perk .ic { color: #9fe3ff; }

  .otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .otp span { height: 52px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-surface); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .otp span.is-filled { border-color: var(--sj); }
  .otp span.is-caret { border-color: var(--sj); box-shadow: 0 0 0 3px var(--sj-soft); }

  /* member card */
  .mcard { position: relative; border-radius: 22px; padding: 18px 18px 16px; color: #fff; min-height: 196px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; overflow: hidden; text-align: left; width: 100%;
    background: radial-gradient(90% 120% at 100% 0%, rgb(92 207 255 / 0.5) 0%, rgb(92 207 255 / 0) 55%), radial-gradient(60% 80% at 0% 100%, rgb(255 245 234 / 0.14) 0%, rgb(255 245 234 / 0) 60%), linear-gradient(140deg, #2148D8 0%, #0F2690 100%); }
  .mcard::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgb(255 255 255 / 0.06); }
  .mcard::before { content: ''; position: absolute; right: -26px; top: 34px; width: 168px; height: 168px; background: url(../img/kamtono/mascot.webp) center / contain no-repeat; opacity: 0.16; transform: rotate(10deg); pointer-events: none; }
  .mcard > * { position: relative; z-index: 1; }
  .mcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .mcard-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
  .mcard-brand .sj-logo, .pass .sj-logo { box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.85); }
  .mcard-pts { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .mcard-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; position: relative; z-index: 1; }
  .mcard-qr { width: 54px; height: 54px; border-radius: 10px; background: #fff; padding: 4px; flex-shrink: 0; }
  .mcard .tier-gold { background: #f3d58a; color: #4a3305; }
  .mcard .tier-silver { background: #e7e9ee; color: #374151; }
  .mcard .tier-platinum { background: #e9edf3; color: #1f2733; }
  .mcard-sub { color: rgb(255 255 255 / 0.78); font-size: var(--fs-small); line-height: var(--lh-small); }

  .pbar { height: 8px; border-radius: 999px; background: var(--bg-active); overflow: hidden; }
  .pbar > span { display: block; height: 100%; border-radius: inherit; background: var(--action-primary); transition: width 400ms var(--ease); }
  .pbar.is-gold > span { background: linear-gradient(90deg, #c99a2e, #e9c46a); }

  .stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--border-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; font-weight: 600; }
  .stamp.is-on { border: 0; background: var(--sj); color: #fff; }
  .stamp.is-gift { border-style: solid; border-color: var(--sj); color: var(--sj); }

  .pcard { border-radius: 16px; border: 1px solid var(--border-default); background: var(--bg-surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
  .pcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .pcard-title { font-weight: 600; }
  .vchip { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--border-default); background: var(--bg-surface); position: relative; }
  .vchip:hover { border-color: var(--border-strong); }
  .vchip-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sj-soft); color: var(--sj); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .vchip.is-used { opacity: 0.55; }
  .vchip-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
  .hist-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border-default); }
  .hist-row:first-child { border-top: 0; }
  .hist-ic { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-active); color: var(--text-secondary); flex-shrink: 0; }
  .hist-ic.is-up { background: #f7ebcc; color: #7a5a12; }
  .hist-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .hist-side { text-align: right; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
  .plus { color: var(--status-success); font-weight: 600; }
  .minus { color: var(--status-danger); font-weight: 600; }
  .month-label { font-size: var(--fs-small); color: var(--text-muted); font-weight: 500; margin-top: 8px; }

  .ch { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
  .ch-wa { background: #dcf8e7; color: #0d6b38; }
  .ch-email { background: var(--status-info-bg); color: var(--status-info); }
  .ch-wallet { background: #ececea; color: #1f1e1c; }
  :root[data-theme='dark'] .ch-wa { background: #183326; color: #7be0a4; }
  :root[data-theme='dark'] .ch-wallet { background: #2c2c2c; color: #ececec; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .ch-wa { background: #183326; color: #7be0a4; } :root:not([data-theme='light']) .ch-wallet { background: #2c2c2c; color: #ececec; } }
  .inbox-row { display: flex; gap: 12px; width: 100%; text-align: left; padding: 14px 0; border-top: 1px solid var(--border-default); }
  .inbox-row:first-child { border-top: 0; }
  .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sj); flex-shrink: 0; margin-top: 7px; }
  .unread-dot.is-read { background: transparent; }

  .btn-wallet { background: #141413; color: #fff; border-color: #141413; }
  .btn-wallet:hover { background: #2b2b29; }
  .btn-samsung { background: #1428a0; color: #fff; border-color: #1428a0; }
  .btn-samsung:hover { background: #0f1f7c; }
  .pass { border-radius: 18px; overflow: hidden; color: #fff; background: radial-gradient(90% 120% at 100% 0%, rgb(92 207 255 / 0.4) 0%, rgb(92 207 255 / 0) 55%), linear-gradient(160deg, #2148D8, #0F2690); box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.45); }
  .pass-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
  .pass-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 16px 14px; }
  .pass-label { font-size: 10px; letter-spacing: 0.04em; color: rgb(255 255 255 / 0.7); font-weight: 600; }
  .pass-val { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .pass-qr { background: #fff; margin: 0 auto 16px; width: 132px; padding: 6px; border-radius: 10px; }
  .pass.is-samsung { border-radius: 22px; }
  .otp-wrap { position: relative; }
  .otp-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; }
  .wallet-stack { display: flex; flex-direction: column; gap: -20px; }

  .seg-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-active); }
  .seg-switch button { height: 34px; border-radius: 999px; color: var(--text-secondary); font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .seg-switch button.is-active { background: var(--bg-surface); color: var(--text-primary); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }

  .success-burst { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--status-success-bg); color: var(--status-success); margin: 0 auto; animation: pop-in 260ms var(--ease); }

  @media (max-width: 767px) {
    .mv { display: flex; flex-direction: column; padding: 0; gap: 0; }
    .mv-phone { order: 1; }
    .mv-steps { order: 2; padding: 16px; position: static; }
    .mv-notes { order: 3; padding: 0 16px 32px; position: static; }
    .phone { width: 100%; height: calc(100dvh - var(--bar-h)); min-height: 560px; border-radius: 0; padding: 0; position: relative; top: 0; background: none; box-shadow: none; }
    .phone-screen { border-radius: 0; }
    .ps-status { display: none; }
    .ps-tabbar { height: 64px; padding-bottom: 8px; }
    .pnotif { top: 10px; }
  }

  /* ── Kasir view (tablet) ── */
  .kv { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 24px 32px; }
  .kv-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1180px; }
  .kv-steps .chip b { font-weight: 600; color: var(--text-muted); }
  .tablet { width: min(1180px, 100%); height: 800px; border-radius: 40px; padding: 16px; }
  .tablet-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-canvas); }
  .ts-app { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  .k-bar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--border-default); background: var(--bg-surface); flex-shrink: 0; }
  .k-bar-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .k-bar .logo-mark { color: var(--action-primary); display: inline-flex; }
  .k-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--status-success); white-space: nowrap; }
  .k-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot-success); }
  .k-app { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
  .k-left { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border-default); background: var(--bg-sidebar); }
  .k-left-top { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--border-default); }
  .k-list { flex: 1 1 auto; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
  .k-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: var(--radius-sm); text-align: left; }
  .k-row:hover { background: var(--bg-active); }
  .k-row.is-active { background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-default); }
  .k-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .k-main { overflow-y: auto; min-height: 0; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
  .k-member { display: flex; align-items: center; gap: 14px; }
  .k-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .k-stat { padding: 14px 16px; border-radius: var(--radius-md); background: var(--bg-subtle); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .k-stat-val { font-size: 24px; line-height: 30px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
  .k-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .k-act { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--bg-surface); text-align: left; min-height: 104px; }
  .k-act:hover { border-color: var(--border-strong); background: var(--bg-subtle); }
  .k-act.is-primary { background: var(--action-primary); color: var(--action-on-primary); border-color: var(--action-primary); }
  .k-act.is-primary:hover { background: var(--action-primary-hover); }
  .k-act.is-primary .sec { color: color-mix(in srgb, var(--action-on-primary) 80%, transparent); }
  .k-empty { margin: auto; max-width: 420px; }
  .keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .keypad button { height: 52px; border-radius: var(--radius-md); background: var(--bg-subtle); border: 1px solid var(--border-default); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; }
  .keypad button:hover { background: var(--bg-active); }
  .amount { font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--border-default); }
  .preview-box { border-radius: var(--radius-md); padding: 14px 16px; background: var(--bg-brand-subtle); display: flex; flex-direction: column; gap: 6px; }
  .two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .vrow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--bg-surface); }
  .vrow .vchip-ic { background: var(--bg-brand-subtle); color: var(--text-brand); }
  .result { border-radius: var(--radius-md); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
  .result.is-ok { background: var(--status-success-bg); color: var(--status-success); }
  .result.is-bad { background: var(--status-danger-bg); color: var(--status-danger); }
  .result .t-strong, .result .t-small { color: inherit; }
  .k-cam { position: relative; height: 220px; border-radius: var(--radius-md); background: radial-gradient(120% 80% at 50% 40%, #3a3a37 0%, #121211 70%); display: flex; align-items: center; justify-content: center; color: rgb(255 255 255 / 0.8); overflow: hidden; }
  .k-cam .cam-frame { width: 150px; height: 150px; padding: 0; }

  /* check-in pop-up */
  .checkin-pop { position: absolute; top: 68px; right: 16px; width: 340px; z-index: 50; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--elevation-overlay); padding: 14px; display: flex; flex-direction: column; gap: 12px; animation: notif-in 320ms var(--ease); }
  .checkin-pop .ring { box-shadow: 0 0 0 3px var(--bg-surface), 0 0 0 5px var(--dot-success); }

  /* POS (generic, not any vendor's UI) */
  .pos { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
  .pos-menu { min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-subtle); }
  .pos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pos-item { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border-default); text-align: left; min-height: 112px; }
  .pos-item:hover { border-color: var(--border-strong); }
  .pos-thumb { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #dff1ef; color: #0d5e62; }
  .pos-thumb.is-topping { background: #fbf0d6; color: #8a5a0b; }
  .pos-thumb.is-minum { background: #e1ecfa; color: #1f5799; }
  .pos-order { min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--border-default); background: var(--bg-surface); }
  .pos-order-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
  .pos-line { display: flex; align-items: center; gap: 10px; }
  .pos-member { border-radius: var(--radius-md); padding: 12px; border: 1px dashed var(--border-strong); display: flex; align-items: center; gap: 10px; }
  .pos-member.is-set { border-style: solid; border-color: color-mix(in srgb, var(--text-brand) 35%, transparent); background: var(--bg-brand-subtle); }
  .pos-foot { padding: 12px 16px 16px; border-top: 1px solid var(--border-default); display: flex; flex-direction: column; gap: 8px; }
  .pos-sum { display: flex; justify-content: space-between; gap: 8px; }
  .pos-total { font-size: 20px; font-weight: 600; }
  .pos-banner { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--status-info-bg); color: var(--status-info); font-size: var(--fs-small); line-height: var(--lh-small); flex-shrink: 0; }
  .paid-list { display: flex; flex-direction: column; gap: 8px; }
  .receipt { max-width: 340px; margin: 0 auto; width: 100%; padding: 20px; border-radius: 4px; background: #fffdf8; color: #1f1e1c; border: 1px solid #ececea; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-label); }
  .receipt .rline { display: flex; justify-content: space-between; gap: 8px; }
  .receipt .rdash { border-top: 1px dashed #cfceca; margin: 4px 0; }
  .receipt .loyal { background: #ffe9dc; border-radius: 8px; padding: 10px; color: #6e1418; display: flex; flex-direction: column; gap: 4px; }

  @media (min-width: 960px) {
    .tablet-screen .overlay { position: absolute; }
    .tablet-screen .toast-region { position: absolute; }
  }
  @media (max-width: 1100px) { .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 959px) {
    .kv { padding: 12px 0 32px; gap: 12px; }
    .kv-steps { padding: 0 16px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
    .tablet { width: 100%; height: auto; border-radius: 0; padding: 0; background: none; box-shadow: none; }
    .ts-app { height: auto; }
    .tablet-screen { border-radius: 0; overflow: visible; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
    .k-bar { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 8px; }
    .k-app, .pos { grid-template-columns: minmax(0, 1fr); }
    .k-left { border-right: 0; border-bottom: 1px solid var(--border-default); }
    .k-list { max-height: 280px; }
    .k-main { overflow: visible; padding: 16px; }
    .pos-menu { overflow: visible; }
    .pos-order { border-left: 0; border-top: 1px solid var(--border-default); }
    .pos-order-body { overflow: visible; }
    .checkin-pop { position: fixed; top: calc(var(--bar-h) + 8px); left: 12px; right: 12px; width: auto; }
  }
  @media (max-width: 767px) {
    .k-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .k-stats > :last-child { grid-column: 1 / -1; }
    .k-actions { grid-template-columns: minmax(0, 1fr); }
    .k-act { min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; }
    .k-act > .ic { grid-row: span 2; }
    .k-member { flex-wrap: wrap; }
    .two-col { grid-template-columns: minmax(0, 1fr); }
    .k-bar .k-mode { order: 5; width: 100%; }
    .k-bar .k-mode .tab { flex: 1 1 0; }
  }

  /* ── Dashboard ── */
  .dash .app { min-height: calc(100dvh - var(--bar-h)); }
  .dash .sidebar { top: var(--bar-h); height: calc(100dvh - var(--bar-h)); }
  .dash .topbar { top: var(--bar-h); }
  .dash .sb-brand { height: auto; padding: 4px 8px 8px; margin-bottom: 4px; }
  .ws-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); }
  .m-dash-bar { display: none; }
  .kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .kpi-grid > .npanel, .eq-row > * { height: 100%; }
  .kpi .stat-status { color: var(--text-secondary); }
  .delta-up { color: var(--status-success); font-weight: 500; }
  .delta-down { color: var(--status-danger); font-weight: 500; }
  .dash-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
  .dash-2e { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
  .dash-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  .bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 8px; }
  .bar-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
  .bar { width: 100%; max-width: 36px; border-radius: 6px 6px 2px 2px; background: var(--action-primary); opacity: 0.8; position: relative; }
  .bar.is-last { opacity: 1; background: var(--action-primary); }
  .bar-val { font-size: 11px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
  .bar-lbl { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
  .tgt { display: flex; flex-direction: column; gap: 6px; }
  .tier-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  .tier-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-default); background: var(--bg-surface); height: 100%; }
  .tier-card ul { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
  .tier-card li { display: flex; gap: 8px; color: var(--text-secondary); font-size: var(--fs-label); line-height: var(--lh-label); }
  .tier-card li .ic { color: var(--text-brand); margin-top: 1px; }
  .form-rows { display: flex; flex-direction: column; }
  .form-row { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border-default); }
  .form-row:first-child { border-top: 0; padding-top: 4px; }
  .form-row-label { display: flex; flex-direction: column; gap: 2px; }
  .inline-input { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .inline-input .input { width: 140px; }
  .radio-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--bg-surface); text-align: left; height: 100%; }
  .radio-card.is-on { border-color: var(--action-primary); box-shadow: 0 0 0 3px var(--bg-brand-subtle); }
  .radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex-shrink: 0; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; }
  .radio-card.is-on .radio-dot { border-color: var(--action-primary); }
  .radio-card.is-on .radio-dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--action-primary); }
  .seg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  .seg-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-default); background: var(--bg-surface); height: 100%; }
  .seg-card .grow { flex: 1 1 auto; }
  .ch-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ch-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--bg-surface); text-align: left; height: 100%; }
  .ch-card.is-on { border-color: var(--action-primary); box-shadow: 0 0 0 3px var(--bg-brand-subtle); }
  .ch-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .wa-preview { border-radius: var(--radius-lg); padding: 16px; background: #efe7dc; display: flex; flex-direction: column; gap: 8px; min-height: 240px; }
  :root[data-theme='dark'] .wa-preview { background: #1b2420; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .wa-preview { background: #1b2420; } }
  .wa-bubble { align-self: flex-start; max-width: 92%; background: var(--bg-surface); border-radius: 4px 14px 14px 14px; padding: 10px 12px; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); display: flex; flex-direction: column; gap: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .wa-btn { border-top: 1px solid var(--border-default); padding-top: 8px; color: #1f8ef1; font-weight: 500; text-align: center; }
  .var-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .perm td, .perm th { text-align: center; }
  .perm td:first-child, .perm th:first-child { text-align: left; }
  .perm .ic-yes { color: var(--status-success); display: inline-flex; }
  .perm .ic-no { color: var(--text-muted); display: inline-flex; }
  .int-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-default); }
  .int-row:first-child { border-top: 0; }
  .int-ic { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-active); display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); flex-shrink: 0; }
  .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .filters .input { width: 280px; max-width: 100%; }
  .m-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .m-cell-text { display: flex; flex-direction: column; min-width: 0; }
  .alert-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border-default); }
  .alert-row:first-child { border-top: 0; }
  .alert-row .ic { color: var(--status-warning); margin-top: 1px; }
  .profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .sb-item .sb-tag { margin-left: auto; }

  @media (max-width: 1199px) {
    .kpi-grid, .tier-cards, .seg-cards, .dash-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-2 { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 1023px) {
    .dash .app, .dash .app.is-collapsed { display: block; }
    .dash .sidebar { display: none; }
    .dash .sidebar.is-drawer { display: flex; position: fixed; left: 0; top: 0; bottom: 0; height: 100dvh; z-index: 95; width: 280px; box-shadow: var(--elevation-overlay); animation: slide-in-left 200ms var(--ease); }
    .dash .sb-scrim { position: fixed; inset: 0; z-index: 94; background: var(--scrim); }
    .dash .topbar { display: none; }
    .m-dash-bar { display: flex; position: sticky; top: var(--bar-h); z-index: 40; align-items: center; gap: 8px; height: 52px; padding: 0 12px 0 8px; background: var(--bg-canvas); border-bottom: 1px solid var(--border-default); }
    .dash-2e { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 767px) {
    .kpi-grid, .tier-cards, .seg-cards, .dash-3, .radio-cards, .ch-cards { grid-template-columns: minmax(0, 1fr); }
    .form-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .filters .input { width: 100%; }
    .bars { gap: 4px; }
    .bar-val { display: none; }
  }
}
@layer screens {
  /* ── Hero (Kamtono rebrand, 19 Nov 2026): the sample brand's cafe as the stage, copy painted on the empty wall
     like a wall slogan; the photo keeps its 16:9 frame so the tablet and phone pins stay on the devices. ── */
  .kh { padding-top: 16px; }
  .kh-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; background: #13328c; color: #fff5ea; aspect-ratio: 16 / 9; }
  .kh-stage { position: absolute; inset: 0; transform: scale(1.14); transform-origin: 82% 78%; }
  .kh-stage picture { display: contents; }
  .kh-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
  .kh-copy { position: absolute; left: 4.4%; top: 13.5%; width: 33%; display: flex; flex-direction: column; gap: 16px; }
  .kh-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: rgb(255 245 234 / 0.75); }
  .kh-brand .sj-logo { box-shadow: 0 0 0 1.5px rgb(255 245 234 / 0.7); }
  .kh-h1 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.03; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; color: #fff5ea; }
  .kh-h1 span { display: block; color: rgb(255 245 234 / 0.6); }
  .kh-sub { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; color: rgb(255 245 234 / 0.82); max-width: 31ch; text-wrap: pretty; }
  .kh-copy .lh-cta { margin-top: 6px; }
  .kh-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 0; pointer-events: none; }
  .kh-pin b { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: rgb(255 245 234 / 0.94); color: #0f2690; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.5); }
  .kh-pin::after { content: ''; width: 1.5px; height: 18px; background: rgb(255 245 234 / 0.85); }
  .kh-pin.is-tab { left: 69.8%; top: 63.5%; }
  .kh-pin.is-hp { left: 80.5%; top: 66.6%; }
  .kh-note { position: absolute; left: 2.6%; bottom: 3.2%; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); background: rgb(20 14 8 / 0.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; color: rgb(255 255 255 / 0.85); }
  .lh-h1.is-h2 { font-size: clamp(34px, 3.6vw, 52px); }
  .cs-photo { position: relative; margin: 0 0 6px; overflow: hidden; border-radius: 18px; }
  .cs-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; max-height: 560px; object-position: 50% 62%; }
  .cs-photo figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); background: rgb(20 14 8 / 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; color: rgb(255 255 255 / 0.88); }
  @media (max-width: 1100px) {
    .kh-stage { transform: none; }
    .kh-copy { width: 34%; top: 15%; gap: 12px; }
    .kh-h1 { font-size: clamp(30px, 3.5vw, 40px); }
    .kh-sub { display: none; }
  }
  @media (max-width: 860px) {
    .kh-panel { aspect-ratio: auto; display: flex; flex-direction: column-reverse; background: linear-gradient(180deg, #102a78 0%, #13328c 100%); }
    .kh-stage { position: relative; inset: auto; aspect-ratio: 16 / 9; transform: none; }
    .kh-pin.is-tab { left: 59.8%; top: 54.5%; } .kh-pin.is-hp { left: 82.1%; top: 61.9%; }
    .kh-photo { object-fit: cover; }
    .kh-stage::before { content: ''; position: absolute; inset: 0 0 auto; height: 24%; background: linear-gradient(#13328c, rgb(19 50 140 / 0)); z-index: 1; }
    .kh-copy { position: relative; left: auto; top: auto; width: auto; padding: 32px 20px 8px; }
    .kh-sub { display: block; }
    .kh-note { left: 12px; bottom: 10px; font-size: 11px; }
    .kh-pin b { height: 24px; padding: 0 9px; font-size: 11px; }
    .kh-pin::after { height: 12px; }
  }
  @media (max-width: 640px) {
    .kh { padding-top: 8px; }
    .kh-panel { border-radius: 22px; }
    .kh-copy { padding: 28px 18px 4px; }
    .kh-h1 { font-size: clamp(34px, 9.6vw, 42px); }
    .kh-stage { aspect-ratio: 4 / 3; }
    .kh-photo { object-position: 70% 50%; }
    .kh-pin.is-tab { left: 56.4%; } .kh-pin.is-hp { left: 86.1%; }
    .cs-photo img { aspect-ratio: 4 / 3; object-position: 72% 60%; }
  }
}
@layer screens {
  /* ── Sample cases (19 Nov 2026): three fictional brands, each panel wears its brand colours ── */
  .sj-logo.is-flat { background: transparent; }
  .cs-tabs { display: flex; gap: 10px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .cs-tabs::-webkit-scrollbar { display: none; }
  .cs-tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-default); text-align: left; transition: box-shadow var(--dur), background-color var(--dur); }
  .cs-tab > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cs-tab b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cs-tab small { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cs-tab:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
  .cs-tab.is-active { background: var(--c-soft); box-shadow: inset 0 0 0 2px var(--c-ac); }
  :is(.cs-tab, .cs).is-kamtono { --c-ac: #1535BD; --c-soft: #EEF1FF; --c-panel: #EEF1FF; --c-ink: #10196B; --c-muted: #3D4785; }
  :is(.cs-tab, .cs).is-mendaya { --c-ac: #CF3A1E; --c-soft: #FBE9E2; --c-panel: #1A1512; --c-ink: #F5EBDB; --c-muted: rgb(245 235 219 / 0.72); }
  :is(.cs-tab, .cs).is-bobs { --c-ac: #E39B00; --c-soft: #FFF3D6; --c-panel: #FFF1CF; --c-ink: #3A2008; --c-muted: #7A5A2E; }
  .cs { background: var(--c-panel, var(--bg-subtle)); box-shadow: none; }
  .cs .cs-h, .cs .cs-ps { color: var(--c-ink); }
  .cs .cs-id small { color: var(--c-muted); }
  .cs .cs-rail::before { background: var(--c-ac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-ac) 16%, transparent); }
  .cs-ps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 18px 16px 22px; }
  .cs-ps small { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--c-muted); margin-bottom: 6px; }
  .cs-ps small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-ac); }
  .cs.is-mendaya .cs-ps small::before { background: #F08A6E; }
  .cs-ps p { font-size: 15px; line-height: 1.6; text-wrap: pretty; }
  :root[data-theme='dark'] .cs.is-kamtono { --c-panel: #161B33; --c-ink: #E2E7FF; --c-muted: #A3AEDB; --c-soft: #1B2142; }
  :root[data-theme='dark'] .cs.is-bobs { --c-panel: #2A2110; --c-ink: #FBEBC8; --c-muted: #CDB27F; --c-soft: #33280F; }
  :root[data-theme='dark'] .cs.is-mendaya { --c-panel: #110D0B; }
  :root[data-theme='dark'] .cs-tab.is-kamtono { --c-soft: #1B2142; --c-ac: #8DA2FF; } :root[data-theme='dark'] .cs-tab.is-bobs { --c-soft: #33280F; --c-ac: #F5B300; } :root[data-theme='dark'] .cs-tab.is-mendaya { --c-soft: #2A1612; --c-ac: #F08A6E; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .cs.is-kamtono { --c-panel: #161B33; --c-ink: #E2E7FF; --c-muted: #A3AEDB; --c-soft: #1B2142; }
    :root:not([data-theme='light']) .cs.is-bobs { --c-panel: #2A2110; --c-ink: #FBEBC8; --c-muted: #CDB27F; --c-soft: #33280F; }
    :root:not([data-theme='light']) .cs.is-mendaya { --c-panel: #110D0B; }
    :root:not([data-theme='light']) .cs-tab.is-kamtono { --c-soft: #1B2142; --c-ac: #8DA2FF; } :root:not([data-theme='light']) .cs-tab.is-bobs { --c-soft: #33280F; --c-ac: #F5B300; } :root:not([data-theme='light']) .cs-tab.is-mendaya { --c-soft: #2A1612; --c-ac: #F08A6E; }
  }
  @media (max-width: 860px) {
    .cs-tab { flex: 0 0 auto; }
    .cs-ps { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 12px 18px; }
  }
}
@layer screens { @media (max-width: 640px) { .cs-photo figcaption { top: 10px; bottom: auto; left: 10px; font-size: 11px; } } }
@layer screens {
  .cs-logo { display: block; width: auto; flex-shrink: 0; height: 40px; }
  .cs-logo.is-mendaya { height: 30px; } .cs-logo.is-bobs { height: 46px; margin: -4px 0; }
  .cs-h .cs-id { padding-left: 4px; border-left: 1px solid color-mix(in srgb, var(--c-ink, currentColor) 18%, transparent); padding-left: 12px; }
  @media (max-width: 640px) { .cs-logo { height: 32px; } .cs-logo.is-mendaya { height: 24px; } .cs-logo.is-bobs { height: 38px; } .cs-h .cs-id { border-left: 0; padding-left: 0; flex-basis: 100%; } }
}
@layer screens {
  /* ════ Landing v6 (20 Nov 2026) ════ */

  /* loading screen (same build as the Providea Influence intro) */
  .pvl { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--bg-canvas); transition: opacity 0.6s, visibility 0.6s; }
  .pvl.out { opacity: 0; visibility: hidden; pointer-events: none; }
  .ptc { position: relative; display: grid; place-items: center; }
  .ptc-canvas { display: block; width: min(64vw, 320px); height: auto; aspect-ratio: 1; color: var(--action-primary); cursor: crosshair; touch-action: none; }

  /* site menu (landing, story pages, demo sign-in) */
  .demobar.is-site { gap: 20px; }
  .demobar.is-site .logo { flex: 0 0 auto; }
  .snav { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
  .snav-a { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; transition: background-color var(--dur), color var(--dur); }
  .snav-a:hover, .snav-dd.is-open > .snav-a { background: var(--bg-active); color: var(--text-primary); }
  .snav-dd { position: relative; }
  .snav-dd .snav-a .ic { transition: transform var(--dur); }
  .snav-dd.is-open .snav-a .ic { transform: rotate(180deg); }
  .snav-panel { position: absolute; top: calc(100% + 8px); left: 50%; width: 340px; transform: translate(-50%, -4px); opacity: 0; visibility: hidden; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border-default); box-shadow: var(--elevation-overlay); transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 160ms; }
  .snav-dd.is-open .snav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  @media (hover: hover) { .snav-dd:hover .snav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
  .snav-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-primary); }
  .snav-item:hover { background: var(--bg-subtle); }
  .snav-item > .ic { margin-top: 2px; color: var(--action-primary); }
  .snav-item b { display: block; font-size: 14px; font-weight: 600; }
  .snav-item small { display: block; font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
  .demobar.is-site .demobar-actions { flex: 0 0 auto; }
  .snav-burger { display: none; }
  .snav-sheet { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 2px; padding: 12px 16px 18px; background: var(--bg-surface); border-bottom: 1px solid var(--border-default); box-shadow: var(--elevation-overlay); max-height: calc(100dvh - var(--bar-h)); overflow-y: auto; }
  .snav-sheet[hidden] { display: none; }
  .snav-sheet a:not(.btn) { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border-radius: 10px; font-size: 15px; font-weight: 500; }
  .snav-sheet a:not(.btn) .ic { color: var(--action-primary); }
  .snav-sh { margin: 10px 8px 2px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .snav-sheet .btn { margin-top: 10px; justify-content: center; }
  @media (max-width: 1060px) { .snav, .snav-login { display: none; } .snav-burger { display: inline-flex; } .demobar.is-site { justify-content: space-between; } }
  @media (max-width: 767px) { .demobar.is-site .logo-word { display: inline; } .demobar.is-site .lang-btn { display: none; } }
  @media (max-width: 420px) { .demobar.is-site .btn-primary { display: none; } }

  /* hero slider */
  .hs { padding-top: 16px; }
  .hs-view { position: relative; overflow: hidden; border-radius: 28px; isolation: isolate; background: #13328c; }
  .hs-track { display: flex; transform: translateX(calc(var(--i, 0) * -100%)); transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1); touch-action: pan-y; }
  .hs-slide.kh-panel { flex: 0 0 100%; border-radius: 0; }
  .hs-arrow { position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(255 255 255 / 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.26); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity 200ms, background-color 200ms; }
  .hs-arrow:hover { background: rgb(255 255 255 / 0.28); }
  .hs-arrow.is-prev { left: 16px; } .hs-arrow.is-next { right: 16px; }
  .hs-view:hover .hs-arrow, .hs-arrow:focus-visible { opacity: 1; }
  .hs-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .hs-dot { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border-default); font-size: 13px; font-weight: 500; color: var(--text-secondary); text-align: left; }
  .hs-dot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hs-dot:hover { color: var(--text-primary); }
  .hs-dot.is-active { background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-primary); font-weight: 600; }
  .hs-dot i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--action-primary); }
  .hs-dot.is-active i { width: 100%; }
  .hs.is-run .hs-dot.is-active i { width: 0; animation: hs-bar 7s linear forwards; }
  .hs.is-paused .hs-dot.is-active i { animation-play-state: paused; }
  @keyframes hs-bar { to { width: 100%; } }
  /* case slides: brand photo with a scrim in the brand colour behind the copy */
  .kh-panel.is-case .kh-stage, .kh-panel.is-sale .kh-stage { transform: none; }
  .kh-panel.is-case::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim) 26%, transparent 58%); }
  .kh-panel.is-kamtono { --scrim: rgb(14 32 118 / 0.93); background: #13328c; }
  .kh-panel.is-mendaya { --scrim: rgb(16 12 10 / 0.94); background: #14100d; }
  .kh-panel.is-bobs { --scrim: rgb(64 36 12 / 0.92); background: #4a2a0e; }
  .kh-panel.is-case .kh-copy, .kh-panel.is-sale .kh-copy { z-index: 2; top: 50%; transform: translateY(-50%); }
  .kh-panel.is-case .kh-note { z-index: 2; }
  .hs-fig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); max-width: 36ch; }
  .hs-fig b { font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
  .hs-fig span { font-size: 14px; color: rgb(255 245 234 / 0.88); }
  .hs-fig small { flex-basis: 100%; font-size: 11px; color: rgb(255 245 234 / 0.6); }
  .kh-panel.is-bobs .lh-btn:not(.is-glass) { color: #4a2a0e; }
  /* "one sale" slide: the three real screens on the Loyalty reeded panel */
  .kh-panel.is-sale { background: var(--bg-brand); }
  .kh-panel.is-sale .lp-tex img { transform: scaleX(-1); }
  .kh-panel.is-sale .lp-tex::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(24 3 5 / 0.72), rgb(24 3 5 / 0.2) 60%, rgb(24 3 5 / 0.35)); }
  .hs-trio { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .hs-trio > div { position: absolute; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.12); }
  .hs-trio img { display: block; width: 100%; height: auto; }
  .hs-dash { right: 4%; top: 12%; width: 40%; border-radius: 12px; }
  .hs-tab { right: 22%; top: 34%; width: 36%; border-radius: 18px; border: 8px solid #111; }
  .hs-hp { right: 9%; top: 26%; width: 15%; border-radius: 26px; border: 6px solid #111; aspect-ratio: 9 / 18.5; }
  .hs-hp img { height: 100%; object-fit: cover; object-position: top; }
  @media (max-width: 1100px) { .hs-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); } .hs-dot { padding: 0 10px; font-size: 12px; } .kh-panel.is-case .kh-copy, .kh-panel.is-sale .kh-copy { width: 44%; } .hs-fig { display: none; } }
  @media (max-width: 860px) {
    .hs-view { border-radius: 22px; }
    .hs-track { align-items: stretch; }
    .kh-panel.is-case, .kh-panel.is-sale { aspect-ratio: auto; display: flex; flex-direction: column-reverse; }
    .kh-panel.is-case::after { display: none; }
    .kh-panel.is-case .kh-copy, .kh-panel.is-sale .kh-copy { position: relative; top: auto; left: auto; transform: none; width: auto; padding: 32px 20px 12px; }
    .kh-panel.is-case .kh-stage { position: relative; inset: auto; aspect-ratio: 4 / 3; }
    .kh-panel.is-case .kh-photo { object-position: 64% 50%; }
    .kh-panel.is-case .kh-note { position: absolute; top: 10px; left: 10px; bottom: auto; }
    .kh-panel.is-sale .hs-trio { position: relative; height: 240px; margin: 8px 16px 16px; }
    .hs-dash { right: 0; top: 0; width: 70%; } .hs-tab { right: 22%; top: 34%; width: 62%; border-width: 6px; } .hs-hp { right: 4%; top: 18%; width: 25%; }
    .hs-fig { display: flex; }
    .hs-arrow { display: none; }
    .hs-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
    .hs-tabs::-webkit-scrollbar { display: none; }
    .hs-dot { flex: 0 0 auto; }
  }
  @media (prefers-reduced-motion: reduce) { .hs-track { transition: none; } }

  /* benefits: brand line under each card, and what the brand gets */
  .mx-win { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--bg-brand-subtle); color: var(--text-primary) !important; font-size: 13px !important; line-height: 1.5 !important; }
  .mx-win .ic { color: var(--text-brand); margin-top: 2px; }
  .mx-win b { font-weight: 600; }
  .wins { margin-top: 16px; padding: 6px; border-radius: 24px; background: var(--frost-soft); box-shadow: inset 0 0 0 1px var(--border-default); }
  .wins-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; font-size: 15px; }
  .wins-h .ic { color: var(--text-brand); }
  .wins-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 18px; background: var(--border-default); box-shadow: 0 0 0 1px var(--border-default); }
  .win { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--bg-surface); }
  .win .ic { color: var(--action-primary); }
  .win b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
  .win span { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
  @media (max-width: 1100px) { .wins-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .wins-in { grid-template-columns: minmax(0, 1fr); } }

  /* personalisation: three member cards in three brand looks */
  .lp-tile.is-big { min-height: 560px; }
  .pz-cards { position: relative; flex-shrink: 0; height: 250px; margin-top: auto; }
  .pz-card { position: absolute; right: calc(var(--i) * 18%); bottom: calc(var(--i) * 26px); width: 54%; max-width: 300px; height: auto; border-radius: 16px; box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.6); transform: rotate(calc((var(--i) - 1) * -5deg)); transition: transform 300ms var(--ease); }
  .lp-tile.is-big:hover .pz-card { transform: rotate(calc((var(--i) - 1) * -7deg)) translateY(calc(var(--i) * -4px)); }
  .pz-cap { font-size: 12px; color: rgb(255 255 255 / 0.66); }
  .pz-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16px; padding: 22px 24px; border-radius: 20px; background: var(--frost-soft); box-shadow: inset 0 0 0 1px var(--border-default); }
  .pz-cta > div:first-child { display: flex; flex-direction: column; gap: 4px; }
  .pz-cta b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
  .pz-cta span { font-size: 14px; color: var(--text-secondary); }
  .pz-btns { display: flex; flex-wrap: wrap; gap: 10px; }
  @media (max-width: 640px) { .lp-tile.is-big { min-height: 0; } .pz-cards { height: 215px; margin-top: 12px; } .pz-card { width: 62%; } }

  /* sample stories: link to the story page, and what was solved */
  .cs-more { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); background: #fff; color: #1f1e1c; font-size: 14px; font-weight: 600; box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5); transition: gap var(--dur); }
  .cs-more:hover { gap: 12px; }
  .cs-solved { margin: 6px 0; padding: 18px 20px 20px; border-radius: 18px; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-default); }
  .cs-solved h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
  .cs-solved h3 .ic { color: var(--c-ac); }
  .cs-solved ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cs-solved li { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--c-soft, var(--bg-subtle)); }
  .cs-solved li > .ic { color: var(--c-ac); transform: rotate(90deg); }
  .cs-was { font-size: 13px; color: var(--text-secondary); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-secondary) 50%, transparent); }
  .cs-solved li b { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--text-primary); }
  :root[data-theme='dark'] .cs-more { background: #f3f1ec; }
  @media (max-width: 860px) { .cs-solved ol { grid-template-columns: minmax(0, 1fr); } .cs-more { right: 10px; bottom: 10px; height: 36px; font-size: 13px; } }

  /* people: frosted crimson gradients (Influence "Hari ini" card taste, Loyalty colours) */
  .lp-person { border: 0; box-shadow: inset 0 0 0 1px var(--border-default); }
  .lp-person::before { display: none; }
  .lp-person.is-cust { background: radial-gradient(120% 90% at 100% 0%, rgb(255 206 180 / 0.9) 0%, rgb(255 206 180 / 0) 58%), radial-gradient(80% 70% at 0% 100%, rgb(255 236 226 / 0.9) 0%, rgb(255 236 226 / 0) 60%), var(--bg-surface); }
  .lp-person.is-kasir { background: radial-gradient(110% 90% at 0% 0%, rgb(224 72 72 / 0.28) 0%, rgb(224 72 72 / 0) 55%), radial-gradient(90% 80% at 100% 100%, rgb(255 186 149 / 0.55) 0%, rgb(255 186 149 / 0) 60%), var(--bg-surface); }
  .lp-person.is-owner { color: #fff; box-shadow: none; background: radial-gradient(90% 120% at 100% 0%, rgb(255 186 149 / 0.42) 0%, rgb(255 186 149 / 0) 55%), radial-gradient(80% 140% at 0% 100%, rgb(224 72 72 / 0.55) 0%, rgb(224 72 72 / 0) 60%), linear-gradient(140deg, #8a1c22 0%, #3d1416 100%); }
  .lp-person-ic { background: var(--action-primary); }
  .lp-person.is-owner .lp-person-ic { background: #fff; color: #8a1c22; }
  .lp-person-k { font-size: 13px; font-weight: 600; color: var(--text-brand); }
  .lp-person.is-owner .lp-person-k { color: #ffceb4; }
  .lp-checks .ic { color: var(--action-primary); }
  .lp-person.is-owner .lp-checks .ic, .lp-person.is-owner .lp-go { color: #ffceb4; }
  :root[data-theme='dark'] .lp-person.is-cust, :root[data-theme='dark'] .lp-person.is-kasir { background: radial-gradient(120% 90% at 100% 0%, rgb(239 106 111 / 0.22) 0%, rgb(239 106 111 / 0) 58%), var(--bg-surface); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .lp-person.is-cust, :root:not([data-theme='light']) .lp-person.is-kasir { background: radial-gradient(120% 90% at 100% 0%, rgb(239 106 111 / 0.22) 0%, rgb(239 106 111 / 0) 58%), var(--bg-surface); } }

  /* FAQ: bento on desktop, every answer visible; accordion on phones */
  .lp-qa { position: relative; isolation: isolate; overflow: hidden; }
  .lp-qa .lp-tex { opacity: 1; }
  .lp-qa.is-q0, .lp-qa.is-q3 { color: #fff; border: 0; }
  .lp-qa.is-q0 .lp-tex::after, .lp-qa.is-q3 .lp-tex::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgb(20 3 4 / 0.55), rgb(20 3 4 / 0.25)); }
  .lp-qa.is-q0 .lp-a, .lp-qa.is-q3 .lp-a { color: rgb(255 255 255 / 0.82); }
  .lp-qa.is-ask { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; background: var(--frost-soft); }
  .lp-qa.is-ask b { font-size: 18px; font-weight: 600; }
  .lp-qa.is-ask p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); margin-bottom: 6px; }
  .lp-ask-ic { color: var(--action-primary); }


  /* closing call */
  .lp-close-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  .lp-close-btns .lp-close-btn { margin-top: 0; }
  .lp-close-btn.is-glass { background: rgb(255 255 255 / 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3); }
  .lp-steps { display: flex; flex-direction: column; gap: 10px; }
  .lp-steps a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); color: #fff; transition: background-color var(--dur); }
  .lp-steps a:hover { background: rgb(255 255 255 / 0.16); }
  .lp-steps a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .lp-steps b { font-size: 16px; font-weight: 600; }
  .lp-steps small { font-size: 13px; color: rgb(255 255 255 / 0.72); }
  .lp-steps a > .ic { color: #ffceb4; }
  .lp-step-n { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ffceb4; color: #6e1418; font-weight: 700; }

  /* site footer (Providea Influence build) */
  .sfoot { margin-top: 96px; padding: 48px var(--page-px) 28px; border-top: 1px solid var(--border-default); background: var(--bg-subtle); }
  .sfoot-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
  .sfoot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .sfoot-brand p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); max-width: 34ch; }
  .sfoot-col { display: flex; flex-direction: column; gap: 10px; }
  .sfoot-col h3 { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
  .sfoot-col a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-secondary); }
  .sfoot-col a:hover { color: var(--text-primary); }
  .sfoot-bottom { max-width: 1280px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--border-default); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
  @media (max-width: 860px) { .sfoot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sfoot-brand { grid-column: 1 / -1; } }
  @media (max-width: 480px) { .sfoot-grid { grid-template-columns: minmax(0, 1fr); } }
  .landing .lp { padding-bottom: 0; }
}
@layer screens {
  /* ── 20 Nov 2026 fixes ── */

  /* hero slide 1 (is-wall): the wide Kamtono café with copy on the plain blue wall, as Thomas chose on 20 Nov 2026.
     Slide 1 uses img/people/kamtono-*.webp (barista, customer with the member QR, cashier tablet). */
  .kh-panel.is-wall .kh-stage { transform: none; }
  .kh-panel.is-wall .kh-pin.is-tab { left: 54.2%; top: 63.4%; }
  .kh-panel.is-wall .kh-pin.is-hp { left: 84%; top: 56.2%; }
  @media (max-width: 640px) {
    .kh-panel.is-wall .kh-photo { object-position: 85% 50%; }
    .kh-panel.is-wall .kh-pin.is-tab { left: 43.9%; } .kh-panel.is-wall .kh-pin.is-hp { left: 83.7%; }
  }
  /* phones: the story slides' note sits on the photo (bottom), not over the brand line */
  @media (max-width: 860px) { .kh-panel.is-case .kh-note { top: auto; bottom: 10px; } }
  /* brand cards: a calm fan where every card shows in full */
  .pz-cards { height: auto; aspect-ratio: 16 / 9; max-height: 300px; margin-top: auto; }
  .pz-card { left: auto; right: auto; bottom: auto; top: 50%; width: 52%; max-width: 300px; transform-origin: 50% 100%; }
  .pz-card.is-bobs { left: 46%; transform: translateY(-58%) rotate(7deg); }
  .pz-card.is-mendaya { left: 24%; transform: translateY(-50%) rotate(0deg); z-index: 1; }
  .pz-card.is-kamtono { left: 2%; transform: translateY(-42%) rotate(-7deg); z-index: 2; }
  .lp-tile.is-big:hover .pz-card.is-bobs { transform: translateY(-64%) rotate(9deg); }
  .lp-tile.is-big:hover .pz-card.is-mendaya { transform: translateY(-54%) rotate(0deg); }
  .lp-tile.is-big:hover .pz-card.is-kamtono { transform: translateY(-44%) rotate(-9deg); }
  @media (max-width: 640px) { .pz-cards { height: auto; aspect-ratio: 16 / 10; margin-top: 16px; } .pz-card { width: 54%; } }

  /* stories: readable "what we solved" on dark */
  :root[data-theme='dark'] .cs-solved { background: #1c1b1a; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
  :root[data-theme='dark'] .cs-solved h3, :root[data-theme='dark'] .cs-solved li b { color: #f5f3ef; }
  :root[data-theme='dark'] .cs-solved li { background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
  :root[data-theme='dark'] .cs-was { color: #b0aca5; }
  :root[data-theme='dark'] .cs.is-mendaya { --c-soft: #2a1612; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .cs-solved { background: #1c1b1a; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
    :root:not([data-theme='light']) .cs-solved h3, :root:not([data-theme='light']) .cs-solved li b { color: #f5f3ef; }
    :root:not([data-theme='light']) .cs-solved li { background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
    :root:not([data-theme='light']) .cs-was { color: #b0aca5; }
    :root:not([data-theme='light']) .cs.is-mendaya { --c-soft: #2a1612; }
  }

  /* FAQ: questions only; the answer opens inside its card on hover, focus or click (desktop bento),
     both layers share one grid cell so the card never changes size and never covers its neighbours */
  .lp-q-t { min-width: 0; }
  .lp-q-more { display: none; }
  .lp-a small { display: none; }
  @media (max-width: 860px) {
    .lp-qa:not(.is-open):not(.is-ask) .lp-a { display: none; }
    .lp-qa.is-q0, .lp-qa.is-q3 { background: var(--bg-brand); }
    .lp-a p { margin: 0; }
  }
  @media (min-width: 861px) {
    .lp-faq { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); align-items: stretch; gap: 14px; }
    .lp-qa { display: grid; grid-template: 1fr / 1fr; border-radius: 22px; background: var(--bg-subtle); cursor: pointer; transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease); }
    .lp-qa.is-q0 { grid-column: span 2; }
    .lp-qa.is-ask { grid-column: span 2; display: flex; justify-content: center; cursor: default; }
    .lp-qa > .lp-q, .lp-qa > .lp-a { grid-area: 1 / 1; }
    .lp-q { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 20px; height: 100%; padding: 26px; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; transition: opacity 220ms var(--ease), transform 260ms var(--ease); }
    .lp-qa.is-q0 .lp-q { font-size: 28px; max-width: 24ch; letter-spacing: -0.025em; }
    .lp-q-more { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
    .lp-qa.is-q0 .lp-q-more, .lp-qa.is-q3 .lp-q-more { color: rgb(255 255 255 / 0.75); }
    .lp-q-ic { display: inline-flex; }
    .lp-a { display: flex; flex-direction: column; gap: 10px; padding: 26px; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 240ms var(--ease), transform 280ms var(--ease), visibility 240ms; }
    .lp-a small { display: block; font-size: 13px; font-weight: 600; color: var(--text-brand); }
    .lp-a p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
    .lp-qa.is-q0 .lp-a p { font-size: 17px; max-width: 56ch; }
    .lp-qa.is-q0 .lp-a small, .lp-qa.is-q3 .lp-a small { color: #ffceb4; }
    .lp-qa.is-q0 .lp-a p, .lp-qa.is-q3 .lp-a p { color: rgb(255 255 255 / 0.86); }
    .lp-qa.is-open, .lp-qa:focus-within { box-shadow: inset 0 0 0 1px var(--border-strong); }
    .lp-qa.is-open > .lp-q, .lp-qa:has(.lp-q:focus-visible) > .lp-q { opacity: 0; transform: translateY(-8px); }
    .lp-qa.is-open > .lp-a, .lp-qa:has(.lp-q:focus-visible) > .lp-a { opacity: 1; visibility: visible; transform: none; }
    .lp-qa:not(.is-q0):not(.is-q3).is-open { background: var(--bg-surface); }
  }
  @media (min-width: 861px) and (hover: hover) {
    .lp-qa:not(.is-ask):hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
    .lp-qa:not(.is-ask):not(.is-q0):not(.is-q3):hover { background: var(--bg-surface); }
    .lp-qa:hover > .lp-q { opacity: 0; transform: translateY(-8px); }
    .lp-qa:hover > .lp-a { opacity: 1; visibility: visible; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) { .lp-q, .lp-a { transition: none !important; } }

  /* Providea family: the product mark is black by default (white on dark), like Providea and Influence */
  .logo-mark, .lfoot .logo-mark, .k-bar .logo-mark, .kh-brand .logo-mark { color: var(--text-primary); }
  .kh-brand .logo-mark { color: #fff; }
  .ptc-canvas { color: var(--text-primary); }
}
@layer screens {
  /* brand cards v3: three whole cards in a row, slightly staggered, nothing covered */
  .pz-cards { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 12px; height: auto; aspect-ratio: auto; max-height: none; margin-top: auto; padding: 18px 4px 8px; }
  .pz-card, .pz-card.is-bobs, .pz-card.is-mendaya, .pz-card.is-kamtono { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; max-width: none; z-index: auto; transform-origin: 50% 50%; transition: transform 320ms var(--ease); }
  .pz-card.is-kamtono { transform: rotate(-4deg) translateY(6px); }
  .pz-card.is-mendaya { transform: translateY(-10px); }
  .pz-card.is-bobs { transform: rotate(4deg) translateY(6px); }
  .lp-tile.is-big:hover .pz-card.is-kamtono { transform: rotate(-6deg) translateY(0); }
  .lp-tile.is-big:hover .pz-card.is-mendaya { transform: translateY(-18px); }
  .lp-tile.is-big:hover .pz-card.is-bobs { transform: rotate(6deg) translateY(0); }
  @media (max-width: 640px) { .pz-cards { gap: 8px; padding-top: 14px; } }
  /* FAQ: the +/− chip on the two reeded cards */
  @media (min-width: 861px) { .lp-qa.is-q0 .lp-q-ic, .lp-qa.is-q3 .lp-q-ic { background: rgb(255 255 255 / 0.16); color: #fff; } }
}
@layer screens {
  /* ══ v6 brand switch, ID | EN control, auto-hiding demo bar (20 Nov 2026) ══
     body[data-brand] is set by core.js on the three demo views only (anggota, kasir, dashboard). */

  /* ── ID | EN segmented control (demo bar, site bar, phone menu sheet) ── */
  .lang-seg { display: inline-flex; flex-shrink: 0; padding: 2px; gap: 2px; border-radius: var(--radius-pill); background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border-default); }
  .lang-seg button { min-width: 34px; height: 28px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-muted); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .lang-seg button:hover { color: var(--text-primary); }
  .lang-seg button[aria-pressed='true'] { background: var(--text-primary); color: var(--bg-canvas); cursor: default; }
  .lang-seg button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
  .snav-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin: 4px 0 6px; border-radius: var(--radius-sm); background: var(--bg-subtle); font-size: var(--fs-label); color: var(--text-secondary); }
  @media (max-width: 767px) { .demobar.is-site .lang-site { display: none; } }

  /* ── demo bar: hidden at the top of the three demo views; it overlays the page when it comes back ── */
  .has-autobar { --bar-h: 0px; --demobar-h: 56px; }
  .has-autobar .demobar:not(.is-site) { position: fixed; left: 0; right: 0; top: 0; height: var(--demobar-h); z-index: 85; transform: translateY(calc(-100% - 2px)); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
  .has-autobar .demobar.is-shown:not(.is-site) { transform: none; box-shadow: var(--elevation-overlay); }
  .bar-tab { display: none; }
  @media (hover: none), (pointer: coarse) {
    .has-autobar .bar-tab { display: flex; position: fixed; top: 0; left: 50%; z-index: 86; transform: translateX(-50%); height: 44px; min-width: 120px; padding: 0 6px; align-items: flex-start; justify-content: center; transition: top 220ms var(--ease); }
    .has-autobar.bar-shown .bar-tab { top: var(--demobar-h); }
    .bar-tab-pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px 0 8px; border-radius: 0 0 12px 12px; background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border-default); border-top: 0; box-shadow: 0 6px 14px -8px rgb(0 0 0 / 0.35); font-size: 11px; font-weight: 600; white-space: nowrap; }
    .bar-tab .ic { transition: transform 220ms var(--ease); }
    .bar-tab[aria-expanded='true'] .ic { transform: rotate(180deg); }
    .bar-tab:focus-visible { outline: none; }
    .bar-tab:focus-visible .bar-tab-pill { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
  }
  @media (max-width: 767px) { .has-autobar { --demobar-h: 52px; } }
  @media (prefers-reduced-motion: reduce) { .has-autobar .demobar:not(.is-site), .bar-tab, .bar-tab .ic { transition: none; } }
  /* views that sat under the bar: keep clear of the pull tab on touch screens */
  @media (max-width: 959px) and (hover: none), (max-width: 959px) and (pointer: coarse) {
    .has-autobar .checkin-pop { top: 30px; }
    .has-autobar .kv { padding-top: 30px; }
  }
  @media (max-width: 767px) and (hover: none), (max-width: 767px) and (pointer: coarse) {
    .has-autobar .ps-status { display: flex; height: 22px; padding: 0; }
    .has-autobar .ps-status > * { display: none; }
  }

  /* ── stamp glyph and brand tiles ── */
  .stamp.is-on { color: var(--action-on-primary); }
  .tier-copper { background: #f6e1d3; color: #7c3a15; }
  :root[data-theme='dark'] .tier-copper { background: #3b2419; color: #e6a07a; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .tier-copper { background: #3b2419; color: #e6a07a; } }
  .mcard .tier-copper { background: #f0c9ad; color: #5a2a0e; }
  .sj-logo { background: var(--sj-logo-bg, #1535BD); }
  .sj-wm-auto { display: inline-flex; }
  .sj-wm-auto .wm-cream { display: none; }
  :root[data-theme='dark'] .sj-wm-auto .wm-ink { display: none; }
  :root[data-theme='dark'] .sj-wm-auto .wm-cream { display: block; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .sj-wm-auto .wm-ink { display: none; } :root:not([data-theme='light']) .sj-wm-auto .wm-cream { display: block; } }
  .sj-hero .ps-title { color: inherit; margin-top: 6px; }
  .sj-hero-sub { opacity: 0.85; }
  .standee .t-small, .standee .t-caption { color: inherit; }
  body { --bk-soft: #eef1ff; --bk-ink: #1535bd; }
  :root[data-theme='dark'] body { --bk-soft: #1d2036; --bk-ink: #a9b7ff; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) body { --bk-soft: #1d2036; --bk-ink: #a9b7ff; } }

  /* Mendaya Ramen: ink black, ramen red, rice paper */
  body[data-brand='mendaya'] { --sj-logo-bg: #F5EBDB; --bk-soft: #fbe9e2; --bk-ink: #b8321a; }
  body[data-brand='mendaya'] .phone-screen { --sj: #CF3A1E; --sj-deep: #A42C14; --sj-soft: #FBE6DE; --sj-ink: #B3321A; --focus-ring: #E8826B; }
  :root[data-theme='dark'] body[data-brand='mendaya'] { --bk-soft: #2c1f1b; --bk-ink: #f2937a; }
  :root[data-theme='dark'] body[data-brand='mendaya'] .phone-screen { --sj: #F07C5F; --sj-deep: #F59C84; --sj-soft: #2C1B16; --sj-ink: #F59C84; --action-on-primary: #1A0905; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) body[data-brand='mendaya'] { --bk-soft: #2c1f1b; --bk-ink: #f2937a; }
    :root:not([data-theme='light']) body[data-brand='mendaya'] .phone-screen { --sj: #F07C5F; --sj-deep: #F59C84; --sj-soft: #2C1B16; --sj-ink: #F59C84; --action-on-primary: #1A0905; }
  }
  body[data-brand='mendaya'] :is(.mcard, .pass, .sj-hero) { background: radial-gradient(90% 120% at 100% 0%, rgb(207 58 30 / 0.5) 0%, rgb(207 58 30 / 0) 55%), linear-gradient(140deg, #2B211C 0%, #120E0C 100%); color: #F5EBDB; }
  body[data-brand='mendaya'] .mcard::before { background-image: url(../img/brands/mendaya/emblem-cream.webp); opacity: 0.13; right: -18px; top: 38px; transform: rotate(-6deg); }
  body[data-brand='mendaya'] .mcard-sub, body[data-brand='mendaya'] .pass-label { color: rgb(245 235 219 / 0.72); }
  body[data-brand='mendaya'] .perk .ic { color: #F5A58F; }
  body[data-brand='mendaya'] .standee { background: #F5EBDB; color: #141210; }
  body[data-brand='mendaya'] .mcard-brand .sj-logo, body[data-brand='mendaya'] .pass .sj-logo { box-shadow: 0 0 0 1.5px rgb(245 235 219 / 0.7); }

  /* Bobs: brown sugar, golden tea, cream */
  body[data-brand='bobs'] { --sj-logo-bg: #FFF1D6; --bk-soft: #fff1d6; --bk-ink: #7a4a0c; }
  body[data-brand='bobs'] .phone-screen { --sj: #4A2A0E; --sj-deep: #2E1906; --sj-soft: #FFF1D6; --sj-ink: #5A340F; --focus-ring: #F5B300; }
  :root[data-theme='dark'] body[data-brand='bobs'] { --bk-soft: #2e2614; --bk-ink: #f7c64a; }
  :root[data-theme='dark'] body[data-brand='bobs'] .phone-screen { --sj: #F5B300; --sj-deep: #FFC93C; --sj-soft: #2E2614; --sj-ink: #F7C64A; --action-on-primary: #2A1705; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) body[data-brand='bobs'] { --bk-soft: #2e2614; --bk-ink: #f7c64a; }
    :root:not([data-theme='light']) body[data-brand='bobs'] .phone-screen { --sj: #F5B300; --sj-deep: #FFC93C; --sj-soft: #2E2614; --sj-ink: #F7C64A; --action-on-primary: #2A1705; }
  }
  body[data-brand='bobs'] :is(.mcard, .pass, .sj-hero) { color: #3A2008; background: radial-gradient(90% 120% at 100% 0%, rgb(255 255 255 / 0.45) 0%, rgb(255 255 255 / 0) 55%), linear-gradient(140deg, #FFC93C 0%, #F2A900 100%); }
  body[data-brand='bobs'] .mcard::before { display: none; }
  body[data-brand='bobs'] .mcard::after { border-color: rgb(74 42 14 / 0.08); }
  body[data-brand='bobs'] .mcard-sub, body[data-brand='bobs'] .pass-label { color: rgb(58 32 8 / 0.72); }
  body[data-brand='bobs'] .mcard .tier, body[data-brand='bobs'] .pass .tier { background: #3A2008; color: #FFE3A0; }
  body[data-brand='bobs'] .perk .ic { color: #6B3F14; }
  body[data-brand='bobs'] .sj-hero .row, body[data-brand='bobs'] .sj-hero .ps-title { padding-right: 0; }
  body[data-brand='bobs'] .standee { background: #FFF1D6; color: #4A2A0E; }
  body[data-brand='bobs'] .mcard-brand .sj-logo, body[data-brand='bobs'] .pass .sj-logo { box-shadow: 0 0 0 1.5px rgb(74 42 14 / 0.25); }

  /* Wallet pass: the brand name and tier can be long (Black Pearl, Gold Pearl) */
  .pass-fields > div { min-width: 0; }
  .pass-val { overflow-wrap: anywhere; line-height: 1.2; }
  .pass-head { gap: 10px; }
  .pass-head > .t-small { min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tier-mean { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-secondary); }

  /* ── cashier: brand in the bar, POS tiles with product photos ── */
  .k-bar-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--border-default); }
  .pthumb { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bk-soft); flex-shrink: 0; }
  .pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pthumb.is-icon { display: flex; align-items: center; justify-content: center; color: var(--bk-ink); }
  .pthumb.is-icon .ic { width: 28px; height: 28px; }
  .pos-item { min-height: 0; gap: 8px; padding: 8px 8px 10px; }
  .pos-item .pos-name { overflow-wrap: anywhere; line-height: 1.3; }
  .pos-item .pos-price { margin-top: auto; }
  .pos-grid { align-items: stretch; }
  .pos-line .pthumb { width: 40px; aspect-ratio: 1; border-radius: 8px; }
  .pos-line .pthumb.is-icon .ic { width: 18px; height: 18px; }
  .receipt-brand { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
  @media (max-width: 959px) { .k-bar-brand { padding-left: 10px; } }

  /* ── dashboard: tier rows of 4 and the outlet list ── */
  .tier-cards.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @media (max-width: 1399px) { .tier-cards.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 767px) { .tier-cards.is-4 { grid-template-columns: minmax(0, 1fr); } }
}
@layer screens {
  /* site pages (landing, stories, sign-in, pricing): let the body grow so the sticky menu stays on screen on long pages */
  body:has(> #demobar.is-site) { height: auto; min-height: 100%; }
}
@layer screens {
  /* last hero slide (is-sale), 20 Nov 2026: copy and devices in their own grid columns so they never collide,
     devices staggered inside their own box with only corner overlaps */
  .kh-panel.is-sale { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: 4%; padding: 0 4% 0 4.4%; }
  .kh-panel.is-sale .kh-copy { grid-column: 1; grid-row: 1; position: relative; left: auto; top: auto; transform: none; width: auto; max-width: 30rem; z-index: 2; }
  .kh-panel.is-sale .hs-trio { grid-column: 2; grid-row: 1; position: relative; inset: auto; z-index: 1; width: 100%; aspect-ratio: 4 / 3.1; margin: 0; }
  .kh-panel.is-sale .hs-trio > div { box-shadow: 0 26px 50px -24px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.1); }
  .kh-panel.is-sale .hs-dash { left: auto; right: 0; top: 0; bottom: auto; width: 70%; border-radius: 12px; }
  .kh-panel.is-sale .hs-tab { left: 0; right: auto; top: auto; bottom: 0; width: 62%; border-width: 0; border-radius: 22px; }
  .kh-panel.is-sale .hs-hp { left: auto; right: 2%; top: auto; bottom: 4%; width: 21%; border-width: 0; border-radius: 0; background: transparent; box-shadow: none; aspect-ratio: auto; }
  .kh-panel.is-sale .hs-hp img { height: auto; object-fit: initial; filter: drop-shadow(0 22px 30px rgb(0 0 0 / 0.55)); }
  @media (max-width: 1100px) { .kh-panel.is-sale { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3%; } .kh-panel.is-sale .kh-copy { width: auto; } }
  @media (max-width: 860px) {
    .kh-panel.is-sale { display: flex; flex-direction: column-reverse; padding: 0; }
    .kh-panel.is-sale .kh-copy { max-width: none; }
    .kh-panel.is-sale .hs-trio { flex: none; align-self: stretch; height: auto; width: auto; margin: 8px 16px 18px; }
  }
}
@layer screens { .kh-panel.is-sale .hs-hp img { border-radius: 7% / 3.3%; } }
@layer screens {
  /* ── Device corners (20 Nov 2026, Thomas: "rounded corner … masih berantakan"). The phone and tablet images now have
     transparent corners cut with the frame's own radius (_build/shots.py), so they need no box, no clip and no
     rectangular shadow: drop-shadow follows the real outline. Devices are always shown whole, never cut flat. ── */

  /* hero, last slide */
  .kh-panel.is-sale .hs-tab, .kh-panel.is-sale .hs-hp { background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
  .kh-panel.is-sale .hs-tab img, .kh-panel.is-sale .hs-hp img { border-radius: 0; height: auto; filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.55)); }
  .kh-panel.is-sale .hs-dash { border-radius: 14px; overflow: hidden; background: #fff; }

  /* showcase: one fixed stage, the whole device centred in it */
  .lp-screen { align-items: center; height: 600px; min-height: 0; padding: 40px; }
  .lsc-shot { max-height: none; height: 100%; overflow: visible; align-items: center; }
  .lsc-device, .lsc-device.is-member, .lsc-device.is-kasir { box-shadow: none; border-radius: 0; overflow: visible; filter: drop-shadow(0 28px 36px rgb(60 10 14 / 0.32)); }
  .lsc-device.is-kasir { width: min(760px, 100%); }
  .lsc-device.is-member { width: auto; height: 100%; }
  .lsc-device.is-member .lsc-img { width: auto; height: 100%; }
  .lsc-frame { width: min(780px, 100%); border-bottom: 1px solid var(--border-default); border-radius: 14px; overflow: hidden; }
  @media (max-width: 767px) {
    .lp-screen { height: 460px; padding: 24px 16px; }
    .lsc-device.is-kasir { width: 100%; }
    .lsc-frame { border-radius: 10px; }
  }
}
