/* ============================================================
   Pikarta — landing styles
   Brand-locked palette, restrained motion, Archivo type system
   ============================================================ */

:root {
  --ink:        #0d1410;
  --ink-soft:   #46524c;
  --ink-faint:  #6b766f;
  --bg:         #f6f8f7;
  --surface:    #ffffff;
  --line:       rgba(13, 20, 16, 0.08);
  --line-soft:  rgba(13, 20, 16, 0.05);

  --brand:        #12a06a;
  --brand-deep:   #0a6f49;
  --brand-bright: #19b87a;
  --brand-ink:    #0a5538;
  --brand-tint:   #e7f4ee;
  --brand-tint-2: #f1f8f4;

  --card-from: #16a76f;
  --card-to:   #0a6f49;

  --radius-lg: 28px;
  --radius:    18px;
  --radius-sm: 13px;

  --shadow-sm: 0 1px 2px rgba(13,20,16,.05), 0 2px 8px rgba(13,20,16,.04);
  --shadow:    0 12px 30px -12px rgba(13,20,16,.18), 0 4px 12px -6px rgba(13,20,16,.10);
  --shadow-lg: 0 40px 80px -30px rgba(10,85,56,.35), 0 14px 30px -16px rgba(13,20,16,.18);
  --shadow-brand: 0 18px 40px -14px rgba(10,111,73,.45);

  --maxw: 1600px;
  --ease: cubic-bezier(.22,.68,.18,1);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }

:focus-visible {
  outline: 3px solid rgba(18, 160, 106, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------------- Layout helpers ---------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 22px;
}
.eyebrow--muted { color: var(--ink-faint); }

.sec-title {
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: .98;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.sec-lead {
  margin-top: 26px;
  max-width: 620px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 450;
}

/* ---------------- Animated background ---------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: var(--orb-opacity, .55);
  will-change: transform;
}
.bg-orb.a {
  width: 60vw; height: 60vw;
  top: -22vw; right: -14vw;
  background: radial-gradient(circle at 30% 30%, rgba(25,184,122,.40), rgba(25,184,122,0) 62%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
.bg-orb.b {
  width: 52vw; height: 52vw;
  bottom: -20vw; left: -16vw;
  background: radial-gradient(circle at 50% 50%, rgba(18,160,106,.30), rgba(18,160,106,0) 60%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
.bg-orb.c {
  width: 36vw; height: 36vw;
  top: 36%; left: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(10,111,73,.16), rgba(10,111,73,0) 60%);
  animation: drift-c 38s var(--ease) infinite alternate;
}
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6vw,5vw,0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(7vw,-4vw,0) scale(1.1); } }
@keyframes drift-c { from { transform: translate3d(0,0,0); } to { transform: translate3d(-4vw,-6vw,0); } }

/* grid overlay variant */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(13,20,16,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13,20,16,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
body[data-bg="grid"] .bg-grid { opacity: 1; }
body[data-bg="plain"] .bg-orb { opacity: .14; animation: none; }
body[data-bg="plain"] .bg-grid { opacity: 0; }

/* ---------------- Reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

body.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
body.no-motion .bg-orb { animation: none !important; }
body.no-motion .float-badge { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bg-orb, .float-badge { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246,248,247,.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.logo img { display: block; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 38px;
}
.nav-links a {
  font-weight: 600; font-size: 15.5px; color: var(--ink-soft);
  transition: color .2s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: inline-flex; padding: 4px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
}
.lang-toggle button {
  border: 0; background: transparent; padding: 7px 13px; border-radius: 8px;
  font-weight: 700; font-size: 13.5px; color: var(--ink-faint);
  transition: all .22s var(--ease);
}
.lang-toggle button.active { background: var(--brand); color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: 14px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 16px 24px;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(10,111,73,.55); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(13,20,16,.2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 11px 18px; font-size: 15px; border-radius: 12px; }
.btn .ic { width: 18px; height: 18px; }

/* ============================================================
   HERO — shared
   ============================================================ */
.hero { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.pill .ic { width: 17px; height: 17px; color: var(--brand); }
.hero-h1 {
  font-weight: 800;
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: .94;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55; color: var(--ink-soft); font-weight: 450;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 22px 30px; }
.chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }

/* Hero A : split */
.heroA { padding: clamp(48px, 7vw, 96px) 0 clamp(70px, 9vw, 120px); }
.heroA-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.heroA-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 620px; }
.heroA-copy .hero-sub { max-width: 540px; }
.heroA-stage { position: relative; display: flex; justify-content: center; }

/* Hero B : centered */
.heroB { padding: clamp(56px, 8vw, 110px) 0 clamp(70px, 9vw, 120px); text-align: center; }
.heroB-copy { display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 880px; margin: 0 auto; }
.heroB-copy .hero-h1 { font-size: clamp(48px, 7.4vw, 104px); }
.heroB-copy .hero-sub { max-width: 620px; }
.heroB-stage { position: relative; margin-top: clamp(48px, 6vw, 80px); display: flex; justify-content: center; }

/* ---------------- Phone ---------------- */
.phone-wrap { position: relative; }
.phone {
  position: relative;
  width: 348px;
  border-radius: 50px;
  background: #0c130f;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 124px; height: 30px; background: #0c130f; border-radius: 0 0 18px 18px; z-index: 3;
}
.phone-screen {
  background: #fbfdfc; border-radius: 36px; overflow: hidden;
  height: 710px;
  padding: 14px 16px 18px;
  display: flex; flex-direction: column; gap: 0;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 2px; }
.phone-brand { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--brand); letter-spacing: -.02em; }
.phone-trial { font-size: 13px; font-weight: 600; color: var(--ink-faint); }

.loyalty {
  position: relative;
  border-radius: 22px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(150deg, var(--card-from), var(--card-to));
  box-shadow: 0 18px 30px -16px rgba(10,85,56,.6), inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
}
.loyalty::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.20), transparent 55%);
  pointer-events: none;
}
.loyalty-top { display: flex; align-items: center; justify-content: space-between; }
.loyalty-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.loyalty-count { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin: 18px 0 16px; }
.stamp {
  aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.22);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.stamp.full { background: #fff; }
.loyalty-foot { display: flex; align-items: flex-end; justify-content: space-between; }
.loyalty-reward { font-size: 13px; font-weight: 600; opacity: .92; }
.loyalty-qr {
  width: 58px; height: 58px; border-radius: 12px; background: #fff; padding: 7px;
}
.loyalty-qr svg { width: 100%; height: 100%; }

.phone-rows { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.prow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.prow .k { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.prow .v { font-weight: 700; font-size: 14px; color: var(--brand-deep); }

/* floating badges */
.float-badge {
  position: absolute; z-index: 5;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 16px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow);
  font-weight: 700; font-size: 14.5px; color: var(--ink);
  white-space: nowrap;
}
.float-badge .ic { width: 18px; height: 18px; color: var(--brand); }
.float-badge.b1 { top: 118px; left: -28px; animation: floaty 5.5s var(--ease) infinite alternate; }
.float-badge.b2 { bottom: 78px; right: -30px; animation: floaty 6.5s var(--ease) infinite alternate; animation-delay: -1.2s; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-12px); } }

.hero-ring {
  position: absolute; inset: -8% -6%;
  border-radius: 50%;
  border: 1px solid var(--line);
  z-index: -1;
}
.hero-ring.r2 { inset: 6% 8%; }

/* Hero B : large floating card with orbiting chips */
.bigcard-stage { position: relative; width: min(560px, 92vw); }
.bigcard {
  position: relative; z-index: 2;
  border-radius: 28px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(150deg, var(--card-from), var(--card-to));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.2);
  transform: rotate(-3deg);
  overflow: hidden;
}
.bigcard::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.22), transparent 55%);
}
.bigcard .loyalty-name { font-size: 24px; }
.bigcard .loyalty-count { font-size: 24px; }
.bigcard .stamps { gap: 16px; margin: 24px 0 22px; }
.bigcard .loyalty-reward { font-size: 15px; }
.bigcard .loyalty-qr { width: 74px; height: 74px; }
.orbit {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 17px; border-radius: 15px;
  background: #fff; box-shadow: var(--shadow);
  font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap;
}
.orbit .ic { width: 19px; height: 19px; color: var(--brand); }
.orbit.o1 { top: -22px; left: -34px; animation: floaty 6s var(--ease) infinite alternate; }
.orbit.o2 { bottom: 40px; right: -42px; animation: floaty 7s var(--ease) infinite alternate; animation-delay: -1.5s; }
.orbit.o3 { bottom: -26px; left: 30px; animation: floaty 6.5s var(--ease) infinite alternate; animation-delay: -.8s; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 76px); }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 34px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-soft); }
.step-num {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  margin-bottom: 26px;
}
.step h3 { font-weight: 800; font-size: 22px; letter-spacing: -.01em; margin-bottom: 12px; }
.step p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.step-line { position: absolute; top: 53px; right: -14px; width: 28px; height: 2px; background: var(--line); z-index: 1; }
.step:last-child .step-line { display: none; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: clamp(48px, 6vw, 76px); }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(18,160,106,.28); }
.feature-ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-tint); color: var(--brand-deep);
  display: grid; place-items: center; margin-bottom: 26px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.feature:hover .feature-ic { transform: scale(1.06); background: var(--brand); color: #fff; }
.feature-ic .ic { width: 26px; height: 26px; }
.feature h3 { font-weight: 800; font-size: 21px; letter-spacing: -.01em; margin-bottom: 12px; }
.feature p { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }

/* ============================================================
   DOWNLOAD / CTA
   ============================================================ */
.cta-panel {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #0e1814 0%, #0a3a28 55%, #0a6f49 130%);
  color: #fff;
  padding: clamp(48px, 6vw, 86px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-panel::before {
  content: ""; position: absolute; top: -30%; right: -10%;
  width: 50%; height: 140%;
  background: radial-gradient(circle at 50% 50%, rgba(25,184,122,.42), transparent 60%);
  filter: blur(20px);
}
.cta-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; }
.cta-eyebrow { color: var(--brand-bright); }
.cta-title { font-weight: 800; font-size: clamp(40px, 5vw, 70px); line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
.cta-lead { margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(255,255,255,.72); max-width: 520px; }
.cta-stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 13px;
  background: #0a0f0c; border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 13px 22px; color: #fff;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.store-btn .ic { width: 26px; height: 26px; }
.store-btn .st { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .st small { font-size: 11px; opacity: .7; font-weight: 500; }
.store-btn .st strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

.cta-side { display: grid; gap: 14px; }
.cta-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(4px);
}
.cta-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.cta-stat .lab { font-size: 14.5px; color: rgba(255,255,255,.66); margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 54px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 36px; }
.footer-links a { font-weight: 700; font-size: 16px; color: var(--ink); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--brand); }
.footer-copy { font-size: 16px; color: var(--ink-faint); font-weight: 500; }

/* ---------------- Placeholder treatment ---------------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(13,20,16,.05) 0 10px, transparent 10px 20px),
    var(--brand-tint-2);
  border: 1px dashed rgba(13,20,16,.18);
  border-radius: var(--radius);
  display: grid; place-items: center;
}
.ph span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .02em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .heroA-grid { grid-template-columns: 1fr; gap: 48px; }
  .heroA-stage { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-inner { gap: 8px; }
  .nav-right { gap: 8px; }
  .btn-sm { padding: 11px 14px; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-chips { gap: 14px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-links { gap: 22px; flex-wrap: wrap; }
}
@media (max-width: 460px) {
  .phone { width: min(310px, calc(100vw - 40px)); }
  .float-badge { max-width: calc(100vw - 40px); font-size: 13.5px; }
  .float-badge.b1 { left: 0; }
  .float-badge.b2 { right: 0; bottom: 92px; }
}

/* ============================================================
   APP SCREEN MOCKUP (Hero phone content)
   ============================================================ */

.app-screen { display: flex; flex-direction: column; gap: 9px; }
.app-sbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2px 4px;
  font-size: 10px; font-weight: 700; color: var(--ink);
}
.app-hdr {
  display: flex; align-items: center; gap: 9px;
}
.app-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-ic img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.app-greet { font-size: 10px; color: var(--ink-soft); line-height: 1.3; }
.app-biz { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.app-bell {
  width: 32px; height: 32px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative; margin-left: auto; flex-shrink: 0;
}
.app-bell svg { width: 15px; height: 15px; stroke: var(--ink-soft); fill: none; stroke-width: 2; stroke-linecap: round; }
.app-bell-dot {
  position: absolute; top: 5px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444; border: 1.5px solid #fbfdfc;
}
.app-section-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ink-faint);
  margin-top: 10px; margin-bottom: 6px;
}
.app-card {
  background: #1C0B3C; border-radius: 14px;
  padding: 14px 13px 11px; color: #fff;
}
.app-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.app-card-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.app-card-name { font-size: 13px; font-weight: 600; }
.app-card-type {
  font-size: 8px; color: rgba(255,255,255,0.5);
  letter-spacing: 1.4px; text-transform: uppercase;
}
.app-card-count { font-size: 26px; font-weight: 800; line-height: 1.1; margin-bottom: 2px; }
.app-stamps { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }
.app-stamp {
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
}
.app-stamp.empty {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
}
.app-barcode { border-radius: 6px; background: #fff; padding: 4px 5px; height: 34px; overflow: hidden; }
.app-barcode-inner {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #000 0, #000 2px, #fff 2px, #fff 3px,
    #000 3px, #000 5px, #fff 5px, #fff 7px,
    #000 7px, #000 8px, #fff 8px, #fff 11px,
    #000 11px, #000 12px, #fff 12px, #fff 14px,
    #000 14px, #000 16px, #fff 16px, #fff 19px,
    #000 19px, #000 21px, #fff 21px, #fff 23px
  );
}
.app-btns { display: flex; gap: 8px; margin-top: 9px; }
.app-btn-ol {
  flex: 1; height: 34px;
  border: 1.5px solid var(--brand); border-radius: 10px;
  background: transparent;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; color: var(--brand);
}
.app-btn-ol svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.app-btn-scan {
  height: 38px; border-radius: 11px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow-brand);
  margin-top: 8px;
}
.app-btn-scan svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.app-sec-hdr { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; margin-bottom: 7px; }
.app-sec-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.app-sec-link { font-size: 10.5px; font-weight: 600; color: var(--brand); }
.app-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.app-stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 7px;
}
.app-stat-num { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1; }
.app-stat-lbl { font-size: 9px; color: var(--ink-faint); margin-top: 2px; }

/* Chart cards inside phone */
.app-chart-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 13px; padding: 10px 11px 11px;
}
.app-chart-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.app-chart-title { font-size: 12px; font-weight: 800; color: var(--ink); }
.app-chart-badge {
  font-size: 9.5px; font-weight: 700; color: var(--brand);
  background: rgba(18,160,106,0.12); border: 1px solid rgba(18,160,106,0.25);
  border-radius: 99px; padding: 2px 7px;
}
.app-bar-chart { display: flex; align-items: flex-end; gap: 5px; }
.app-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.app-bar-col .app-bar {
  width: 100%; border-radius: 4px;
  background: rgba(18,160,106,0.18);
}
.app-bar-col.active .app-bar { background: var(--brand); }
.app-bar-lbl { font-size: 7.5px; color: var(--ink-faint); }
.app-bar-lbl.active { color: var(--brand); font-weight: 700; }

/* Bar chart heights */
.app-bar-col:nth-child(1) .app-bar { height: 16px; }
.app-bar-col:nth-child(2) .app-bar { height: 24px; }
.app-bar-col:nth-child(3) .app-bar { height: 18px; }
.app-bar-col:nth-child(4) .app-bar { height: 30px; }
.app-bar-col:nth-child(5) .app-bar { height: 42px; }
.app-bar-col:nth-child(6) .app-bar { height: 20px; }
.app-bar-col:nth-child(7) .app-bar { height: 10px; }

.app-peak-rows { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.app-peak-row { display: flex; align-items: center; gap: 7px; }
.app-peak-lbl { font-size: 8.5px; color: var(--ink-soft); width: 62px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.app-peak-track { flex: 1; height: 5px; border-radius: 99px; background: rgba(18,160,106,0.14); overflow: hidden; }
.app-peak-fill { height: 100%; border-radius: 99px; background: var(--brand); }

/* Peak hour fill widths */
.app-peak-row:nth-child(1) .app-peak-fill { width: 100%; }
.app-peak-row:nth-child(2) .app-peak-fill { width: 60%; }
.app-peak-row:nth-child(3) .app-peak-fill { width: 40%; }
.app-peak-val { font-size: 9px; font-weight: 700; color: var(--ink); width: 12px; text-align: right; flex-shrink: 0; }
