/* ============================================
   Home Page
   ============================================ */

/* HERO — sized to fit first screen with next section peeking */
.hero {
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 78px); /* viewport minus nav */
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-mint) 0%, var(--bg-mint-soft) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
  width: 100%;
  position: relative;
  z-index: 2;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding: 40px 0 60px; }
}

.hero-copy {
  padding-top: 8px;
}

.hero-headline {
  font-size: clamp(40px, 5.4vw, 76px);
  margin-bottom: 24px;
  line-height: 1.04;
}

.hero-headline em {
  color: var(--mint-deep);
  font-weight: 600;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* HERO BEFORE/AFTER VISUAL — top aligned with headline */
.hero-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: calc(100vh - 200px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow:
    0 30px 80px -30px rgba(43, 174, 120, 0.28),
    0 0 0 1px rgba(0,0,0,0.04);
}

.ba-compare {
  position: relative;
  width: 100%;
  height: 100%;
  user-select: none;
  cursor: default;
}

.ba-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after {
  clip-path: inset(0 0 0 50%);
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--bg-elevated);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  pointer-events: none;
}

.ba-slider-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 5L3 10L7 15M13 5L17 10L13 15' stroke='%23161613' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.ba-label {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  background: rgba(22, 22, 19, 0.75);
  color: var(--bg-elevated);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ba-label.before { left: 20px; }
.ba-label.after { right: 20px; }

.hero-visual-replace {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
}

.hero-visual-replace .placeholder-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px dashed var(--mint-bright);
  border-radius: var(--radius-pill);
}

.hero-visual-replace .placeholder-title {
  font-family: var(--display);
  font-size: 32px;
  color: var(--bg-elevated);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-visual-replace .placeholder-body {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.5;
}

/* MARQUEE / TRUST STRIP */
.marquee {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--bg-elevated);
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-muted);
  align-items: center;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.marquee-track .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-deep);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .marquee-track { animation-duration: 14s; }
}

@media (max-width: 480px) {
  .marquee-track { animation-duration: 11s; }
}

/* HOW IT WORKS */
.section {
  padding: 90px 0;
}

/* tighten the Designer→Tools stack specifically */
#features { padding-top: 64px; padding-bottom: 64px; }
#tools { padding-top: 64px; padding-bottom: 80px; }

/* Alternating section backgrounds (seamless blend) */
.sec-white {
  background: #FFFFFF;
}

.sec-mint {
  background: var(--bg-mint);
}

/* soft blend transition between alternating sections */
.sec-mint + .sec-white,
.sec-white + .sec-mint {
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: 100px 0; }
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head .eyebrow {
  margin-bottom: 24px;
}

.section-head .display {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 24px;
}

.section-head .lead {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 600px;
}

/* FEATURES — editorial grid */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(31, 58, 46, 0.18);
}

.feature-card-1 { grid-column: span 7; }
.feature-card-2 { grid-column: span 5; }
.feature-card-3 { grid-column: span 5; }
.feature-card-4 { grid-column: span 7; }

@media (max-width: 900px) {
  .feature-card-1, .feature-card-2, .feature-card-3, .feature-card-4 { grid-column: 1; }
}

.feature-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.16em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.feature-card h3 {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.feature-card h3 em {
  font-weight: 600;
  color: var(--mint-deep);
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 28px;
}

.feature-visual {
  margin-top: 28px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

/* Designer feature — before/after pairs (swap data-placeholder for real <img>) */
.ba-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  width: 100%;
  height: 100%;
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ba-pair-img {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  background-size: cover;
  background-position: center;
}

.ba-pair-img.before {
  background: linear-gradient(135deg, #D9D4CC, #B0A99E);
}

.ba-pair-img.after {
  background: linear-gradient(135deg, #CFF3E1, #8FE9C4);
}

.ba-pair-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Designer feature — style swatches (legacy/unused) */
.style-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
  width: 100%;
  height: 100%;
}

.style-chip {
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.style-chip-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  letter-spacing: 0.03em;
}

.style-chip-1 { background: linear-gradient(135deg, #C9B79C, #8A7558); }
.style-chip-2 { background: linear-gradient(135deg, #EAE4D9, #B8B0A0); }
.style-chip-3 { background: linear-gradient(135deg, #3A2E26, #1A1410); }
.style-chip-4 { background: linear-gradient(135deg, #E8DCC4, #C0A878); }
.style-chip-5 { background: linear-gradient(135deg, #2D5040, #1F3A2E); }
.style-chip-6 { background: linear-gradient(135deg, #C76A45, #8B4628); }
.style-chip-7 { background: linear-gradient(135deg, #6B7E8C, #3D4E5C); }
.style-chip-8 { background: linear-gradient(135deg, #A8F0D1, #7FE8BF); }

/* Chat feature */
.chat-preview {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(168, 240, 209, 0.15), transparent 50%),
    var(--bg-deep);
  width: 100%;
  height: 100%;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13px;
  max-width: 75%;
  line-height: 1.4;
  animation: chatIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.chat-bubble.user {
  background: var(--mint-deep);
  color: var(--ink);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  animation-delay: 0.1s;
  font-weight: 500;
}

.chat-bubble.ai {
  background: var(--bg-elevated);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--rule);
  animation-delay: 0.3s;
}

.chat-bubble.ai-typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
  animation-delay: 0.5s;
}

.chat-bubble.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: typingDot 1.4s ease-in-out infinite;
}

.chat-bubble.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@keyframes chatIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tools feature — colored tiles like in the app */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 16px;
  width: 100%;
  height: 100%;
}

.tool-tile {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.tool-tile svg {
  width: 18px;
  height: 18px;
}

.tool-tile.wall { background: #BFEFD8; }
.tool-tile.floor { background: #D9CCF0; }
.tool-tile.paint { background: #FBE3B5; }
.tool-tile.erase { background: #F3E0B0; }
.tool-tile.replace { background: #F5C9B8; }
.tool-tile.declutter { background: #C9DCEA; }
.tool-tile.clear { background: #F5BFC6; }
.tool-tile.restyle { background: #C8E5BD; }

/* Creations feature */
.creations-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 16px;
  width: 100%;
  height: 100%;
}

.creation-thumb {
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.creation-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.2), transparent 50%);
}

.creation-thumb.featured {
  grid-row: span 2;
  background: linear-gradient(135deg, #B68B5C, #8B6B45);
}

.creation-thumb.t2 { background: linear-gradient(135deg, #C76A45, #8B4628); }
.creation-thumb.t3 { background: linear-gradient(135deg, #3A2E26, #1A1410); }

.creation-thumb .heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.creation-thumb .heart.filled { background: rgba(255, 90, 106, 0.9); }

.creation-thumb .heart svg { width: 14px; height: 14px; color: white; }

/* HOW IT WORKS — 3 steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 60px; }
}

.step {
  position: relative;
}

.step-num {
  font-family: var(--display);
  font-size: 96px;
  font-weight: 600;
  line-height: 0.9;
  color: var(--mint-deep);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.step h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.step p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
}

/* CTA BAND */
.cta-band {
  margin: 120px 0 0;
  padding: 100px 60px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-bright) 55%, var(--mint-deep) 130%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  top: -120px;
  right: -100px;
}

.cta-band::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  bottom: -120px;
  left: -60px;
}

.cta-band-inner {
  position: relative;
  z-index: 2;
}

.cta-band .display {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--ink);
  margin-bottom: 24px;
}

.cta-band .display em { color: #FFFFFF; }

.cta-band p {
  color: rgba(22, 32, 27, 0.7);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.cta-band .store-badges {
  justify-content: center;
}

.cta-band .badge-app-store {
  background: var(--ink);
  color: #FFFFFF;
}

.cta-band .coming-soon-pill {
  border-color: rgba(22, 32, 27, 0.25);
  color: rgba(22, 32, 27, 0.6);
}

@media (max-width: 768px) {
  .cta-band {
    padding: 70px 28px;
    margin: 80px 0 0;
  }
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s ease;
}

.faq-q:hover { color: var(--mint-deep); }

.faq-q .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 20px;
  transition: transform 0.3s ease, background 0.2s ease;
}

.faq-q .icon svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-q .icon {
  background: var(--ink);
  color: var(--bg-elevated);
}

.faq-item.open .faq-q .icon svg { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 16px;
}

/* ============================================
   Before/After Card Grids (Designer + Tools)
   ============================================ */

.ba-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ba-card-grid.tools {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* center the 7th tool card (Rearrange) when it lands alone on the last row */
.ba-card-grid.tools .ba-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

@media (max-width: 900px) {
  .ba-card-grid { grid-template-columns: 1fr 1fr; }
  .ba-card-grid.tools { grid-template-columns: 1fr 1fr; }
  /* reset the 3-col centering rule and re-center for 2-col (7th card alone) */
  .ba-card-grid.tools .ba-card:last-child:nth-child(3n + 1) { grid-column: auto; }
  .ba-card-grid.tools .ba-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .ba-card-grid, .ba-card-grid.tools { grid-template-columns: 1fr; }
  /* on single column, the centered 7th card must be full width like the rest */
  .ba-card-grid.tools .ba-card:last-child:nth-child(2n + 1) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}

.ba-card {
  background: var(--bg-mint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 14px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.sec-mint .ba-card { background: #FFFFFF; }

.ba-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(43, 174, 120, 0.25);
}

/* the interactive slider region */
.ba-card-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  user-select: none;
  cursor: default;
  background: var(--bg-deep);
  border-radius: var(--radius);
}

.ba-card-grid.tools .ba-card-slider {
  aspect-ratio: 4 / 3;
}

.ba-card-slider img,
.ba-card-before,
.ba-card-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-card-after {
  clip-path: inset(0 0 0 50%);
}

img.ba-card-after {
  clip-path: inset(0 0 0 50%);
}

/* placeholder fills */
.ph-before, .ph-after {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-before {
  background: linear-gradient(135deg, #D9D4CC, #B3ABA0);
}

.ph-after {
  background: linear-gradient(135deg, #A8F0D1, #3CCB8E);
}

.ph-text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(22, 32, 27, 0.65);
  text-transform: uppercase;
}

.ba-card-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #FFFFFF;
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(0,0,0,0.25);
  pointer-events: none;
}

.ba-card-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 5L3 10L7 15M13 5L17 10L13 15' stroke='%232BAE78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.ba-card-body {
  padding: 18px 10px 8px;
}

.ba-card-grid.tools .ba-card-body {
  padding: 16px 10px 6px;
}

.ba-card-body h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--ink);
}

.ba-card-grid.tools .ba-card-body h3 {
  font-size: 24px;
}

.ba-card-body p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ============================================
   AI Chat Section
   ============================================ */

.chat-section {
  padding-top: 40px;
}

.chat-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 860px) {
  .chat-layout { grid-template-columns: 1fr; gap: 40px; }
}

.chat-copy .eyebrow { margin-bottom: 24px; }

.chat-copy .display {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 20px;
}

.chat-copy p {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 460px;
}

.chat-phone {
  position: relative;
  background: linear-gradient(160deg, var(--bg-mint) 0%, var(--bg-mint-soft) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  padding-top: 60px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.chat-panel-label {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mint-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chat-panel-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.chat-phone .chat-preview {
  background: transparent;
  padding: 0;
  gap: 14px;
}

.chat-phone .chat-bubble {
  font-size: 15px;
  max-width: 80%;
}

/* ============================================
   Creations Section
   ============================================ */

.creations-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 860px) {
  .creations-layout { grid-template-columns: 1fr; gap: 40px; }
  .creations-copy { order: -1; }
}

.creations-copy .eyebrow { margin-bottom: 24px; }

.creations-copy .display {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 20px;
}

.creations-copy p {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 460px;
}

.creations-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 1 / 1;
}

.creations-gallery .creation-thumb {
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.creations-gallery .creation-thumb.featured {
  grid-row: span 2;
  background: linear-gradient(135deg, #A8F0D1, #2BAE78);
}

.creations-gallery .creation-thumb.t2 { background: linear-gradient(135deg, #CFF3E1, #7FE8BF); }
.creations-gallery .creation-thumb.t3 { background: linear-gradient(135deg, #B3ABA0, #D9D4CC); }

/* ============================================
   Chat — realistic app-style messages
   ============================================ */

.chat-msg {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.chat-msg.user { align-items: flex-end; }
.chat-msg.ai { align-items: flex-start; }

.chat-msg.user .chat-bubble-img {
  width: 90%;
  max-width: 320px;
  border-radius: 16px 16px 4px 16px;
  overflow: hidden;
  margin-bottom: 2px;
  border: 3px solid var(--mint-deep);
  border-bottom: none;
}

.chat-msg.user .chat-bubble-img img {
  width: 100%;
  display: block;
}

.chat-msg.user .chat-bubble {
  background: var(--mint-deep);
  color: #fff;
  max-width: 90%;
  border-radius: 4px 16px 16px 16px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

/* AI result card */
.chat-result-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 12px;
  width: 92%;
  max-width: 340px;
  box-shadow: 0 8px 30px -12px rgba(22, 32, 27, 0.12);
}

.chat-result-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.chat-result-img img { width: 100%; display: block; }

.chat-result-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.chat-save-btn, .chat-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: all 0.2s ease;
}

.chat-save-btn:hover { border-color: var(--mint-deep); background: var(--bg-mint); }
.chat-share-btn { padding: 8px; }
.chat-save-btn svg, .chat-share-btn svg { width: 16px; height: 16px; }

.chat-result-caption {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  padding: 0 4px 4px;
}

/* Icon next to card title */
.ba-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ba-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--mint-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-ink);
  flex-shrink: 0;
}

.sec-mint .ba-card-icon {
  background: transparent;
}

.ba-card-icon svg {
  width: 22px;
  height: 22px;
}

.ba-card-grid.tools .ba-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.ba-card-grid.tools .ba-card-icon svg {
  width: 20px;
  height: 20px;
}

.ba-card-title h3 {
  margin-bottom: 0 !important;
}

/* ============================================
   Phone mockup (Creations section)
   ============================================ */

.creations-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  --p-bg: #0E1410;
  --p-surface: #1A211D;
  --p-text: #FFFFFF;
  --p-text-soft: rgba(255, 255, 255, 0.6);
  --p-rule: rgba(255, 255, 255, 0.08);
  --p-tab-bg: rgba(255, 255, 255, 0.06);
  --p-tab-active: var(--mint-deep);
  --p-tabbar-bg: rgba(20, 26, 22, 0.95);

  position: relative;
  width: 320px;
  aspect-ratio: 9 / 19.5;
  background: var(--p-bg);
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 0 0 3px #1F2A24,
    0 30px 60px -20px rgba(22, 32, 27, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: background 0.4s ease;
}

.phone-mockup[data-theme="light"] {
  --p-bg: #FFFFFF;
  --p-surface: #F4F4F2;
  --p-text: #16201B;
  --p-text-soft: rgba(22, 32, 27, 0.6);
  --p-rule: rgba(22, 32, 27, 0.08);
  --p-tab-bg: #F4F4F2;
  --p-tabbar-bg: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 3px #D8D4CB,
    0 30px 60px -20px rgba(22, 32, 27, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--p-bg);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--p-text);
  transition: background 0.4s ease, color 0.4s ease;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--p-text);
}

.phone-status-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-battery {
  font-size: 10px;
  border: 1px solid var(--p-text);
  border-radius: 3px;
  padding: 0 3px;
  margin-left: 2px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 14px;
}

.phone-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--p-text);
}

.phone-theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--p-tab-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--p-text);
  border: 1px solid var(--p-rule);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.phone-theme-toggle:hover { transform: scale(1.06); }
.phone-theme-toggle svg { width: 14px; height: 14px; }
.phone-theme-toggle .icon-sun { display: none; }
.phone-theme-toggle .icon-moon { display: block; }
.phone-mockup[data-theme="light"] .phone-theme-toggle .icon-sun { display: block; }
.phone-mockup[data-theme="light"] .phone-theme-toggle .icon-moon { display: none; }

.phone-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 14px;
}

.phone-tab {
  background: var(--p-tab-bg);
  color: var(--p-text-soft);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.phone-tab.active {
  background: #FFFFFF;
  color: #000;
}

.phone-mockup[data-theme="light"] .phone-tab.active {
  background: var(--p-text);
  color: #FFFFFF;
}

.phone-tab-select {
  margin-left: auto;
  background: transparent;
  color: var(--mint-deep);
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px;
  flex: 1;
  align-content: start;
}

.phone-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 8px;
}

.phone-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 50%);
  pointer-events: none;
}

.phone-thumb-label {
  position: relative;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  color: #FFF;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.phone-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.phone-heart.filled { background: var(--pro-red); }
.phone-heart svg { width: 11px; height: 11px; color: #FFF; }

.phone-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px 8px 24px;
  background: var(--p-tabbar-bg);
  border-top: 1px solid var(--p-rule);
  margin-top: 10px;
}

.phone-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  color: var(--p-text-soft);
}

.phone-tabbar-item.active { color: var(--p-text); }

.phone-tabbar-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.4;
}

.phone-tabbar-item.active .phone-tabbar-dot { opacity: 1; }

/* ============================================
   Creations phone — real screenshots (dark default, light on hover)
   ============================================ */
.phone-mockup-img {
  overflow: hidden;
  cursor: pointer;
}

.phone-mockup-img .phone-shot {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: cover;
  border-radius: 36px;
  transition: opacity 0.4s ease;
}

.phone-mockup-img .phone-shot-dark { opacity: 1; }
.phone-mockup-img .phone-shot-light { opacity: 0; }

.phone-mockup-img:hover .phone-shot-dark { opacity: 0; }
.phone-mockup-img:hover .phone-shot-light { opacity: 1; }

/* On touch devices (no hover), keep dark mode shown */
@media (hover: none) {
  .phone-mockup-img:hover .phone-shot-dark { opacity: 1; }
  .phone-mockup-img:hover .phone-shot-light { opacity: 0; }
}
