/* ================================================================
   AwaOwn Homepage v2 — premium hero, CTAs, phone mockup
   Also includes contrast guards so we never render black on purple.
   ================================================================ */

/* Eyebrow */
.awaown-eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--aw-primary, #6D28D9);
  background: rgba(109,40,217,.08);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.awaown-eyebrow--light {
  color: #E9D5FF;
  background: rgba(233,213,255,.12);
}

/* ════════════ HERO — split dual-column ════════════ */
.awaown-hero.awaown-hero--split {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px);
  min-height: auto;
}
.awaown-hero__grid {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .awaown-hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
.awaown-hero__content--left {
  text-align: left !important;
  margin: 0 !important;
  max-width: 640px;
}
.awaown-hero__content--left h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  text-align: left;
}
.awaown-hero__content--left p {
  margin-left: 0 !important;
  text-align: left;
  max-width: 560px;
}
.awaown-hero__content--left .awaown-hero__ctas {
  justify-content: flex-start;
  margin-bottom: 48px;
}
.awaown-hero__content--left .awaown-hero__stats {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 32px;
  grid-template-columns: repeat(3, 1fr);
}

/* Decorative blobs */
.awaown-hero__blob {
  position: absolute; pointer-events: none;
  border-radius: 50%; filter: blur(60px);
  z-index: 1; opacity: .6;
}
.awaown-hero__blob--a {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #A78BFA, transparent 70%);
  top: -120px; left: -80px;
}
.awaown-hero__blob--b {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #4F46E5, transparent 70%);
  bottom: -180px; right: -120px;
}

/* Hero visual — floating photo cards */
.awaown-hero__visual {
  position: relative;
  height: 520px;
  display: block;
}
@media (max-width: 900px) {
  .awaown-hero__visual { height: 380px; margin-top: 16px; }
}
@media (max-width: 520px) {
  .awaown-hero__visual { height: 320px; }
}
.awaown-hero__card {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12);
  overflow: hidden;
  transition: transform .5s ease;
}
.awaown-hero__card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75));
  pointer-events: none;
}
.awaown-hero__card--1 {
  top: 0; left: 8%;
  width: 58%; height: 62%;
  transform: rotate(-3deg);
  animation: aw-float-a 6s ease-in-out infinite;
}
.awaown-hero__card--2 {
  bottom: 18%; right: 6%;
  width: 46%; height: 44%;
  transform: rotate(4deg);
  animation: aw-float-b 7s ease-in-out infinite;
}
.awaown-hero__card--3 {
  bottom: 0; left: 22%;
  width: 42%; height: 32%;
  transform: rotate(-1deg);
  animation: aw-float-a 8s ease-in-out infinite reverse;
}
@keyframes aw-float-a {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-10px); }
}
@keyframes aw-float-b {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50%      { transform: rotate(4deg) translateY(-8px); }
}

.awaown-hero__card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.94);
  color: #0F172A;
  font-size: .75rem; font-weight: 700;
  padding: 6px 10px; border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.awaown-hero__card-tag--green {
  background: #10B981; color: #fff;
}
.awaown-hero__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EF4444;
  animation: awaown-pulse 1.8s infinite;
}
.awaown-hero__card-meta {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  z-index: 2;
  color: #fff;
  font-size: .8125rem;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.awaown-hero__card-meta strong { color: #fff; font-weight: 700; }
.awaown-hero__card-meta--full {
  display: flex; flex-direction: column; gap: 2px;
}
.awaown-hero__card-meta small {
  font-size: .75rem; opacity: .85;
}

/* ════════════ HOME EMPTY STATE ════════════ */
.awaown-home-empty {
  text-align: center; padding: 60px 24px;
  background: #fff; border: 1px solid var(--aw-line, #E5E7EB);
  border-radius: 20px;
}
.awaown-home-empty h3 {
  font-size: 1.375rem; font-weight: 800;
  color: var(--aw-ink, #0F172A);
  margin: 0 0 8px;
}
.awaown-home-empty p {
  color: var(--aw-ink-4, #6B7280);
  margin: 0 0 24px;
}

/* HIW step icon chip */
.awaown-hiw-step__icon {
  position: absolute; top: 32px; right: 32px;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(109,40,217,.08);
  color: var(--aw-primary, #6D28D9);
  display: flex; align-items: center; justify-content: center;
}

/* ════════════ MERCHANT / AFFILIATE CTA — enhanced ════════════ */
.awaown-cta-copy { min-width: 0; }
.awaown-cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 4px;
}

/* Ghost button variant for dark backgrounds */
.awaown-btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.awaown-btn--ghost-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

/* Visual panel for merchant CTA (photo + floating chips) */
.awaown-cta-visual {
  position: relative;
  min-height: 440px;
  display: block;
}
@media (max-width: 900px) {
  .awaown-cta-visual { min-height: 360px; }
}
.awaown-cta-photo {
  position: absolute;
  top: 0; left: 8%; right: 8%; bottom: 0;
  background-size: cover; background-position: center;
  border-radius: 28px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.awaown-cta-floating {
  position: absolute; z-index: 2;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 20px 40px -10px rgba(17,24,39,.25);
  min-width: 180px;
  animation: aw-float-a 5s ease-in-out infinite;
}
.awaown-cta-floating--a {
  top: 20px; left: -10px;
}
.awaown-cta-floating--b {
  bottom: 20px; right: -10px;
  animation-delay: .6s;
}
.awaown-cta-floating__label {
  font-size: .75rem; font-weight: 600;
  color: #6B7280;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 4px;
}
.awaown-cta-floating__value {
  font-size: 1.5rem; font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
}
.awaown-cta-floating__value--sm { font-size: 1rem; }
.awaown-cta-floating__meta {
  font-size: .8125rem;
  color: #6B7280;
  margin-top: 4px;
}

/* Dark-background CTA copy — force readable colours */
.awaown-merchant-cta .awaown-cta-copy p,
.awaown-merchant-cta .awaown-cta-copy li {
  color: #E5E7EB;
}
.awaown-merchant-cta .awaown-cta-benefits li {
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

/* Light-background CTA */
.awaown-affiliate-cta .awaown-cta-copy p,
.awaown-affiliate-cta .awaown-cta-copy li {
  color: var(--aw-ink-2, #1F2937);
}

/* ════════════ PHONE MOCKUP (affiliate CTA) ════════════ */
.awaown-cta-visual--phone {
  display: flex; align-items: center; justify-content: center;
  min-height: 540px;
}
.awaown-phone {
  position: relative;
  width: 280px;
  background: #0F172A;
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 50px 80px -25px rgba(17,24,39,.4),
    0 0 0 2px #E5E7EB,
    inset 0 0 0 2px #1F2937;
}
.awaown-phone__notch {
  position: absolute; top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #0F172A;
  border-radius: 14px;
  z-index: 3;
}
.awaown-phone__screen {
  background: linear-gradient(170deg, #F5F3FF, #fff);
  border-radius: 32px;
  padding: 48px 20px 20px;
  color: #0F172A;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}
.awaown-phone__header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8125rem; font-weight: 600;
  color: #6B7280; margin-bottom: 6px;
}
.awaown-phone__chip {
  background: #10B981; color: #fff;
  font-size: .625rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: .05em;
}
.awaown-phone__big {
  font-family: var(--aw-font, inherit);
  font-size: 2rem; font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
}
.awaown-phone__sub {
  font-size: .8125rem; color: #6B7280;
  margin-bottom: 20px;
}
.awaown-phone__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 18px;
}
.awaown-phone__grid > div {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.awaown-phone__grid strong {
  display: block;
  font-size: 1.125rem; font-weight: 800;
  color: #0F172A;
}
.awaown-phone__lbl {
  font-size: .625rem; font-weight: 600;
  color: #6B7280;
  text-transform: uppercase; letter-spacing: .05em;
  display: block;
  margin-bottom: 2px;
}
.awaown-phone__link {
  background: linear-gradient(135deg, #6D28D9, #4F46E5);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #fff;
}
.awaown-phone__link .awaown-phone__lbl {
  color: rgba(255,255,255,.75);
}
.awaown-phone__link code {
  font-family: var(--aw-font-mono, ui-monospace, monospace);
  font-size: .75rem;
  color: #fff;
  background: transparent;
  padding: 0;
  display: block;
  word-break: break-all;
}
.awaown-phone__toast {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px -8px rgba(17,24,39,.25);
  font-size: .8125rem; font-weight: 600;
  color: #0F172A;
  display: flex; align-items: center; gap: 8px;
  animation: aw-toast-in 4s ease-in-out infinite;
}
.awaown-phone__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.25);
}
@keyframes aw-toast-in {
  0%, 85%, 100% { transform: translateY(120%); opacity: 0; }
  10%, 75%      { transform: translateY(0);     opacity: 1; }
}

/* ════════════ TESTIMONIALS ════════════ */
.awaown-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .awaown-testi-grid { grid-template-columns: 1fr; } }

.awaown-testi {
  background: #fff;
  border: 1px solid var(--aw-line, #E5E7EB);
  border-radius: 20px;
  padding: 28px;
  margin: 0;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.awaown-testi:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(17,24,39,.1);
  border-color: rgba(109,40,217,.25);
}
.awaown-testi__stars {
  color: #F59E0B;
  font-size: 1.125rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.awaown-testi__quote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--aw-ink-2, #1F2937);
  margin: 0 0 18px;
  font-style: italic;
}
.awaown-testi__by {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--aw-line, #E5E7EB);
  padding-top: 14px;
}
.awaown-testi__by strong {
  font-weight: 700; color: var(--aw-ink, #0F172A);
  font-size: .9375rem;
}
.awaown-testi__by span {
  font-size: .8125rem; color: var(--aw-ink-4, #6B7280);
  margin-top: 2px;
}

/* ════════════ FINAL CTA ════════════ */
.awaown-final-cta {
  background:
    radial-gradient(ellipse at top left, rgba(167,139,250,.25), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(79,70,229,.25), transparent 60%),
    linear-gradient(135deg, #4C1D95, #1E1B4B);
  padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.awaown-final-cta__inner {
  max-width: 760px; margin: 0 auto;
  position: relative; z-index: 2;
}
.awaown-final-cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.1;
}
.awaown-final-cta p {
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
  margin: 0 0 32px;
  line-height: 1.6;
}
.awaown-final-cta__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-bottom: 40px;
}
.awaown-final-cta__payment {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: center; align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  font-size: .875rem;
}
.awaown-final-cta__payment strong {
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  font-size: .8125rem;
  letter-spacing: .02em;
}

/* ================================================================
   CONTRAST GUARDS — no black on purple, ever.
   These use html body for specificity; raise to !important on the
   critical colour properties only.
   ================================================================ */

/* Any primary / indigo button: white text, never dark */
html body .awaown-btn--primary,
html body .awaown-btn--indigo {
  color: #fff !important;
}
html body .awaown-btn--primary:hover,
html body .awaown-btn--indigo:hover {
  color: #fff !important;
}

/* Outline-white button on purple hero — white text always, hover turns fill
   white with PURPLE text (not black) */
html body .awaown-btn--outline-white {
  color: #fff !important;
  border-color: rgba(255,255,255,.6) !important;
  background: transparent !important;
}
html body .awaown-btn--outline-white:hover,
html body .awaown-btn--outline-white:focus {
  background: #fff !important;
  color: #6D28D9 !important;
  border-color: #fff !important;
}

/* Primary badge: always white text on purple */
html body .awaown-badge--primary {
  color: #fff !important;
}

/* Hero / final-CTA badges: white on translucent */
.awaown-hero .awaown-hero__badge,
.awaown-final-cta .awaown-hero__badge {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

/* Affiliate dashboard hero stat tiles (purple bg) — always white text */
.awaown-afd-hero .awaown-dk-stat__value { color: #fff !important; }
.awaown-afd-hero .awaown-dk-stat__label { color: rgba(255,255,255,.78) !important; }

/* Affiliate CTA (LIGHT purple bg) — ensure copy is ink, not black-on-purple */
.awaown-affiliate-cta h2 { color: var(--aw-ink, #0F172A) !important; }
.awaown-affiliate-cta .awaown-cta-copy p  { color: var(--aw-ink-3, #374151); }

/* Prose body text */
.awaown-prose,
.awaown-prose p,
.awaown-prose li { color: var(--aw-ink-2, #1F2937); }

/* Purple-tinted table headers with purple text; body cells ink */
.awaown-page-card table tbody td { color: var(--aw-ink-2, #1F2937); }
