/* ============================================================================
   Infoflow Marketing Site — Design System
   Ported from the product app (Tailwind config + index.css) to preserve the
   exact branding: glassmorphism, liquid gradient (emerald→teal→violet),
   forest-dark default theme, Inter / Hanken Grotesk type.
   ========================================================================== */

/* ---- Theme tokens -------------------------------------------------------- */
:root {
  /* Light theme — mint neutrals + emerald accent */
  --background: 138 60% 98%;
  --foreground: 162 64% 12%;
  --card: 0 0% 100%;
  --card-translucent: 0 0% 100% / 0.55;
  --card-foreground: 222 47% 11%;
  --muted: 145 45% 94%;
  --muted-foreground: 155 18% 40%;
  --primary: 160 94% 30%;
  /* emerald #059669 */
  --primary-foreground: 0 0% 100%;
  --secondary: 145 45% 94%;
  --secondary-foreground: 162 40% 22%;
  --accent: 168 64% 91%;
  --accent-foreground: 175 70% 24%;
  --destructive: 0 84% 60%;
  --border: 145 30% 82%;
  --input: 145 30% 82%;
  --ring: 160 94% 30%;
  --glow: 160 84% 39%;

  --teal: 174 84% 42%;
  --violet: 262 83% 58%;
  --cyan: 190 90% 50%;

  --radius: 0.875rem;
  /* 14px */
  --glass-bg: 0 0% 100% / 0.55;
  --glass-border: 162 30% 25% / 0.14;
  --glass-blur: 22px;

  --header-bg: 0 0% 100% / 0.65;
  --footer-bg: 145 45% 96%;

  --maxw: 1600px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Hanken Grotesk', 'Inter', sans-serif;
  --font-mono: 'Inter', monospace;
}

.dark {
  /* Dark theme — deep forest canvas + premium glass glow (app default) */
  --background: 165 58% 6%;
  --foreground: 150 30% 96%;
  --card: 162 42% 9%;
  --card-translucent: 162 42% 13% / 0.5;
  --card-foreground: 150 30% 96%;
  --muted: 162 25% 15%;
  --muted-foreground: 152 16% 62%;
  --primary: 160 94% 34%;
  --primary-foreground: 0 0% 100%;
  --secondary: 162 25% 15%;
  --secondary-foreground: 150 30% 96%;
  --accent: 174 50% 14%;
  --accent-foreground: 156 72% 72%;
  --destructive: 0 72% 55%;
  --border: 162 25% 18%;
  --input: 162 25% 18%;
  --ring: 160 84% 39%;
  --glow: 160 84% 39%;

  --glass-bg: 162 42% 11% / 0.45;
  --glass-border: 0 0% 100% / 0.09;
  --glass-blur: 24px;

  --header-bg: 165 50% 6% / 0.7;
  --footer-bg: 165 55% 5%;
}

/* ---- Reset / base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: hsl(var(--teal));
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
  z-index: 1;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.text-center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  padding: .35rem .8rem;
  border-radius: 999px;
  background: hsl(var(--primary) / .1);
  border: 1px solid hsl(var(--primary) / .22);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: .6rem;
}

.section-sub {
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
  max-width: 640px;
}

.text-center .section-sub {
  margin-inline: auto;
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--teal)) 50%, hsl(var(--violet)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Liquid background blobs (ported from app) --------------------------- */
.liquid-blobs {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px) saturate(170%);
  opacity: .14;
  mix-blend-mode: plus-lighter;
  will-change: transform, border-radius;
}

.dark .liquid-blob {
  opacity: .26;
  filter: blur(110px) saturate(190%);
}

.blob-1 {
  width: 55vw;
  height: 55vw;
  max-width: 650px;
  max-height: 650px;
  top: -12%;
  left: -10%;
  background: radial-gradient(circle, hsl(160 84% 39%) 0%, hsl(174 84% 42% / .3) 100%);
  animation: morph1 24s ease-in-out infinite alternate, float1 28s ease-in-out infinite;
}

.blob-2 {
  width: 50vw;
  height: 50vw;
  max-width: 580px;
  max-height: 580px;
  top: 35%;
  right: -10%;
  background: radial-gradient(circle, hsl(262 83% 58%) 0%, hsl(272 75% 48% / .3) 100%);
  animation: morph2 22s ease-in-out infinite alternate, float2 26s ease-in-out infinite;
}

.blob-3 {
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  bottom: -8%;
  left: 15%;
  background: radial-gradient(circle, hsl(190 90% 50%) 0%, hsl(174 84% 42% / .3) 100%);
  animation: morph3 20s ease-in-out infinite alternate, float3 32s ease-in-out infinite;
}

.dark .blob-2 {
  display: none;
}

@keyframes morph1 {
  0% {
    border-radius: 42% 58% 70% 30%/45% 45% 55% 55%;
  }

  50% {
    border-radius: 70% 30% 52% 48%/60% 40% 60% 40%;
  }

  100% {
    border-radius: 42% 58% 70% 30%/45% 45% 55% 55%;
  }
}

@keyframes morph2 {
  0% {
    border-radius: 50% 50% 30% 70%/50% 60% 40% 50%;
  }

  50% {
    border-radius: 30% 70% 70% 30%/50% 30% 70% 50%;
  }

  100% {
    border-radius: 50% 50% 30% 70%/50% 60% 40% 50%;
  }
}

@keyframes morph3 {
  0% {
    border-radius: 60% 40% 60% 40%/40% 60% 40% 60%;
  }

  50% {
    border-radius: 40% 60% 40% 60%/60% 40% 60% 40%;
  }

  100% {
    border-radius: 60% 40% 60% 40%/40% 60% 40% 60%;
  }
}

@keyframes float1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0);
  }

  50% {
    transform: translate(35px, 25px) scale(1.06) rotate(45deg);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0);
  }

  50% {
    transform: translate(-25px, 45px) scale(.96) rotate(-30deg);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0);
  }

  50% {
    transform: translate(45px, -35px) scale(1.03) rotate(60deg);
  }
}

/* ---- Glass surfaces ------------------------------------------------------ */
.glass {
  background-color: hsl(var(--glass-bg));
  background-image: linear-gradient(135deg, hsla(0, 0%, 100%, .08) 0%, hsla(0, 0%, 100%, 0) 45%);
  border: 1px solid hsl(var(--glass-border));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow: 0 1px 0 0 hsla(0, 0%, 100%, .06) inset;
}

.glass-card {
  background-color: hsl(var(--card-translucent));
  background-image: linear-gradient(135deg, hsla(0, 0%, 100%, .08) 0%, hsla(0, 0%, 100%, 0) 45%);
  border: 1px solid hsl(var(--glass-border));
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow: 0 1px 0 0 hsla(0, 0%, 100%, .12) inset, 0 18px 55px -32px hsl(160 60% 10% / .28), 0 8px 24px -18px hsl(var(--glow) / .18);
}

.glass-interactive {
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, border-color .3s;
}

.glass-interactive:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / .4);
  box-shadow: 0 1px 0 0 hsla(0, 0%, 100%, .16) inset, 0 24px 70px -34px hsl(160 60% 10% / .34), 0 12px 32px -20px hsl(var(--glow) / .28);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: hsl(var(--primary-foreground));
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--teal)) 100%);
  box-shadow: 0 8px 24px -10px hsl(var(--primary) / .6);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 30px -8px hsl(var(--primary) / .7);
  transform: translateY(-2px);
}

.btn-secondary {
  color: hsl(var(--foreground));
  background: hsl(var(--glass-bg));
  border-color: hsl(var(--border));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary) / .5);
  transform: translateY(-2px);
}

.btn-ghost {
  color: hsl(var(--foreground));
  background: transparent;
}

.btn-ghost:hover {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
}

.btn-lg {
  padding: 1.05rem 1.9rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: hsl(var(--header-bg));
  border-bottom: 1px solid hsl(var(--glass-border));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: hsl(var(--foreground));
}

.brand:hover {
  color: hsl(var(--foreground));
}

.brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
}

.nav-links a {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .85rem;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--foreground));
  background: hsl(var(--primary) / .08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--glass-bg));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.theme-toggle:hover {
  border-color: hsl(var(--primary) / .5);
  color: hsl(var(--primary));
}

.theme-toggle .sun {
  display: none;
}

.dark .theme-toggle .sun {
  display: block;
}

.dark .theme-toggle .moon {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--glass-bg));
  color: hsl(var(--foreground));
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hide-mobile {}

.show-mobile {
  display: none;
}

/* ---- Mobile nav drawer --------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: hsl(var(--background) / .98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.mobile-drawer nav a {
  color: hsl(var(--foreground));
  font-size: 1.15rem;
  font-weight: 600;
  padding: .9rem .5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.mobile-drawer .drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--glass-bg));
  color: hsl(var(--foreground));
  cursor: pointer;
  font-size: 1.4rem;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: hsl(var(--muted-foreground));
  max-width: 680px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-trust {
  font-size: .9rem;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-mono);
}

.hero-visual {
  margin-top: 3rem;
}

.hero-visual .glass-card {
  padding: 1rem;
  max-width: 940px;
  margin-inline: auto;
}

/* ---- Cards / grids ------------------------------------------------------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
}

.feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .12);
  border: 1px solid hsl(var(--primary) / .2);
}

.feature-card h3 {
  margin-bottom: .5rem;
}

.feature-card p {
  color: hsl(var(--muted-foreground));
  margin: 0;
  font-size: .97rem;
}

.feature-card ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: .5rem;
}

.feature-card ul li {
  position: relative;
  padding-left: 1.6rem;
  color: hsl(var(--muted-foreground));
  font-size: .92rem;
}

.feature-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .45em;
  width: 16px;
  height: 16px;
  background: hsl(var(--primary) / .15);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- Steps --------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  padding: 1.75rem;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--violet)) 100%);
}

.step h3 {
  margin-bottom: .4rem;
}

.step p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* ---- Feature rows (alternating) ----------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-row-media {
  order: 2;
}

.feature-row h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.feature-row .lead {
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
}

.feature-row ul {
  list-style: none;
  display: grid;
  gap: .65rem;
  margin-top: 1.25rem;
}

.feature-row ul li {
  position: relative;
  padding-left: 1.8rem;
}

.feature-row ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .35em;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2313c2b5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.feature-row-media .glass-card {
  padding: 1.25rem;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* mock UI shapes used inside glass cards */
.mock {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .25rem;
}

.mock-bar {
  height: 12px;
  border-radius: 6px;
  background: hsl(var(--primary) / .18);
}

.mock-bar.w-60 {
  width: 60%;
}

.mock-bar.w-40 {
  width: 40%;
}

.mock-bar.w-80 {
  width: 80%;
}

.mock-chip {
  display: inline-block;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: .8rem;
  font-weight: 600;
}

.mock-row {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--violet)));
  flex: none;
}

.mock-bubble {
  padding: .6rem .9rem;
  border-radius: 14px;
  background: hsl(var(--muted));
  font-size: .82rem;
  max-width: 80%;
}

.mock-bubble.me {
  background: hsl(var(--primary) / .15);
  margin-left: auto;
}

/* ---- Stats band ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.stat .label {
  color: hsl(var(--muted-foreground));
  font-size: .92rem;
}

/* ---- Logos strip --------------------------------------------------------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: center;
}

.logos .chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  font-size: .95rem;
}

/* ---- Testimonials -------------------------------------------------------- */
.testimonial {
  padding: 1.75rem;
}

.testimonial p {
  font-size: 1.02rem;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
}

.testimonial .who .mock-avatar {
  width: 42px;
  height: 42px;
}

.testimonial .who strong {
  display: block;
}

.testimonial .who span {
  color: hsl(var(--muted-foreground));
  font-size: .85rem;
}

/* ---- Pricing ------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: hsl(var(--primary) / .55);
  box-shadow: 0 0 0 1px hsl(var(--primary) / .28), 0 24px 70px -34px hsl(var(--primary) / .34), 0 12px 32px -20px hsl(var(--glow) / .24);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--violet)));
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .9rem;
  border-radius: 999px;
  letter-spacing: .03em;
}

.price-card h3 {
  margin-bottom: .25rem;
}

.price-card .desc {
  color: hsl(var(--muted-foreground));
  font-size: .9rem;
  min-height: 2.6em;
}

.price-card .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  margin: 1rem 0 .25rem;
}

.price-card .amount small {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.price-card .credits {
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: .6rem;
  margin: 1.25rem 0;
}

.price-card ul li {
  position: relative;
  padding-left: 1.7rem;
  font-size: .92rem;
  color: hsl(var(--muted-foreground));
}

.price-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .3em;
  width: 17px;
  height: 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.price-card .btn {
  margin-top: auto;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem auto 0;
  padding: .4rem;
  border-radius: 999px;
  background: hsl(var(--muted));
}

.billing-toggle button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-sans);
}

.billing-toggle button.active {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: 0 2px 8px -2px hsl(160 60% 10% / .3);
}

/* ---- Comparison table ---------------------------------------------------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.compare th,
.compare td {
  padding: .9rem 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

.compare th {
  font-family: var(--font-display);
}

.compare td.center,
.compare th.center {
  text-align: center;
}

.compare .tick {
  color: hsl(var(--primary));
  font-weight: 700;
}

.compare .dash {
  color: hsl(var(--muted-foreground));
}

/* ---- FAQ accordion ------------------------------------------------------- */
.faq-group {
  margin-bottom: 2.5rem;
}

.faq-group>h3 {
  margin-bottom: 1rem;
  color: hsl(var(--primary));
}

.faq-item {
  border: 1px solid hsl(var(--glass-border));
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  background: hsl(var(--card-translucent));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: hsl(var(--foreground));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q .chev {
  transition: transform .25s;
  flex: none;
  color: hsl(var(--primary));
}

.faq-item.open .faq-q .chev {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a-inner {
  padding: 0 1.25rem 1.2rem;
  color: hsl(var(--muted-foreground));
}

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  z-index: 1;
}

.cta-band .glass-card {
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, hsl(var(--primary) / .14) 0%, hsl(var(--violet) / .12) 100%);
}

.cta-band h2 {
  margin-bottom: .75rem;
}

.cta-band p {
  color: hsl(var(--muted-foreground));
  max-width: 540px;
  margin: 0 auto 1.75rem;
}

/* ---- Contact form -------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info .info-item {
  display: flex;
  gap: .9rem;
  margin-bottom: 1.5rem;
}

.contact-info .info-item .icon {
  color: hsl(var(--primary));
  flex: none;
  margin-top: .15rem;
}

.contact-info .info-item strong {
  display: block;
  margin-bottom: .15rem;
}

.contact-info .info-item span {
  color: hsl(var(--muted-foreground));
}

.form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: .95rem;
  background: hsl(var(--glass-bg));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: hsl(var(--primary) / .6);
  box-shadow: 0 0 0 3px hsl(var(--glow) / .15);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field .err {
  color: hsl(var(--destructive));
  font-size: .82rem;
  margin-top: .3rem;
  display: none;
}

.field.invalid .err {
  display: block;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: hsl(var(--destructive));
}

.checkbox-field {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .88rem;
  color: hsl(var(--muted-foreground));
}

.checkbox-field input {
  width: auto;
  margin-top: .2rem;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: hsl(var(--primary) / .12);
  border: 1px solid hsl(var(--primary) / .3);
  color: hsl(var(--primary));
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-success.show {
  display: block;
}

/* ---- Legal / content pages ---------------------------------------------- */
.legal {
  max-width: 820px;
  margin-inline: auto;
}

.legal .updated {
  color: hsl(var(--muted-foreground));
  font-size: .9rem;
  font-family: var(--font-mono);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.legal h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.legal p,
.legal li {
  color: hsl(var(--foreground));
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.legal li {
  margin-bottom: .4rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .92rem;
}

.legal table th,
.legal table td {
  border: 1px solid hsl(var(--border));
  padding: .7rem .85rem;
  text-align: left;
}

.legal .note {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: .9rem;
  margin: 1.5rem 0;
}

.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem) 1.5rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: .75rem;
}

.page-hero p {
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
  max-width: 620px;
  margin-inline: auto;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: hsl(var(--footer-bg));
  border-top: 1px solid hsl(var(--border));
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: hsl(var(--muted-foreground));
  font-size: .92rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: .6rem;
}

.footer-col a {
  color: hsl(var(--foreground));
  font-size: .93rem;
}

.footer-col a:hover {
  color: hsl(var(--primary));
}

.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.footer-social a:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / .5);
}

.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: hsl(var(--muted-foreground));
  font-size: .88rem;
}

.footer-bottom nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: hsl(var(--muted-foreground));
}

/* ---- Scroll reveal ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {

  .cards-3,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .feature-row.reverse .feature-row-media {
    order: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {

  .nav-links,
  .nav-actions .btn,
  .nav-actions .nav-login {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cards-3,
  .cards-2,
  .steps,
  .pricing-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    order: -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================================
   Docs / Help-center layout (added on top of the shared design system)
   ========================================================================== */
.docs-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.docs-layout {
  padding-block: 2.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: .5rem;
}

.docs-sidebar .search {
  width: 100%;
  margin-bottom: 1rem;
}

.docs-sidebar .search input {
  width: 100%;
  padding: .7rem .9rem .7rem 2.2rem;
  border-radius: 12px;
  background: hsl(var(--glass-bg));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: .7rem center;
}

.docs-nav {
  list-style: none;
  display: grid;
  gap: .12rem;
}

.docs-nav .group-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: hsl(var(--muted-foreground));
  margin: 1.1rem 0 .35rem;
  padding-left: .6rem;
}

.docs-nav a {
  display: block;
  padding: .5rem .7rem;
  border-radius: 9px;
  color: hsl(var(--muted-foreground));
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.3;
}

.docs-nav a:hover {
  background: hsl(var(--primary) / .07);
  color: hsl(var(--foreground));
}

.docs-nav a.active {
  background: hsl(var(--primary) / .12);
  color: hsl(var(--primary));
  font-weight: 600;
}

/* Content */
.docs-content {
  min-width: 0;
  max-width: none;
}

.docs-content h2 {
  scroll-margin-top: 90px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.docs-content h2:first-of-type {
  border-top: 0;
  margin-top: 1rem;
  padding-top: 0;
}

.docs-content h3 {
  scroll-margin-top: 90px;
  font-size: 1.2rem;
  margin-top: 2rem;
}

.docs-content p,
.docs-content li {
  color: hsl(var(--foreground));
}

.docs-content ul,
.docs-content ol {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

.docs-content li {
  margin-bottom: .45rem;
}

.docs-content ul {
  list-style: disc;
}

.docs-content ol {
  list-style: decimal;
}

.docs-content a {
  font-weight: 500;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .92rem;
}

.docs-content th,
.docs-content td {
  border: 1px solid hsl(var(--border));
  padding: .7rem .85rem;
  text-align: left;
  vertical-align: top;
}

.docs-content th {
  font-family: var(--font-display);
  background: hsl(var(--muted) / .5);
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: hsl(var(--muted));
  padding: .12rem .4rem;
  border-radius: 6px;
}

.docs-content kbd {
  font-family: var(--font-mono);
  font-size: .8em;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-bottom-width: 2px;
  padding: .1rem .4rem;
  border-radius: 6px;
}

.callout {
  display: flex;
  gap: .8rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin: 1.25rem 0;
  border: 1px solid hsl(var(--primary) / .25);
  background: hsl(var(--primary) / .08);
}

.callout .ico {
  color: hsl(var(--primary));
  flex: none;
  margin-top: .1rem;
}

.callout p {
  margin: 0;
  font-size: .95rem;
}

.callout.warn {
  border-color: hsl(38 92% 50% / .35);
  background: hsl(38 92% 50% / .1);
}

.callout.warn .ico {
  color: hsl(38 92% 45%);
}

.docs-hero {
  padding-block: 1rem 0;
}

.docs-hero .crumbs {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: .6rem;
}

.step-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  margin: 1.25rem 0;
}

.step-pill {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  background: hsl(var(--card-translucent));
  border: 1px solid hsl(var(--glass-border));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.step-pill .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--violet)));
}

.step-pill strong {
  display: block;
  margin-bottom: .1rem;
}

.step-pill span {
  color: hsl(var(--muted-foreground));
  font-size: .9rem;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  box-shadow: 0 8px 24px -10px hsl(160 60% 10% / .5);
}

.back-to-top.show {
  display: inline-flex;
}

/* Mobile docs sidebar toggle */
.docs-mobile-bar {
  display: none;
}

@media (max-width: 1000px) {
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .docs-sidebar {
    position: fixed;
    inset: 0 30% 0 0;
    z-index: 55;
    top: 0;
    max-height: 100vh;
    background: hsl(var(--background));
    border-right: 1px solid hsl(var(--border));
    padding: 1.25rem;
    transform: translateX(-105%);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    width: min(320px, 85vw);
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .docs-mobile-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    position: sticky;
    top: 70px;
    z-index: 30;
    padding: .75rem 0;
  }

  .docs-mobile-bar button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    border-radius: 10px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--glass-bg));
    color: hsl(var(--foreground));
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
  }

  .docs-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: hsl(0 0% 0% / .5);
    z-index: 54;
  }

  .docs-backdrop.show {
    display: block;
  }
}
