/* ============================================================
   LoyBiz marketing site — shared tokens + product mockups
   Warm cream + gold theme (from the locked product explorations)
   ============================================================ */

:root {
  --paper:        #F2F5FA;
  --paper-2:      #E5EBF4;
  --card:         #FFFFFF;
  --ink:          #14202E;
  --ink-2:        #57667A;
  --ink-3:        #93A1B5;
  --line:         #E0E7F1;
  --line-2:       #C9D5E4;
  --accent:       #2C6BE3;
  --accent-strong:#1F54BE;
  --accent-tint:  #DDE8FC;
  --accent-ink:   #1A4DAE;
  --navy:         #17304F;
  --green:        #2E9367;
  --green-tint:   #DCF0E7;
  --green-ink:    #1C6A49;
  --red:          #C9462F;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }

/* ---------- brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--accent);
  position: relative;
  flex: 0 0 auto;
}
.logo__mark::after {
  content: "";
  position: absolute; inset: 9.5px;
  border-radius: 50%;
  border: 2.5px solid var(--paper);
}
.logo__word { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }
.logo__word b { color: var(--accent-ink); font-weight: 800; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px;
  border-radius: 14px;
  border: none; cursor: pointer;
  font-family: var(--sans);
  font-size: 16.5px; font-weight: 700; letter-spacing: -0.2px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(120,80,10,0.25), 0 6px 18px rgba(217,138,30,0.28);
}
.btn--accent:hover { background: var(--accent-strong); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--outline { background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink-3); background: var(--card); }
.btn--sm { height: 44px; padding: 0 19px; font-size: 15px; border-radius: 12px; }
.btn--lg { height: 58px; padding: 0 32px; font-size: 17.5px; border-radius: 16px; }

/* ---------- image / photo placeholder ---------- */
.ph {
  background:
    repeating-linear-gradient(45deg, rgba(34,30,23,0.05) 0 8px, transparent 8px 16px),
    var(--paper-2);
  border: 1.5px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.3px;
  text-align: center; line-height: 1.5;
  padding: 10px;
}

/* ============================================================
   Product mockups — phone-in-browser frames
   ============================================================ */
.phone {
  width: 310px;
  color: var(--ink);
  background: var(--card);
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(20,16,8,0.06), 0 24px 60px rgba(20,16,8,0.14);
  overflow: hidden;
  flex: 0 0 auto;
}
.phone--sm { width: 218px; border-radius: 22px; }

.urlbar {
  height: 42px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  background: var(--paper-2);
}
.urlbar__dots { display: flex; gap: 5px; }
.urlbar__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.urlbar__pill {
  flex: 1; height: 27px;
  border-radius: 8px;
  background: var(--card);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px; color: var(--ink-2);
}
.urlbar__pill svg { width: 10px; height: 10px; }
.phone--sm .urlbar { height: 34px; }
.phone--sm .urlbar__pill { font-size: 9px; height: 22px; }

.pscreen { padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); color: var(--ink); }
.phone--sm .pscreen { padding: 12px; gap: 9px; }

/* punch grid */
.punches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.punch {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
}
.punch svg { width: 45%; height: 45%; }
.punch--on { background: var(--accent); color: #fff; }
.punch--off { border: 1.6px dashed var(--line-2); color: var(--ink-3); }
.punch--next { border: 2px solid var(--accent); background: var(--accent-tint); color: var(--accent-ink); }

/* mockup card bits */
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--ink); }
.mtitle { font-size: 15px; font-weight: 800; letter-spacing: -0.3px; }
.msub { font-size: 12px; color: var(--ink-2); }
.mbadge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  background: var(--green-tint); color: var(--green-ink);
}
.mbadge svg { width: 11px; height: 11px; }
.mbtn {
  height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--accent); color: #fff;
  font-size: 13.5px; font-weight: 700;
}
.mbtn svg { width: 15px; height: 15px; }
.mfield {
  height: 40px; border-radius: 11px;
  border: 1.5px solid var(--line-2); background: var(--card);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; font-size: 12px; color: var(--ink-2);
}
.mfield svg { width: 13px; height: 13px; color: var(--ink-3); }
.mlabel { font-size: 10.5px; font-weight: 700; color: var(--ink-2); }

/* QR — cells generated by script into .qr[data-size] */
.qr {
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  width: fit-content;
}
.qr i { background: var(--ink); border-radius: 0.5px; }
.qr i.o { background: transparent; }

/* floating chips around hero phone */
.float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(20,16,8,0.05), 0 14px 36px rgba(20,16,8,0.13);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.float-chip__ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent-ink);
  flex: 0 0 auto;
}
.float-chip__ico svg { width: 17px; height: 17px; }
.float-chip__t { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.float-chip__s { font-size: 11px; color: var(--ink-2); }

/* dashboard hero-metric mock */
.mdash {
  background: var(--ink); color: #fff;
  border-radius: 18px; padding: 16px;
}
.mdash__label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; opacity: 0.6; }
.mdash__num { font-size: 36px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; margin-top: 4px; }
.mdash__num span { font-size: 12.5px; font-weight: 500; opacity: 0.65; letter-spacing: 0; margin-left: 7px; }
.mdash__row { display: flex; gap: 18px; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,0.14); }
.mdash__row b { display: block; font-size: 16px; font-weight: 800; }
.mdash__row i { font-style: normal; font-size: 10px; opacity: 0.55; }
.mdash__row .gold { color: var(--accent); }

/* lucide sizing default */
.ico { width: 22px; height: 22px; flex: 0 0 auto; }

/* variant switcher (fixed) */
.switcher {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; align-items: center; gap: 2px;
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: 4px;
  font-size: 12.5px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(20,16,8,0.3);
}
.switcher a, .switcher span {
  padding: 7px 14px; border-radius: 999px; display: block;
}
.switcher span { background: var(--accent); }
.switcher a { color: rgba(255,255,255,0.65); }
.switcher a:hover { color: #fff; }

/* ============================================================
   Scroll reveal animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    transition: opacity 0.55s ease, translate 0.55s ease;
  }
  [data-reveal="pending"] {
    opacity: 0;
    translate: 0 22px;
  }
  [data-reveal="visible"] {
    opacity: 1;
    translate: 0 0;
  }

  /* Hero entrance (landing pages) */
  .hero .eyebrow   { animation: lb-fadeUp 0.55s ease 0.08s both; }
  .hero h1          { animation: lb-fadeUp 0.55s ease 0.18s both; }
  .hero__lead       { animation: lb-fadeUp 0.55s ease 0.28s both; }
  .hero__ctas       { animation: lb-fadeUp 0.55s ease 0.36s both; }
  .hero__trust      { animation: lb-fadeUp 0.5s  ease 0.42s both; }
  .hero__visual     { animation: lb-fadeUp 0.6s  ease 0.2s  both; }
  .float-chip       { animation: lb-chipPop 0.5s ease 0.7s  both; }

  @keyframes lb-fadeUp {
    from { opacity: 0; translate: 0 22px; }
  }
  @keyframes lb-chipPop {
    from { opacity: 0; scale: 0.92; translate: 0 10px; }
  }

  /* Card hover lifts */
  .feat, .step, .why__card, .tl-step, .exp-card, .value,
  .flow-card, .reassure__card, .contact-channel {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }
  .feat:hover, .step:hover, .tl-step:hover,
  .exp-card:hover, .value:hover, .flow-card:hover,
  .reassure__card:hover, .contact-channel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(20,32,46,0.09);
  }
  .why__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(20,32,46,0.09);
  }
  .why__card--loybiz:hover {
    box-shadow: 0 8px 30px rgba(20,32,46,0.22);
  }
  .tier:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(20,32,46,0.09);
  }
  .tier--free:hover {
    box-shadow: 0 14px 40px rgba(42,111,219,0.22);
  }
}
