/* LONA landing — light Apple style with the promo video's pastel wash and black capsules */

body {
  overflow-x: hidden;
}

/* Soft pink/blue wash, fixed behind everything, like the video background */
.wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vmax 45vmax at 0% 0%, var(--pink-wash), transparent 62%),
    radial-gradient(55vmax 45vmax at 100% 18%, var(--blue-wash), transparent 60%),
    radial-gradient(50vmax 40vmax at 85% 100%, #ffe3f1, transparent 60%),
    radial-gradient(45vmax 40vmax at 5% 95%, #d9efff, transparent 60%),
    var(--bg);
}

.soft {
  color: #8a8a94;
}

/* ---------- Floating pill nav ---------- */

.nav {
  position: sticky;
  inset-block-start: 14px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1040px, 100%);
  height: 60px;
  padding-inline: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow);
}

.nav .brand img {
  border-radius: 50%;
  background: var(--ink);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-inline-start: 8px;
}

.nav-links a {
  height: 36px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 36px;
  color: var(--muted);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.btn-lg {
  height: 52px;
  padding-inline: 28px;
  font-size: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 16px 40px;
  text-align: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-inline: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  margin-block-start: 26px;
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

html[lang="ar"] .hero h1 {
  line-height: 1.3;
}

.hero h1 span {
  display: block;
}

.lead {
  max-width: 36em;
  margin-block-start: 22px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-block-start: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  height: 34px;
  padding-inline: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 34px;
  color: var(--muted);
}

/* Stage: capsules on both sides of an iPhone */

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  width: min(1120px, 100%);
  margin-block: 64px 40px;
}

.notifs {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notifs-a {
  justify-items: end;
}

.notifs-b {
  justify-items: start;
}

html[dir="rtl"] .notifs-a {
  justify-items: start;
}

html[dir="rtl"] .notifs-b {
  justify-items: end;
}

.notif {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  padding: 14px 16px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow-lg);
  text-align: start;
  animation: drop 0.7s var(--ease) both, bob 6s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.35s + 0.3s), calc(var(--d) * 0.6s + 1.2s);
}

.notifs-a .notif:nth-child(2) {
  margin-inline-end: 40px;
}

.notifs-b .notif:nth-child(1) {
  margin-inline-start: 40px;
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-18px) scale(0.96); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.notif-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-2);
}

.notif-ico img {
  width: 22px;
  height: 22px;
}

.notif-lona .notif-ico img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.notif-text b {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
}

.notif-text small {
  display: block;
  font-size: 0.78rem;
  color: #a1a1aa;
}

.badge {
  position: absolute;
  inset-block-start: -10px;
  inset-inline-end: 16px;
  height: 22px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--badge);
  color: #fff;
  font-size: 0.72rem;
  line-height: 22px;
}

.badge-violet {
  background: var(--accent-strong);
}

/* iPhone frame built in CSS */

.iphone {
  width: 312px;
  height: 640px;
  padding: 11px;
  border-radius: 56px;
  background: linear-gradient(145deg, #3a3a40, #121214 40%, #2a2a2f);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #4a4a52;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease);
  animation: phone-in 0.9s var(--ease) both;
}

/* Entrance uses the individual translate/scale properties so transform stays free for the 3D tilt */
@keyframes phone-in {
  from { opacity: 0; translate: 0 30px; scale: 0.96; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

.iphone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 46px;
  background: #fff;
  overflow: hidden;
}

.island {
  position: absolute;
  inset-block-start: 11px;
  inset-inline-start: 50%;
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

html[dir="rtl"] .island {
  transform: translateX(50%);
}

.dm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 54px 16px 12px;
  border-block-end: 1px solid var(--line);
  text-align: start;
}

.dm-head strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}

.dm-head small {
  display: block;
  font-size: 0.72rem;
  color: var(--faint);
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc2de, #c5e4ff);
  color: #3b2a55;
  font-weight: 600;
  font-size: 0.9rem;
}

.live {
  margin-inline-start: auto;
  height: 22px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.72rem;
  line-height: 22px;
}

.dm-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 12px 18px;
  overflow: hidden;
  text-align: start;
}

.dm-thread .bubble {
  max-width: 86%;
  font-size: 0.84rem;
  padding: 9px 14px;
  animation: rise 0.35s var(--ease) both;
}

.dm-thread .bubble-lona {
  align-self: flex-end;
  background: var(--accent-strong);
  color: #fff;
  border-end-end-radius: 8px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.order-card {
  align-self: flex-end;
  width: 86%;
  padding: 12px 14px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.8rem;
  animation: rise 0.35s var(--ease) both;
}

.order-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 6px;
  font-weight: 600;
}

.order-card .pill-ok {
  background: rgba(52, 199, 89, 0.18);
  color: #4ade80;
}

.order-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 0;
  color: #a1a1aa;
}

.order-card dd {
  margin: 0;
  color: var(--on-ink);
  text-align: end;
}

.source {
  position: absolute;
  inset-block-end: 40px;
  inset-inline-start: calc(50% + 150px);
  width: 230px;
  padding: 12px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  text-align: start;
  animation: rise 0.35s var(--ease) both;
}

.source span {
  display: block;
  margin-block-end: 2px;
  font-size: 0.72rem;
  color: var(--accent);
}

/* ---------- Promo film: 3D tilt that settles flat on scroll ---------- */

.film {
  padding: 24px 16px 40px;
  perspective: 1600px;
}

.film-frame {
  --p: 0;
  position: relative;
  width: min(1120px, 100%);
  margin-inline: auto;
  aspect-ratio: 1268 / 718;
  border-radius: var(--r-2xl);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--p)) * 24deg)) scale(calc(0.86 + var(--p) * 0.14));
  will-change: transform;
}

.film-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-sound {
  position: absolute;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 14px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.85rem;
}

.film-sound .wave {
  opacity: 0.35;
}

.film-sound[aria-pressed="true"] .wave {
  opacity: 1;
}

/* 3D bot stage inside the dark panel */

.bot-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 280px;
  height: 300px;
}

.bot-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bot-stage.is-3d .meet-bot {
  visibility: hidden;
}

/* ---------- Meet Lona: dark rounded panel ---------- */

.meet {
  padding: 40px 16px;
}

.meet-panel {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: 72px 56px 56px;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(70% 90% at 15% 0%, #4a1636 0%, transparent 60%),
    radial-gradient(70% 90% at 90% 100%, #10264a 0%, transparent 60%),
    #111014;
  color: var(--on-ink);
  box-shadow: var(--shadow-lg);
}

.meet-head {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.meet-bot {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 20px 40px rgba(124, 92, 255, 0.35));
}

.meet h2 {
  max-width: 16em;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
}

.dim {
  color: #8d8d99;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 26px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-block-end: 20px;
  border-radius: 50%;
  background: var(--badge);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.step:nth-child(2) .step-n { background: #ff4f9a; }
.step:nth-child(3) .step-n { background: var(--accent-strong); }
.step:nth-child(4) .step-n { background: #34c759; }

.step h3 {
  font-size: 1.1rem;
  margin-block-end: 8px;
}

.step p {
  font-size: 0.92rem;
  color: #a7a7b3;
}

/* ---------- Generic section ---------- */

.section {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
  padding-block: 96px 24px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

html[lang="ar"] .section h2 {
  line-height: 1.35;
}

.section-head p {
  margin-block-start: 16px;
  font-size: 1.12rem;
  color: var(--muted);
}

/* Inbox mock */

.inbox-mock {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.im-list {
  margin: 0;
  padding: 14px;
  list-style: none;
  border-inline-end: 1px solid var(--line);
}

.im-conv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
}

.im-conv.is-active {
  background: var(--surface-2);
}

.av-2 { background: linear-gradient(135deg, #ffe0a3, #ffb4c8); }
.av-3 { background: linear-gradient(135deg, #b9f0d0, #a8d8ff); }
.av-4 { background: linear-gradient(135deg, #e0d0ff, #ffc6e4); }

.im-body {
  flex: 1;
  min-width: 0;
}

.im-body b {
  display: block;
  font-weight: 500;
  font-size: 0.94rem;
}

.im-body small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--faint);
}

.im-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
}

.im-src {
  align-self: flex-end;
  font-size: 0.78rem;
  color: var(--faint);
}

.im-src b {
  font-weight: 500;
  color: var(--accent);
}

.im-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 12px;
  padding: 16px 18px;
  border-radius: 24px;
  background: var(--surface-2);
}

.im-order b {
  display: block;
  font-weight: 600;
}

.im-order small {
  font-size: 0.85rem;
  color: var(--faint);
}

.im-take {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-start: auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-strong);
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tile {
  padding: 36px;
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.tile-kicker {
  display: inline-block;
  height: 28px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  line-height: 28px;
}

.tile h3 {
  margin-block: 16px 24px;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}

.stats div {
  padding: 16px;
  border-radius: 22px;
  background: var(--surface-2);
}

.stats dd {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.stats dt {
  font-size: 0.8rem;
  color: var(--faint);
}

.bars {
  display: grid;
  gap: 10px;
}

.bar {
  display: grid;
  grid-template-columns: 74px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.bar i {
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--v), var(--surface-3) var(--v));
}

html[dir="rtl"] .bar i {
  background: linear-gradient(to left, var(--accent) var(--v), var(--surface-3) var(--v));
}

.bar b {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: end;
}

.tone {
  margin-block-start: 22px;
  padding: 14px 18px;
  border-radius: 22px;
  background: var(--surface-2);
  font-size: 0.92rem;
}

.train-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 22px;
}

.chip {
  height: 32px;
  padding-inline: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  line-height: 32px;
}

/* Control cards */

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mini {
  padding: 28px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.mini-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-block-end: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.mini h3 {
  font-size: 1.08rem;
  margin-block-end: 8px;
}

.mini p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.plan-main {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow-lg);
}

.plan-main .plan-for,
.plan-main .price small {
  color: #a1a1aa;
}

.plan-main .ticks li::before {
  background-color: rgba(124, 92, 255, 0.3);
}

.plan-tag {
  position: absolute;
  inset-block-start: 22px;
  inset-inline-end: 22px;
  height: 26px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--badge);
  color: #fff;
  font-size: 0.75rem;
  line-height: 26px;
}

.plan h3 {
  font-size: 1.25rem;
}

.plan-for {
  margin-block-start: 4px;
  font-size: 0.9rem;
  color: var(--faint);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-block: 24px 22px;
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price-text {
  font-size: 2rem;
}

.price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--faint);
}

.ticks {
  display: grid;
  gap: 12px;
  flex: 1;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.ticks li {
  position: relative;
  padding-inline-start: 30px;
}

.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%237c5cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.plan .btn {
  width: 100%;
  height: 50px;
}

.price-note {
  margin-block-start: 22px;
  font-size: 0.85rem;
  color: var(--faint);
  text-align: center;
}

/* FAQ: rounded rows */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  font-weight: 500;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 26px 22px;
  color: var(--muted);
}

/* Final */

.final {
  padding: 96px 16px 40px;
}

.final-panel {
  display: grid;
  justify-items: center;
  gap: 24px;
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: 72px 24px;
  border-radius: var(--r-2xl);
  background: linear-gradient(120deg, #ffd9ec, #ffffff 50%, #d3ecff);
  box-shadow: var(--shadow);
  text-align: center;
}

.final h2 {
  max-width: 15em;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  letter-spacing: -0.02em;
}

.final h2 span {
  display: block;
}

.final-bot {
  width: 104px;
  height: 104px;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  width: min(1200px, 100% - 32px);
  margin: 0 auto 28px;
  padding: 14px 14px 14px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.footer .brand img {
  border-radius: 50%;
  background: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-links a {
  height: 34px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 34px;
  color: var(--muted);
}

.footer-links a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.footer-copy {
  padding-inline-end: 12px;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .stage {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
  }

  .notifs-a,
  .notifs-b,
  html[dir="rtl"] .notifs-a,
  html[dir="rtl"] .notifs-b {
    justify-items: center;
  }

  .notifs-a .notif:nth-child(2),
  .notifs-b .notif:nth-child(1) {
    margin-inline: 0;
  }

  .notifs-b {
    display: none;
  }

  .source {
    position: static;
    width: min(312px, 100%);
  }

  .steps,
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .bento,
  .inbox-mock {
    grid-template-columns: 1fr;
  }

  .im-list {
    border-inline-end: 0;
    border-block-end: 1px solid var(--line);
  }

  .meet-panel {
    padding: 48px 20px 20px;
    border-radius: 36px;
  }
}

@media (max-width: 600px) {
  .film-frame {
    border-radius: 28px;
  }

  .bot-stage {
    width: 220px;
    height: 240px;
  }

  .nav-pill {
    gap: 8px;
    height: 54px;
  }

  .nav-login {
    display: none;
  }

  .hero {
    padding-block-start: 48px;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .stage {
    margin-block: 44px 24px;
  }

  .notif {
    width: min(300px, 100%);
  }

  .iphone {
    width: min(300px, 100%);
    height: 600px;
  }

  .steps,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block-start: 72px;
  }

  .tile,
  .plan {
    padding: 26px;
    border-radius: 32px;
  }

  .im-thread {
    padding: 22px;
  }

  .stats dd {
    font-size: 1.25rem;
  }

  .stats div {
    padding: 12px;
  }

  .footer {
    justify-content: center;
    border-radius: 32px;
    padding: 20px;
    text-align: center;
  }

  .footer-copy {
    padding: 0;
  }
}

/* ======================================================================
   SaaS sections: platform strip, bento, try-it chat, billing toggle
   ====================================================================== */

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-inline: 16px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
}

.platforms .soon {
  opacity: 0.6;
}

.platforms em {
  font-style: normal;
  height: 20px;
  padding-inline: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 0.7rem;
  line-height: 20px;
  color: var(--muted);
}

/* Bento grid */

.bento {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "report report speed"
    "report report lang"
    "train orders hand";
}

.t-report { grid-area: report; }
.t-speed { grid-area: speed; }
.t-lang { grid-area: lang; }
.t-train { grid-area: train; }
.t-orders { grid-area: orders; }
.t-hand { grid-area: hand; }

.tile {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tile h3 {
  font-size: 1.3rem;
}

.t-report h3 {
  font-size: 1.7rem;
}

.tile-ink {
  background: var(--ink);
  color: var(--on-ink);
}

.tile-ink p {
  color: #a1a1aa;
  font-size: 0.92rem;
}

.kicker-ink {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin-block: 18px 4px;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.ring-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.ring-fg {
  stroke: var(--badge);
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.6s var(--ease);
}

.in-view .ring-fg {
  stroke-dashoffset: 30;
}

.ring-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 600;
}

.t-speed h3 {
  margin-block: 10px 6px;
}

.langs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.langs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.85rem;
}

.langs b {
  flex: none;
  height: 24px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 0.72rem;
  line-height: 24px;
}

.langs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

/* Orders: a 3D stack of cards that fans out on hover */

.order-stack {
  position: relative;
  height: 170px;
  perspective: 900px;
}

.ocard {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease);
}

.ocard span {
  flex: 1;
  color: var(--muted);
}

.ocard em {
  font-style: normal;
}

.oc-3 { transform: translateY(-56px) translateZ(-80px) rotateX(14deg); background: #f3f3f7; }
.oc-2 { transform: translateY(-28px) translateZ(-40px) rotateX(8deg); background: #f9f9fb; }
.oc-1 { transform: none; }

.t-orders:hover .oc-3 { transform: translateY(-112px) translateZ(-30px) rotateX(6deg); }
.t-orders:hover .oc-2 { transform: translateY(-56px) translateZ(-15px) rotateX(3deg); }

.notif-static {
  width: 100%;
  margin-block-start: 30px;
  animation: none;
}

/* Try-it chat */

.try {
  width: min(720px, 100%);
  margin-inline: auto;
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.try-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-block-end: 1px solid var(--line);
}

.try-head strong {
  display: block;
  font-size: 0.95rem;
}

.try-head small {
  font-size: 0.78rem;
  color: var(--faint);
}

.try-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 340px;
  padding: 22px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.try-log .bubble {
  max-width: 78%;
  animation: rise 0.3s var(--ease) both;
}

.try-log .bubble-lona {
  align-self: flex-end;
  background: var(--accent-strong);
  color: #fff;
  border-end-end-radius: 8px;
}

.try-src {
  align-self: flex-end;
  margin-block-start: -4px;
  font-size: 0.74rem;
  color: var(--faint);
}

.try-src b {
  font-weight: 500;
  color: var(--accent);
}

.try-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 14px;
}

.try-chips button {
  height: 36px;
  padding-inline: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 0.85rem;
  transition: background 0.15s var(--ease);
}

.try-chips button:hover {
  background: var(--accent-soft);
}

.try-form {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
  border-block-start: 1px solid var(--line);
}

.try-send {
  width: 48px;
  height: 48px;
  padding: 0;
  flex: none;
}

/* Billing toggle */

.billing {
  display: inline-flex;
  gap: 4px;
  margin-block-start: 24px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.billing button {
  height: 38px;
  padding-inline: 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
}

.billing button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.billing em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--ok);
}

.billing button[aria-pressed="true"] em {
  color: #4ade80;
}

/* Scroll reveal for tiles and cards (opacity + lift; content is visible without JS) */

.js .reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}

.js .reveal.in-view {
  opacity: 1;
  translate: 0 0;
}

@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "report report"
      "speed lang"
      "train orders"
      "hand hand";
  }
}

@media (max-width: 680px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "report" "speed" "lang" "train" "orders" "hand";
  }

  .try-log {
    height: 320px;
  }
}

/* ---- Ported from 21st.dev: ink-orbit-pricing (sliding toggle, count-up, savings) ---- */

.billing {
  position: relative;
}

.billing button {
  position: relative;
  z-index: 1;
  transition: color 0.25s var(--ease);
}

.billing button[aria-pressed="true"] {
  background: transparent;
}

.billing-thumb {
  position: absolute;
  inset-block: 5px;
  left: 0; /* physical on purpose: JS measures --x from the physical left edge */
  width: var(--w, 0);
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(var(--x, 0));
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.5, 1), width 0.45s var(--ease);
}

.save {
  height: 0;
  margin-block: -14px 14px;
  overflow: hidden;
  opacity: 0;
  font-size: 0.85rem;
  color: var(--ok);
  transition: opacity 0.3s var(--ease), height 0.3s var(--ease);
}

.plan-main .save {
  color: #4ade80;
}

.yearly .save {
  height: 1.6em;
  opacity: 1;
}

.num-price {
  font-variant-numeric: tabular-nums;
}

/* ---- Ported from 21st.dev: bento-grid-01 (pulse rings, sequential highlight) ---- */

.ring .pulse {
  position: absolute;
  inset: 22%;
  border: 2px solid rgba(30, 167, 255, 0.45);
  border-radius: 50%;
  animation: pulse-out 3s ease-out infinite;
}

.ring .pulse:nth-child(2) { animation-delay: 1s; }
.ring .pulse:nth-child(3) { animation-delay: 2s; }

@keyframes pulse-out {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(2.2); opacity: 0; }
}

.langs li {
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.langs li.is-on {
  background: #fff;
  box-shadow: var(--shadow);
  transform: scale(1.03);
}

.langs li.is-on span {
  color: var(--text);
}

.langs li.is-on b {
  background: var(--accent-strong);
}

/* ======================================================================
   Refinement pass: fewer effects, more structure.
   The pastel wash stays in the hero only; everything below sits on a plain
   page with hairline borders instead of a shadow on every card.
   ====================================================================== */

.wash {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  background:
    radial-gradient(52vmax 38vmax at 0% 0%, rgba(255, 214, 234, 0.75), transparent 62%),
    radial-gradient(48vmax 38vmax at 100% 12%, rgba(207, 234, 255, 0.8), transparent 60%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

body {
  background: var(--bg);
}

.hero {
  padding-block-start: 96px;
}

.hero h1 {
  margin-block-start: 0;
}

/* Flat surfaces: one hairline, no drop shadow, no hover lift */
.tile,
.mini,
.plan,
.faq details,
.inbox-mock,
.platforms li,
.hero-proof li,
.billing,
.footer {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.tile:hover {
  transform: none;
  box-shadow: none;
}

.plan-main {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}

.tile-ink {
  background: var(--ink);
  border-color: var(--ink);
}

.try {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Labels are text, not pills */
.tile-kicker {
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.kicker-ink {
  background: none;
  color: #a1a1aa;
}

/* One step-number style instead of four colors */
.step .step-n,
.step:nth-child(2) .step-n,
.step:nth-child(3) .step-n,
.step:nth-child(4) .step-n {
  display: block;
  width: auto;
  height: auto;
  background: none;
  color: #8d8d99;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
}

.step .step-n::before {
  content: "0";
}

.step {
  background: none;
  border: 0;
  border-block-start: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 22px 0 0;
  padding-inline-end: 24px;
}

.steps {
  gap: 0;
}

/* Section heads that start at the reading edge */
.head-start {
  max-width: 720px;
  margin-inline: 0;
  text-align: start;
}

/* Control: one ruled panel instead of four icon cards */
.cards-4 {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: #fff;
  overflow: hidden;
}

.mini {
  padding: 32px 28px;
  border: 0;
  border-radius: 0;
  background: none;
}

.mini + .mini {
  border-inline-start: 1px solid var(--line);
}

.mini-ico {
  justify-content: start;
  width: auto;
  height: auto;
  margin-block-end: 36px;
  border-radius: 0;
  background: none;
  color: var(--text);
}

.mini-ico .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

/* Closing panel: solid ink, like the video's dark beat */
.final-panel {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: none;
}

.final .btn-primary {
  background: #fff;
  color: var(--ink);
}

.final .btn-primary:hover {
  background: #e9e9ee;
}

.order-stack .ocard {
  border: 1px solid var(--line);
  box-shadow: none;
}

.langs li.is-on {
  background: var(--surface-3);
  box-shadow: none;
  transform: none;
}

@media (max-width: 1100px) {
  .mini:nth-child(3) {
    border-inline-start: 0;
  }

  .mini:nth-child(n + 3) {
    border-block-start: 1px solid var(--line);
  }

  .step {
    padding-block-end: 24px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-block-start: 64px;
  }

  .mini + .mini {
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
  }
}

/* Pricing: intro offer, term switch, usage slider */
.intro-offer {
  margin-block-start: 14px;
  font-size: 1.02rem;
  color: var(--muted);
}

.intro-offer b {
  color: var(--ok);
  font-weight: 600;
}

.plan-then {
  margin-block: -14px 18px;
  font-size: 0.86rem;
  color: var(--ok);
}

.plan-main .plan-then {
  color: #4ade80;
}

.fit {
  width: min(720px, 100%);
  margin: 0 auto 32px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
}

.fit-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 14px;
  font-weight: 500;
}

.fit-top output {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.fit input[type="range"] {
  --fill: 45%;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--ink) var(--fill), var(--surface-3) var(--fill));
  -webkit-appearance: none;
  appearance: none;
  direction: ltr;
  cursor: pointer;
}

.fit input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.fit input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
}

.fit-scale {
  display: flex;
  justify-content: space-between;
  margin-block-start: 8px;
  font-size: 0.76rem;
  color: var(--faint);
}

.fit-explain {
  margin-block-start: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan.is-fit {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.billing {
  flex-wrap: wrap;
  justify-content: center;
}

/* ======================================================================
   Pixel band + 2026 touches
   ====================================================================== */

.pixel-band {
  position: relative;
  width: min(1200px, 100% - 32px);
  margin: 48px auto 0;
  border-radius: var(--r-2xl);
  background-color: #0d0d12;
  /* faint pixel grid */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 12px 12px;
  color: #f2f2f5;
  overflow: hidden;
}

.pixel-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 56px 56px 40px;
}

#pixel-bot {
  width: 216px;
  height: 216px;
  image-rendering: pixelated;
  cursor: crosshair;
}

.pixel-kicker,
.pixel-ticker,
.pixel-stats dd {
  font-family: "Silkscreen", var(--font-mono);
}

.pixel-kicker {
  margin-block-end: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.pixel-band h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  letter-spacing: -0.02em;
}

.pixel-band .soft {
  color: #8d8d99;
}

.pixel-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.pixel-stats div {
  padding: 12px 18px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  /* stepped "pixel" corners instead of a smooth radius */
  clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
  background: rgba(255, 255, 255, 0.04);
}

.pixel-stats dt {
  font-size: 0.78rem;
  color: #a1a1aa;
}

.pixel-stats dd {
  margin: 4px 0 0;
  font-size: 1.5rem;
  color: #fff;
}

.pixel-ticker {
  border-block-start: 2px dashed rgba(255, 255, 255, 0.1);
  padding-block: 14px;
  overflow: hidden;
  direction: ltr;
  font-size: 0.95rem;
  color: #c9c9d2;
}

.pixel-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: pixel-scroll 28s steps(280) infinite;
}

.pixel-track i {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

@keyframes pixel-scroll {
  to { transform: translateX(-50%); }
}

/* Liquid glass nav: layered translucency with a specular top edge */
.nav-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55)) padding-box;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 10px 30px -12px rgba(40, 28, 90, 0.22);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
}

/* Language switch cross-fades with the View Transitions API */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
}

/* Scroll-driven entrance where the browser supports it (falls back to the JS reveal) */
@supports (animation-timeline: view()) {
  .section-head h2 {
    animation: head-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }

  @keyframes head-in {
    from { opacity: 0.2; translate: 0 24px; filter: blur(6px); }
    to { opacity: 1; translate: 0 0; filter: none; }
  }
}

@media (max-width: 760px) {
  .pixel-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    padding: 40px 22px 28px;
    text-align: center;
  }

  .pixel-stats {
    justify-content: center;
  }

  #pixel-bot {
    width: 160px;
    height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-track {
    animation: none;
  }
}

/* Currency switch (USD / DZD) under the term switch */
.currency {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-block-start: 12px;
}

.currency button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.currency button b {
  font-weight: 600;
}

.currency button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.price-note-fx {
  margin-block-start: 6px;
}
