/* =============================================================
   phase7.css — Polish Layer
   Scope: .p7-testimonial, .p7-faq, .p7-cta, .p7-footer patches,
          global button tactile press, entry cascade animations
   Constraint: black / white / gray — amber accent permitted for
               quotation graphic and CTA blob glow (per spec)
   New file: Phase 7+ CSS home. index.css + style.css are AT LIMIT.
   ============================================================= */


/* =============================================================
   1. TESTIMONIAL — Full-bleed dark card, pull-quote
   ============================================================= */

.p7-testimonial {
  background: var(--primary);           /* #000 */
  padding: 96px 5vw;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Subtle grain overlay matching site noise */
.p7-testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.p7-testimonial-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* Amber quotation mark graphic */
.p7-quote-mark {
  display: block;
  font-family: var(--display);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.7;
  color: #f59e0b;                       /* amber — sole exception, per spec */
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  user-select: none;
  aria-hidden: true;
}

/* Pull-quote — text-5xl italic Clash Display */
.p7-pull-quote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 40px;
  max-width: 820px;
}

.p7-credit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.p7-credit-name {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.p7-credit-role {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}


/* =============================================================
   2. FAQ SIDE-BY-SIDE — no accordion, answers always visible
   ============================================================= */

.p7-faq-section {
  background: var(--surface);
  padding: 96px 5vw;
  position: relative;
  z-index: 1;
}

.p7-faq-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.p7-faq-section h2 {
  margin-bottom: 64px;
}

/* Two-column grid: Q left, A right */
.p7-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--outline-variant);
}

.p7-faq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
}

.p7-faq-q-cell {
  background: var(--surface-container-lowest);
  padding: 32px 36px;
  border-right: 1px solid var(--outline-variant);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.p7-faq-num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--outline);
  font-weight: 600;
}

.p7-faq-question {
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  line-height: 1.3;
  margin: 0;
}

.p7-faq-a-cell {
  background: var(--surface-container-lowest);
  padding: 32px 36px;
  display: flex;
  align-items: flex-start;
}

.p7-faq-answer {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--on-surface-variant);
  font-weight: 300;
  margin: 0;
}

.p7-faq-cta-wrap {
  margin-top: 40px;
}

.p7-faq-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-surface);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.p7-faq-cta-link:hover {
  color: var(--on-surface-variant);
  border-color: var(--on-surface-variant);
}

.p7-faq-cta-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.p7-faq-cta-link:hover .p7-faq-cta-arrow {
  transform: translateX(3px) translateY(-2px);
}


/* =============================================================
   3. CTA SECTION — full-width mesh gradient, lava-lamp blobs
   ============================================================= */

.p7-cta {
  position: relative;
  padding: 120px 5vw;
  background: #000;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

/* Animated lava-lamp blob canvas — amber + white at 20% opacity */
.p7-cta-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.p7-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  will-change: transform;
}

/* Blob 1 — amber */
.p7-blob:nth-child(1) {
  width: clamp(300px, 40vw, 560px);
  height: clamp(300px, 40vw, 560px);
  background: radial-gradient(circle, #f59e0b 0%, rgba(245, 158, 11, 0) 70%);
  top: -20%;
  left: -10%;
  animation: blobDrift1 18s ease-in-out infinite alternate;
}

/* Blob 2 — white */
.p7-blob:nth-child(2) {
  width: clamp(200px, 30vw, 420px);
  height: clamp(200px, 30vw, 420px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -10%;
  right: 5%;
  animation: blobDrift2 22s ease-in-out infinite alternate;
}

/* Blob 3 — amber offset */
.p7-blob:nth-child(3) {
  width: clamp(150px, 20vw, 300px);
  height: clamp(150px, 20vw, 300px);
  background: radial-gradient(circle, #f59e0b 0%, rgba(245, 158, 11, 0) 70%);
  top: 50%;
  right: 20%;
  opacity: 0.1;
  animation: blobDrift3 15s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
  0%   { transform: translate(0, 0)   scale(1); }
  33%  { transform: translate(8%, 12%) scale(1.08); }
  66%  { transform: translate(4%, -6%) scale(0.95); }
  100% { transform: translate(12%, 8%) scale(1.05); }
}

@keyframes blobDrift2 {
  0%   { transform: translate(0, 0)    scale(1); }
  50%  { transform: translate(-10%, 8%) scale(1.12); }
  100% { transform: translate(5%, -12%) scale(0.92); }
}

@keyframes blobDrift3 {
  0%   { transform: translate(0, 0)   scale(1); }
  100% { transform: translate(-8%, 16%) scale(1.15); }
}

.p7-cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.p7-cta-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 10px;
}

.p7-cta-eyebrow::before,
.p7-cta-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.p7-cta h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}

.p7-cta h2 em {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.p7-cta p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

.p7-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Primary CTA button — white on black context */
.p7-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 40px;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    color      0.25s ease,
    transform  0.2s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.25s ease;
}

.p7-cta-btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.12);
}

.p7-cta-btn-primary:active {
  transform: scale(0.98) translateY(0);
}

/* Arrow circle nested inside */
.p7-btn-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.p7-cta-btn-primary:hover .p7-btn-arrow {
  transform: translateX(3px) translateY(-2px) scale(1.1);
}

/* Secondary outline */
.p7-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 32px;
  background: transparent;
  transition:
    border-color 0.25s ease,
    color        0.25s ease,
    transform    0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.p7-cta-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: translateY(-2px);
}

.p7-cta-btn-outline:active {
  transform: scale(0.98) translateY(0);
}


/* =============================================================
