/* ============================================================
   HalaQR landing page — Halabyte brand layer
   Loaded after style.css / color.css so it wins on the home page.
   Scoped to .hq-* classes; other pages are untouched.
   Palette + type mirror halabyte.com (src/app/globals.css).
   ============================================================ */

:root {
  --hq-brand: #963b62;
  --hq-brand-dark: #7a2e4f;
  --hq-brand-light: #cb4587;
  --hq-brand-glow: #e05a9b;
  --hq-ink: #1c1519;
  --hq-ink-soft: #2a2127;
  --hq-body: #241d21;
  --hq-charcoal: #555754;
  --hq-silver: #a8a8a8;
  --hq-surface: #f7f0f3;
  --hq-paper: #fdfbfc;
  --hq-radius: 18px;
  --hq-radius-lg: 26px;
  --hq-shadow: 0 18px 50px -22px rgba(28, 21, 25, .34);
  --hq-shadow-soft: 0 10px 30px -18px rgba(28, 21, 25, .28);
  --hq-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --hq-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.hq { font-family: var(--hq-sans); color: var(--hq-body); }
.hq *, .hq *::before, .hq *::after { box-sizing: border-box; }
.hq section { position: relative; }
.hq-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.hq h1, .hq h2, .hq h3, .hq .hq-display {
  font-family: var(--hq-display);
  color: var(--hq-ink);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0;
}
.hq p { margin: 0; line-height: 1.65; }

/* ---------- shared section furniture ---------- */
.hq-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--hq-sans);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--hq-brand);
  background: rgba(150, 59, 98, .09);
  border: 1px solid rgba(150, 59, 98, .18);
  border-radius: 999px; padding: 7px 15px;
}
.hq-section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.hq-section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 18px 0 14px; }
.hq-section-head p { color: var(--hq-charcoal); font-size: 17px; }

/* ---------- buttons ---------- */
.hq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--hq-sans); font-size: 16px; font-weight: 600;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hq-btn:focus-visible { outline: 3px solid var(--hq-brand-glow); outline-offset: 3px; }
.hq-btn-primary { background: var(--hq-brand); color: #fff; box-shadow: 0 12px 26px -14px rgba(150, 59, 98, .9); }
.hq-btn-primary:hover { background: var(--hq-brand-dark); color: #fff; transform: translateY(-2px); }
.hq-btn-ghost { background: #fff; color: var(--hq-ink); border-color: rgba(28, 21, 25, .14); }
.hq-btn-ghost:hover { border-color: var(--hq-brand); color: var(--hq-brand); transform: translateY(-2px); }
.hq-btn-light { background: #fff; color: var(--hq-brand); }
.hq-btn-light:hover { background: var(--hq-surface); color: var(--hq-brand-dark); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hq-hero {
  background:
    radial-gradient(900px 420px at 82% 6%, rgba(224, 90, 155, .14), transparent 62%),
    radial-gradient(760px 460px at 8% 92%, rgba(150, 59, 98, .13), transparent 60%),
    linear-gradient(180deg, var(--hq-paper) 0%, var(--hq-surface) 100%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 116px);
  overflow: hidden;
}
.hq-hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.hq-hero h1 { font-size: clamp(36px, 5.4vw, 62px); margin: 22px 0 0; }
.hq-hero h1 .hq-acc {
  background: linear-gradient(120deg, var(--hq-brand) 12%, var(--hq-brand-glow) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hq-hero-sub { font-size: clamp(16px, 1.7vw, 19px); color: var(--hq-charcoal); margin-top: 20px; max-width: 33em; }
/* vendor .button rules float/clear oddly — isolate the CTA row so the note can't collide */
.hq-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; clear: both; }
.hq-hero-cta::after { content: ""; display: block; clear: both; }
.hq-hero-note { clear: both; display: block; margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--hq-silver); }

.hq-hero-art { position: relative; display: flex; justify-content: center; }
.hq-hero-art img { position: relative; width: 100%; max-width: 470px; height: auto; filter: drop-shadow(0 26px 44px rgba(28, 21, 25, .2)); }
.hq-hero-art::before {
  content: ""; position: absolute; inset: 6% 4% 10%;
  background: radial-gradient(circle at 50% 50%, rgba(203, 69, 135, .2), transparent 68%);
  filter: blur(34px);
}

/* ---------- steps ---------- */
.hq-steps { padding: clamp(64px, 8vw, 104px) 0; background: var(--hq-paper); }
.hq-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hq-step {
  background: #fff; border: 1px solid rgba(28, 21, 25, .08);
  border-radius: var(--hq-radius-lg); padding: 26px 24px 30px;
  box-shadow: var(--hq-shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hq-step:hover { transform: translateY(-4px); box-shadow: var(--hq-shadow); border-color: rgba(150, 59, 98, .26); }
.hq-step-media {
  background: var(--hq-surface); border-radius: var(--hq-radius);
  padding: 16px; margin-bottom: 22px; display: flex; justify-content: center;
}
.hq-step-media img { width: 100%; max-width: 240px; height: auto; }
.hq-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--hq-brand); color: #fff;
  font-family: var(--hq-sans); font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.hq-step h3 { font-size: 20px; margin-bottom: 9px; }
.hq-step p { color: var(--hq-charcoal); font-size: 15px; }

/* ---------- features ---------- */
.hq-why { padding: clamp(64px, 8vw, 104px) 0; background: var(--hq-surface); }
.hq-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hq-feat {
  background: #fff; border: 1px solid rgba(28, 21, 25, .07);
  border-radius: var(--hq-radius); padding: 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hq-feat:hover { transform: translateY(-3px); box-shadow: var(--hq-shadow-soft); }
.hq-feat-ico {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(150, 59, 98, .14), rgba(224, 90, 155, .18));
  color: var(--hq-brand); font-size: 19px;
}
.hq-feat h3 { font-size: 17.5px; margin-bottom: 8px; }
.hq-feat p { color: var(--hq-charcoal); font-size: 14.5px; }

/* ---------- closing CTA ---------- */
.hq-cta { padding: clamp(56px, 7vw, 92px) 0; background: var(--hq-paper); }
.hq-cta-inner {
  background: linear-gradient(125deg, var(--hq-brand-dark) 0%, var(--hq-brand) 52%, var(--hq-brand-light) 100%);
  border-radius: var(--hq-radius-lg); padding: clamp(38px, 5vw, 62px);
  text-align: center; color: #fff; box-shadow: 0 26px 60px -30px rgba(122, 46, 79, .95);
}
.hq-cta-inner h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); }
.hq-cta-inner p { color: rgba(255, 255, 255, .9); margin: 16px auto 30px; max-width: 40em; }

/* ---------- vendor sections restyled (testimonials / pricing / blog) ---------- */
.hq-band { padding: clamp(60px, 7vw, 96px) 0; }
.hq-band-surface { background: var(--hq-surface); }
.hq-band-paper { background: var(--hq-paper); }

.hq-band .pricing-plan {
  border-radius: var(--hq-radius-lg) !important;
  border: 1px solid rgba(28, 21, 25, .09) !important;
  box-shadow: var(--hq-shadow-soft);
}
.hq-band .pricing-plan.recommended { border-color: var(--hq-brand) !important; box-shadow: var(--hq-shadow); }
.hq-band .pricing-plan h3 { font-family: var(--hq-display); }
.hq-band .testimonial-box { border-radius: var(--hq-radius-lg); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hq-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hq-hero-sub { margin-left: auto; margin-right: auto; }
  .hq-hero-cta { justify-content: center; }
  .hq-hero-art { order: -1; }
  .hq-hero-art img { max-width: 360px; }
  .hq-steps-grid, .hq-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .hq-steps-grid, .hq-why-grid { grid-template-columns: 1fr; }
  .hq-wrap { padding: 0 18px; }
  .hq-btn { width: 100%; }
  .hq-hero-cta { flex-direction: column; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .hq { text-align: right; }
[dir="rtl"] .hq-section-head { text-align: center; }
[dir="rtl"] .hq-cta-inner { text-align: center; }
[dir="rtl"] .hq-hero h1,
[dir="rtl"] .hq h2,
[dir="rtl"] .hq h3 { letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  .hq-btn, .hq-step, .hq-feat { transition: none; }
  .hq-btn:hover, .hq-step:hover, .hq-feat:hover { transform: none; }
}

/* ---------- owner dashboard: plan truncation warning ---------- */
.hq-plan-warning {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(150,59,98,.08), rgba(224,90,155,.10));
  border: 1px solid rgba(150,59,98,.28);
  border-radius: var(--hq-radius); padding: 18px 22px; margin-bottom: 26px;
  font-family: var(--hq-sans);
}
.hq-plan-warning > i { font-size: 24px; color: var(--hq-brand); flex: none; }
.hq-plan-warning > div { flex: 1 1 300px; }
.hq-plan-warning strong { display: block; color: var(--hq-ink); font-size: 15.5px; margin-bottom: 3px; }
.hq-plan-warning p { margin: 0; color: var(--hq-charcoal); font-size: 14px; line-height: 1.55; }
.hq-plan-warning-btn {
  flex: none; background: var(--hq-brand); color: #fff !important;
  border-radius: 999px; padding: 11px 26px; font-weight: 600; font-size: 14.5px;
  text-decoration: none; transition: background .18s ease;
}
.hq-plan-warning-btn:hover { background: var(--hq-brand-dark); }
[dir="rtl"] .hq-plan-warning { text-align: right; }

/* ---------- owner dashboard: peak-hours heatmap ---------- */
.hq-heat {
  background: #fff; border: 1px solid rgba(28,21,25,.08); border-radius: var(--hq-radius-lg);
  padding: 26px 28px 22px; margin-top: 26px; font-family: var(--hq-sans);
  box-shadow: var(--hq-shadow-soft);
}
.hq-heat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hq-heat-head h3 { font-family: var(--hq-display); font-size: 19px; color: var(--hq-ink); margin: 0; }
.hq-heat-head span { font-size: 13px; color: var(--hq-silver); }
.hq-heat-peak { margin: 8px 0 18px; font-size: 14.5px; color: var(--hq-brand); font-weight: 600; }

/* the grid scrolls on narrow screens rather than squashing the cells */
.hq-heat-grid { overflow-x: auto; padding-bottom: 4px; }
.hq-heat-row { display: flex; align-items: center; gap: 3px; margin-bottom: 3px; min-width: 560px; }
.hq-heat-row > span {
  flex: none; width: 34px; font-size: 11.5px; font-weight: 600;
  color: var(--hq-charcoal); text-transform: uppercase; letter-spacing: .04em;
}
.hq-heat-row > i { flex: 1 1 0; height: 17px; border-radius: 3px; display: block; }
.hq-heat-ticks { display: flex; gap: 3px; min-width: 560px; margin-top: 6px; }
.hq-heat-ticks > span { flex: none; width: 34px; }
.hq-heat-ticks > i { flex: 1 1 0; font-size: 10.5px; color: var(--hq-silver); font-style: normal; text-align: left; }

.hq-heat i.l0 { background: #f1eef0; }
.hq-heat i.l1 { background: rgba(150,59,98,.26); }
.hq-heat i.l2 { background: rgba(150,59,98,.48); }
.hq-heat i.l3 { background: rgba(150,59,98,.72); }
.hq-heat i.l4 { background: var(--hq-brand); }

.hq-heat-legend { display: flex; align-items: center; gap: 5px; margin-top: 16px; justify-content: flex-end; }
.hq-heat-legend span { font-size: 11.5px; color: var(--hq-silver); }
.hq-heat-legend i { width: 15px; height: 15px; border-radius: 3px; display: block; }
[dir="rtl"] .hq-heat-legend { justify-content: flex-start; }
