/* ============================================================
   CoolMix AI landing page — scoped styles

   ALL rules below are prefixed with `.ai-page` (body_class on this
   page only). Nothing here can leak to any other storefront page.

   Palette matches the LIVE site: dark navy body (#383353), white
   text, green accent (#08b669). Reuses storefront.css tokens.
   ============================================================ */

.ai-page {
  --ai-ink: var(--shop-tan-lightest);        /* warm cream text */
  --ai-ink-strong: #fff;
  --ai-muted: rgba(255, 255, 255, .72);
  --ai-muted-2: rgba(255, 255, 255, .55);
  --ai-card-bg: rgba(255, 255, 255, .04);
  --ai-card-border: rgba(255, 255, 255, .10);
  --ai-card-border-strong: rgba(255, 255, 255, .18);
  --ai-blue: var(--shop-blue);               /* #383353 */
  --ai-blue-soft: var(--shop-blue-soft);     /* #4b466b */
  --ai-green: var(--shop-green);             /* #08b669 */
  --ai-green-soft: rgba(8, 182, 105, .14);
  --ai-pink: #ec78cb;
}

/* Drop the .shop-main default padding so AI sections can run edge-to-
   edge (the dark navy body bg from base.html shows through). */
.ai-page .ai-page-main { padding: 0; }
.ai-page .ai-page-fullwidth { width: 100%; }

.ai-page .ai-container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- typography ---------- */
.ai-page .ai-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .14em;
  color: var(--ai-green);
  text-transform: uppercase;
  font-weight: 700;
}
/* Hero eyebrow is the headline anchor for the whole page — bumped
   ~30% so the brand-tag reads at first glance. Section eyebrows
   (features / how-it-works / club / final CTA) keep the smaller
   default since they're scroll-anchors, not the page-opener.
   clamp() because the string is ~30 chars (Latin + Persian) and the
   inline-flex container would otherwise overflow narrow viewports
   on the centred mobile layout — at 320px the eyebrow shrinks to
   .86rem (still visibly larger than the .78rem default eyebrows on
   sections below) while staying at the full 1.02rem on tablet+. */
.ai-page .ai-hero .ai-eyebrow {
  font-size: clamp(.86rem, 2.4vw, 1.02rem);
  letter-spacing: .1em;
}
.ai-page .ai-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ai-green);
  box-shadow: 0 0 10px rgba(8, 182, 105, .65);
}

.ai-page h1, .ai-page h2, .ai-page h3 {
  color: var(--ai-ink-strong);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}
.ai-page h1 em, .ai-page h2 em, .ai-page h3 em {
  color: var(--ai-green);
  font-style: normal;
}
.ai-page p {
  color: var(--ai-muted);
  line-height: 1.85;
  margin: .8rem 0 0;
}

/* ---------- buttons ---------- */
.ai-page .ai-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--ai-green);
  color: var(--ai-blue);
  box-shadow: 0 10px 24px rgba(8, 182, 105, .25);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
  white-space: nowrap;
}
.ai-page .ai-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ai-page .ai-btn:active { transform: translateY(1px); box-shadow: 0 5px 12px rgba(8, 182, 105, .25); }
.ai-page .ai-btn svg { width: 18px; height: 18px; }
.ai-page .ai-btn-ghost {
  background: transparent;
  color: var(--ai-ink-strong);
  border-color: var(--ai-card-border-strong);
  box-shadow: none;
}
.ai-page .ai-btn-ghost:hover {
  background: var(--ai-card-bg);
  border-color: rgba(255, 255, 255, .28);
}

/* ============================================================
   HERO
   ============================================================ */
.ai-page .ai-hero {
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.ai-page .ai-hero::before {
  /* soft brand glow */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 360px at 92% 8%, rgba(8, 182, 105, .18), transparent 60%),
    radial-gradient(560px 340px at 6% 100%, rgba(236, 120, 203, .10), transparent 70%);
  pointer-events: none;
}
.ai-page .ai-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
.ai-page .ai-hero-text { min-width: 0; }
.ai-page .ai-hero-headline {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -.01em;
  margin-top: .85rem;
}
.ai-page .ai-hero-lead {
  font-size: 1.08rem;
  max-width: 36rem;
  color: var(--ai-ink);
}
.ai-page .ai-hero-lead strong { color: var(--ai-green); font-weight: 800; }
.ai-page .ai-hero-ctas {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}
.ai-page .ai-hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  list-style: none; padding: 0;
  margin-top: 1.6rem;
  color: var(--ai-muted);
  font-size: .92rem;
}
.ai-page .ai-hero-meta li {
  display: inline-flex; align-items: center; gap: .4rem;
}
.ai-page .ai-hero-meta svg {
  width: 16px; height: 16px;
  color: var(--ai-green);
}

/* Decorative art panel. Visible centerpiece — large jars + sparkle glow. */
.ai-page .ai-hero-art {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center; justify-content: center;
}
.ai-page .ai-hero-art::before {
  /* soft glow halo behind phone */
  content: "";
  position: absolute;
  inset: 8% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(8, 182, 105, .28) 0%,
    rgba(8, 182, 105, .10) 35%,
    transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.ai-page .ai-hero-jar {
  position: absolute;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .45));
  z-index: 1;
  opacity: .7;
}
.ai-page .ai-jar-1 { top: 4%; right: -4%; transform: rotate(-12deg); }
.ai-page .ai-jar-2 { bottom: 0; left: -4%; transform: rotate(10deg); }
.ai-page .ai-hero-spark { position: absolute; opacity: .85; z-index: 2; }
.ai-page .ai-spark-1 { top: 12%; left: 12%; }
.ai-page .ai-spark-2 { bottom: 10%; right: 8%; }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.ai-page .ai-section-head {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 42rem;
}
.ai-page .ai-section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin-top: .65rem;
}

/* ============================================================
   FEATURES
   ============================================================ */
.ai-page .ai-features {
  padding: 4rem 0;
  border-top: 1px solid var(--ai-card-border);
}
.ai-page .ai-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.ai-page .ai-feature {
  background: var(--ai-card-bg);
  border: 1px solid var(--ai-card-border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.ai-page .ai-feature-tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--ai-green);
  font-weight: 800;
  background: var(--ai-green-soft);
  padding: .26rem .55rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.ai-page .ai-feature-art {
  height: 130px;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--ai-card-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ai-page .ai-feature h3 {
  font-size: 1.2rem;
  margin-bottom: .35rem;
}
.ai-page .ai-feature p { margin-top: .35rem; font-size: .95rem; }

/* mini chat bubbles */
.ai-page .ai-mini-chat {
  display: flex; flex-direction: column; gap: .4rem;
  padding: .8rem; width: 100%;
}
.ai-page .ai-bubble {
  font-size: .8rem;
  padding: .45rem .7rem;
  border-radius: 12px;
  max-width: 85%;
  line-height: 1.45;
}
.ai-page .ai-bubble-bot {
  background: rgba(255, 255, 255, .10);
  border: 1px solid var(--ai-card-border);
  color: var(--ai-ink);
  align-self: flex-start;
}
.ai-page .ai-bubble-usr {
  background: var(--ai-green);
  color: var(--ai-blue);
  align-self: flex-end;
  font-weight: 700;
}

/* mini gallery (photo studio) */
.ai-page .ai-mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding: .6rem; width: 100%;
}
.ai-page .ai-mini-photo {
  aspect-ratio: 3/4;
  border-radius: 8px;
  border: 1px solid var(--ai-card-border);
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: .35rem;
}
.ai-page .ai-mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Per-frame accent tints — light enough that the icon stays the
   focal point but each frame still reads as a distinct style swatch. */
.ai-page .ai-photo-1 { background: linear-gradient(135deg, rgba(232,135,170,.22), rgba(255,217,125,.18)); }
.ai-page .ai-photo-2 { background: linear-gradient(135deg, rgba(8,182,105,.18), rgba(58,123,213,.18)); }
.ai-page .ai-photo-3 { background: linear-gradient(135deg, rgba(255,155,107,.22), rgba(232,135,170,.18)); }

/* DJ equalizer bars */
.ai-page .ai-eq-bars {
  display: flex; align-items: flex-end;
  height: 70%; gap: .35rem;
  padding: 0 1rem;
}
.ai-page .ai-eq-bars i {
  display: block; width: 8px;
  background: linear-gradient(180deg, var(--ai-green), var(--ai-pink));
  border-radius: 3px;
  animation: ai-eq 1.4s ease-in-out infinite;
}
.ai-page .ai-eq-bars i:nth-child(2)  { animation-delay: .1s; }
.ai-page .ai-eq-bars i:nth-child(3)  { animation-delay: .2s; }
.ai-page .ai-eq-bars i:nth-child(4)  { animation-delay: .3s; }
.ai-page .ai-eq-bars i:nth-child(5)  { animation-delay: .4s; }
.ai-page .ai-eq-bars i:nth-child(6)  { animation-delay: .5s; }
.ai-page .ai-eq-bars i:nth-child(7)  { animation-delay: .6s; }
.ai-page .ai-eq-bars i:nth-child(8)  { animation-delay: .7s; }
.ai-page .ai-eq-bars i:nth-child(9)  { animation-delay: .8s; }
@keyframes ai-eq {
  0%, 100% { transform: scaleY(.5); }
  50%      { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-page .ai-eq-bars i { animation: none; }
}

/* ============================================================
   STEPS
   ============================================================ */
.ai-page .ai-steps {
  padding: 4rem 0;
  border-top: 1px solid var(--ai-card-border);
}
.ai-page .ai-steps-grid {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.ai-page .ai-step {
  position: relative;
  background: var(--ai-card-bg);
  border: 1px solid var(--ai-card-border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.ai-page .ai-step-num {
  position: absolute;
  top: -16px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ai-green);
  color: var(--ai-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(8, 182, 105, .35);
}
.ai-page .ai-step-art {
  width: 64px; height: 64px;
  margin: .25rem auto 1rem;
  border-radius: 14px;
  background: var(--ai-green-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ai-green);
}
.ai-page .ai-step-art svg { width: 36px; height: 36px; }
.ai-page .ai-step h3 { font-size: 1.1rem; }

/* ============================================================
   CLUB / membership
   ============================================================ */
.ai-page .ai-club {
  padding: 4rem 0;
  border-top: 1px solid var(--ai-card-border);
  border-bottom: 1px solid var(--ai-card-border);
}
.ai-page .ai-club-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}
.ai-page .ai-member-card {
  background: linear-gradient(140deg, var(--ai-blue-soft), var(--ai-blue));
  border: 1px solid var(--ai-card-border-strong);
  border-radius: 22px;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .35);
  aspect-ratio: 1.586/1;
  display: flex; flex-direction: column; justify-content: space-between;
  max-width: 24rem; width: 100%;
  margin: 0 auto;
}
.ai-page .ai-mc-top {
  display: flex; justify-content: space-between; align-items: center;
}
.ai-page .ai-mc-brand {
  font-size: 1.2rem; font-weight: 900; letter-spacing: .04em;
}
.ai-page .ai-mc-brand i { color: var(--ai-green); font-style: normal; }
.ai-page .ai-mc-chip {
  width: 36px; height: 26px;
  background: linear-gradient(135deg, var(--ai-green), #f0d785);
  border-radius: 5px;
}
.ai-page .ai-mc-label {
  font-size: .65rem;
  letter-spacing: .2em;
  opacity: .75;
}
.ai-page .ai-mc-name { font-size: 1.15rem; font-weight: 700; }
.ai-page .ai-mc-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.05rem; letter-spacing: .08em;
}
.ai-page .ai-mc-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; opacity: .85;
}
.ai-page .ai-mc-mark i { color: var(--ai-green); font-style: normal; }

.ai-page .ai-benefits {
  list-style: none; padding: 0; margin: 1.25rem 0 1.5rem;
  display: grid; gap: .9rem;
}
.ai-page .ai-benefits li {
  display: flex; gap: .85rem; align-items: flex-start;
}
.ai-page .ai-benefit-ic {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ai-green-soft);
  color: var(--ai-green);
  display: flex; align-items: center; justify-content: center;
}
.ai-page .ai-benefit-ic svg { width: 18px; height: 18px; }
.ai-page .ai-benefits strong {
  display: block;
  color: var(--ai-ink-strong);
  font-size: 1rem;
}
.ai-page .ai-benefits span {
  color: var(--ai-muted);
  font-size: .9rem;
  line-height: 1.7;
}
.ai-page .ai-club-cta-row {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
}
.ai-page .ai-club-note {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9rem; color: var(--ai-muted);
}
.ai-page .ai-club-note svg { width: 16px; height: 16px; color: var(--ai-green); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.ai-page .ai-cta {
  padding: 4.5rem 0 5rem;
  text-align: center;
}
.ai-page .ai-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-top: 1rem;
}
.ai-page .ai-cta p {
  max-width: 32rem; margin: 1rem auto 0;
}
.ai-page .ai-cta-actions {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .75rem; margin-top: 1.75rem;
}
.ai-page .ai-cta-note {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--ai-muted);
  margin-top: 1.5rem;
}
.ai-page .ai-cta-note svg { width: 16px; height: 16px; color: var(--ai-green); }

/* ============================================================
   PHONE MOCKUP (hero centerpiece)

   iPhone-style frame with side buttons, bezel, dynamic island. The
   screen renders the entry view of the AI app at coolmix.cool — a
   cream-ish "phone screen" surface that contrasts with the dark
   site bg around it (intentional — the phone is a window into the
   app, not part of the marketing page).
   ============================================================ */
.ai-page .ai-phone {
  width: 252px;
  position: relative;
  margin: 0 auto;
  z-index: 3;
  isolation: isolate;
  animation: ai-phone-float 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes ai-phone-float {
  0%, 100% { transform: translateY(0) rotate3d(0, 1, .05, -2deg); }
  50%      { transform: translateY(-7px) rotate3d(0, 1, .05, -2deg); }
}
.ai-page .ai-phone:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ai-page .ai-phone { animation: none; }
}

/* Floor glow under phone */
.ai-page .ai-phone::after {
  content: "";
  position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%);
  width: 80%; height: 28px;
  background: radial-gradient(ellipse, rgba(8, 182, 105, .35), transparent 70%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

/* Side buttons */
.ai-page .ai-phone-side {
  position: absolute;
  background: linear-gradient(90deg, #4b466b 0%, #6b6585 50%, #2a2540 100%);
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  border-radius: 1.5px;
}
.ai-page .ai-phone-power    { right: -2.5px; top: 130px; width: 3.5px; height: 60px; }
.ai-page .ai-phone-vol-up   { left:  -2.5px; top: 104px; width: 3.5px; height: 36px; }
.ai-page .ai-phone-vol-down { left:  -2.5px; top: 150px; width: 3.5px; height: 56px; }
.ai-page .ai-phone-mute     { left:  -2.5px; top:  74px; width: 3.5px; height: 22px; }

/* Titanium bezel */
.ai-page .ai-phone-bezel {
  position: relative;
  border-radius: 42px;
  padding: 8px;
  background: linear-gradient(135deg,
    #6a6488 0%, #2e2a4a 22%, #18162e 50%, #2e2a4a 78%, #6a6488 100%);
  box-shadow:
    inset 0 0 0 1.2px rgba(255, 255, 255, .18),
    inset 0 -2px 4px rgba(0, 0, 0, .5),
    inset 0 2px 4px rgba(255, 255, 255, .08),
    0 22px 36px -10px rgba(0, 0, 0, .55),
    0 60px 100px -30px rgba(8, 182, 105, .18);
}
.ai-page .ai-phone-bezel::before {
  content: ""; position: absolute; inset: 4.5px;
  border-radius: 36px;
  background: #050410;
  pointer-events: none;
  z-index: 1;
}

.ai-page .ai-phone-screen {
  position: relative;
  background: #fbf7ec;
  border-radius: 32px;
  overflow: hidden;
  min-height: 500px;
  color: #1f1c34;
  display: flex; flex-direction: column;
  z-index: 2;
}

/* Dynamic Island */
.ai-page .ai-phone-island {
  position: absolute;
  top: 7px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px;
  border-radius: 999px;
  background: #000;
  z-index: 30;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .7), 0 1px 2px rgba(255, 255, 255, .04);
}

/* Status bar */
.ai-page .ai-phone-status {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 4px;
  direction: ltr;
  font-weight: 600; font-size: 12px;
  color: #fbf7ec;     /* light text on dark entry-hero band */
  z-index: 20;
  min-height: 38px;
  line-height: 1;
  pointer-events: none;
}
.ai-page .ai-phone-status .ai-time {
  font-feature-settings: "tnum";
  font-weight: 700;
  letter-spacing: .02em;
  padding-inline-end: 4px;
  font-size: 13px;
}
.ai-page .ai-phone-status .ai-signal {
  display: inline-flex; gap: 5px; align-items: center;
  padding-inline-start: 4px;
}

/* Home indicator */
.ai-page .ai-phone-home-ind {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 4px; border-radius: 3px;
  background: rgba(31, 28, 52, .5);
  z-index: 25; pointer-events: none;
}

/* —————— Entry screen — dark top band —————— */
.ai-page .ai-entry-hero {
  position: relative;
  background: linear-gradient(180deg, #2a2654 0%, #1b1838 100%);
  padding: 50px 14px 18px;
  overflow: hidden;
  color: #fbf7ec;
}
.ai-page .ai-entry-hero::before {
  content: "";
  position: absolute;
  top: -40px; left: 30%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 182, 105, .28), transparent 60%);
  filter: blur(10px);
}
.ai-page .ai-entry-brand-row {
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 3;
}
.ai-page .ai-entry-brand-word {
  font-size: 1.05rem; letter-spacing: .04em;
  color: #fbf7ec; font-weight: 900; line-height: 1;
}
.ai-page .ai-entry-brand-word i { color: var(--ai-green); font-style: normal; }
.ai-page .ai-entry-menu-btn {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fbf7ec;
}
.ai-page .ai-entry-menu-btn svg { width: 13px; height: 13px; }
.ai-page .ai-entry-art {
  position: relative;
  height: 90px;
  margin-top: 8px;
}
.ai-page .ai-entry-headline-stack {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; z-index: 4;
}
.ai-page .ai-entry-word {
  font-size: 1.7rem; letter-spacing: .02em;
  font-weight: 900; line-height: .9;
  color: #fbf7ec;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .2), 0 8px 22px rgba(0, 0, 0, .35);
}
.ai-page .ai-entry-word i { color: var(--ai-green); font-style: normal; }
.ai-page .ai-entry-ai-pill {
  margin-top: 6px;
  display: inline-block;
  font-size: .55rem;
  letter-spacing: .22em;
  color: var(--ai-green);
  background: rgba(8, 182, 105, .15);
  border: 1px solid rgba(8, 182, 105, .35);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* —————— Entry screen — body —————— */
.ai-page .ai-entry-body {
  flex: 1;
  padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
  background: #fbf7ec;
}
.ai-page .ai-entry-welcome {
  font-size: 1rem; font-weight: 800; line-height: 1.2; color: #1f1c34;
  text-align: right;
}
.ai-page .ai-entry-welcome em { color: var(--ai-green); font-style: normal; }
.ai-page .ai-entry-welcome-sub {
  font-size: .7rem; color: #4b466b;
  margin-top: 3px; line-height: 1.65; text-align: right;
}

/* Code input pseudo-field */
.ai-page .ai-entry-input-label {
  display: block;
  margin-top: 4px;
}
.ai-page .ai-entry-input-hint {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .62rem; color: #7a7693; margin-bottom: 5px;
  font-weight: 600;
}
.ai-page .ai-entry-input-hint svg {
  width: 11px; height: 11px; color: var(--ai-green);
}
.ai-page .ai-entry-input-box {
  display: flex; align-items: center;
  background: #fff; border: 2px solid var(--ai-green);
  border-radius: 12px; padding: 9px 12px;
  box-shadow: 0 3px 10px rgba(8, 182, 105, .18);
}
.ai-page .ai-entry-input-text {
  flex: 1; font-size: 1rem;
  letter-spacing: .14em; color: #1f1c34;
  direction: ltr; text-align: center; line-height: 1;
  font-weight: 700;
}
.ai-page .ai-entry-input-text i {
  color: var(--ai-green); font-style: normal;
  margin-inline: 1px;
}
.ai-page .ai-entry-input-check {
  width: 18px; height: 18px; color: var(--ai-green);
  flex: 0 0 18px;
}

.ai-page .ai-entry-hint {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px dashed rgba(8, 182, 105, .4);
  background: rgba(8, 182, 105, .08);
  border-radius: 10px;
  font-size: .65rem; color: #4b466b;
  line-height: 1.45;
  text-align: right;
}
.ai-page .ai-entry-hint b { color: #1f1c34; font-weight: 800; }
.ai-page .ai-entry-hint svg {
  width: 13px; height: 13px; color: var(--ai-green); flex: 0 0 13px;
}

.ai-page .ai-entry-cta {
  margin-top: 2px;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--ai-green); border: 1px solid var(--ai-green); color: #1f1c34;
  padding: 10px 1rem;
  font-size: .85rem; font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .14), 0 6px 14px rgba(8, 182, 105, .35);
}
.ai-page .ai-entry-cta svg { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .ai-page .ai-hero { padding: 1.5rem 0 2rem; }
  .ai-page .ai-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  /* Phone goes ABOVE the text on mobile (the hero image leads). */
  .ai-page .ai-hero-art {
    order: -1;
    min-height: 520px;
  }
  .ai-page .ai-hero-text { max-width: 36rem; margin: 0 auto; }
  .ai-page .ai-hero-lead { margin-left: auto; margin-right: auto; }
  .ai-page .ai-hero-ctas, .ai-page .ai-hero-meta { justify-content: center; }

  .ai-page .ai-feature-grid,
  .ai-page .ai-steps-grid { grid-template-columns: 1fr; }
  .ai-page .ai-club-panel { grid-template-columns: 1fr; }
  .ai-page .ai-club-cta-row { justify-content: center; }
}

@media (max-width: 560px) {
  .ai-page .ai-container { padding: 0 1rem; }
  .ai-page .ai-hero-headline { font-size: 1.85rem; }
  .ai-page .ai-section-head h2 { font-size: 1.5rem; }
  .ai-page .ai-cta h2 { font-size: 1.65rem; }
  .ai-page .ai-feature, .ai-page .ai-step { padding: 1.25rem 1rem; }
  .ai-page .ai-club { padding: 3rem 0; }
  .ai-page .ai-features, .ai-page .ai-steps { padding: 3rem 0; }
  .ai-page .ai-cta { padding: 3rem 0 4rem; }

  /* Phone scales down a touch + decorative jars get smaller so they
     don't overflow the hero column on narrow viewports. */
  .ai-page .ai-phone { width: 232px; }
  .ai-page .ai-phone-screen { min-height: 480px; }
  .ai-page .ai-hero-art { min-height: 480px; }
  .ai-page .ai-jar-1 { width: 110px; right: 0; }
  .ai-page .ai-jar-2 { width: 90px; left: 0; }
  .ai-page .ai-hero-spark { transform: scale(.8); }

  /* Buttons in the bottom CTA need full width on phones so they don't
     overflow the centered column with a long Persian label. */
  .ai-page .ai-cta-actions { flex-direction: column; align-items: stretch; }
  .ai-page .ai-cta-actions .ai-btn { justify-content: center; }
}

@media (max-width: 380px) {
  /* Last-ditch shrink for very narrow phones (some Galaxy Folds, older
     iPhones). Goal: phone mockup still fits without horizontal scroll. */
  .ai-page .ai-phone { width: 210px; }
  .ai-page .ai-jar-1, .ai-page .ai-jar-2 { display: none; }
}
