/* =============================================================
   PEEKUIN — Design System
   A light, warm, playful-premium system built around the
   Peekuin mascot: cream paper, hot pink, plum ink, amber pop.
   ============================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* surfaces */
  --cream:      #FDF6F0;
  --cream-2:    #FFFBF7;
  --surface:    #FFFFFF;
  --surface-2:  #FFF6FA;

  /* ink */
  --ink:        #2E1F2B;
  --ink-2:      #5B4655;
  --ink-3:      #8C7686;
  --ink-4:      #B5A3AF;

  /* brand */
  --pink:       #F0508F;
  --pink-700:   #C22E68;
  --pink-600:   #D93C7A;
  --pink-400:   #FF7AB3;
  --pink-300:   #FF9CC6;
  --pink-100:   #FFE4EF;
  --pink-50:    #FFF2F7;
  --blush:      #FFD6E8;

  --amber:      #F7A928;
  --amber-100:  #FFF0D6;
  --ice:        #E9F1FC;
  --ice-600:    #6E9BD8;
  --mint:       #E3F6EC;
  --mint-600:   #2FA46A;

  /* lines & shadows */
  --line:       rgba(46, 31, 43, .09);
  --line-2:     rgba(46, 31, 43, .16);
  --shadow-xs:  0 1px 2px rgba(46,31,43,.05);
  --shadow-sm:  0 2px 8px rgba(46,31,43,.06);
  --shadow-md:  0 10px 30px -12px rgba(46,31,43,.16);
  --shadow-lg:  0 30px 70px -28px rgba(46,31,43,.30);
  --shadow-pink:0 14px 34px -12px rgba(240,80,143,.55);

  /* gradients */
  --grad-brand: linear-gradient(120deg, #FF7AB3 0%, #F0508F 55%, #D93C7A 100%);
  --grad-warm:  linear-gradient(140deg, #FFF2F7 0%, #FDF6F0 45%, #FFF6E9 100%);

  /* geometry */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-full: 999px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t: .38s var(--ease);

  --header-h: 76px;
  --maxw: 1180px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
}

::selection { background: var(--pink-100); color: var(--pink-700); }

:focus-visible {
  outline: 3px solid var(--pink-300);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- AMBIENT BACKGROUND ---------- */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: .7;
}
.ambient-orb--1 { width: 520px; height: 520px; top: -160px; left: -180px; background: rgba(255,154,198,.34); }
.ambient-orb--2 { width: 460px; height: 460px; bottom: -140px; right: -160px; background: rgba(247,169,40,.20); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink-700);
  background: var(--pink-50);
  border: 1px solid var(--pink-100);
  padding: 7px 16px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(30px, 4.2vw, 46px);
  margin-bottom: 16px;
}
.section-sub { font-size: 18px; color: var(--ink-3); }

.text-pink { color: var(--pink); }
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* highlighted word with a hand-drawn underline feel */
.marker {
  position: relative;
  white-space: nowrap;
  color: var(--pink);
  z-index: 0;
}
.marker::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: .04em;
  height: .28em;
  background: var(--blush);
  border-radius: var(--r-full);
  z-index: -1;
}

/* ---------- ANIMATION ---------- */
@keyframes floatY  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatY2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(240,80,143,.40); }
  70%  { box-shadow: 0 0 0 16px rgba(240,80,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,80,143,0); }
}
@keyframes shimmer { 0% { background-position: -160% 0; } 100% { background-position: 260% 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- BUTTONS ---------- */
.btn-cta, .get-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream-2);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  padding: 13px 26px;
  border-radius: var(--r-full);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  white-space: nowrap;
}
.btn-cta svg, .get-app-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-cta::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.22) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: shimmer 4.5s infinite;
  pointer-events: none;
}
.btn-cta:hover, .get-app-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-cta.btn-pink {
  background: var(--grad-brand);
  box-shadow: var(--shadow-pink);
}
.btn-cta.btn-lg { font-size: 17px; padding: 17px 36px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  padding: 13px 26px;
  border-radius: var(--r-full);
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--pink-300); background: var(--pink-50); }

/* ---------- HEADER ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
header.scrolled {
  background: rgba(253, 246, 240, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(46,31,43,.4);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

/* wordmark: "Peek" ink + "uin" pink, matching the app */
.logo-container a { display: inline-flex; align-items: center; gap: 11px; }
.logo {
  height: 40px; width: 40px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}
.wordmark {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--ink);
  line-height: 1;
}
.wordmark span { color: var(--pink); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li { display: flex; }
.nav-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 9px 15px;
  border-radius: var(--r-full);
  transition: color .25s, background .25s;
}
.nav-text:hover { color: var(--ink); background: rgba(46,31,43,.05); }
.nav-text.active { color: var(--pink-700); background: var(--pink-50); }

/* language switcher */
.lang-dropdown { position: relative; margin-left: 4px; }
.lang-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  transition: border-color .25s, box-shadow .25s;
}
.lang-toggle:hover { border-color: var(--pink-300); box-shadow: var(--shadow-xs); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 7px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 60;
}
.lang-dropdown.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-option {
  display: block;
  padding: 9px 13px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-2);
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.lang-option:hover { background: var(--pink-50); color: var(--pink-700); }

/* mobile menu */
.mobile-menu-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.mobile-menu-toggle span {
  display: block; width: 19px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(46,31,43,.42);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 900;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ---------- HERO ---------- */
.hero {
  padding: calc(var(--header-h) + 64px) 0 96px;
  background: var(--grad-warm);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 7px 16px 7px 8px;
  font-size: 13.5px; font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-600);
  display: grid; place-items: center;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero .subtitle {
  font-size: 19px;
  color: var(--ink-3);
  max-width: 30em;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-trust {
  display: flex; align-items: center; gap: 14px;
  margin-top: 30px;
  font-size: 14px; color: var(--ink-3);
}
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--cream-2);
  margin-left: -11px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack span:nth-child(1) { background: #F0508F; }
.avatar-stack span:nth-child(2) { background: #6E9BD8; }
.avatar-stack span:nth-child(3) { background: #F7A928; }
.avatar-stack span:nth-child(4) { background: #2E1F2B; }
.hero-trust strong { color: var(--ink); font-weight: 800; }

/* phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(310px, 78vw);
  border-radius: 46px;
  background: var(--ink);
  padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(46,31,43,.5);
  animation: floatY 7s ease-in-out infinite;
}
.phone::before {
  content: '';
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: var(--ink);
  border-radius: var(--r-full);
  z-index: 3;
}
.phone img {
  width: 100%;
  border-radius: 36px;
  display: block;
}

/* floating annotation cards around the phone */
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 11px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  white-space: nowrap;
  z-index: 4;
}
.float-card .fc-icon {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.float-card small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.float-card--a { top: 12%; left: -6%;  animation: floatY 6s ease-in-out infinite; }
.float-card--b { bottom: 26%; right: -8%; animation: floatY2 7.5s ease-in-out infinite; }
.float-card--c { bottom: 3%; left: -2%; animation: floatY 8s ease-in-out infinite .6s; }
.fc-pink  { background: var(--pink-100); }
.fc-ice   { background: var(--ice); }
.fc-amber { background: var(--amber-100); }

/* ---------- MARQUEE STRIP ---------- */
.strip {
  padding: 26px 0;
  background: var(--ink);
  overflow: hidden;
}
.marquee { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 46px; padding-right: 46px; }
.marquee-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(253,246,240,.72);
  font-size: 15px; font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.marquee-item b { color: var(--pink-300); }
.marquee-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* ---------- BENTO FEATURES ---------- */
.features { padding: 96px 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-100);
}
.feature-card.span-3 { grid-column: span 3; }
.feature-card.span-6 { grid-column: span 6; }
.feature-card.tinted { background: var(--surface-2); }
.feature-card.dark {
  background: var(--ink);
  border-color: transparent;
}
.feature-card.dark h3 { color: var(--cream-2); }
.feature-card.dark p  { color: rgba(253,246,240,.7); }

.feature-icon {
  width: 54px; height: 54px;
  border-radius: 17px;
  display: grid; place-items: center;
  font-size: 25px;
  margin-bottom: 20px;
  background: var(--pink-100);
}
.feature-card:nth-child(2) .feature-icon { background: var(--ice); }
.feature-card:nth-child(3) .feature-icon { background: var(--amber-100); }
.feature-card:nth-child(4) .feature-icon { background: var(--mint); }
.feature-card:nth-child(5) .feature-icon { background: var(--pink-100); }
.feature-card.dark .feature-icon { background: rgba(255,255,255,.1); }

.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { font-size: 15.5px; color: var(--ink-3); line-height: 1.6; }

.feature-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-100);
  padding: 5px 11px;
  border-radius: var(--r-full);
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works { padding: 96px 0; background: var(--cream-2); border-block: 1px solid var(--line); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 34px; left: 16%; right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--pink-300) 0 8px, transparent 8px 18px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step-number {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  border-radius: 22px;
  background: var(--grad-brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: 26px; font-weight: 800;
  box-shadow: var(--shadow-pink);
  border: 5px solid var(--cream-2);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 15.5px; color: var(--ink-3); }

/* ---------- SCREENSHOTS ---------- */
.screenshots { padding: 96px 0; overflow: hidden; }
.screenshot-container {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 12px 24px 32px;
  margin: 0 -24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-300) transparent;
}
.screenshot-container::-webkit-scrollbar { height: 8px; }
.screenshot-container::-webkit-scrollbar-thumb { background: var(--pink-300); border-radius: var(--r-full); }
.screenshot-container::-webkit-scrollbar-track { background: var(--pink-50); border-radius: var(--r-full); }
.screenshot {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface);
  transition: transform var(--t), box-shadow var(--t);
}
.screenshot:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.screenshot img { width: 100%; height: auto; }

/* ---------- COMPARISON ---------- */
.compare { padding: 96px 0; }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}
.compare-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.compare-col.win {
  border-color: var(--pink-300);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--pink-50), var(--surface) 60%);
  position: relative;
}
.compare-col h3 { font-size: 19px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.compare-col ul { display: grid; gap: 14px; }
.compare-col li {
  display: flex; gap: 12px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.compare-col li i {
  flex: 0 0 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-weight: 800;
  margin-top: 2px;
}
.compare-col.win li i { background: var(--mint); color: var(--mint-600); }
.compare-col.lose li i { background: #FBE7E7; color: #C9524F; }
.compare-col.lose { color: var(--ink-3); }

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: 96px 0; background: var(--cream-2); border-block: 1px solid var(--line); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stars { color: var(--amber); font-size: 16px; letter-spacing: 3px; margin-bottom: 14px; }
.testimonial-text { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 13px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px;
}
.author-info h4 { font-size: 15px; margin-bottom: 1px; }
.author-info span { font-size: 13px; color: var(--ink-4); }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item, .faq-accordion-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item.active, .faq-accordion-item.active {
  border-color: var(--pink-300);
  box-shadow: var(--shadow-md);
}
.faq-question, .faq-accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 21px 26px;
  font-size: 16.5px; font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.faq-question::after, .faq-accordion-trigger::after {
  content: '+';
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--pink-50);
  color: var(--pink);
  display: grid; place-items: center;
  font-size: 19px; font-weight: 700;
  transition: transform .3s var(--ease), background .3s;
}
.faq-item.active .faq-question::after,
.faq-accordion-item.active .faq-accordion-trigger::after {
  transform: rotate(45deg);
  background: var(--pink);
  color: #fff;
}
/* Collapsed with max-height rather than grid-template-rows: the answer's
   own bottom padding would still render under a 0fr grid row. */
.faq-answer, .faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.faq-item.active .faq-answer,
.faq-accordion-item.active .faq-accordion-content { max-height: 1200px; }
.faq-answer p, .faq-accordion-content p {
  padding: 0 26px 22px;
  font-size: 15.5px;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ---------- CTA BAND ---------- */
.cta { padding: 0 0 96px; }
.cta-card {
  position: relative;
  background: var(--ink);
  border-radius: 40px;
  padding: 72px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-card::before,
.cta-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.cta-card::before { width: 380px; height: 380px; top: -160px; left: -110px; background: rgba(240,80,143,.45); }
.cta-card::after  { width: 320px; height: 320px; bottom: -170px; right: -90px; background: rgba(247,169,40,.28); }
.cta-card > * { position: relative; z-index: 1; }
.cta-mark {
  width: 74px; height: 74px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
  animation: pulseRing 3s infinite;
}
.cta-card h2 {
  color: var(--cream-2);
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 14px;
}
.cta-card p {
  color: rgba(253,246,240,.72);
  font-size: 18px;
  max-width: 30em;
  margin: 0 auto 32px;
}
.cta-card .btn-cta { background: var(--grad-brand); box-shadow: var(--shadow-pink); }
.cta-note { margin-top: 20px; font-size: 13.5px; color: rgba(253,246,240,.5); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(253,246,240,.62);
  padding: 64px 0 34px;
  position: relative; z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(253,246,240,.1);
}
.footer-brand .wordmark { color: var(--cream-2); }
.footer-brand p { font-size: 14.5px; margin-top: 14px; max-width: 30em; line-height: 1.6; }
.footer-col h4 {
  color: var(--cream-2);
  font-size: 13px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; transition: color .25s; }
.footer-col a:hover { color: var(--pink-300); }

.social-icons { display: flex; gap: 10px; margin-top: 22px; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: rgba(253,246,240,.08);
  display: grid; place-items: center;
  color: rgba(253,246,240,.8);
  transition: background .25s, transform .25s, color .25s;
}
.social-icon:hover { background: var(--pink); color: #fff; transform: translateY(-3px); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding-top: 26px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-size: 14px; transition: color .25s; }
.footer-links a:hover { color: var(--pink-300); }
.copyright { font-size: 13.5px; color: rgba(253,246,240,.45); }
.disclaimer {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(253,246,240,.38);
  line-height: 1.6;
  max-width: 70ch;
}

/* =============================================================
   BLOG — listing
   Class names match the dashboard SSR renderer (ssr.php) and
   blog.js, so server- and client-rendered markup share styling.
   ============================================================= */
.blog-hero {
  padding: calc(var(--header-h) + 64px) 0 56px;
  text-align: center;
  background: var(--grad-warm);
}
.blog-hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 16px; }
.blog-hero .subtitle {
  font-size: 18px; color: var(--ink-3);
  max-width: 40em; margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  padding: 56px 0 96px;
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.blog-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-100);
}
.card-thumb {
  height: 200px;
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 46px;
  background: var(--pink-100);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb.t1 { background: var(--pink-100); }
.card-thumb.t2 { background: var(--ice); }
.card-thumb.t3 { background: var(--amber-100); }
.card-thumb.t4 { background: var(--mint); }
.card-thumb.t5 { background: var(--blush); }
.card-thumb.t6 { background: var(--surface-2); }

.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.card-tag {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--pink-700);
  background: var(--pink-50);
  border: 1px solid var(--pink-100);
  padding: 4px 11px;
  border-radius: var(--r-full);
}
.card-tag.rel  { color: var(--ice-600); background: var(--ice); border-color: rgba(110,155,216,.2); }
.card-tag.tips { color: #B57B10; background: var(--amber-100); border-color: rgba(247,169,40,.25); }
.card-read { font-size: 13px; color: var(--ink-4); }
.blog-card h2, .blog-card h3 {
  font-size: 19.5px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.blog-card p {
  font-size: 15px; color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-link, .read-more {
  margin-top: auto;
  font-size: 14.5px; font-weight: 700;
  color: var(--pink);
  transition: color .25s;
}
.blog-card:hover .card-link, .blog-card:hover .read-more { color: var(--pink-700); }

.empty { text-align: center; color: var(--ink-3); padding: 60px 20px; grid-column: 1 / -1; }

/* =============================================================
   BLOG — article
   ============================================================= */
#article-root { padding-top: var(--header-h); }

.article-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.article-featured-image, .article-hero-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 34px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.article-featured-image img, .article-hero-image img { width: 100%; height: auto; }

.article-title, .article-wrapper h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.14;
  margin-bottom: 20px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.meta-badge, .article-tag {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--pink-700);
  background: var(--pink-50);
  border: 1px solid var(--pink-100);
  padding: 5px 12px;
  border-radius: var(--r-full);
}
.meta-text, .article-meta span { font-size: 14px; color: var(--ink-4); }
.article-lead { font-size: 19px; color: var(--ink-2); margin-bottom: 22px; }

.article-body, .article-content { font-size: 17.5px; line-height: 1.78; color: var(--ink-2); }
.article-body > *, .article-content > * { margin-bottom: 20px; }
.article-body h2, .article-content h2 {
  font-size: 27px;
  margin: 44px 0 16px;
  line-height: 1.25;
}
.article-body h3, .article-content h3 {
  font-size: 21px;
  margin: 34px 0 12px;
}
.article-body h4, .article-content h4 { font-size: 18px; margin: 26px 0 10px; }
.article-body a, .article-content a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body strong, .article-content strong { color: var(--ink); font-weight: 700; }
.article-body img, .article-content img { border-radius: var(--r-lg); margin: 28px 0; }

.article-body ul, .article-content ul { padding-left: 6px; margin-bottom: 22px; }
.article-body ul li, .article-content ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
}
.article-body ul li::before, .article-content ul li::before {
  content: '';
  position: absolute;
  left: 6px; top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink-300);
}
.article-body ol, .article-content ol {
  counter-reset: li;
  padding-left: 6px;
  margin-bottom: 22px;
}
.article-body ol li, .article-content ol li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 13px;
  counter-increment: li;
}
.article-body ol li::before, .article-content ol li::before {
  content: counter(li);
  position: absolute;
  left: 0; top: .18em;
  width: 26px; height: 26px;
  border-radius: 9px;
  background: var(--pink-50);
  color: var(--pink-700);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}
/* Quill emits an empty <span class="ql-ui"> marker inside list items */
.article-body .ql-ui, .article-content .ql-ui { display: none; }
.article-body .ql-align-center, .article-content .ql-align-center { text-align: center; }
.article-body .ql-align-right,  .article-content .ql-align-right  { text-align: right; }
.article-body .ql-align-justify,.article-content .ql-align-justify{ text-align: justify; }

.article-body blockquote, .article-content blockquote {
  border-left: 4px solid var(--pink-300);
  background: var(--surface-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--ink-2);
}
.article-body table, .article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15.5px;
}
.article-body th, .article-body td,
.article-content th, .article-content td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}
.article-body th, .article-content th { background: var(--surface-2); color: var(--ink); font-weight: 700; }

.article-keywords {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.article-keywords h4 {
  font-size: 12.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.keyword-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.keyword-tags span {
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: var(--r-full);
}

.article-faq { margin-top: 48px; }
.article-faq h2 { font-size: 26px; margin-bottom: 20px; }
.article-faq .faq-accordion-item, .article-faq .faq-item { margin-bottom: 12px; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 44px;
  font-size: 15px; font-weight: 700;
  color: var(--pink);
  background: var(--pink-50);
  border: 1px solid var(--pink-100);
  padding: 12px 22px;
  border-radius: var(--r-full);
  transition: transform var(--t), background var(--t);
}
.back-link:hover { transform: translateX(-4px); background: var(--pink-100); }

/* =============================================================
   LEGAL & SUPPORT PAGES
   ============================================================= */
.legal-page { padding: calc(var(--header-h) + 64px) 0 96px; }
.page-title { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; text-align: center; }
.last-updated {
  text-align: center;
  font-size: 14px;
  color: var(--ink-4);
  margin-bottom: 44px;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin-inline: auto;
}
.glass-card h2 {
  font-size: 21px;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.glass-card h3 { font-size: 17px; margin: 20px 0 8px; }
.glass-card p { margin-bottom: 14px; font-size: 16px; }
.glass-card p:last-child { margin-bottom: 0; }
.glass-card ul { display: grid; gap: 11px; }
.glass-card ul li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.6;
}
.glass-card ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: .6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink-300);
}
.glass-card strong { color: var(--ink); font-weight: 700; }
.glass-card a { color: var(--pink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.policy-intro { background: var(--surface-2); }
.toc ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 9px;
}
.toc ul li { padding-left: 0; }
.toc ul li::before { display: none; }
.toc ul li a {
  display: block;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--cream);
  transition: background .2s, color .2s;
}
.toc ul li a:hover { background: var(--pink-50); color: var(--pink-700); }

/* support page bits */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 20px;
}
.support-grid .glass-card { margin: 0; max-width: none; }
.info-list { display: grid; gap: 0; }
.info-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--ink-3); }
.info-row dd { color: var(--ink); font-weight: 700; text-align: right; }

.contact-card {
  text-align: center;
  background: linear-gradient(180deg, var(--pink-50), var(--surface) 65%);
  border-color: var(--pink-100);
}
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800;
  color: var(--pink-700);
  background: var(--surface);
  border: 1px solid var(--pink-100);
  padding: 14px 26px;
  border-radius: var(--r-full);
  margin: 8px 0 14px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t);
}
.contact-email:hover { transform: translateY(-3px); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 140px 24px 90px; }
.notfound h1 { font-size: clamp(72px, 16vw, 150px); color: var(--pink); letter-spacing: -.05em; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero .subtitle { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-badge { margin-inline: auto; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .feature-card, .feature-card.span-3 { grid-column: span 2; }
  .feature-card.span-6 { grid-column: span 4; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .mobile-menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--cream-2);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px -30px rgba(46,31,43,.6);
    padding: calc(var(--header-h) + 20px) 22px 30px;
    transform: translateX(105%);
    transition: transform .4s var(--ease);
    z-index: 950;
    overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links > li { display: block; }
  .nav-text { display: block; padding: 13px 16px; font-size: 16px; }
  .lang-dropdown { margin: 6px 0 0; }
  .lang-toggle { width: 100%; justify-content: space-between; }
  .lang-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin-top: 6px; border: 0; background: transparent; padding: 0; }
  .lang-dropdown:not(.open) .lang-menu { display: none; }
  .nav-links .btn-cta { width: 100%; margin-top: 10px; }

  .hero { padding: calc(var(--header-h) + 40px) 0 72px; }
  .float-card { display: none; }
  .float-card--a { display: flex; left: -2%; top: 6%; }

  .features, .how-it-works, .screenshots, .compare, .testimonials, .faq { padding: 68px 0; }
  .bento { grid-template-columns: 1fr; }
  .feature-card, .feature-card.span-3, .feature-card.span-6 { grid-column: span 1; }
  .feature-card { padding: 26px; }

  .cta-card { padding: 52px 24px; border-radius: 30px; }
  .glass-card { padding: 24px; }
  .article-wrapper { padding: 32px 20px 72px; }
  .article-body, .article-content { font-size: 16.5px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .screenshot { width: 210px; }
}

/* =============================================================
   RTL (Arabic)
   ============================================================= */
[dir="rtl"] .article-body ul li,
[dir="rtl"] .article-content ul li,
[dir="rtl"] .glass-card ul li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .article-body ul li::before,
[dir="rtl"] .article-content ul li::before,
[dir="rtl"] .glass-card ul li::before { left: auto; right: 6px; }
[dir="rtl"] .article-body ol li,
[dir="rtl"] .article-content ol li { padding-left: 0; padding-right: 40px; }
[dir="rtl"] .article-body ol li::before,
[dir="rtl"] .article-content ol li::before { left: auto; right: 0; }
[dir="rtl"] .article-body blockquote,
[dir="rtl"] .article-content blockquote {
  border-left: 0;
  border-right: 4px solid var(--pink-300);
  border-radius: var(--r-md) 0 0 var(--r-md);
}
[dir="rtl"] .back-link:hover { transform: translateX(4px); }
[dir="rtl"] .nav-links { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); transform: translateX(-105%); }
[dir="rtl"] .nav-links.open { transform: none; }
[dir="rtl"] .info-row dd { text-align: left; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
