/* ============================================================
   RIDKK — marketing landing page
   Hand-written CSS, no framework. Light theme, indigo accent.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/inter-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --indigo: #4f46e5;
  --indigo-deep: #4338ca;
  --indigo-soft: #eef2ff;
  --violet: #7c3aed;
  --green: #16a34a;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 70px -20px rgba(15, 23, 42, .22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-ar: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[lang="ar"] { font-family: var(--font-ar); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

::selection { background: rgba(79, 70, 229, .18); }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 12px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus { inset-inline-start: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #5b52ea 0%, var(--indigo) 55%, var(--indigo-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #524ae0 0%, var(--indigo-deep) 60%, #3b32b5 100%);
  box-shadow: 0 10px 26px -8px rgba(79, 70, 229, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: #c7ceda; background: var(--bg-soft); }

.btn-inverse { background: #fff; color: var(--indigo-deep); }
.btn-inverse:hover { background: var(--indigo-soft); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { background: var(--bg-soft); }

.btn-sm { padding: 10px 17px; font-size: .9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; border-radius: 13px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled,
.nav.open {
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .25);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 70px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.brand-dot {
  width: 8px;
  height: 8px;
  margin-inline-start: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: inline-block;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links > a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--body);
  transition: color .15s ease;
}
.nav-links > a:hover { color: var(--ink); }

.nav-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-lang {
  font-size: .84rem;
  font-weight: 600;
  color: var(--body);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  line-height: 1;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.nav-lang:hover { color: var(--ink); border-color: #c7ceda; background: var(--bg-soft); }
.nav-signin {
  font-size: .94rem;
  font-weight: 500;
  color: var(--body);
  transition: color .15s ease;
}
.nav-signin:hover { color: var(--ink); }

.nav-mobile-actions { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav.open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 158px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 14% -6%, rgba(79, 70, 229, .13), transparent),
    radial-gradient(44% 38% at 88% 6%, rgba(14, 165, 233, .1), transparent),
    radial-gradient(60% 46% at 55% 108%, rgba(124, 58, 237, .07), transparent);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 0%, #000 10%, transparent 100%);
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 10%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--indigo-deep);
  background: rgba(255, 255, 255, .75);
  border: 1px solid #dfe3f8;
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.hero h1 {
  font-size: clamp(2.5rem, 5.1vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
  margin-bottom: 22px;
  text-wrap: balance;
}

.grad-text {
  background: linear-gradient(92deg, var(--indigo) 5%, var(--violet) 60%, #9333ea 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.13rem;
  color: var(--body);
  max-width: 33.5em;
  margin-bottom: 34px;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: .875rem;
  color: var(--muted);
}

/* ---------- Chat mockup ---------- */
.hero-visual {
  position: relative;
  padding: 10px 36px 58px;
}

.chat-glow {
  position: absolute;
  inset: 6% 2% 10% 2%;
  z-index: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, .32), rgba(124, 58, 237, .24) 50%, rgba(14, 165, 233, .26));
  filter: blur(58px);
  border-radius: 50%;
}

.chat-card {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #008069;
  color: #fff;
}
.chat-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, var(--violet));
}
.chat-avatar-dot {
  position: absolute;
  inset-inline-end: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #008069;
}
.chat-meta { min-width: 0; }
.chat-name {
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-tag {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .22);
  padding: 3px 7px;
  border-radius: 999px;
}
.chat-presence { font-size: .76rem; color: rgba(255, 255, 255, .78); line-height: 1.3; }
.chat-wa { width: 22px; height: 22px; margin-inline-start: auto; opacity: .92; flex-shrink: 0; }

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 20px;
  background: #ece5dd;
}

.chat-day {
  align-self: center;
  font-size: .68rem;
  font-weight: 600;
  color: #667781;
  background: rgba(255, 255, 255, .78);
  padding: 4px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2px;
}

.msg {
  max-width: 84%;
  padding: 9px 12px 7px;
  border-radius: 12px;
  font-size: .905rem;
  line-height: 1.5;
  box-shadow: 0 1px 1px rgba(15, 23, 42, .08);
}
.msg-in {
  align-self: flex-start;
  background: #fff;
  border-start-start-radius: 4px;
}
.msg-out {
  align-self: flex-end;
  background: #d9fdd3;
  border-start-end-radius: 4px;
}
.msg-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: .64rem;
  color: #8696a0;
  margin-top: 3px;
  font-family: var(--font);
}
.msg-time svg { width: 15px; height: 10px; color: #53bdeb; }

.msg-typing {
  align-self: flex-start;
  background: #fff;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 13px 14px;
}
.msg-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa8b5;
  animation: typing 1.25s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: .16s; }
.msg-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes typing {
  0%, 60%, 100% { transform: none; opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  box-shadow: var(--shadow-md);
  padding: 11px 15px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.chat-chip svg { width: 17px; height: 17px; flex-shrink: 0; }
.chip-lead {
  inset-inline-start: -8px;
  bottom: 26px;
  color: #14532d;
  animation: floaty 3.4s ease-in-out infinite alternate;
}
.chip-lead svg { color: var(--green); }
.chip-handoff {
  inset-inline-end: -10px;
  top: 88px;
  animation: floaty 2.8s ease-in-out infinite alternate-reverse;
}
.chip-handoff svg { color: var(--indigo); }
@keyframes floaty { from { translate: 0 0; } to { translate: 0 -9px; } }

/* ---------- Proof strip ---------- */
.proof {
  padding: 34px 0 72px;
  text-align: center;
}
.proof-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}
.chips li {
  font-size: .92rem;
  font-weight: 600;
  color: #334155;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
}
.proof-note {
  font-size: .97rem;
  color: var(--muted);
  max-width: 620px;
  margin-inline: auto;
  text-wrap: balance;
}

/* ---------- Sections ---------- */
.section { padding: 106px 0; }
.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 730px;
  margin: 0 auto 62px;
  text-align: center;
}
.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.14;
  text-wrap: balance;
}
.section-sub {
  font-size: 1.07rem;
  color: var(--body);
  margin-top: 16px;
  text-wrap: pretty;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: #d3d9f5;
  box-shadow: var(--shadow-md);
}
.step-art {
  width: 100%;
  height: auto;
  background: linear-gradient(180deg, #fbfbfe, #f4f6fc);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  margin-bottom: 22px;
}
.step-num {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--indigo);
  margin-bottom: 8px;
}
.step h3 {
  font-size: 1.17rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}
.step p { font-size: .95rem; color: var(--body); }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: #cfd6f4;
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--indigo-soft);
  color: var(--indigo);
  margin-bottom: 20px;
}
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.feature p { font-size: .93rem; color: var(--body); }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.plan-popular {
  background: linear-gradient(168deg, #37309b 0%, #251f6b 55%, #1c1655 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 30px 70px -24px rgba(67, 56, 202, .55);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(92deg, #6366f1, #a855f7);
  padding: 6px 15px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .7);
  white-space: nowrap;
}
.plan-name { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
.plan-tagline { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.plan-popular .plan-tagline { color: #c7d2fe; }

.plan-price { margin: 22px 0 24px; display: flex; align-items: baseline; gap: 6px; }
.plan-amount {
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}
.plan-per { font-size: .95rem; color: var(--muted); }
.plan-popular .plan-per { color: #a5b4fc; }

.plan .btn { margin-bottom: 26px; }

.plan-limits { display: grid; gap: 2px; }
.plan-limits li {
  position: relative;
  padding-block: 6px;
  padding-inline: 20px 0;
  font-size: .93rem;
  font-weight: 500;
}
.plan-limits li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, var(--violet));
}
.plan-popular .plan-limits li::before { background: linear-gradient(135deg, #a5b4fc, #d8b4fe); }

.plan-includes {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--faint);
}
.plan-popular .plan-includes { border-top-color: rgba(255, 255, 255, .16); color: #a5b4fc; }

.plan-features { margin-top: 10px; display: grid; gap: 2px; }
.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--body);
  padding: 5px 0;
}
.plan-popular .plan-features li { color: #e0e7ff; }
.plan-features svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--green);
}
.plan-popular .plan-features svg { color: #86efac; }

.plans-note {
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
  margin-top: 44px;
}

/* ---------- Why RIDKK ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--indigo);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.why-icon svg { width: 22px; height: 22px; }
.why-item h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 7px;
}
.why-item p { font-size: .9rem; color: var(--body); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: #cdd5f2; }
.faq-item[open] {
  border-color: #c5cdf2;
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding-block: 19px;
  padding-inline: 22px 56px;
  font-weight: 600;
  font-size: 1.01rem;
  position: relative;
  border-radius: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease, border-color .25s ease;
}
.faq-item[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
  border-color: var(--indigo);
}
.faq-item[open] summary { color: var(--indigo-deep); }
.faq-item p {
  padding: 0 22px 20px;
  font-size: .95rem;
  color: var(--body);
  line-height: 1.65;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(130% 160% at 50% -10%, #4f46e5 0%, #37309b 42%, #1e1b4b 100%);
  color: #fff;
  text-align: center;
  padding: 104px 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 44% at 16% 18%, rgba(168, 85, 247, .28), transparent),
    radial-gradient(34% 40% at 86% 76%, rgba(14, 165, 233, .2), transparent);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-band h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.16;
  text-wrap: balance;
}
.cta-band p {
  margin: 18px auto 36px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .82);
  max-width: 540px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Footer ---------- */
.footer {
  background: #0b1120;
  color: #94a3b8;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 68px;
  padding-bottom: 48px;
}
.footer .brand { color: #fff; font-size: 1.3rem; }
.footer-tag {
  margin-top: 12px;
  font-size: .92rem;
  line-height: 1.65;
  color: #7c8aa5;
}
.footer-links { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-head {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5b6b87;
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: .93rem;
  color: #b9c4d6;
  transition: color .15s ease;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 24px;
  padding-bottom: 28px;
  font-size: .85rem;
  color: #5b6b87;
}

/* ---------- Scroll reveal (gated on .js so no-JS users see everything) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
.js .d1 { transition-delay: .09s; }
.js .d2 { transition-delay: .18s; }
.js .d3 { transition-delay: .27s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .chip-lead { inset-inline-start: 2px; }
  .chip-handoff { inset-inline-end: 2px; }
}

@media (max-width: 940px) {
  .hero { padding-top: 138px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 54px;
    text-align: center;
  }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }

  .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-popular { order: -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px -24px rgba(15, 23, 42, .25);
    padding: 10px 24px 24px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links > a {
    padding: 15px 2px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-mobile-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }
  .nav-actions .nav-signin { display: none; }
  .nav-toggle { display: block; margin-inline-start: 4px; }
  .nav-inner { gap: 14px; }
  .nav-actions { gap: 10px; }
}

@media (max-width: 640px) {
  .section { padding: 78px 0; }
  .section-head { margin-bottom: 46px; }
  .features-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 20px; }
  .hero { padding: 122px 0 64px; }

  .hero-visual { padding: 0 0 14px; }
  .chat-chip {
    position: static;
    animation: none;
    margin: 14px auto 0;
    width: fit-content;
  }
  .btn-lg { padding: 15px 22px; font-size: .98rem; }
  .hero-cta .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .nav-actions .btn { padding: 9px 12px; font-size: .84rem; }
  .nav-lang { padding: 6px 10px; font-size: .78rem; }
  .brand { font-size: 1.25rem; }
  .plan { padding: 28px 22px; }
  .msg { max-width: 92%; }
}

/* ---------- Mobile overflow guard ----------
   Grid/flex items default to min-width:auto and refuse to shrink below their
   content, which pushed the hero wider than small viewports. */
html { overflow-x: clip; }
.hero-inner > *,
.chat-head > *,
.chat-head { min-width: 0; }
.chat-card { width: 100%; }
.msg { overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .hero-visual { padding: 10px 6px 58px; }
  .eyebrow-pill { white-space: normal; }
  .hero-note { white-space: normal; }
}

/* ---------- RTL (Arabic) refinements ----------
   Layout mirroring is handled by logical properties above;
   this block only adjusts typography that doesn't suit Arabic script. */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .eyebrow,
[dir="rtl"] .proof-title,
[dir="rtl"] .ai-tag,
[dir="rtl"] .plan-badge,
[dir="rtl"] .plan-includes,
[dir="rtl"] .footer-head {
  letter-spacing: 0;
}
[dir="rtl"] .hero h1 { line-height: 1.24; }
[dir="rtl"] .section-head h2,
[dir="rtl"] .cta-band h2 { line-height: 1.34; }
[dir="rtl"] .plan-amount { letter-spacing: -.035em; } /* Latin digits keep their tracking */
[dir="rtl"] .brand { direction: ltr; } /* keep the Latin wordmark + dot order */

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
