.scroll-float {
  transform: translateY(-300px);
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Cozy literary serif headings */
h1, h2 {
  font-family: 'Lora', var(--font-serif);
}

:root {
  --card-bg: #ffffff;
}

.dark {
  --card-bg: #1f2937;
}

html,body
{
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden; 
}

/* Fix missing border color on basecoat input/select */
.input, .select {
  border-color: var(--border);
}

/* Blurred backdrop for all dialogs */
dialog::backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.animated-border {
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, 
              linear-gradient(var(--angle), var(--border), #687aff) border-box;
  animation: 4s rotate linear infinite;
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Decorative dark topography backgrounds */
.topography-bg {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  opacity: 0.97;
}
.topography-top-left {
  top: 0;
  left: 0;
  width: 60vw;
  max-width: 1200px;
  height: 60vh;
  max-height: 900px;
  transform: none;
}
.topography-bottom-right {
  bottom: 0;
  right: 0;
  width: 60vw;
  max-width: 1200px;
  height: 60vh;
  max-height: 900px;
  transform: scaleX(-1) scaleY(-1);
}
@media (max-width: 900px) {
  .topography-bg {
    width: 90vw;
    height: 40vh;
    max-width: 600px;
    max-height: 400px;
  }
}
@media (max-width: 600px) {
  .topography-bg {
    width: 100vw;
    height: 22vh;
    max-width: 320px;
    max-height: 120px;
  }
}

@layer base {
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Geist', var(--font-sans) !important;
    font-feature-settings: "rlig" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  * {
    font-family: 'Geist', var(--font-sans) !important;
  }
  
  /* Main content */
  main {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 3.5rem);
  }
}

@layer components {
  /* Header styling */
  header {
    border-bottom: 1px solid hsl(0 0% 14.9%);
    /* background-color: hsl(0 0% 3.9%); */
  }
  
  /* Button variants */
  [data-variant="ghost"] {
    background-color: transparent;
  }
  
  [data-variant="ghost"]:hover {
    background-color: hsl(0 0% 14.9%);
    color: hsl(0 0% 98%);
  }
  
  /* Links in navigation */
  nav a {
    color: hsl(0 0% 63.9%);
    transition: color 0.15s ease;
  }
  
  nav a:hover {
    color: hsl(0 0% 98%);
    background-color: hsl(0 0% 14.9%);
  }
  
  /* Separator styling */
  [data-slot="separator"] {
    background-color: hsl(0 0% 14.9%);
  }
  
  /* Container improvements */
  .container-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  }
  
  /* Header height */
  .h-\(--header-height\) {
    height: 3.5rem;
  }
  
  /* Hero section gradient text */
  .bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
  }
  
  .from-white {
    --tw-gradient-from: #ffffff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
  }
  
  .to-gray-500 {
    --tw-gradient-to: #737373;
  }
  
  .bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
  }
  
  .text-transparent {
    color: transparent;
  }
  
  /* Card styling */
  .card-wrapper {
    position: relative;
  }
  
  .card-wrapper:hover .card-button {
    border-color: hsl(0 0% 30%);
  }
}

/* Export card animations */
@keyframes fadeRotateIn {
  0% { opacity: 0; transform: rotateY(90deg) translateX(30px); }
  100% { opacity: 1; transform: rotateY(0deg) translateX(0); }
}

@keyframes fadeRotateOut {
  0% { opacity: 1; transform: rotateY(0deg) translateX(0); }
  100% { opacity: 0; transform: rotateY(-90deg) translateX(-30px); }
}

.animate-in-right {
  animation: fadeRotateIn 420ms cubic-bezier(.2,.9,.3,1) both;
}

.animate-out-left {
  animation: fadeRotateOut 360ms cubic-bezier(.2,.9,.3,1) both;
}

.export-card {
  border-radius: 0.5rem;
  border: 1px solid hsl(0 0% 14.9%);
  background-color: hsl(0 0% 6%);
  padding: 1rem;
}

/* Layout: place cover to the left of export info on wider screens */
.export-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* On small screens, stack vertically to preserve space */
@media (max-width: 640px) {
  .export-card {
    flex-direction: column;
    align-items: stretch;
  }
  .export-left {
    display: flex; /* ensure image container participates in flow */
    justify-content: center;
  }
  .export-right { padding-left: 0; }
}

.export-left { flex: 0 0 140px; }
.export-cover-large { width: 120px; height: 180px; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.export-right { flex: 1; padding-left: 1rem; }
.progress-row { display:flex; align-items:center; gap:0.75rem; }
.progress-title { flex:1; font-weight:600; }
.progress-title-text { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:60ch; }
.progress-count { white-space:nowrap; color: hsl(0 0% 63.9%); font-size:0.9rem; }
.progress-bar-wrap { flex:1; display:flex; align-items:center; gap:0.75rem; }
.progress-bar { height: 12px; background: hsl(0 0% 14.9%); border-radius: 999px; overflow:hidden; flex:1; min-width:0; }
.progress-bar-inner { height: 12px; background: #7f00ff; width:0%; transition: width 300ms linear; }

/* highlight */
.highlight {
  position: relative;

  &::after {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: -0.5rem;
    right: -0.5rem;
    height: 0.75rem;
    z-index: -1;
    background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/664131/underline.svg');
    background-repeat: no-repeat;
    background-size: cover;
  }
}

/* Book Grid Layout - Static Tilted Grid Pattern */
.book-grid-container {
  perspective: 1500px;
  transform-style: preserve-3d;
}

.book-item {
  position: absolute;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-item img {
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  will-change: transform;
}

/* Hero Section Input Focus */
input:focus {
  outline: none;
  border-color: hsl(0 0% 83.1%);
}

.container {
   columns: 2;
   column-gap: 0;
   column-fill: balance;
   column-rule: 2px solid hsl(0 0% 14.9%);
   text-align: center;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.006), transparent 1%),
                    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.006), transparent 1%);
  background-repeat: repeat;
  opacity: 0.10;
  mix-blend-mode: normal;
}

.container-wrapper, header, main, footer, .container {
  position: relative;
  z-index: 10;
}

@media (prefers-reduced-motion: reduce) {
  body::before { 
    animation: none;
    background-position: 50% 50%;
  }
  body::after { opacity: 0.02; }
}

body > svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.scene {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	pointer-events: none;
	z-index: 1;
}

.blob-5 path {
  fill: url(#gradient-5);
}

.blob-5 path:nth-of-type(1) {
  fill-opacity: 0.1;
}

.blob-5 path:nth-of-type(2) {
  fill-opacity: 0.2;
}

.blob-5 path:nth-of-type(3) {
  fill-opacity: 0.3;
}

.blob-5 path:nth-of-type(4) {
  fill-opacity: 0.4;
}

.blob-5 path:nth-of-type(5) {
  fill-opacity: 0.5;
}

.blob-5 path:nth-of-type(6) {
  fill-opacity: 0.6;
}

.blob-5 path:nth-of-type(7) {
  fill-opacity: 0.7;
}

#navbar-skeleton,
#navbar-authenticated,
#navbar-unauthenticated {
  transition: opacity 0.3s ease-in-out;
}

#navbar-skeleton.hidden,
#navbar-authenticated.hidden,
#navbar-unauthenticated.hidden {
  display: none;
}

@keyframes slideRevealFromLeft {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes fadeSlideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body {
  animation: slideRevealFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

main > section:nth-child(1) {
  animation: fadeSlideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

main > section:nth-child(2) {
  animation: fadeSlideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

main > section:nth-child(3) {
  animation: fadeSlideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

main > section:nth-child(4) {
  animation: fadeSlideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

.top-navbar {
  animation: fadeSlideInFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
  /* background: color-mix(in oklch, var(--background) 88%, transparent); */
  /* backdrop-filter: blur(14px) saturate(1.4); */
  /* -webkit-backdrop-filter: blur(14px) saturate(1.4); */
  /* border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent); */
  /* box-shadow: 0 1px 12px color-mix(in oklch, oklch(0 0 0) 6%, transparent); */
}

/* ── Mobile menu ───────────────────────────────────────────── */
@keyframes mobileMenuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobile-menu:not(.hidden) {
  animation: mobileMenuSlideDown 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Larger tap targets for mobile nav items */
#mobile-menu nav a,
#mobile-menu nav button {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Section labels inside mobile menu */
.mobile-menu-section-label {
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Mobile hamburger button active press effect */
#mobile-menu-button {
  transition: background-color 0.15s ease, transform 0.1s ease;
  border-radius: 0.5rem;
}

#mobile-menu-button:active {
  transform: scale(0.9);
}

/* Smooth icon swap */
#mobile-menu-button svg {
  transition: opacity 0.15s ease;
}

/* Indent for mobile sub-menus */
#mobile-menu .mobile-submenu {
  border-left: 2px solid var(--border);
  margin-left: 0.75rem;
  padding-left: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  body,
  header,
  main > section {
    animation: none !important;
  }
}

/* Button bubble animation */
.btn-bubble-wrap {
  position: relative;
  display: inline-flex;
}

/* ── How It Works – step connector line ──────────────────────── */
.hiw-steps {
  display: grid;
  position: relative;
}

/* horizontal connector (lg+) */
@media (min-width: 1024px) {
  .hiw-steps {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  .hiw-connector {
    display: block;
    position: absolute;
    top: 28px; /* vertically centred on the step number circle */
    left: calc(16.666% + 28px);
    right: calc(16.666% + 28px);
    height: 2px;
    background: linear-gradient(90deg, oklch(0.4365 0.1044 156.7556), oklch(0.65 0.14 264.61));
    transform-origin: left center;
    animation: line-grow-h 0.8s cubic-bezier(0.4,0,0.2,1) both;
    animation-play-state: paused;
  }
  .hiw-steps.animated .hiw-connector {
    animation-play-state: running;
  }
}

/* vertical connector (< lg) */
@media (max-width: 1023px) {
  .hiw-steps {
    grid-template-columns: 1fr;
  }
  .hiw-connector { display: none; }
  .hiw-step:not(:last-child)::after {
    content: "";
    display: block;
    width: 2px;
    height: 36px;
    margin: 8px auto 0;
    background: linear-gradient(180deg, oklch(0.4365 0.1044 156.7556), oklch(0.65 0.14 264.61));
    border-radius: 2px;
    transform-origin: top center;
    animation: line-grow-v 0.6s cubic-bezier(0.4,0,0.2,1) both;
  }
}

/* step card entrance */
.hiw-step {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hiw-steps.animated .hiw-step:nth-child(2) { transition-delay: 0.15s; }
.hiw-steps.animated .hiw-step:nth-child(3) { transition-delay: 0.30s; }
.hiw-steps.animated .hiw-step:nth-child(4) { transition-delay: 0.45s; }
.hiw-steps.animated .hiw-step {
  opacity: 1;
  transform: translateY(0);
}

/* number pulse on entrance */
.hiw-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  background: oklch(0.4365 0.1044 156.7556);
  color: white;
  position: relative;
}
.hiw-steps.animated .hiw-step-num::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid oklch(0.4135 0.1553 264.61 / 0.35);
  animation: num-ping 6s ease-out infinite;
}
.hiw-steps.animated .hiw-step:nth-child(2) .hiw-step-num::after { animation-delay: 1.5s; }
.hiw-steps.animated .hiw-step:nth-child(3) .hiw-step-num::after { animation-delay: 3.0s; }
.hiw-steps.animated .hiw-step:nth-child(4) .hiw-step-num::after { animation-delay: 4.5s; }

@keyframes line-grow-h {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes line-grow-v {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes num-ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  30%  { transform: scale(1.6); opacity: 0; }
  31%  { transform: scale(1);   opacity: 0; }
  100% { transform: scale(1);   opacity: 0; }
}

/* ── shared bubble base ───────────────────────────────────────── */
.btn-bubble-wrap .bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: oklch(0.4365 0.1044 156.7556);
}

/* ── TOP bubbles – rise upward ───────────────────────────────── */
.btn-bubble-wrap .bubble-top {
  bottom: 100%;
  animation: bubble-up 2.4s ease-in infinite;
}
.btn-bubble-wrap .bubble-top:nth-child(1)  { width:5px; height:5px; left:12%;  animation-delay:0s;    animation-duration:2.2s; }
.btn-bubble-wrap .bubble-top:nth-child(2)  { width:4px; height:4px; left:28%;  animation-delay:0.5s;  animation-duration:2.5s; }
.btn-bubble-wrap .bubble-top:nth-child(3)  { width:6px; height:6px; left:45%;  animation-delay:1.0s;  animation-duration:2.0s; }
.btn-bubble-wrap .bubble-top:nth-child(4)  { width:3px; height:3px; left:62%;  animation-delay:1.5s;  animation-duration:2.6s; }
.btn-bubble-wrap .bubble-top:nth-child(5)  { width:5px; height:5px; left:80%;  animation-delay:0.3s;  animation-duration:2.3s; }

/* ── BOTTOM bubbles – fall downward ─────────────────────────── */
.btn-bubble-wrap .bubble-bottom {
  top: 100%;
  animation: bubble-down 2.4s ease-in infinite;
}
.btn-bubble-wrap .bubble-bottom:nth-child(6)  { width:4px; height:4px; left:18%;  animation-delay:0.7s;  animation-duration:2.4s; }
.btn-bubble-wrap .bubble-bottom:nth-child(7)  { width:5px; height:5px; left:35%;  animation-delay:1.2s;  animation-duration:2.1s; }
.btn-bubble-wrap .bubble-bottom:nth-child(8)  { width:3px; height:3px; left:55%;  animation-delay:0.2s;  animation-duration:2.7s; }
.btn-bubble-wrap .bubble-bottom:nth-child(9)  { width:6px; height:6px; left:72%;  animation-delay:1.7s;  animation-duration:2.2s; }
.btn-bubble-wrap .bubble-bottom:nth-child(10) { width:4px; height:4px; left:88%;  animation-delay:0.9s;  animation-duration:2.5s; }

/* ── LEFT bubbles – shoot leftward ──────────────────────────── */
.btn-bubble-wrap .bubble-left {
  right: 100%;
  animation: bubble-left 2.4s ease-in infinite;
}
.btn-bubble-wrap .bubble-left:nth-child(11) { width:5px; height:5px; top:15%;  animation-delay:0.4s;  animation-duration:2.3s; }
.btn-bubble-wrap .bubble-left:nth-child(12) { width:3px; height:3px; top:35%;  animation-delay:1.1s;  animation-duration:2.6s; }
.btn-bubble-wrap .bubble-left:nth-child(13) { width:6px; height:6px; top:55%;  animation-delay:0.6s;  animation-duration:2.0s; }
.btn-bubble-wrap .bubble-left:nth-child(14) { width:4px; height:4px; top:75%;  animation-delay:1.8s;  animation-duration:2.4s; }

/* ── RIGHT bubbles – shoot rightward ────────────────────────── */
.btn-bubble-wrap .bubble-right {
  left: 100%;
  animation: bubble-right 2.4s ease-in infinite;
}
.btn-bubble-wrap .bubble-right:nth-child(15) { width:4px; height:4px; top:20%;  animation-delay:0.1s;  animation-duration:2.2s; }
.btn-bubble-wrap .bubble-right:nth-child(16) { width:6px; height:6px; top:40%;  animation-delay:0.8s;  animation-duration:2.5s; }
.btn-bubble-wrap .bubble-right:nth-child(17) { width:3px; height:3px; top:60%;  animation-delay:1.4s;  animation-duration:2.1s; }
.btn-bubble-wrap .bubble-right:nth-child(18) { width:5px; height:5px; top:80%;  animation-delay:1.9s;  animation-duration:2.7s; }

@keyframes bubble-up {
  0%   { transform: translateY(0)     scale(1);   opacity: 0; }
  10%  { opacity: 0.85; }
  80%  { opacity: 0.35; }
  100% { transform: translateY(-32px) scale(0.5); opacity: 0; }
}
@keyframes bubble-down {
  0%   { transform: translateY(0)     scale(1);   opacity: 0; }
  10%  { opacity: 0.85; }
  80%  { opacity: 0.35; }
  100% { transform: translateY(32px)  scale(0.5); opacity: 0; }
}
@keyframes bubble-left {
  0%   { transform: translateX(0)     scale(1);   opacity: 0; }
  10%  { opacity: 0.85; }
  80%  { opacity: 0.35; }
  100% { transform: translateX(-32px) scale(0.5); opacity: 0; }
}
@keyframes bubble-right {
  0%   { transform: translateX(0)     scale(1);   opacity: 0; }
  10%  { opacity: 0.85; }
  80%  { opacity: 0.35; }
  100% { transform: translateX(32px)  scale(0.5); opacity: 0; }
}

/* ── Integration scatter grids ───────────────────────────────── */

/* Shared cell styles */
.isc-cell {
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.2rem;
  border: 1px solid oklch(0.88 0.01 264 / 0.4);
  /* background: #f7f2ed; */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.isc-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.isc-cell:not(.isc-ghost):hover {
  box-shadow: 0 6px 20px oklch(0 0 0 / 0.1);
  transform: translateY(-3px);
}
.isc-cell.isc-ghost {
  /* background: oklch(0.97 0.003 264); */
  border-color: oklch(0.90 0.008 264 / 0.7);
}
.dark .isc-cell {
  background: oklch(0.2 0.015 264);
  border-color: oklch(0.28 0.02 264 / 0.8);
}
.dark .isc-cell.isc-ghost {
  background: oklch(0.17 0.01 264);
  border-color: oklch(0.25 0.015 264 / 0.7);
}

/* Desktop grid — 12 cols × 6 rows, text hole spans 6×2 in the centre */
.isc-desktop {
  display: none;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 0.75rem;
  width: 100%;
  aspect-ratio: 2 / 1;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 50%, transparent 90%);
  mask-image:         radial-gradient(ellipse 85% 85% at 50% 50%, black 50%, transparent 90%);
}
@media (min-width: 1024px) {
  .isc-desktop { display: grid; }
}
.isc-desktop .isc-cell { border-radius: 14px; }

/* Compact desktop grid — 5 cols × 5 rows, smaller icons */
.isc-desktop-compact {
  display: grid;
  grid-template-columns: repeat(5, minmax(50px, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 350px;
}
.isc-desktop-compact .isc-cell {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* Mobile grid — 6 cols, text hole spans all 6 */
.isc-mobile {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 50%, transparent 90%);
  mask-image:         radial-gradient(ellipse 90% 90% at 50% 50%, black 50%, transparent 90%);
}
@media (min-width: 1024px) {
  .isc-mobile { display: none; }
}

/* Text hole — no border/background, just centres content */
.isc-text-hole {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
}
/* Desktop: span 6 cols × 2 rows */
.isc-desktop .isc-text-hole {
  grid-column: span 6;
  grid-row: span 2;
  padding: 0;
}
/* Mobile: span all 6 cols */
.isc-mobile .isc-text-hole {
  grid-column: span 6;
}

/* Starting offsets — each flies in from its corner */
.isc-logo-kindle { transform: translate(-70px,  70px); }
.isc-logo-apple  { transform: translate( 70px, -70px); }
.isc-logo-google { transform: translate(-100px, 100px); }
.isc-logo-libby  { transform: translate( 70px,  70px); }

/* Stagger delays */
.isc-logo-kindle.is-visible { transition-delay: 0ms;   }
.isc-logo-apple.is-visible  { transition-delay: 80ms;  }
.isc-logo-google.is-visible { transition-delay: 160ms; }
.isc-logo-libby.is-visible  { transition-delay: 240ms; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .isc-logo-kindle,
  .isc-logo-apple,
  .isc-logo-google,
  .isc-logo-libby {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Testimonial cards ───────────────────────────────────────── */
.testimonial-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid oklch(0.92 0 0);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 4px oklch(0 0 0 / 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px oklch(0 0 0 / 0.09);
  transform: translateY(-2px);
}
.dark .testimonial-card {
  background: oklch(0.18 0.01 264);
  border-color: oklch(0.25 0.02 264);
}

/* ── FAQ accordion ───────────────────────────────────────────── */
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: oklch(0.15 0 0);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.dark .faq-trigger { color: white; }
.faq-trigger:hover { color: oklch(0.4365 0.1044 156.7556); }
.dark .faq-trigger:hover { color: oklch(0.7 0.14 264.61); }

.faq-chevron {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  opacity: 0;
}
.faq-body.open {
  max-height: 300px;
  opacity: 1;
}
.faq-body p {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: oklch(0.45 0.01 264);
}
.dark .faq-body p { color: oklch(0.65 0.02 264); }

/* Highlight effect */
@keyframes highlight-sweep {
  0% {
    left: -0.1em;
    right: 100%;
  }
  100% {
    left: -0.1em;
    right: -0.1em;
  }
}

.realistic-marker-highlight{
  position:relative;
}

.realistic-marker-highlight:before{
  content:"";
  background-color:rgba(250, 204, 21, 0.35);
  left: -0.1em;
  right: 100%;
  height:1em;
  position:absolute;
  z-index:-1;
  filter:url(#marker-shape);
  top:0.15em;
  animation: highlight-sweep 0.8s ease-out forwards .4s;
}

/* Stacked Card Animation Styles */
.steps-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-card {
  position: sticky;
  top: 15vh;
  width: 100%;
  margin-bottom: 5vh;
  border-radius: 2rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  
  /* Initial state */
  transform-origin: center top;
  will-change: transform, filter, opacity;
  transition: none;
}

.step-card .step-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.step-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
  .step-card {
    padding: 40px 30px;
  }

  .step-card .step-content {
    gap: 2rem;
    flex-direction: column !important;
  }

  .step-card .step-content .flex-1:nth-child(2) {
    order: 2;
  }
}

/* Integration cell pulse effect */
@keyframes gentle-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
  }
}

.isc-cell:not(.isc-ghost) {
  animation: gentle-pulse 3s ease-in-out infinite;
}

.isc-cell:not(.isc-ghost):nth-child(1) {
  animation-delay: 0s;
}

.isc-cell:not(.isc-ghost):nth-child(2) {
  animation-delay: 0.3s;
}

.isc-cell:not(.isc-ghost):nth-child(3) {
  animation-delay: 0.6s;
}

.isc-cell:not(.isc-ghost):nth-child(4) {
  animation-delay: 0.9s;
}

.isc-cell:not(.isc-ghost):nth-child(5) {
  animation-delay: 1.2s;
}