/* ==========================================================================
   ShongZog Public — Core UI Components
   Buttons · Eyebrow · Section head · Cards · Icon tiles · Badges · Lists · FAQ
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn-sz {
  --btn-bg: var(--grad-brand);
  --btn-fg: #fff;
  --btn-bd: transparent;
  --btn-sh: var(--sh-brand);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font-family: inherit; font-size: .95rem; font-weight: 650; line-height: 1;
  color: var(--btn-fg) !important;
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-full);
  box-shadow: var(--btn-sh);
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.btn-sz:hover { transform: translateY(-2px); color: var(--btn-fg) !important; }
.btn-sz:active { transform: translateY(0); }
.btn-sz .bi { font-size: 1.05em; transition: transform var(--dur) var(--ease-out); }
.btn-sz:hover .bi-arrow-right, .btn-sz:hover .bi-arrow-up-right { transform: translateX(3px); }
.btn-sz:hover { box-shadow: 0 16px 32px -10px rgba(255, 91, 34, .6); }

.btn-sz--dark  { --btn-bg: var(--ink-900); --btn-sh: 0 8px 20px -8px rgba(12, 18, 34, .5); }
.btn-sz--dark:hover { box-shadow: 0 14px 28px -10px rgba(12, 18, 34, .55); background: var(--ink-800); }
.btn-sz--light { --btn-bg: #fff; --btn-fg: var(--ink-900); --btn-bd: var(--ink-200); --btn-sh: var(--sh-xs); }
.btn-sz--light:hover { border-color: var(--ink-300); box-shadow: var(--sh-md); }
.btn-sz--ghost { --btn-bg: transparent; --btn-fg: var(--ink-800); --btn-bd: var(--ink-200); --btn-sh: none; }
.btn-sz--ghost:hover { --btn-fg: var(--brand-600); border-color: var(--brand-300); background: var(--brand-50); box-shadow: none; }
.btn-sz--soft  { --btn-bg: var(--brand-50); --btn-fg: var(--brand-700); --btn-bd: var(--brand-100); --btn-sh: none; }
.btn-sz--soft:hover { background: var(--brand-100); box-shadow: none; }
.btn-sz--glass { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.18); --btn-sh: none; backdrop-filter: blur(10px); }
.btn-sz--glass:hover { background: rgba(255,255,255,.16); box-shadow: none; }
.btn-sz--white { --btn-bg: #fff; --btn-fg: var(--brand-700); --btn-sh: 0 12px 28px -10px rgba(0,0,0,.35); }

.btn-sz--sm { min-height: 40px; padding: .55rem 1.05rem; font-size: .875rem; }
.btn-sz--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.02rem; }
.btn-sz--block { width: 100%; }
.btn-sz--icon { width: 48px; padding: 0; }

/* Legacy aliases so un-migrated markup still looks on-brand */
.sz-ui .btn-shongzog,
.sz-ui .btn-shongzog-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--r-full); font-weight: 650; padding: .7rem 1.35rem; transition: all var(--dur) var(--ease-out);
}
.sz-ui .btn-shongzog { background: var(--grad-brand); color: #fff; border: 0; box-shadow: var(--sh-brand); }
.sz-ui .btn-shongzog:hover { color: #fff; transform: translateY(-2px); }
.sz-ui .btn-shongzog-outline { background: #fff; color: var(--ink-800); border: 1px solid var(--ink-200); }
.sz-ui .btn-shongzog-outline:hover { color: var(--brand-600); border-color: var(--brand-300); background: var(--brand-50); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 650; font-size: .95rem; color: var(--ink-900) !important;
  text-decoration: none;
}
.link-arrow .bi { transition: transform var(--dur) var(--ease-out); color: var(--brand-500); }
.link-arrow:hover { color: var(--brand-600) !important; }
.link-arrow:hover .bi { transform: translateX(4px); }

/* ---------- Eyebrow & section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem .85rem .38rem .45rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-700);
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: var(--r-full);
  box-shadow: 0 1px 2px rgba(255, 91, 34, .08);
}
.eyebrow::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-500) 0 3px, var(--brand-100) 4px 100%);
  flex-shrink: 0;
}
.lang-bn .eyebrow { letter-spacing: .02em; font-size: .82rem; }
.eyebrow--plain { background: transparent; border: 0; box-shadow: none; padding: 0; }
.eyebrow--plain::before { width: 22px; height: 2px; border-radius: 2px; background: var(--brand-500); }
.eyebrow--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--brand-300); box-shadow: none; }
.eyebrow--dark::before { background: radial-gradient(circle, var(--brand-400) 0 3px, rgba(255,91,34,.25) 4px 100%); }

.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.section-head--split > div:first-child { max-width: 640px; }
.section-title { font-size: var(--fs-4xl); margin: 1rem 0 .9rem; }
.section-sub { font-size: var(--fs-md); color: var(--c-muted); margin: 0; max-width: 60ch; }
.section-head--center .section-sub { margin-inline: auto; }
.section--ink .section-sub { color: var(--ink-400); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-brand { color: var(--brand-500) !important; }

/* Hand-drawn underline accent */
.underline-swoosh { position: relative; white-space: nowrap; display: inline-block; }
.underline-swoosh::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C 70 4, 160 3, 297 11' stroke='%23FF5B22' stroke-width='5' fill='none' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

/* ---------- Cards ---------- */
.card-sz {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
}
.card-sz--flat { box-shadow: none; border-color: var(--ink-200); }
.card-sz--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--ink-200); }
.card-sz--ink { background: var(--grad-ink); border-color: rgba(255,255,255,.06); color: var(--ink-300); }
.card-sz--ink h1, .card-sz--ink h2, .card-sz--ink h3, .card-sz--ink h4, .card-sz--ink h5, .card-sz--ink h6 { color: #fff; }
.card-sz--glass {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--sh-lg);
}
.card-sz--brand-top::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--grad-brand);
}

/* Legacy alias */
.sz-ui .sz-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }

/* ---------- Icon tiles ---------- */
.icon-tile {
  --tile: 48px;
  width: var(--tile); height: var(--tile); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: calc(var(--tile) * .3);
  font-size: calc(var(--tile) * .44);
  color: var(--brand-600);
  background: linear-gradient(145deg, var(--brand-50), var(--brand-100));
  box-shadow: inset 0 0 0 1px rgba(255, 91, 34, .12);
  transition: transform var(--dur) var(--ease-out), background var(--dur) ease, color var(--dur) ease;
}
.icon-tile--sm { --tile: 38px; }
.icon-tile--lg { --tile: 60px; }
.icon-tile--xl { --tile: 72px; }
.icon-tile--solid { color: #fff; background: var(--grad-brand); box-shadow: var(--sh-brand); }
.icon-tile--ink { color: #fff; background: var(--ink-900); box-shadow: none; }
.icon-tile--glass { color: var(--brand-300); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.icon-tile--teal { color: var(--teal-500); background: var(--teal-50); box-shadow: inset 0 0 0 1px rgba(15,159,131,.15); }
.icon-tile--sky { color: var(--sky-500); background: var(--sky-50); box-shadow: inset 0 0 0 1px rgba(47,125,246,.15); }
.icon-tile--round { border-radius: 50%; }

/* ---------- Badges & chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .7rem;
  font-size: .75rem; font-weight: 650; line-height: 1.2;
  color: var(--ink-700); background: var(--ink-100);
  border: 1px solid transparent; border-radius: var(--r-full);
  white-space: nowrap;
}
.chip--brand { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }
.chip--success { color: #0B6B58; background: var(--teal-50); border-color: #C5EDE2; }
.chip--sky { color: #1D4FA3; background: var(--sky-50); border-color: #CFE0FD; }
.chip--dark { color: #fff; background: rgba(12,18,34,.78); backdrop-filter: blur(8px); }
.chip--white { color: var(--ink-900); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); box-shadow: var(--sh-sm); }
.chip--outline { background: transparent; border-color: var(--ink-200); color: var(--ink-600); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Legacy badge aliases */
.sz-ui .sz-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; font-size: .72rem; font-weight: 700; border-radius: var(--r-full); }
.sz-ui .sz-badge-primary { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.sz-ui .sz-badge-success { background: var(--teal-50); color: #0B6B58; border: 1px solid #C5EDE2; }
.sz-ui .text-shongzog-orange { color: var(--brand-500) !important; }
.sz-ui .bg-shongzog-subtle { background: var(--brand-50) !important; }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--c-text); }
.check-list li::before {
  content: "\F26E"; font-family: 'bootstrap-icons'; flex-shrink: 0;
  width: 22px; height: 22px; margin-top: .1rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; color: #fff; background: var(--grad-brand);
}
.check-list--teal li::before { background: var(--teal-500); }
.check-list--light li { color: var(--ink-300); }
.check-list--sm { gap: .55rem; font-size: .92rem; }
.check-list--sm li::before { width: 18px; height: 18px; font-size: .7rem; }

/* ---------- Feature item (icon + text) ---------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .3rem; color: var(--c-heading); }
.feature__text { font-size: .93rem; color: var(--c-muted); margin: 0; }

/* ---------- Stat ---------- */
.stat__value { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: var(--tracking-tight); color: var(--c-heading); line-height: 1; }
.stat__value sup, .stat__value small { font-size: .55em; color: var(--brand-500); top: -.6em; margin-left: .05em; }
.stat__label { font-size: .88rem; color: var(--c-muted); margin-top: .5rem; }

/* ---------- Avatar stack ---------- */
.avatar-stack { display: flex; }
.avatar-stack img, .avatar-stack span {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; object-fit: cover;
  margin-left: -10px; box-shadow: var(--sh-xs); background: var(--brand-100);
}
.avatar-stack > :first-child { margin-left: 0; }
.avatar-stack span { display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: var(--brand-700); }

.stars { color: var(--amber-500); display: inline-flex; gap: 2px; font-size: .9rem; }

/* ---------- FAQ / Accordion ---------- */
.faq .accordion-item {
  border: 1px solid var(--ink-100) !important;
  border-radius: var(--r-md) !important;
  background: #fff;
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.faq .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: var(--brand-100) !important; box-shadow: var(--sh-md); }
.faq .accordion-button {
  padding: 1.15rem 1.35rem; font-weight: 650; font-size: 1rem; color: var(--ink-900);
  background: transparent; box-shadow: none !important; gap: 1rem;
}
.faq .accordion-button:not(.collapsed) { color: var(--brand-700); background: transparent; }
.faq .accordion-button::after {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  background: var(--ink-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230C1222'%3E%3Cpath d='M8 3.5a.5.5 0 0 1 .5.5v3.5H12a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0V8.5H4a.5.5 0 0 1 0-1h3.5V4a.5.5 0 0 1 .5-.5z'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease;
}
.faq .accordion-button:not(.collapsed)::after {
  transform: rotate(45deg);
  background-color: var(--brand-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C4360D'%3E%3Cpath d='M8 3.5a.5.5 0 0 1 .5.5v3.5H12a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0V8.5H4a.5.5 0 0 1 0-1h3.5V4a.5.5 0 0 1 .5-.5z'/%3E%3C/svg%3E");
}
.faq .accordion-body { padding: 0 1.35rem 1.25rem; color: var(--c-muted); font-size: .95rem; line-height: 1.7; }

/* ---------- Divider ---------- */
.divider-v { width: 1px; align-self: stretch; background: var(--ink-200); }
.hr-soft { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ink-200), transparent); margin: 2rem 0; opacity: 1; }
