/* The homepage's product parts (public/landing/index.html): KNWN's Overview on a dark panel, one
   scenario from the shopper benchmark beside the research, and icons on the cards below. The
   homepage's own layout and motion stay in styles.css. */

/* Inside KNWN: the words on the left, the Overview and its AI models cut by the panel on the right. */
.home-inside { padding-block: clamp(16px, 2.4vw, 28px) 0; }
.home-inside-panel { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 56px); align-items: center; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 5vw, 64px) clamp(28px, 5vw, 64px); border-radius: 28px; background: radial-gradient(90% 80% at 100% 0%, #3d2f78 0%, #232029 55%, #19191b 100%); color: #fff; }
[dir='rtl'] .home-inside-panel { padding: clamp(32px, 5vw, 64px) clamp(28px, 5vw, 64px) clamp(32px, 5vw, 64px) 0; }
.home-inside .eyebrow { color: var(--lavender); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.home-inside h2 { margin-top: 12px; color: #fff; font: 580 clamp(30px, 3.6vw, 46px)/1.1 var(--heading); letter-spacing: -.035em; }
.home-inside-copy > p:not(.eyebrow) { margin-top: 14px; color: #ffffffbf; font-size: 16px; line-height: 1.7; }
.home-inside-points { display: grid; gap: 14px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid #ffffff1f; list-style: none; }
.home-inside-points li { display: grid; gap: 3px; padding-inline-start: 18px; position: relative; }
.home-inside-points li::before { content: ''; position: absolute; top: .5em; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--lavender); }
.home-inside-points strong { font-size: 15px; font-weight: 650; }
.home-inside-points span { color: #ffffffa6; font-size: 14px; line-height: 1.55; }
.home-inside-button { margin-top: 28px; background: #fff; color: var(--ink); }
.home-inside-button:hover { background: var(--lavender-soft); }

.home-inside-stage { position: relative; min-width: 0; padding-bottom: 40px; }
.home-inside-stage .kui--window { width: 128%; border-radius: 16px 0 0 16px; box-shadow: 0 0 0 1px #ffffff24, 0 40px 80px -30px #000000b3; }
[dir='rtl'] .home-inside-stage .kui--window { border-radius: 0 16px 16px 0; }
.home-float { position: absolute; bottom: 0; inset-inline-start: -8%; width: min(44%, 300px); }
.home-float .kui { border-radius: 14px; box-shadow: 0 24px 50px -20px #000000b3; }
.home-caption { margin-top: 14px; color: var(--muted); font-size: 13px; text-align: center; }

/* The research beside one of its scenarios. */
.research:has(.home-study) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.research-copy > .button { margin-top: 24px; }
.home-study { margin: 0; padding: 22px 24px 24px; border-radius: 20px; background: var(--surface); box-shadow: var(--pop); }
.home-study figcaption { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.home-study figcaption span { color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.home-study figcaption strong { font: 580 22px/1.2 var(--heading); letter-spacing: -.015em; }
.home-study-label { margin-top: 16px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-study-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; align-items: center; gap: 12px; margin-top: 10px; font-size: 14px; font-weight: 650; }
.home-study-row span:last-child { text-align: end; font-variant-numeric: tabular-nums; }
.home-study-row span:first-child { white-space: nowrap; }
.home-study-row i { position: relative; height: 8px; overflow: hidden; border-radius: 99px; background: #efedf3; }
.home-study-row b { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
[dir='rtl'] .home-study-row b { inset: 0 0 0 auto; }
.home-bar-lead { background: var(--accent); }
.home-bar-faded { background: var(--lavender); }
.home-bar-other { background: #d0702f; }

/* Icons on the cards that lead on. */
.home-card-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--lavender-soft); color: var(--accent); }
.home-card-icon svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: no-preference) {
  [data-reveal='shown'] .home-study-row b, .home-study[data-reveal='shown'] .home-study-row b { animation: home-grow 1100ms var(--ease-out) 250ms both; }
  .home-resources .resource-card { transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
  .home-resources .resource-card:hover { transform: translateY(-3px); box-shadow: var(--pop); }
}
@keyframes home-grow { from { width: 0; } }

@media (max-width: 1020px) {
  .home-inside-panel { grid-template-columns: minmax(0, 1fr); padding: clamp(28px, 5vw, 48px); }
  [dir='rtl'] .home-inside-panel { padding: clamp(28px, 5vw, 48px); }
  .home-inside-stage .kui--window, [dir='rtl'] .home-inside-stage .kui--window { width: 100%; border-radius: 14px; }
  .home-float { inset-inline-start: auto; inset-inline-end: -4%; width: min(52%, 280px); }
  .research:has(.home-study) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .home-inside-panel { border-radius: 22px; padding: 26px 20px 24px; }
  [dir='rtl'] .home-inside-panel { padding: 26px 20px 24px; }
  .home-inside-stage { padding-bottom: 56px; }
  .home-float { width: 62%; inset-inline-end: -2%; }
      .home-study-row { grid-template-columns: auto minmax(0, 1fr) 36px; }
}
