/* ==========================================================================
   AskHafiz AI landing page (loads after styles.css + product.css)
   ========================================================================== */

/* Chat window frame used for every real screenshot */
.ah-win { position: relative; display: block; margin: 0; padding: 0; border: 1px solid #2a2a2a; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 60px rgba(15, 20, 18, .35), 0 2px 6px rgba(0,0,0,.25); text-align: left; font: inherit; color: inherit; }
.ah-win-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #171717; border-bottom: 1px solid #262626; }
.ah-win-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.ah-win-bar > span { margin-left: 10px; display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px var(--font-body); color: #f2f2f2; letter-spacing: .01em; }
.ah-win-bar b { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.ah-win img { display: block; width: 100%; height: auto; }

/* Hero art */
.ah-hero-art { position: relative; min-height: 560px; }
.ah-win--front { position: relative; z-index: 2; width: 84%; max-height: 600px; transform: rotate(-1.5deg); }
.ah-win--front::after, .ah-win--case::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(0,0,0,0), #000 85%); pointer-events: none; }
.ah-win--back { position: absolute; z-index: 1; right: 0; top: 46px; width: 62%; max-height: 460px; transform: rotate(4deg); opacity: .9; filter: saturate(.9); }
.ah-float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ivory-light); border: 1px solid #E4D9C7; box-shadow: 0 16px 34px rgba(23,43,36,.2); font-size: 13.5px; font-weight: 600; color: var(--forest); }
.ah-float svg { width: 17px; height: 17px; color: var(--gold); }
.ah-float--1 { left: -14px; bottom: 120px; }
.ah-float--2 { right: 6px; bottom: 36px; }
.ah-hero .pp-hero-grid { align-items: center; }

/* Owner note */
.ah-owner { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; max-width: 560px; padding: 12px 14px; border-radius: 12px; background: rgba(176,138,74,.08); border: 1px dashed #CDBB9D; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.ah-owner strong { color: var(--ink); }
.ah-owner svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.ah-owner--box { margin: 18px auto 0; }

/* Real conversations */
.ah-cases { background: var(--parchment); }
.ah-case-list { display: grid; gap: 84px; margin-top: 64px; }
.ah-case { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ah-case--flip .ah-case-copy { order: 2; }
.ah-tag { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--forest); color: var(--gold-light); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ah-case h3 { margin-top: 18px; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; }
.ah-case-copy > p { margin-top: 12px; font-size: 16.5px; color: var(--ink-muted); }
.ah-did { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.ah-did li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.ah-did svg { width: 21px; height: 21px; color: var(--forest); flex: none; margin-top: 1px; }
.ah-open { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 12px 20px; border-radius: 999px; border: 1px solid #CDBB9D; background: var(--ivory-light); color: var(--forest); font: 600 15px var(--font-body); cursor: pointer; transition: background .2s, transform .2s; }
.ah-open span { font-weight: 500; font-size: 13px; color: var(--ink-muted); }
.ah-open svg { width: 18px; height: 18px; }
.ah-open:hover { background: var(--ivory); transform: translateY(-2px); }
.ah-win--case { width: 100%; max-height: 560px; cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ah-win--case:hover { transform: translateY(-6px); box-shadow: 0 40px 70px rgba(15,20,18,.42); }
.ah-more { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.95); color: #111; font: 600 13px var(--font-body); white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.ah-cases .pp-cta-row { margin-top: 72px; }

/* Features tweaks */
.ah-quote { margin-top: 18px !important; padding: 12px 16px; border-radius: 12px; background: var(--ivory-light); border: 1px solid #DCC79D; font-family: var(--font-display); font-style: italic; font-size: 19px !important; color: var(--forest) !important; }

/* Steps */
.ah-steps-sec { background: var(--ivory-light); }
.ah-steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ah-steps li { padding: 28px 26px; border-radius: var(--radius-lg); background: var(--ivory); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.ah-steps li > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--forest); color: var(--gold-light); font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.ah-steps strong { display: block; margin-top: 16px; font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.15; }
.ah-steps p { margin-top: 8px; font-size: 15.5px; color: #4A463D; }

/* Comparison */
.ah-table { margin-top: 44px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--ivory-light); box-shadow: var(--shadow-soft); }
.ah-tr { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); }
.ah-tr:first-child { border-top: 0; }
.ah-tr > span { padding: 16px 20px; font-size: 15.5px; }
.ah-th > span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.ah-tr > span:nth-child(2), .ah-tr > span:nth-child(3) { text-align: center; }
.ah-tr > span:nth-child(3) { background: rgba(36,61,50,.06); }
.ah-th .ah-us { background: var(--forest) !important; color: var(--gold-light); }
.ah-no { color: #B4432B; font-weight: 600; }
.ah-yes { color: var(--forest); font-weight: 700; font-size: 18px !important; }

/* Founder */
.ah-founder-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: center; }
.ah-founder-grid > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 240px 240px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lift); }
.ah-founder .section-title { text-align: left; }
.ah-founder p:not(.pp-sign) { margin-top: 18px; font-size: 17.5px; color: #3F3B33; }

/* Honest */
.ah-honest { background: var(--parchment); }
.ah-honest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }

/* Full-screen conversation viewer */
.ah-lb { position: fixed; inset: 0; z-index: 200; display: none; flex-direction: column; background: #0A0F0D; }
.ah-lb.is-open { display: flex; }
.ah-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px 20px; border-bottom: 1px solid rgba(213,183,121,.18); }
.ah-lb-bar strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--white); line-height: 1.2; }
.ah-lb-bar span { font-size: 12.5px; color: rgba(240,231,214,.6); }
.ah-lb-close { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(213,183,121,.4); background: rgba(255,255,255,.06); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.ah-lb-close svg { width: 22px; height: 22px; }
.ah-lb-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 22px 14px 30px; }
.ah-lb-body img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto 10px; border-radius: 10px; }
.ah-lb-foot { display: flex; justify-content: center; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(213,183,121,.18); }
.ah-lb-foot .btn { width: min(100%, 460px); }
body.ah-lock { overflow: hidden; }

/* Responsive */
@media (max-width: 1199px) {
  .ah-hero-art { min-height: 480px; }
}
@media (max-width: 960px) {
  .ah-hero-art { max-width: 560px; margin-inline: auto; width: 100%; min-height: 0; padding-bottom: 20px; }
  .ah-win--front { width: 88%; max-height: 520px; }
  .ah-case, .ah-founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .ah-case--flip .ah-case-copy { order: 0; }
  .ah-win--case { max-width: 560px; margin-inline: auto; }
  .ah-founder-grid > img { max-width: 340px; margin-inline: auto; }
  .ah-steps { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .ah-hero h1 { font-size: 42px; }
  .ah-hero-art { margin-top: 8px; }
  .ah-win--front { width: 92%; max-height: 430px; transform: rotate(-1deg); }
  .ah-win--back { width: 64%; top: 30px; max-height: 330px; }
  .ah-float { font-size: 12px; padding: 8px 12px; }
  .ah-float--1 { left: 0; bottom: 86px; }
  .ah-float--2 { right: 0; bottom: 18px; }
  .ah-case-list { gap: 64px; margin-top: 44px; }
  .ah-case h3 { font-size: 28px; }
  .ah-did li { font-size: 15.5px; }
  .ah-open { width: 100%; justify-content: center; }
  .ah-win--case { max-height: 470px; }
  .ah-tr { grid-template-columns: 1.4fr .8fr .8fr; }
  .ah-tr > span { padding: 13px 12px; font-size: 14px; }
  .ah-th > span { font-size: 10px; letter-spacing: .08em; }
  .ah-honest-grid { grid-template-columns: 1fr; }
  .ah-owner { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .ah-hero h1 { font-size: 38px; }
}

/* keep the hero column inside the screen on phones */
.ah-hero .pp-hero-copy, .ah-hero .pp-hero-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .ah-hero .pp-cta { white-space: normal; text-align: center; padding-inline: 18px; }
  .ah-hero .pp-badges .pp-badge--wide span { white-space: normal; }
}
.ah-hero h1 .gold-em { display: inline; }
.pp-insider li > span { min-width: 0; }
.ah-hero h1 { font-size: clamp(42px, 4.3vw, 62px); }
.ah-hero .pp-hero-grid { padding-block: 40px 40px; }
.ah-hero .pp-insider { margin-top: 14px; }
.ah-owner a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ah-owner a:hover { color: var(--gold); }
