/* ============================================================
   Qahal marketing site — "Assembly" design system
   Warm, pastoral, unhurried. Cream canvas · Fraunces display
   · Geist body · Geist Mono meta · violet + gold accents.
   ============================================================ */

:root {
  /* Warm neutrals */
  --cream:        #FAF9F6; /* page canvas */
  --cream-band:   #f4efe6; /* trust band + footer */
  --mock-row:     #faf7f1; /* inner mock rows */
  --ink:          #211d17; /* headings + primary button */
  --body:         #6b6355; /* body text */
  --meta:         #8a7d64; /* warm muted meta */
  --faint:        #a99e88; /* faint meta */
  --faint2:       #b0a58d;
  --border:       #ece4d5; /* warm border */
  --border-soft:  #f0e9dd; /* softer divider */
  --btn-outline:  #ded1bc; /* light button outline */

  /* Accents */
  --violet:        #7c5cff; /* italic highlights, links, active nav */
  --violet-hover:  #5b3fe0;
  --gold:          #a8926a; /* mono eyebrows */
  --gold2:         #a8845a; /* glyphs, step numbers, checks */

  /* Dark bands (espresso) */
  --espresso:    #241c15;
  --dark-text:   #f0e9dd;
  --dark-muted:  #c9bfab;
  --dark-gold:   #cbb488;

  /* Fonts */
  --f-serif: 'Fraunces', Georgia, serif;
  --f-body:  'Geist', system-ui, sans-serif;
  --f-mono:  'Geist Mono', ui-monospace, monospace;
  --f-brand: 'Bricolage Grotesque', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: var(--violet); }
a:hover { color: var(--violet-hover); }
::selection { background: #e6dcc6; }

img, svg { max-width: 100%; }

/* Utilities ------------------------------------------------- */
.ff-serif { font-family: var(--f-serif); }
.ff-mono  { font-family: var(--f-mono); }
.ff-brand { font-family: var(--f-brand); }
.container { max-width: 1200px; margin: 0 auto; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* Float animation for the hero mocks ------------------------ */
@keyframes qfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.qfloat { animation: qfloat 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .qfloat { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ===================== HEADER ============================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 249, 246, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.logo-tile {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(150deg, #4f46e5, #7c6cf0);
  box-shadow: 0 4px 12px -3px rgba(79, 70, 229, .5);
}
.logo-q {
  font-family: var(--f-brand); font-weight: 700; font-size: 30px;
  line-height: 1; letter-spacing: -.02em; color: #fff; transform: translateY(-1px);
}
.wordmark {
  font-family: var(--f-brand); font-weight: 700; font-size: 21px;
  letter-spacing: -.02em; color: var(--ink);
}
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative; font-family: var(--f-body);
  font-size: 14.5px; font-weight: 500; color: var(--body);
  padding: 8px 14px; border-radius: 9px; text-decoration: none;
}
.main-nav a:hover { color: var(--ink); }
.nav-underline {
  position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--violet);
}
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.signin {
  font-size: 14.5px; font-weight: 500; color: var(--body);
  text-decoration: none; padding: 8px 12px;
}
.signin:hover { color: var(--ink); }

/* ===================== BUTTONS ============================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); cursor: pointer; text-decoration: none;
  border: none; border-radius: 13px; line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease,
              transform .15s ease, box-shadow .2s ease;
}
.btn-ink { background: var(--ink); color: #fff; font-weight: 600; }
.btn-ink:hover { background: #100d09; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--btn-outline); font-weight: 600; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-cream { background: var(--cream); color: var(--espresso); font-weight: 700; }
.btn-cream:hover { background: #fff; color: var(--espresso); }
.btn-dark-ghost {
  background: rgba(255, 255, 255, .06); color: var(--dark-text);
  border: 1px solid rgba(203, 180, 136, .35); font-weight: 600;
}
.btn-dark-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--dark-text); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--f-body); font-weight: 600; font-size: 15px;
  color: var(--violet); text-decoration: none;
}
.btn-link:hover { color: var(--violet-hover); }
.btn-block { width: 100%; justify-content: center; }
.btn-arrow { opacity: .6; }

/* ===================== CARDS ============================== */
.card {
  background: #fff; border: 1px solid var(--border);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card-hover:hover {
  box-shadow: 0 16px 34px -24px rgba(36, 28, 21, .45);
  transform: translateY(-2px);
}
.glyph-tile {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(150deg, #f4eee2, #ece1cf);
  color: var(--gold2); font-family: var(--f-mono); font-weight: 600; font-size: 16px;
}

/* ===================== SHOWCASE (hero tabs) =============== */
.showcase-glow {
  position: absolute; inset: -6% 4% -10% 4%;
  background: radial-gradient(60% 60% at 50% 8%, rgba(124, 92, 255, .14), transparent 70%);
  filter: blur(10px);
}
.tab-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 20px;
}
.tab-pill {
  cursor: pointer; font-family: var(--f-body); font-size: 13.5px; font-weight: 600;
  padding: 9px 17px; border-radius: 999px;
  background: transparent; color: var(--body); border: 1px solid var(--btn-outline);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab-pill:hover { color: var(--ink); }
.tab-pill[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-pill[aria-selected="true"]:hover { color: #fff; }
.mock-panel { display: none; }
.mock-panel.is-active { display: block; }
.mock-caption {
  text-align: center; font-family: var(--f-mono); font-size: 12px;
  color: var(--faint); margin-top: 16px; letter-spacing: .02em;
}

/* Browser-chrome frame shared by all mocks */
.mock-frame {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 30px 60px -32px rgba(36, 28, 21, .45); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid var(--border-soft);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-url {
  margin-left: 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--faint2);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--mock-row); border: 1px solid var(--border-soft);
  border-radius: 11px; padding: 10px 12px;
}
.avatar {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font-size: 11.5px; font-weight: 600;
}
.pill-green {
  font-size: 11.5px; font-weight: 600; color: #0a7d55; background: #daf5e9;
  border-radius: 999px; padding: 5px 11px;
}
.pill-gold {
  font-size: 11px; font-weight: 600; color: var(--gold2); background: #f2ebdd;
  border-radius: 999px; padding: 4px 9px;
}

/* ===================== CHECK ROWS / CHIPS ================= */
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-badge {
  flex: none; margin-top: 2px; display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #f2ebdd; color: var(--gold2); font-size: 11px; font-weight: 700;
}
.check-label { font-size: 14px; color: #4a4335; line-height: 1.45; }
.chip {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 13px 14px;
}
.chip .check-badge { margin-top: 0; }
.chip-label { font-size: 13.5px; color: #4a4335; font-weight: 500; }

/* ===================== FOOTER ============================= */
.site-footer { border-top: 1px solid var(--border); background: var(--cream-band); }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 52px 24px 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px;
}
.footer-brand { grid-column: 1 / -1; max-width: 320px; }
.footer-col-title {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); font-weight: 600;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.footer-links a { font-family: var(--f-body); font-size: 14px; color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px 40px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ===================== RESPONSIVE ========================= */
/* Fluid type via clamp() and auto-fit grids handle most of it;
   these rules compact the header on small screens (per reference). */
@media (max-width: 620px) {
  .wordmark { display: none; }
  .signin { display: none; }
  .header-inner { padding: 0 14px; gap: 8px; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 8px 10px; font-size: 13.5px; }
  .btn-header { padding: 11px 15px; }
}
@media (max-width: 400px) {
  .main-nav a { padding: 8px 7px; font-size: 12.5px; }
}
