/* =================================================================
   Witness theme overrides
   Layered on top of Quiety main.min.css. We keep their class system
   (aih-*, ah-bg, bgc-dark-1, accordion, swiper, etc.) but swap the
   palette + typography to Witness's warm, contemplative aesthetic.
   ================================================================= */

:root {
  --w-bg:         #0a0807;
  --w-bg-2:       #14100d;
  --w-surface:    #1c1612;
  --w-surface-2: #2a211b;
  --w-border:     rgba(245, 237, 224, 0.08);
  --w-accent:     #e8b04b;
  --w-accent-2:   #f7d989;
  --w-accent-soft: rgba(232, 176, 75, 0.12);
  --w-text:       #f5ede0;
  --w-text-soft: #c9bdac;
  --w-text-muted: #8a7e6f;
  --w-display:   "Fraunces", "Cormorant Garamond", Georgia, serif;
  --w-body:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Global background & body ---------- */
html, body { background-color: var(--w-bg); }
body {
  font-family: var(--w-body);
  color: var(--w-text-soft);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

/* ---------- Token re-skin (overrides Quiety AI tokens) ---------- */
.bgc-dark-1, .ai-home-hero-area.bgc-dark-1 { background-color: var(--w-bg) !important; }
.bgc-dark-2 { background-color: var(--w-bg-2) !important; }
.ah-bg, .ah-bg-2, .ah-bg-3, .ah-bg-4 { background-color: var(--w-bg-2) !important; }

.clr-text-1 { color: var(--w-text-soft) !important; }
.aih-color { color: var(--w-accent) !important; }
.aih-color-two { color: var(--w-text) !important; }
.aih-color-three { color: var(--w-text-soft) !important; }
.aih-color-four { color: var(--w-accent-2) !important; }
.aih-color-five { color: var(--w-text-soft) !important; }
.aih-bg-color { background-color: var(--w-accent) !important; color: var(--w-bg) !important; }
.aih-bg-color-two { background-color: var(--w-surface) !important; }
.ca-two-body-clr { color: var(--w-text-muted) !important; }

.text-white, .text-light { color: var(--w-text) !important; }
.bg-white, .bgc-white { background-color: var(--w-surface) !important; color: var(--w-text) !important; }

/* Surface cards on dark */
.aih-info-card-item {
  background-color: var(--w-surface) !important;
  border: 1px solid var(--w-border);
  color: var(--w-text-soft);
}
.aih-info-card-item h5,
.aih-info-card-item .aih-color-two { color: var(--w-text) !important; }
.aih-info-card-item .ca-two-body-clr { color: var(--w-text-muted) !important; }
.aih-shadow-hover:hover {
  box-shadow: 0 20px 60px -20px rgba(232, 176, 75, 0.18), 0 0 0 1px var(--w-accent-soft) !important;
  transform: translateY(-2px);
}

/* Process box */
.aih-process-box { background: var(--w-surface) !important; border-color: var(--w-border) !important; }
.aih-process-item h5, .aih-process-item .aih-color-two { color: var(--w-text) !important; }
.aih-step { color: var(--w-text-muted) !important; border-color: var(--w-border) !important; background: transparent !important; }
.aih-border-style { border-right: 1px dashed var(--w-border) !important; }
@media (max-width: 991px) { .aih-border-style { border-right: none !important; border-bottom: 1px dashed var(--w-border) !important; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, .display-1, .display-2, .display-3 { font-family: var(--w-display); font-weight: 500; letter-spacing: -0.01em; color: var(--w-text); }
.aih-hero-title, .aih-title, .display-1, .display-2 { font-family: var(--w-display) !important; font-weight: 400 !important; letter-spacing: -0.02em; }
.aih-hero-title em, .aih-title em, .hero-em { font-style: italic; font-weight: 400; color: var(--w-accent); font-family: var(--w-display); }
.fs-72 { font-size: clamp(2.6rem, 6vw, 4.5rem) !important; line-height: 1.05 !important; }
.fs-48 { font-size: clamp(2rem, 4vw, 3rem) !important; line-height: 1.1 !important; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; color: var(--w-accent); font-weight: 600; font-family: var(--w-body); }

/* ---------- Header / nav ---------- */
.main-header { padding-top: 24px; }
.navbar-brand { font-family: var(--w-display); font-weight: 500; font-size: 1.5rem; color: var(--w-text) !important; letter-spacing: 0.08em; text-transform: uppercase; }
.navbar-brand .brand-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--w-accent); margin-right: 10px; vertical-align: middle; }
.main-menu .nav-link { color: var(--w-text-soft) !important; font-size: 0.95rem; padding: 0.5rem 1.1rem; }
.main-menu .nav-link:hover { color: var(--w-accent) !important; }

/* ---------- Buttons ---------- */
.btn.aih-btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--w-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn.aih-btn.aih-bg-color { box-shadow: 0 12px 30px -10px rgba(232, 176, 75, 0.4); }
.btn.aih-btn.aih-bg-color:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(232, 176, 75, 0.55); background: var(--w-accent-2) !important; }
.btn-ghost { padding: 14px 28px; border-radius: 999px; border: 1px solid var(--w-border); color: var(--w-text) !important; background: transparent; transition: all .25s ease; }
.btn-ghost:hover { border-color: var(--w-accent); color: var(--w-accent) !important; background: var(--w-accent-soft); }

/* ---------- Hero ---------- */
.ai-home-hero-area { padding: 180px 0 100px !important; position: relative; overflow: hidden; }
.ai-home-hero-area::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 10%, rgba(232, 176, 75, 0.18), transparent 65%),
    radial-gradient(ellipse 35% 25% at 80% 80%, rgba(232, 176, 75, 0.06), transparent 70%);
}
.ai-home-hero-area > .container { position: relative; z-index: 2; }
.aih-hero-title { color: var(--w-text) !important; }

/* Phone-frame placeholder */
.witness-phone {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #2a211b, #14100d);
  box-shadow:
    0 80px 120px -40px rgba(0,0,0,0.6),
    0 0 0 1px var(--w-border),
    inset 0 0 0 2px rgba(232, 176, 75, 0.08);
}
.witness-phone .screen {
  position: relative;
  border-radius: 32px;
  height: 100%;
  background: radial-gradient(ellipse at top, #2c2218, #0a0807 70%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.witness-phone .notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #0a0807; border-radius: 999px; z-index: 3;
}
.witness-phone .placeholder-label {
  font-family: var(--w-body); font-size: 0.75rem; color: var(--w-text-muted);
  text-transform: uppercase; letter-spacing: 0.18em;
  padding: 8px 18px; border: 1px dashed var(--w-border); border-radius: 999px;
}
.witness-phone img.app-screenshot,
.witness-phone picture.app-screenshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }

/* Hero portrait orb (decorative) */
.hero-portrait {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(247, 217, 137, 0.6), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(232, 176, 75, 0.35), transparent 60%),
    radial-gradient(circle at 50% 50%, #2a211b, #0a0807 75%);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5), 0 30px 80px -20px rgba(232,176,75,0.25);
  animation: w-breathe 8s ease-in-out infinite;
}
.hero-portrait::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 1px solid var(--w-accent-soft);
  animation: w-rotate 30s linear infinite;
}
@keyframes w-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes w-rotate { to { transform: rotate(360deg); } }

/* ---------- Trust strip ---------- */
.trust-strip { padding: 36px 0; border-top: 1px solid var(--w-border); border-bottom: 1px solid var(--w-border); }
.trust-strip .trust-label { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--w-text-muted); }
.trust-logo { color: var(--w-text-soft); font-family: var(--w-display); font-size: 1.25rem; opacity: 0.6; transition: opacity .25s ease; }
.trust-logo:hover { opacity: 1; }

/* ---------- Screenshot gallery ---------- */
.shot-frame {
  position: relative; aspect-ratio: 9/19.5; border-radius: 28px;
  background: linear-gradient(160deg, #2a211b, #0a0807);
  padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px var(--w-border);
  overflow: hidden;
}
.shot-frame .shot-inner {
  position: relative; height: 100%; border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse at top, #2c2218, #0a0807 70%);
  display: flex; align-items: center; justify-content: center;
}
.shot-frame .placeholder-tag {
  font-family: var(--w-body); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--w-text-muted); padding: 6px 12px; border: 1px dashed var(--w-border); border-radius: 999px;
}
.shot-frame .shot-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pricing ---------- */
.aih-price-area .aih-price-card {
  background: var(--w-surface) !important;
  border: 1px solid var(--w-border) !important;
  border-radius: 24px;
  padding: 36px 32px;
  height: 100%;
  transition: border-color .25s ease, transform .25s ease;
}
.aih-price-area .aih-price-card.featured {
  border-color: var(--w-accent) !important;
  background: linear-gradient(160deg, #2a211b, var(--w-surface)) !important;
}
.aih-price-area .aih-price-card:hover { transform: translateY(-3px); border-color: var(--w-accent-soft) !important; }
.price-tag { font-family: var(--w-display); font-size: 3rem; color: var(--w-text); font-weight: 400; }
.price-period { color: var(--w-text-muted); font-size: 0.9rem; }
.price-features { list-style: none; padding: 0; margin: 24px 0 0; }
.price-features li { padding: 10px 0; color: var(--w-text-soft); display: flex; gap: 10px; align-items: flex-start; }
.price-features li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--w-accent-soft); flex-shrink: 0; margin-top: 4px;
  background-image: radial-gradient(circle, var(--w-accent) 0 25%, transparent 30%); }

/* ---------- Testimonials ---------- */
.aih-testimonial-item {
  background: var(--w-surface) !important;
  border: 1px solid var(--w-border);
  border-radius: 24px;
  padding: 36px;
  height: 100%;
}
.aih-testimonial-item p { color: var(--w-text-soft); font-size: 1.05rem; line-height: 1.6; font-family: var(--w-display); font-style: italic; }
.aih-testimonial-item h6 { color: var(--w-text) !important; font-family: var(--w-body); font-size: 0.95rem; margin-bottom: 0; }
.testimonial-name-line { font-size: 0.8rem; color: var(--w-text-muted); }
.avatar-orb {
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--w-accent-2), var(--w-accent) 60%, #6b4a18);
  display: flex; align-items: center; justify-content: center; color: var(--w-bg); font-family: var(--w-display); font-weight: 500;
}

/* ---------- FAQ accordion ---------- */
.aih-faq-area .accordion-item {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--w-border) !important;
  border-radius: 0 !important;
}
.aih-faq-area .accordion-button {
  background: transparent !important;
  color: var(--w-text) !important;
  font-family: var(--w-display);
  font-size: 1.25rem;
  font-weight: 400;
  padding: 24px 0;
  box-shadow: none !important;
}
.aih-faq-area .accordion-button:not(.collapsed) { color: var(--w-accent) !important; }
.aih-faq-area .accordion-body { color: var(--w-text-soft); padding: 0 0 24px; line-height: 1.65; }
.aih-faq-area .accordion-button::after {
  filter: brightness(0) invert(1); opacity: 0.5;
}

/* ---------- Footer ---------- */
.aih-footer { background: var(--w-bg-2) !important; border-radius: 0 !important; padding-top: 100px !important; padding-bottom: 0 !important; }
.aih-footer h3, .aih-footer h6 { color: var(--w-text) !important; font-family: var(--w-display); font-weight: 400; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.aih-footer .footer-nav-list a, .aih-footer p { color: var(--w-text-soft) !important; transition: color .2s ease; }
.aih-footer .footer-nav-list a:hover { color: var(--w-accent) !important; }
.aih-footer .footer-nav-list li { margin-bottom: 12px; }
.aih-footer .footer-social-list a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--w-surface) !important; color: var(--w-text-soft) !important;
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s ease;
  border: 1px solid var(--w-border);
}
.aih-footer .footer-social-list a:hover { color: var(--w-accent) !important; border-color: var(--w-accent) !important; }
.rm-footer-bottom { border-top: 1px solid var(--w-border); margin-top: 60px; }
.rm-footer-bottom p { color: var(--w-text-muted) !important; font-size: 0.85rem; }

/* ---------- App store badges ---------- */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 14px;
  background: var(--w-surface); border: 1px solid var(--w-border);
  color: var(--w-text); text-decoration: none; transition: all .2s ease;
  min-width: 180px;
}
.store-badge:hover { border-color: var(--w-accent); color: var(--w-text); background: var(--w-surface-2); }
.store-badge svg { flex-shrink: 0; }
.store-badge .store-lead { font-size: 0.7rem; color: var(--w-text-muted); display: block; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; }
.store-badge .store-name { font-family: var(--w-display); font-size: 1.2rem; line-height: 1.2; }

/* ---------- Section utilities ---------- */
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 70px 0; }
.aih-info-card-area, .aih-info-card-lg-area, .aih-process-area, .aih-cummiunte-area, .aih-faq-area { padding: 80px 0 !important; }

/* ---------- Preloader ---------- */
#preloader { background: var(--w-bg) !important; }
.preloader-icon { width: 56px; height: 56px; opacity: 0.9; }
.loading-bar { background: var(--w-accent) !important; }

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 991px) {
  .ai-home-hero-area { padding: 120px 0 60px !important; }
  .hero-portrait { max-width: 320px; margin-top: 40px; }
  .witness-phone { max-width: 280px; }
  .section-pad, .aih-info-card-area, .aih-info-card-lg-area, .aih-process-area, .aih-faq-area { padding: 60px 0 !important; }
}
