/* =========================================================
   GEZZI — product page (BETA)
   Page-scoped styles, self-contained including breakpoints
   (same convention as vetti.css / products-page.css).
   Product accent: coral (--accent), against VETTI's cyan.
   ========================================================= */

/* ─────────────────────────────────────────────
   1. HERO
   ───────────────────────────────────────────── */
.gz-hero {
  position: relative;
  padding: clamp(7rem, 14vw, 11rem) var(--pad-x) clamp(4rem, 8vw, 6rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

.gz-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 84, 54, 0.16), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.gz-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Beta badge — deliberately loud, so nobody mistakes this for shipping */
.gz-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  background: rgba(255, 84, 54, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.gz-beta-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.gz-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.2vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin: 1.4rem 0 0;
  text-wrap: balance;
}

.gz-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.gz-hero-sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 54ch;
  margin-top: 1.6rem;
}

.gz-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.gz-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.gz-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.gz-trust span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   2. CHAT MOCK
   Static markup — no JS, so it cannot fail to render.
   Styled as a generic business chat, not as WhatsApp's own UI.
   ───────────────────────────────────────────── */
.gz-chat {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.gz-chat-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.gz-chat-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 84, 54, 0.14);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  flex-shrink: 0;
}

.gz-chat-who strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.gz-chat-who span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--accent-6);
  margin-top: 0.1rem;
}

/* Fixed height with content pinned to the bottom, so replayed messages
   rise from the base like a real thread and the card never jumps. */
.gz-chat-body {
  padding: 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7rem;
  min-height: 22rem;
}

/* Live "replied in" stamp, written by the script */
.gz-chat-speed {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-6);
  opacity: 0;
  transition: opacity var(--t-norm);
  white-space: nowrap;
}
.gz-chat-speed.show { opacity: 1; }

.gz-msg {
  max-width: 82%;
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  line-height: 1.5;
  border-radius: 14px;
}

.gz-msg.in {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
  border-bottom-left-radius: 4px;
}

.gz-msg.out {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: 4px;
}

.gz-msg .time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  opacity: 0.65;
  margin-top: 0.3rem;
}

/* System line — where the AI steps aside */
.gz-sys {
  align-self: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-pill);
  margin-block: 0.2rem;
}

.gz-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.7rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.gz-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  display: block;
  animation: gz-bounce 1.2s ease-in-out infinite;
}
.gz-typing i:nth-child(2) { animation-delay: 0.15s; }
.gz-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes gz-bounce {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-3px); }
}

/* ── Payment request card ──────────────────────────────────
   Sits in the thread as an outgoing message, but reads as a
   document rather than a bubble — that is the point of it.
   ─────────────────────────────────────────────────────── */
.gz-pay {
  align-self: flex-end;
  max-width: 88%;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(255, 84, 54, 0.45);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  overflow: hidden;
}

.gz-pay-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 84, 54, 0.1);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.gz-pay-head svg { width: 13px; height: 13px; flex-shrink: 0; }

.gz-pay-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem 0.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.gz-pay-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0 0.8rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.gz-pay-total span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gz-pay-total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.gz-pay-btn {
  margin: 0.7rem 0.8rem 0.6rem;
  padding: 0.6rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gz-pay-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0 0.8rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* Settlement confirmation — the only green in the thread */
.gz-sys.paid {
  border-style: solid;
  border-color: rgba(0, 214, 143, 0.45);
  background: rgba(0, 214, 143, 0.08);
  color: var(--accent-6);
}

/* The human who takes over — visibly not the AI */
.gz-msg.out.human {
  background: var(--surface-hi);
  color: var(--text);
  border: 1px solid rgba(0, 214, 143, 0.4);
}
.gz-msg.out.human .time { color: var(--accent-6); opacity: 1; }

/* ── Replay states ────────────────────────────────────────────
   Everything below only applies once the script sets data-play="on".
   Without JS the transcript simply sits there, fully readable.
   ─────────────────────────────────────────────────────────── */
.gz-chat .gz-typing { display: none; }

.gz-chat[data-play="on"] [data-msg] {
  display: none;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.gz-chat[data-play="on"] [data-msg].show {
  display: block;
  opacity: 1;
  transform: none;
}

.gz-chat[data-play="on"] .gz-typing.show {
  display: inline-flex;
  animation: gz-pop 240ms var(--ease-out);
}

@keyframes gz-pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Whole-thread fade before the loop restarts */
.gz-chat[data-play="on"] .gz-chat-body {
  transition: opacity 340ms var(--ease-out);
}
.gz-chat[data-play="on"][data-resetting="true"] .gz-chat-body { opacity: 0; }

/* Presence dot in the header */
.gz-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.gz-presence::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-6);
  box-shadow: 0 0 8px var(--accent-6);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* ─────────────────────────────────────────────
   3. BETA EXPLAINER
   ───────────────────────────────────────────── */
.gz-beta-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.gz-beta-body p {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 60ch;
}

.gz-beta-body p + p { margin-top: 1.3rem; }
.gz-beta-body p strong { color: var(--text); font-weight: 500; }

/* Two-column honest list: what you get / what we ask */
.gz-deal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.gz-deal-col {
  padding: 1.8rem 1.6rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}

.gz-deal-col h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.gz-deal-col ul { display: grid; gap: 0.9rem; }

.gz-deal-col li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.gz-deal-col svg {
  width: 14px;
  height: 14px;
  margin-top: 0.4em;
  color: var(--accent);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   4. FEATURES
   ───────────────────────────────────────────── */
.gz-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.gz-feature {
  padding: 1.8rem 1.6rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  transition: transform var(--t-norm), border-color var(--t-norm);
}

.gz-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 84, 54, 0.35);
}

.gz-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 84, 54, 0.1);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.gz-feature-icon svg { width: 19px; height: 19px; }

.gz-feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.gz-feature p {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-muted);
}

/* Badge for capabilities not yet in the beta build */
.gz-soon {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  margin-left: 0.5rem;
  vertical-align: 0.15em;
}

/* ─────────────────────────────────────────────
   4b. LIMITS — what it will not do
   Stating the boundaries is the strongest trust signal
   an AI product has. These are guardrails, not gaps.
   ───────────────────────────────────────────── */
.gz-wont-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.gz-wont {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.5rem 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}

.gz-wont-x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 84, 54, 0.14);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.gz-wont h3 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.gz-wont p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   5. STEPS
   ───────────────────────────────────────────── */
.gz-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.gz-step {
  padding-top: 1.3rem;
  border-top: 2px solid var(--line-strong);
}

.gz-step-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.gz-step h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0.7rem 0 0.5rem;
}

.gz-step p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   6. BETA REQUEST FORM
   ───────────────────────────────────────────── */
.gz-apply-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.gz-apply-side .section-title { margin: 1.2rem 0 1.4rem; }

.gz-apply-side p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 44ch;
}

.gz-apply-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.gz-form {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}

.gz-field { margin-bottom: 1.1rem; }

.gz-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.gz-field input,
.gz-field select,
.gz-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.gz-field input::placeholder,
.gz-field textarea::placeholder { color: var(--text-muted); }

.gz-field input:hover,
.gz-field select:hover,
.gz-field textarea:hover { border-color: var(--line-bright); }

.gz-field input:focus,
.gz-field select:focus,
.gz-field textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
}

.gz-field textarea { resize: vertical; min-height: 6.5rem; }

.gz-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23F4F1EA' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}

.gz-field select option { background: var(--surface); color: var(--text); }

.gz-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.gz-form button[type="submit"] { width: 100%; margin-top: 0.5rem; }

.gz-form-note {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.gz-field input[aria-invalid="true"],
.gz-field select[aria-invalid="true"],
.gz-field textarea[aria-invalid="true"] { border-color: var(--accent); }

.gz-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: var(--accent-hi);
}

.gz-field.invalid .gz-error { display: block; }

.gz-form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  line-height: 1.6;
  display: none;
}

.gz-form-status.show { display: block; }

.gz-form-status.ok {
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.35);
  color: var(--text);
}

/* ─────────────────────────────────────────────
   7. RESPONSIVE — 1100 / 920 / 620, as elsewhere
   ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gz-hero-inner { grid-template-columns: 1fr; }
  .gz-hero-visual { order: -1; }
  .gz-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gz-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .gz-beta-grid,
  .gz-apply-grid { grid-template-columns: 1fr; }
  .gz-deal { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .gz-feature-grid { grid-template-columns: 1fr; }
  .gz-steps { grid-template-columns: 1fr; }
  .gz-field-row { grid-template-columns: 1fr; }
  .gz-hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .gz-chat { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .gz-typing i,
  .gz-beta-badge .dot { animation: none; }
  .gz-feature:hover { transform: none; }
}
