/* ==========================================================================
   iLily — Botanical Luminance / Atelier Editorial Design System
   Shared stylesheet for index.html & por-dentro-da-ilily.html
   ========================================================================== */

:root {
  color-scheme: light;
  /* Light Editorial Surfaces */
  --bg: #FAF7F2;              /* Petal Ivory */
  --bg-alt: #F2EFE8;          /* Botanical Linen (alternating sections) */
  --bg-sage: #EBF3EE;         /* Sage Dew (soft highlight tint) */
  --surface: #FFFFFF;         /* Pure Petal (elevated cards) */

  /* Deep Twilight Theater Surfaces */
  --cypress: #0F241E;         /* Deep Cypress (primary ink, primary CTA, dark theater bands) */
  --cypress-2: #17362D;       /* Forest Slate (elevated dark cards/borders) */
  --cypress-deep: #091713;    /* Midnight Cypress (video frames, chat header, footer) */

  /* Typography */
  --ink: #0F241E;
  --ink-muted: #4A6058;       /* ~6.4:1 contrast on --bg */
  --ink-on-dark: #FAF7F2;
  --muted-on-dark: #B6C9C1;   /* ~10.4:1 contrast on --cypress */

  /* Brand Accents & Semantic Status */
  --coral: #D95D47;           /* Lily Coral Bloom (signature accent) */
  --coral-strong: #C24934;    /* Accessible hover/text accent (5.2:1 on white) */
  --coral-soft: #FBEAE4;      /* Blush Mist pill/badge bg */
  --nectar: #E8A338;          /* Warm Nectar Amber ("aguardando" / evening glow) */
  --nectar-soft: #FDF3DF;
  --nectar-ink: #8C580B;
  --emerald: #1E7E5E;         /* Botanical Emerald ("confirmado" / live pulse) */
  --emerald-soft: #E3F4EC;
  --emerald-ink: #146046;

  /* Borders, Radii & Elevation */
  --line: #E3DDD3;
  --line-dark: rgba(250, 247, 242, 0.14);
  --radius-sm: 0.75rem;
  --radius: 1.35rem;
  --radius-lg: 1.85rem;
  --shadow-sm: 0 8px 24px rgba(15, 36, 30, 0.05);
  --shadow-md: 0 20px 48px rgba(15, 36, 30, 0.09);
  --shadow-dark: 0 28px 64px rgba(4, 12, 9, 0.42);

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --edge: clamp(1.25rem, 5.5vw, 5.5rem);
}

/* Base Reset & Accessibility */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 4px;
}
[hidden] { display: none !important; }

.wrap { width: min(100% - var(--edge) * 2, 78rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--cypress);
  color: var(--ink-on-dark);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Header & Navigation (Shared across pages)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.header-row { min-height: 4.75rem; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.5rem);
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.86; }
.brand img { width: 7.4rem; height: auto; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-inside { color: var(--coral-strong); font-weight: 700; }
.nav-inside:hover { color: var(--cypress); }
.nav-inside[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}
.nav-demo {
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: var(--cypress);
  color: var(--ink-on-dark);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(15, 36, 30, 0.14);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-demo:hover {
  color: var(--ink-on-dark);
  background: var(--coral-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(194, 73, 52, 0.24);
}

/* ==========================================================================
   Shared Typography, Buttons & Editorial Components
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--coral-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 1.4rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 99px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  padding: 0.42rem 0.9rem 0.42rem 0.72rem;
  border: 1px solid rgba(30, 126, 94, 0.22);
  border-radius: 999px;
  background: var(--surface);
  color: var(--emerald-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.live-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(30, 126, 94, 0.45);
  animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(30, 126, 94, 0.48); }
  70% { box-shadow: 0 0 0 8px rgba(30, 126, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 126, 94, 0); }
}

h1, h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 50;
  text-wrap: balance;
  letter-spacing: -0.028em;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.55rem, 4.6vw, 4.55rem);
  line-height: 1.03;
}
h1 em, h2 em {
  color: var(--coral);
  font-style: italic;
  font-weight: 500;
}
h2 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 3.85vw, 3.65rem);
  line-height: 1.06;
}
.lead {
  max-width: 42ch;
  margin-top: 1.35rem;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: fit-content;
  min-height: 3.25rem;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-on-dark);
  background: var(--cypress);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 36, 30, 0.16);
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}
.button:hover {
  transform: translateY(-2px);
  background: var(--coral-strong);
  box-shadow: 0 14px 28px rgba(194, 73, 52, 0.28);
}
.button:active { transform: translateY(0); }

.button-on-dark {
  background: var(--coral);
  color: #FFFDF9;
  box-shadow: 0 12px 28px rgba(217, 93, 71, 0.32);
}
.button-on-dark:hover {
  background: #E56D57;
  box-shadow: 0 16px 34px rgba(217, 93, 71, 0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: 1.9rem;
}
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: var(--cypress);
  font-size: 0.93rem;
  font-weight: 700;
  transition: color 0.2s ease, gap 0.2s ease;
}
.text-action:hover {
  color: var(--coral-strong);
  gap: 0.65rem;
}

/* Subtle progressive reveal (never leaves content invisible) */
[data-reveal] {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.js-reveal [data-reveal]:not(.is-visible) {
  opacity: 0.92;
  transform: translateY(14px);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding-block: clamp(2.8rem, 6.5vh, 5.2rem) clamp(3.4rem, 7.5vh, 5.8rem);
  background:
    radial-gradient(ellipse 56% 52% at 88% 18%, rgba(251, 234, 228, 0.95) 0%, transparent 66%),
    radial-gradient(ellipse 48% 52% at 10% 88%, rgba(235, 243, 238, 0.95) 0%, transparent 64%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(15, 36, 30, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 35%, transparent 100%);
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
}
.hero[data-enter] .hero-copy { animation: enterUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero[data-enter] .hero-visual-wrap { animation: enterUp 0.78s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes enterUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}
.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.hero-highlights svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--coral);
  flex: none;
}

.hero-visual-wrap { position: relative; }
.hero-aura {
  position: absolute;
  inset: -1.25rem;
  border-radius: calc(var(--radius-lg) + 0.8rem);
  background: radial-gradient(circle at 65% 45%, rgba(232, 163, 56, 0.24), rgba(217, 93, 71, 0.12) 48%, transparent 72%);
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
  animation: auraFloat 7s ease-in-out infinite alternate;
}
@keyframes auraFloat {
  from { transform: scale(0.98) translateY(0); opacity: 0.78; }
  to { transform: scale(1.03) translateY(-6px); opacity: 1; }
}
.hero-visual {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 36, 30, 0.16);
  background: var(--cypress-deep);
  box-shadow: var(--shadow-dark);
}
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.hero-visual-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--line-dark);
  background: var(--cypress-deep);
  color: var(--muted-on-dark);
  font-size: 0.82rem;
}
.hero-visual-bar strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-on-dark);
  font-weight: 600;
}
.hero-visual-bar .tag-mini {
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: rgba(232, 163, 56, 0.16);
  color: #F7CA74;
  font-weight: 700;
  font-size: 0.74rem;
}

/* ==========================================================================
   Dark Theater Band 1 — Commercial Video
   ========================================================================== */
.presentation {
  position: relative;
  padding-block: clamp(4.2rem, 8.5vw, 7.2rem);
  background:
    radial-gradient(ellipse 55% 65% at 75% 45%, rgba(217, 93, 71, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 45% 55% at 15% 80%, rgba(232, 163, 56, 0.1) 0%, transparent 60%),
    var(--cypress);
  color: var(--ink-on-dark);
}
.presentation .eyebrow,
.case-video-section .eyebrow { color: #F5BC62; }
.presentation .lead,
.case-video-section .lead { color: var(--muted-on-dark); }

.presentation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(1.8rem, 5vw, 4.75rem);
}
.video-stage {
  position: relative;
  padding: 0.55rem;
  border: 1px solid var(--line-dark);
  border-radius: calc(var(--radius) + 0.35rem);
  background: rgba(9, 23, 19, 0.65);
  box-shadow: var(--shadow-dark);
}
.commercial-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cypress-deep);
}
.media-caption {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-on-dark);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   Features Band — 4 Pillars Bento Grid
   ========================================================================== */
.features {
  padding-block: clamp(4.4rem, 8.5vw, 7.4rem);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2.2rem, 5vw, 4.75rem);
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 2rem;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 93, 71, 0.45);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  margin-bottom: 0.25rem;
  border-radius: 0.72rem;
}
.feature-icon svg { width: 1.2rem; height: 1.2rem; }
.feature-icon--coral { background: var(--coral-soft); color: var(--coral-strong); }
.feature-icon--emerald { background: var(--emerald-soft); color: var(--emerald-ink); }
.feature-icon--nectar { background: var(--nectar-soft); color: var(--nectar-ink); }
.feature-icon--sage { background: var(--bg-sage); color: var(--cypress); }

.feature-list dt {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.feature-list dd {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.feature-visual {
  overflow: hidden;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.feature-visual img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 0.55rem);
}

/* ==========================================================================
   Product Tour Band — Dashboard & Flow Cards
   ========================================================================== */
.product-tour {
  padding-block: clamp(4.4rem, 8.5vw, 7.4rem);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.product-tour-layout {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.5rem);
}
.demo-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}
.demo-copy h2 { max-width: 18ch; }
.demo-copy .lead { max-width: 36ch; margin-top: 0; }

.dashboard-preview {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}
.dashboard-preview:hover {
  transform: translateY(-3px);
  border-color: var(--coral);
  box-shadow: 0 26px 56px rgba(15, 36, 30, 0.13);
}
.dashboard-preview img,
.tour-card img {
  width: 100%;
  aspect-ratio: 1376 / 768;
  object-fit: cover;
}
.dashboard-zoom-cue {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 36, 30, 0.88);
  color: var(--ink-on-dark);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.25vw, 1.5rem);
}
.tour-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tour-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 93, 71, 0.4);
  box-shadow: var(--shadow-md);
}
.tour-card-media { overflow: hidden; border-bottom: 1px solid var(--line); }
.tour-card img { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.tour-card:hover img { transform: scale(1.03); }

.tour-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  gap: 0.5rem;
  padding: clamp(1.1rem, 2vw, 1.45rem);
}
.tour-step-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tour-step-tag--emerald { background: var(--emerald-soft); color: var(--emerald-ink); }
.tour-step-tag--nectar { background: var(--nectar-soft); color: var(--nectar-ink); }
.tour-step-tag--coral { background: var(--coral-soft); color: var(--coral-strong); }

.tour-card h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tour-card p {
  color: var(--ink-muted);
  line-height: 1.56;
  font-size: 0.92rem;
}
.tour-card .text-action { margin-top: auto; padding-top: 0.35rem; color: var(--coral-strong); }

/* ==========================================================================
   Interactive Demo Section
   ========================================================================== */
.demo-section {
  padding-block: clamp(4.5rem, 9vw, 7.6rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 52% 48% at 86% 24%, rgba(235, 243, 238, 0.95) 0%, transparent 66%),
    radial-gradient(ellipse 46% 44% at 12% 84%, rgba(251, 234, 228, 0.85) 0%, transparent 64%),
    var(--bg);
}
.demo-layout { display: grid; gap: 1.4rem; }

.demo-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.42rem;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.demo-controls button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.72rem;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
.demo-controls button:hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.demo-controls button[aria-pressed="true"] {
  background: var(--cypress);
  color: var(--ink-on-dark);
  box-shadow: 0 6px 16px rgba(15, 36, 30, 0.18);
}
.demo-channel-chip {
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.demo-controls button[aria-pressed="true"] .demo-channel-chip {
  background: rgba(250, 247, 242, 0.16);
  color: #F7CA74;
}

.app-frame {
  overflow: hidden;
  border: 1px solid rgba(15, 36, 30, 0.14);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.35rem;
  background: var(--cypress-deep);
  color: var(--ink-on-dark);
}
.chat-identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.chat-avatar-wrap {
  position: relative;
  flex: none;
}
.chat-avatar-wrap img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.chat-avatar-wrap::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #36C690;
  border: 2px solid var(--cypress-deep);
}
.chat-identity strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.96rem;
  color: var(--ink-on-dark);
}
.chat-identity small {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted-on-dark);
  font-size: 0.8rem;
  line-height: 1.35;
}
.chat-header-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: none;
}
.demo-progress-pill {
  padding: 0.28rem 0.72rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.08);
  color: var(--muted-on-dark);
  font-size: 0.75rem;
  font-weight: 600;
}
.reset {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 40px;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(250, 247, 242, 0.22);
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.06);
  color: #F7CA74;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.reset:hover {
  background: rgba(232, 163, 56, 0.16);
  border-color: #F7CA74;
  color: #FFF4DC;
}
.reset svg { width: 0.9rem; height: 0.9rem; }

.demo-window {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1.05fr);
}
.demo-chat, .demo-panel {
  min-width: 0;
  padding: clamp(1.1rem, 2.2vw, 1.65rem);
}
.demo-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 27rem;
  background: #F6F2EA;
}
.demo-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.demo-window h3 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-ink);
  font-size: 0.72rem;
  font-weight: 700;
}
.sync-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.chat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  flex: 1;
}
.message {
  position: relative;
  width: fit-content;
  max-width: 86%;
  padding: 0.78rem 1rem;
  border-radius: 1.05rem;
  font-size: 0.93rem;
  line-height: 1.5;
  box-shadow: 0 3px 10px rgba(15, 36, 30, 0.05);
}
.message.is-animated {
  animation: msgIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.message-author {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.customer {
  align-self: flex-end;
  background: var(--cypress);
  color: var(--ink-on-dark);
  border-bottom-right-radius: 0.25rem;
}
.customer .message-author { color: #A9C7BC; }
.assistant {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-bottom-left-radius: 0.25rem;
}
.assistant .message-author { color: var(--coral-strong); }

/* Typing indicator */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  animation: msgIn 0.24s ease both;
}
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: typingBounce 1.05s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(15, 36, 30, 0.16);
}
.chat-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--coral);
  border-radius: 999px;
  background: var(--surface);
  color: var(--coral-strong);
  font-size: 0.87rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(217, 93, 71, 0.1);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.chat-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--coral);
  color: #FFFDF9;
  box-shadow: 0 8px 18px rgba(217, 93, 71, 0.24);
}
.chat-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.chat-complete {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(30, 126, 94, 0.25);
  border-radius: var(--radius-sm);
  background: var(--emerald-soft);
  color: var(--emerald-ink);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Live Panel Side */
.demo-panel {
  display: flex;
  flex-direction: column;
  border-inline-start: 1px solid var(--line);
  background: var(--surface);
}
.demo-records {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.record-row {
  position: relative;
  padding: 0.82rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--bg);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.record-row[data-active="true"] {
  background: var(--surface);
  border-color: rgba(15, 36, 30, 0.18);
  box-shadow: 0 6px 16px rgba(15, 36, 30, 0.05);
}
.record-row.is-flashing {
  animation: rowFlash 0.95s ease-out;
}
.record-row.is-flashing[data-tone="emerald"] {
  animation: rowFlashEmerald 1.05s ease-out;
}
.record-row.is-flashing[data-tone="coral"] {
  animation: rowFlashCoral 1.05s ease-out;
}
@keyframes rowFlash {
  0% { background: var(--nectar-soft); border-color: var(--nectar); box-shadow: 0 0 0 4px rgba(232, 163, 56, 0.22); }
  100% { background: var(--surface); }
}
@keyframes rowFlashEmerald {
  0% { background: var(--emerald-soft); border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(30, 126, 94, 0.22); }
  100% { background: var(--surface); }
}
@keyframes rowFlashCoral {
  0% { background: var(--coral-soft); border-color: var(--coral); box-shadow: 0 0 0 4px rgba(217, 93, 71, 0.22); }
  100% { background: var(--surface); }
}

.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.demo-records dt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.demo-records dt svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--cypress);
}
.demo-records dd {
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.91rem;
  line-height: 1.45;
  font-weight: 500;
}
.demo-records dd[data-updated="true"] {
  color: var(--ink);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  transition: background-color 0.32s ease, color 0.32s ease, transform 0.24s ease;
}
.status-pill[data-tone="neutral"] {
  background: var(--bg-alt);
  color: var(--ink-muted);
}
.status-pill[data-tone="nectar"] {
  background: var(--nectar-soft);
  color: var(--nectar-ink);
}
.status-pill[data-tone="emerald"] {
  background: var(--emerald-soft);
  color: var(--emerald-ink);
}
.status-pill[data-tone="coral"] {
  background: var(--coral-soft);
  color: var(--coral-strong);
}
.status-pill[data-pulse="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulseCoral 1.8s ease-out infinite;
}
@keyframes pulseCoral {
  0% { box-shadow: 0 0 0 0 rgba(217, 93, 71, 0.55); }
  75% { box-shadow: 0 0 0 7px rgba(217, 93, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 93, 71, 0); }
}

.demo-note {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

/* ==========================================================================
   Dark Theater Band 2 — Photography Case Study Video
   ========================================================================== */
.case-video-section {
  padding-block: clamp(4.2rem, 8vw, 7rem);
  background:
    radial-gradient(ellipse 48% 58% at 82% 50%, rgba(232, 163, 56, 0.13) 0%, transparent 62%),
    var(--cypress);
  color: var(--ink-on-dark);
}
.case-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}
.case-metrics-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}
.case-metric-chip {
  padding: 0.72rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgba(250, 247, 242, 0.05);
}
.case-metric-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #F7CA74;
  line-height: 1.1;
}
.case-metric-chip span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted-on-dark);
}
.case-video-copy .button { margin-top: 1.8rem; }

.case-video-stage {
  justify-self: center;
  padding: 0.5rem;
  border: 1px solid var(--line-dark);
  border-radius: calc(var(--radius-lg) + 0.25rem);
  background: rgba(9, 23, 19, 0.7);
  box-shadow: var(--shadow-dark);
}
.case-video {
  width: min(100%, 19.5rem);
  height: auto;
  aspect-ratio: 9 / 16;
  display: block;
  border-radius: var(--radius);
  background: var(--cypress-deep);
}

/* ==========================================================================
   Secondary Page — Por dentro da iLily (Shared classes)
   ========================================================================== */
.inside-hero {
  padding-block: clamp(3.6rem, 8vw, 6.8rem);
  background:
    radial-gradient(ellipse 52% 56% at 86% 24%, rgba(251, 234, 228, 0.95) 0%, transparent 65%),
    radial-gradient(ellipse 46% 52% at 10% 85%, rgba(235, 243, 238, 0.9) 0%, transparent 65%),
    var(--bg);
}
.inside-hero-layout,
.inside-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(1.8rem, 5.5vw, 5.2rem);
}
.inside-hero-layout { align-items: center; }

.inside-section {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.8rem, 7.5vw, 6.5rem);
  background: var(--bg);
}
.inside-architecture { background: var(--bg-alt); }

.inside-flow {
  counter-reset: inside-step;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.inside-flow li {
  counter-increment: inside-step;
  position: relative;
  min-height: 5.25rem;
  padding: 1.1rem 1.35rem 1.1rem 4.6rem;
  display: grid;
  align-content: center;
  gap: 0.2rem;
}
.inside-flow li + li { border-top: 1px solid var(--line); }
.inside-flow li::before {
  content: counter(inside-step, decimal-leading-zero);
  position: absolute;
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.65rem;
  background: var(--coral-soft);
  color: var(--coral-strong);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}
.inside-flow li strong { color: var(--ink); font-size: 1rem; }
.inside-flow li span,
.inside-prose,
.inside-details p,
.inside-stack dd,
.inside-metrics dd {
  color: var(--ink-muted);
  line-height: 1.62;
}
.inside-flow li span { font-size: 0.9rem; }

.inside-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.inside-details details + details { border-top: 1px solid var(--line); }
.inside-details summary {
  min-height: 54px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background-color 0.2s ease;
}
.inside-details summary::-webkit-details-marker { display: none; }
.inside-details summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--coral-strong);
  font-size: 1.1rem;
  font-weight: 700;
  flex: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.inside-details details[open] summary::after {
  content: "−";
  background: var(--coral-soft);
}
.inside-details summary:hover { background: var(--bg); }
.inside-details p { padding: 0 1.25rem 1.2rem; font-size: 0.95rem; }

.inside-stack { display: grid; gap: 0.85rem; }
.inside-stack div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.inside-stack div:hover {
  border-color: rgba(217, 93, 71, 0.45);
  transform: translateY(-2px);
}
.inside-stack dt { font-weight: 700; color: var(--ink); }
.inside-stack dd { margin-top: 0.2rem; font-size: 0.93rem; }

.inside-prose { display: grid; gap: 1rem; font-size: 1.03rem; }

/* Dark Theater Results Band on Por dentro da iLily */
.inside-results {
  background: var(--cypress);
  color: var(--ink-on-dark);
  border-top: 0;
}
.inside-results .eyebrow { color: #F5BC62; }
.inside-results h2 { max-width: 22ch; color: var(--ink-on-dark); }
.inside-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 2rem 1.4rem;
}
.inside-metrics div {
  padding: 1.25rem;
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius-sm);
  background: var(--cypress-2);
}
.inside-metrics dt,
.metric-value {
  font-family: var(--font-display);
  color: #F7CA74;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.inside-metrics dd {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted-on-dark);
}
.inside-source {
  margin-bottom: 1.1rem;
  color: var(--muted-on-dark);
  font-size: 0.9rem;
  line-height: 1.55;
}
.inside-source a {
  color: var(--ink-on-dark);
  text-decoration: underline;
  text-underline-offset: 0.24rem;
}
.inside-results .text-action { color: #F7CA74; }
.inside-results .text-action:hover { color: #FFF4DC; }

/* Lightweight redirect utility for legacy URL */
.redirect-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--bg);
}
.redirect-card {
  max-width: 30rem;
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Footer (Shared dark Midnight Cypress closing band)
   ========================================================================== */
footer.closing {
  border-top: 1px solid var(--line-dark);
  background: var(--cypress-deep);
  color: var(--muted-on-dark);
}
.footer-row {
  min-height: 6.5rem;
  padding-block: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer-row .brand img { width: 6.4rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.35rem;
}
.footer-links a {
  color: var(--muted-on-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--ink-on-dark); }
.footer-tagline { color: var(--muted-on-dark); font-size: 0.85rem; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-layout,
  .presentation-layout,
  .features-layout,
  .case-video-layout,
  .inside-hero-layout,
  .inside-split {
    grid-template-columns: 1fr;
  }
  .demo-copy {
    flex-direction: column;
    align-items: start;
    gap: 0.85rem;
  }
  .demo-window { grid-template-columns: 1fr; }
  .demo-chat { min-height: 20rem; }
  .demo-panel {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .tour-grid { grid-template-columns: 1fr; }
  .case-video-stage { justify-self: start; }
}

@media (max-width: 720px) {
  .header-row { min-height: 4.25rem; }
  .feature-list { grid-template-columns: 1fr; }
  .inside-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-header { flex-wrap: wrap; }
  .demo-progress-pill { display: none; }
}

@media (max-width: 600px) {
  .brand img { width: 6.2rem; }
  .site-header nav { gap: 0.55rem; }
  .nav-link:not(.nav-demo):not(.nav-inside) { display: none; }
  .nav-link.nav-inside { font-size: 0.82rem; }
  .nav-link.nav-demo { padding: 0.4rem 0.82rem; font-size: 0.82rem; }
  .hero { padding-block: 2.3rem 2.8rem; }
  h1 { font-size: clamp(2.15rem, 9.5vw, 2.75rem); }
  h2 { font-size: clamp(1.75rem, 7.6vw, 2.25rem); }
  .hero-actions { margin-top: 1.45rem; gap: 0.65rem 1.15rem; }
  .hero-visual-bar { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .demo-controls { width: 100%; }
  .demo-controls button { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 360px) {
  .header-row .nav-demo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
