/* ==========================================================================
   ask.css — "Ask the Home" product page (Product ▸ Ask the Home).
   Layers on tokens + coverage-model + landing + story + home + product.
   Adds the interactive conversation player + the few section components
   unique to this page. All page-specific classes are prefixed .ah-.
   ========================================================================== */

/* current-page marker in the Product mega menu */
.mega-item.is-current { background: rgba(23,95,100,0.06); }
.mega-item.is-current .mega-ic { background: var(--accent); color: #f3efe3; }

/* ── Hero layout ──────────────────────────────────────────────────────── */
.ah-hero .hero-grid { align-items: center; }
.hero-pill .dot.live {
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(93,122,61,0.5);
  animation: ahPulse 2s infinite;
}
@keyframes ahPulse {
  0%   { box-shadow: 0 0 0 0 rgba(93,122,61,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(93,122,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(93,122,61,0); }
}
.ah-supporting {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 600; color: var(--brown);
}
.ah-supporting i { font-size: 20px; color: var(--gold); }

/* ── Readability bump for the "Data, not opinions" cards (small screens) ─ */
#trust .feat-grid.c2 { max-width: 920px; margin-inline: auto; gap: 22px; }
#trust .feat-card { padding: 34px 32px; }
#trust .feat-tag { font-size: 13px; margin-bottom: 11px; }
#trust .feat-card h3 { font-size: 24px; margin-bottom: 11px; }
#trust .feat-card p { font-size: 16.5px; line-height: 1.6; }
@media (max-width: 700px) {
  #trust .feat-grid.c2 { grid-template-columns: 1fr; }
}

/* ══ Dark green hero (Apple-style intro + photos / chat composition) ════ */
.ah-hero--dark {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(212,169,85,0.10), transparent 55%),
    linear-gradient(180deg, #0f3236, #0a2629);
  color: #f5efe2;
}
.ah-hero--dark .wrap { padding-top: 76px; padding-bottom: 88px; }

/* centered intro */
.ahd-intro { max-width: 920px; margin: 0 auto; text-align: center; }
.ahd-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft);
  border: 1px solid rgba(212,169,85,0.3); background: rgba(212,169,85,0.08);
  padding: 7px 16px; border-radius: 100px;
}
.ahd-eyebrow i { font-size: 15px; }
.ah-hero--dark .ahd-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(40px, 5.6vw, 74px); line-height: 1.04; margin: 22px 0 0;
  color: #fbf7ee; text-wrap: balance;
}
.ah-hero--dark .ahd-title em { font-style: italic; color: var(--gold-soft); }
.ahd-sub {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500; color: rgba(245,239,226,0.86); margin: 18px 0 0;
}
.ahd-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.ahd-ghost {
  background: transparent; color: #f5efe2; border: 1px solid rgba(245,239,226,0.28);
}
.ahd-ghost:hover { background: rgba(245,239,226,0.08); border-color: rgba(245,239,226,0.5); }

/* composition stage */
.ahd-stage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-top: 72px;
}

/* photo collage (left) */
.ahd-photos { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.ahd-collage { position: relative; width: 100%; max-width: 440px; height: 400px; }
.ahd-photo {
  position: absolute; margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(212,169,85,0.4);
  box-shadow: 0 34px 70px -36px rgba(0,0,0,0.7);
}
.ahd-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ahd-photo--a { width: 60%; aspect-ratio: 4/3; top: 8px; left: 0; transform: rotate(-3deg); z-index: 2; }
.ahd-photo--b { width: 46%; aspect-ratio: 4/3; top: 0; right: 0; transform: rotate(3deg); z-index: 1; }
.ahd-photo--c { width: 52%; aspect-ratio: 4/3; bottom: 0; left: 24%; transform: rotate(2deg); z-index: 3; }
.ahd-quote {
  font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3;
  text-align: center; color: rgba(245,239,226,0.7); margin: 0;
}
.ahd-quote span { color: var(--gold-soft); font-weight: 600; }

/* chat column (right) — a touch smaller than before */
.ahd-chat-col { max-width: 480px; width: 100%; justify-self: center; }
.ah-hero--dark .ah-chat { width: 100%; box-shadow: 0 50px 110px -50px rgba(0,0,0,0.75); }
.ah-hero--dark .ah-chat-body { height: 290px; }
.ah-hero--dark .ah-chip {
  background: rgba(245,239,226,0.06); border-color: rgba(245,239,226,0.18); color: rgba(245,239,226,0.9);
}
.ah-hero--dark .ah-chip i { color: var(--gold-soft); }
.ah-hero--dark .ah-chip:hover { border-color: var(--gold-soft); color: #fff; background: rgba(245,239,226,0.1); }
.ah-hero--dark .ah-chip:hover i { color: var(--gold-soft); }

@media (max-width: 1000px) {
  .ahd-stage { grid-template-columns: 1fr; gap: 56px; }
  .ahd-collage { max-width: 380px; height: 340px; }
  .ahd-chat-col { max-width: 520px; }
}
@media (max-width: 560px) {
  .ahd-collage { height: 290px; }
}

/* ── The chat mock "video" window ─────────────────────────────────────── */
.ah-chat {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 50px 110px -55px rgba(36,30,22,0.6);
  overflow: hidden; display: flex; flex-direction: column;
  width: calc(100% + 28px);
}
.ah-chat-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.ah-chat-bar .dots { display: inline-flex; gap: 6px; }
.ah-chat-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.ah-url {
  flex: 1; text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--brown-4);
}
.ah-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); background: rgba(23,95,100,0.09);
  border: 1px solid rgba(23,95,100,0.18); padding: 5px 10px; border-radius: 100px;
}
.ah-badge i { font-size: 13px; }

.ah-chat-body {
  padding: 22px 20px; display: flex; flex-direction: column; gap: 16px;
  height: 320px; overflow: hidden; position: relative;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(179,136,74,0.04), transparent 60%),
    var(--bg);
  scroll-behavior: smooth;
}

/* messages */
.ah-msg { display: flex; gap: 11px; max-width: 90%; animation: ahRise .42s cubic-bezier(.16,.84,.34,1) both; }
@keyframes ahRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ah-msg.q { align-self: flex-end; flex-direction: row-reverse; }
.ah-ava {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  font-size: 17px; color: #f3efe3;
  background: radial-gradient(circle at 50% 36%, #237b80, #175f64 72%);
}
.ah-msg.q .ah-ava { background: var(--surface-2); color: var(--brown-3); }
.ah-bub {
  padding: 12px 15px; border-radius: 14px; font-size: 16px; line-height: 1.5;
  text-wrap: pretty;
}
.ah-msg.q .ah-bub { background: var(--accent); color: #f3efe3; border-bottom-right-radius: 4px; }
.ah-msg.a .ah-bub { background: var(--surface); border: 1px solid var(--line); color: var(--brown-2); border-bottom-left-radius: 4px; }
.ah-bub b { color: var(--brown); font-weight: 600; }
.ah-bub .ah-src {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-family: var(--mono); font-size: 10.5px; color: var(--brown-4); letter-spacing: 0.01em;
  border-top: 1px dashed var(--line); padding-top: 9px; width: 100%;
}
.ah-bub .ah-src i { font-size: 12px; color: var(--accent); }
.ah-bub .ah-src.none i { color: var(--gold); }

/* answer caret while "streaming" */
.ah-stream::after {
  content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px;
  background: var(--accent); vertical-align: text-bottom; animation: ahBlink 1s steps(2) infinite;
}
@keyframes ahBlink { 50% { opacity: 0; } }

/* typing indicator */
.ah-typing { display: flex; gap: 11px; align-items: center; align-self: flex-start; animation: ahRise .3s both; }
.ah-typing .ah-ava { width: 32px; height: 32px; }
.ah-typing .ah-dots {
  display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 4px;
}
.ah-typing .ah-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brown-4); opacity: .4;
  animation: ahBounce 1.2s infinite;
}
.ah-typing .ah-dots span:nth-child(2) { animation-delay: .18s; }
.ah-typing .ah-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes ahBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: .9; } }

/* fade mask at top so older messages slide under the bar cleanly */
.ah-chat-body::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg), transparent);
}

/* input row — the "field that fills in" */
.ah-inputbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-top: 1px solid var(--line); background: var(--surface);
}
.ah-field {
  flex: 1; display: flex; align-items: center; min-height: 22px;
  font-size: 14.5px; color: var(--brown-2); min-width: 0;
}
.ah-field .ah-ph { color: var(--brown-4); }
.ah-field .ah-caret {
  display: inline-block; width: 1.5px; height: 18px; margin-left: 1px;
  background: var(--accent); animation: ahBlink 1s steps(2) infinite; vertical-align: middle;
}
.ah-send {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 18px; color: #f3efe3; background: var(--accent);
  transition: background .15s ease, transform .15s ease;
}
.ah-send:hover { background: var(--accent-soft); transform: translateY(-1px); }
.ah-send.is-armed { animation: ahArm 1.4s ease-in-out infinite; }
@keyframes ahArm { 0%,100% { box-shadow: 0 0 0 0 rgba(23,95,100,0); } 50% { box-shadow: 0 0 0 5px rgba(23,95,100,0.12); } }

/* prompt chips below the chat */
.ah-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.ah-chip {
  font-size: 13.5px; font-weight: 500; color: var(--brown-2);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 9px 15px; cursor: pointer; transition: all .14s ease; text-align: left;
  display: inline-flex; align-items: center; gap: 7px;
}
.ah-chip i { font-size: 14px; color: var(--brown-4); }
.ah-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.ah-chip:hover i { color: var(--accent); }
.ah-chip.is-active { background: var(--accent); border-color: var(--accent); color: #f3efe3; }
.ah-chip.is-active i { color: #f3efe3; }

/* ── §3 — three steps (finds / checks / answers) ──────────────────────── */
.ah-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 48px; }
.ah-step {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 26px; text-align: center;
}
.ah-step .ah-step-ic {
  width: 56px; height: 56px; border-radius: 15px; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); font-size: 27px;
}
.ah-step h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 7px; color: var(--brown); }
.ah-step p { font-size: 16px; line-height: 1.55; color: var(--brown-4); margin: 0; text-wrap: pretty; }
.ah-step-join { align-self: center; color: var(--gold); font-size: 22px; }
@media (max-width: 1000px) {
  .ah-steps { grid-template-columns: 1fr; }
  .ah-step-join { transform: rotate(90deg); margin: -2px auto; }
}

/* ── §5 — the agent panel ─────────────────────────────────────────────── */
.ah-agent {
  background: var(--brown-2); border-radius: 18px; padding: 30px; color: #efe9da;
  box-shadow: 0 50px 100px -55px rgba(0,0,0,0.6); position: relative; overflow: hidden;
}
.ah-agent::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 60% at 88% 0%, rgba(179,136,74,0.16), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(16,96,101,0.30), transparent 60%);
}
.ah-agent > * { position: relative; z-index: 1; }
.ah-agent-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid rgba(246,241,230,0.14); }
.ah-agent-seal {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 26px; color: #2a1d09; background: linear-gradient(150deg, var(--gold-soft), #c79a52);
}
.ah-agent-head b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #f6f1e6; display: block; line-height: 1.1; }
.ah-agent-head span { font-size: 14px; color: rgba(246,241,230,0.72); }
.ah-agent-skills { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ah-agent-skills li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.55; color: #e7e0d0; }
.ah-agent-skills li i { font-size: 18px; color: var(--gold-soft); flex: 0 0 auto; margin-top: 1px; }
.ah-agent-skills li b { color: #f6f1e6; font-weight: 600; }
.ah-agent-foot {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(246,241,230,0.14); font-size: 14px; color: rgba(246,241,230,0.78);
}
.ah-agent-foot i { color: var(--gold-soft); font-size: 15px; }
.ah-not-generic { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 15.5px; color: var(--brown-3); }
.ah-not-generic i { color: var(--accent); font-size: 18px; }

/* ── §6 — transcript "in action" player ───────────────────────────────── */
.ah-action { max-width: 760px; margin: 44px auto 0; }
.ah-transcript {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 40px 90px -55px rgba(36,30,22,0.5); overflow: hidden;
}
.ah-transcript .ah-chat-body { height: auto; min-height: 340px; }
.ah-action-foot {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px;
  font-size: 16px; color: var(--brown-3);
}
.ah-action-foot i { color: var(--accent); font-size: 17px; }

/* ── §8 — value for everyone (five cards) ─────────────────────────────── */
.ah-aud { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 46px; }
.ah-aud-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 22px 20px;
  display: flex; flex-direction: column;
}
.ah-aud-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-size: 21px; margin-bottom: 14px; }
.ah-aud-card b { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--brown); margin-bottom: 5px; }
.ah-aud-card span { font-size: 15.5px; line-height: 1.5; color: var(--brown-4); text-wrap: pretty; }
@media (max-width: 1040px) { .ah-aud { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px)  { .ah-aud { grid-template-columns: 1fr; } }

/* ── §2 — "data, gives it a voice" quiet feature line ─────────────────── */
.ah-voice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.ah-voice-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px;
  text-align: left;
}
.ah-voice-card i {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: var(--surface-2); color: var(--accent); font-size: 21px;
  margin-bottom: 14px;
}
.ah-voice-card b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--brown); margin: 0 0 6px; }
.ah-voice-card span { font-size: 15.5px; color: var(--brown-3); line-height: 1.5; }
@media (max-width: 1000px) { .ah-voice { grid-template-columns: 1fr 1fr; } }

/* ── reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ah-msg, .ah-typing { animation: none; }
  .ah-stream::after, .ah-field .ah-caret, .ah-send.is-armed, .hero-pill .dot.live { animation: none; }
}

/* ── hero chat responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .ah-chat { width: 100%; }
  .ah-chat-body { height: 300px; }
}
