/* ═══════════════════════════════════════════════
   g-smarto Components
   Reusable UI components
═══════════════════════════════════════════════ */

/* ── Chip / Eyebrow ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: var(--r99);
  border: 1px solid transparent;
}
.chip-teal   { color: var(--teal);   background: var(--teal-dim); border-color: var(--teal-border); }
.chip-gold   { color: var(--gold);   background: rgba(240,192,64,.1);  border-color: rgba(240,192,64,.2); }
.chip-orange { color: var(--orange); background: rgba(255,123,61,.1);  border-color: rgba(255,123,61,.2); }
.chip-purple { color: var(--purple); background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.2); }
.chip-blue   { color: var(--blue);   background: rgba(125,211,252,.1); border-color: rgba(125,211,252,.2); }

.chip .live-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--r8);
  transition: var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-lg  { font-size: .92rem; padding: 14px 28px; }
.btn-md  { font-size: .84rem; padding: 10px 22px; }
.btn-sm  { font-size: .76rem; padding: 7px 16px; }

.btn-primary {
  background: var(--teal);
  color: #021a12;
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 36px rgba(0,212,160,.4);
}
.btn-ghost {
  background: rgba(255,255,255,.07);
  color: var(--ink);
  border-color: var(--border2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}
.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal-border);
}
.btn-outline-teal:hover {
  background: var(--teal-dim);
  border-color: var(--teal);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  transition: var(--ease);
}
.card:hover {
  border-color: var(--border2);
  box-shadow: 0 0 40px rgba(0,212,160,.06);
}
.card-p { padding: 24px; }
.card-p-sm { padding: 18px; }

.card-accent-top  { border-top: 2px solid var(--teal); }
.card-accent-left { border-left: 3px solid var(--teal); }

.card-glow {
  box-shadow: 0 0 60px rgba(0,212,160,.1);
  border-color: var(--teal-border) !important;
}

/* ── Section heading block ── */
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head .chip { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}
.section-head h2 .accent { color: var(--teal); }
.section-head h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}
.section-head .sub {
  font-size: .97rem;
  color: var(--ink2);
  line-height: 1.8;
  max-width: 540px;
}
.section-head.center .sub { margin: 0 auto; }

/* ── Badge ── */
.badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r99);
}
.badge-teal   { background: var(--teal);   color: #021a12; }
.badge-surface{ background: var(--surface2); color: var(--ink2); border: 1px solid var(--border2); }

/* ── Avatar stack ── */
.av-stack { display: flex; }
.av-stack .av {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .54rem; font-weight: 800; color: #fff;
}
.av-stack .av:first-child { margin-left: 0; }

/* ── Status pill ── */
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .62rem; font-weight: 700;
  padding: 3px 8px; border-radius: var(--r99);
}
.status-ok     { background: rgba(0,212,160,.12); color: var(--teal); }
.status-late   { background: rgba(240,192,64,.12); color: var(--gold); }
.status-absent { background: rgba(255,255,255,.06); color: var(--ink3); }
.status-alert  { background: rgba(255,123,61,.12);  color: var(--orange); }

/* ── Store buttons ── */
.store-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r12);
  padding: 10px 18px;
  text-decoration: none;
  transition: var(--ease);
}
.store-btn:hover {
  border-color: var(--teal-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.store-btn-text { display: flex; flex-direction: column; }
.store-btn-sub  { font-size: .57rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.store-btn-name { font-size: .88rem; font-weight: 700; color: var(--ink); }

/* ── Currency toggle ── */
.curr-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r99);
  padding: 3px; gap: 2px;
}
.curr-opt {
  font-size: .62rem; font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r99);
  border: none; background: transparent;
  color: var(--ink3);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--ease);
}
.curr-opt.on { background: var(--teal); color: #021a12; }

/* ── Billing toggle ── */
.bill-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r99);
  padding: 3px; gap: 2px;
}
.bill-opt {
  font-size: .72rem; font-weight: 600;
  padding: 5px 16px;
  border-radius: var(--r99);
  border: none; background: transparent;
  color: var(--ink3);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--ease);
  display: flex; align-items: center; gap: 6px;
}
.bill-opt.on { background: var(--teal); color: #021a12; }
.save-tag {
  font-size: .56rem; font-weight: 800;
  background: rgba(255,255,255,.2);
  padding: 1px 5px; border-radius: 3px;
}

/* ── FAQ accordion ── */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .2s;
}
.faq-item:hover, .faq-item.open { border-color: var(--teal-border); }
.faq-item.open { background: rgba(0,212,160,.04); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: .84rem; font-weight: 700; color: var(--ink);
}
.faq-arrow {
  color: var(--teal); font-size: 1.1rem;
  transition: transform .22s; flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
  font-size: .78rem; color: var(--ink2); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height .32s ease, margin-top .3s;
}
.faq-item.open .faq-a { max-height: 200px; margin-top: 12px; }

/* ── Reveal animation ── */
.rev {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.rev.on { opacity: 1; transform: none; }
.rev.d1 { transition-delay: .08s; }
.rev.d2 { transition-delay: .16s; }
.rev.d3 { transition-delay: .24s; }
.rev.d4 { transition-delay: .32s; }
.rev.d5 { transition-delay: .40s; }

/* ── Animations ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(1.6); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
