/*
 * Platform pages: home, About, Terms, Privacy, Contact, 404 (Pages/Shared/_Layout.cshtml).
 * Business pages use business.css with per-business colors instead.
 *
 * Colors are tokens: the light set on :root, the dark set for data-mode="dark" and for "auto" on a
 * dark device. Brand palette "turquoise and saffron" (brand/README.md); keep in step with shared/src/vuetify.ts.
 * Saffron is the accent for Pro, founder prices and the mark's highlight only.
 */

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  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;
}

:root {
  color-scheme: light;
  --c-primary: #0b6e69;
  --c-on-primary: #ffffff;
  --c-primary-soft: #dcefed;
  --c-accent: #b45309;
  --c-accent-fill: #f2a33a;
  --c-on-accent: #1f1300;
  --c-bg: #f7f6f2;
  --c-surface: #ffffff;
  --c-surface-alt: #efede7;
  --c-text: #1b2422;
  --c-muted: #5a6563;
  --c-border: #e1ded6;
  --shadow: 0 1px 2px rgb(27 36 34 / 0.06), 0 4px 16px rgb(27 36 34 / 0.06);
  /* Home decorations: the second gradient stop, hero glows and dot grid, hover lift. */
  --c-primary-2: #129a91;
  --c-glow: rgb(11 110 105 / 0.26);
  --c-glow-2: rgb(24 169 159 / 0.22);
  --c-dots: rgb(11 110 105 / 0.2);
  --shadow-lift: 0 22px 44px -22px rgb(11 110 105 / 0.45), 0 2px 6px rgb(27 36 34 / 0.05);
  --radius: 14px;
  --radius-lg: 20px;
}

:root[data-mode="dark"] {
  color-scheme: dark;
  --c-primary: #5ccfc3;
  --c-on-primary: #00201d;
  --c-primary-soft: #16302e;
  --c-accent: #f5b85c;
  --c-accent-fill: #f5b85c;
  --c-on-accent: #1f1300;
  --c-bg: #0e1514;
  --c-surface: #162120;
  --c-surface-alt: #121a19;
  --c-text: #e6eeec;
  --c-muted: #9fb0ad;
  --c-border: #263331;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
  --c-primary-2: #a3ece4;
  --c-glow: rgb(92 207 195 / 0.16);
  --c-glow-2: rgb(18 154 145 / 0.24);
  --c-dots: rgb(92 207 195 / 0.14);
  --shadow-lift: 0 22px 44px -22px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(92 207 195 / 0.08);
}

@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] {
    color-scheme: dark;
    --c-primary: #5ccfc3;
    --c-on-primary: #00201d;
    --c-primary-soft: #16302e;
    --c-accent: #f5b85c;
    --c-accent-fill: #f5b85c;
    --c-on-accent: #1f1300;
    --c-bg: #0e1514;
    --c-surface: #162120;
    --c-surface-alt: #121a19;
    --c-text: #e6eeec;
    --c-muted: #9fb0ad;
    --c-border: #263331;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
    --c-primary-2: #a3ece4;
    --c-glow: rgb(92 207 195 / 0.16);
    --c-glow-2: rgb(18 154 145 / 0.24);
    --c-dots: rgb(92 207 195 / 0.14);
    --shadow-lift: 0 22px 44px -22px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(92 207 195 / 0.08);
  }
}

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

[hidden] { display: none !important; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.8;
  background: var(--c-bg);
  color: var(--c-text);
}

body > main { flex: 1; }

h1, h2, h3 { line-height: 1.4; }

a { color: var(--c-primary); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; vertical-align: -0.25em; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  background: var(--c-primary);
  color: var(--c-on-primary);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, filter 0.2s ease;
}

.button:hover { filter: brightness(1.07); }
.button:active { transform: translateY(0) scale(0.98); }

/* Filled buttons rise with a turquoise glow; arrows lean forward (left, in RTL). */
.button:not(.button--outline, .button--ghost):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--c-primary) 75%, transparent);
}

.icon--nudge { transition: transform 0.2s ease; }
.button:hover .icon--nudge { transform: translateX(-4px); }

.button:focus-visible,
.icon-button:focus-visible,
.card:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
}

.button--small { padding: 0.3rem 1rem; font-size: 0.95rem; }
.button--large { padding: 0.8rem 1.8rem; font-size: 1.05rem; }
.button--block { width: 100%; }
.button--outline { background: transparent; color: var(--c-primary); }
.button--outline:hover { background: var(--c-primary-soft); filter: none; }
.button--ghost { background: transparent; border-color: transparent; color: var(--c-primary); }
.button--ghost:hover { background: var(--c-primary-soft); filter: none; }

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
}

.icon-button:hover { background: var(--c-primary-soft); }

/* Light/dark switch: shows the moon in light mode and the sun in dark mode. */
.icon-button .sun { display: none; }
:root[data-mode="dark"] .icon-button .sun { display: block; }
:root[data-mode="dark"] .icon-button .moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] .icon-button .sun { display: block; }
  :root[data-mode="auto"] .icon-button .moon { display: none; }
}

/* ---------- Header and footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  border-bottom: 1px solid var(--c-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s ease;
}

/* site.js adds this once the page scrolls under the header. */
.site-header.is-scrolled { box-shadow: var(--shadow); }

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.5rem 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--c-text);
  text-decoration: none;
}

.brand b { color: var(--c-primary); font-weight: inherit; }

/* The mark (brand/): even-odd bubble in the primary color, one saffron QR module. */
.brand-mark { width: 2.1em; height: 2.1em; flex: none; }
.brand-mark__body { fill: var(--c-primary); }
.brand-mark__accent { fill: var(--c-accent-fill); }

.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { color: var(--c-text); text-decoration: none; }
.site-nav a:hover { color: var(--c-primary); }

.site-header__actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 520px) {
  .site-nav { display: none; }
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-alt);
  font-size: 0.95rem;
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.site-footer__about p { margin: 0.25rem 0 0.75rem; color: var(--c-muted); }

.site-footer__contact,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__contact li { display: flex; align-items: center; gap: 0.5rem; color: var(--c-muted); }
.site-footer__contact a { color: var(--c-text); text-decoration: none; }

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.35rem 2rem;
  align-content: start;
}

.site-footer__links a { color: var(--c-text); text-decoration: none; }
.site-footer__links a:hover { color: var(--c-primary); text-decoration: underline; }

/* ---------- Home ---------- */

/* Decorations (glows, the tilted phone, the marquee) may poke past the edges; never scroll sideways. */
.home { overflow-x: clip; }

.section { padding: 3.5rem 0; }
.section--tight { padding: 2.5rem 0; }
.section--alt { background: var(--c-surface-alt); }

.section__title {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  text-align: center;
  margin: 0 0 0.5rem;
}

.home .section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 0.6rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-2));
}

.section__lead {
  text-align: center;
  color: var(--c-muted);
  margin: 0 0 2rem;
}

.section__title + :not(.section__lead) { margin-top: 2rem; }

/* Hero: the pitch beside an illustrated phone, over soft turquoise light and a dot grid. */

.hero {
  position: relative;
  isolation: isolate;
  padding: 3.5rem 0 4rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--c-dots) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 75%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.blob--1 { width: 460px; height: 460px; top: -160px; inset-inline-start: -120px; background: var(--c-glow); }
.blob--2 { width: 420px; height: 420px; bottom: -140px; inset-inline-end: -60px; background: var(--c-glow-2); }
.blob--3 { width: 260px; height: 260px; top: 30%; inset-inline-end: 30%; background: var(--c-glow); opacity: 0.6; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--c-primary) 30%, var(--c-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-surface) 75%, transparent);
  color: var(--c-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--c-primary);
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 1rem;
}

/* The highlighted words: gradient ink over a soft marker stroke. */
.hl {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl::after {
  content: "";
  position: absolute;
  inset-inline: -0.1em;
  bottom: 0.12em;
  height: 0.28em;
  z-index: -1;
  border-radius: 0.2em;
  background: color-mix(in srgb, var(--c-primary) 11%, transparent);
  transform-origin: right;
}

.hero__lead {
  font-size: 1.12rem;
  color: var(--c-muted);
  margin: 0 0 2rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__points {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--c-muted);
  font-size: 0.95rem;
}

.hero__points li { display: flex; align-items: center; gap: 0.35rem; }

.hero__points .icon {
  width: 1.3em;
  height: 1.3em;
  padding: 0.2em;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

@media (max-width: 860px) {
  .hero { padding-top: 2.5rem; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions,
  .hero__points { justify-content: center; }
}

/* The phone illustration. Colors inside the screen are the sample business's, not the platform's. */

.hero__art {
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.mock {
  position: relative;
  width: min(100%, 470px);
  padding: 1.5rem 0;
  display: grid;
  place-items: center;
}

.mock__phone {
  position: relative;
  width: 250px;
  padding: 12px 12px 16px;
  border-radius: 36px;
  background: var(--c-surface);
  box-shadow:
    0 0 0 7px #18201f,
    0 0 0 8px rgb(255 255 255 / 0.08),
    0 40px 70px -30px rgb(7 60 57 / 0.55),
    0 20px 40px -24px rgb(0 0 0 / 0.35);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 0.8rem;
  line-height: 1.5;
}

.hero__art:hover .mock__phone { transform: none; }

.mock__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 1;
  width: 70px;
  height: 16px;
  translate: -50% 0;
  border-radius: 0 0 12px 12px;
  background: #18201f;
}

.mock__cover {
  height: 86px;
  border-radius: 24px 24px 12px 12px;
  background:
    radial-gradient(circle at 20% 30%, rgb(255 255 255 / 0.35) 0 14px, transparent 15px),
    radial-gradient(circle at 75% 80%, rgb(255 255 255 / 0.18) 0 26px, transparent 27px),
    var(--mock-cover, linear-gradient(135deg, #0b6e69, #18a99f 60%, #7fd6cc));
}

.mock__head {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  margin: 0 10px;
}

.mock__logo {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border: 3px solid var(--c-surface);
  margin-top: -24px;
  border-radius: 50%;
  background: var(--mock-logo, linear-gradient(135deg, #e0793b, #c2410c));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.mock__name { display: flex; flex-direction: column; min-width: 0; padding-bottom: 2px; }
.mock__name b, .mock__name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__name b { font-size: 0.95rem; }
.mock__name small { color: var(--c-muted); font-size: 0.72rem; }

.mock__open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.6rem 10px 0;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 600;
}

:root[data-mode="dark"] .mock__open { color: #4ade80; }

@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] .mock__open { color: #4ade80; }
}

.mock__open i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.mock__actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0.75rem 10px 0;
}

.mock__actions span {
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.mock__title {
  margin: 0.8rem 10px 0.3rem;
  font-weight: 800;
  font-size: 0.85rem;
}

.mock__menu {
  list-style: none;
  margin: 0 10px;
  padding: 0;
}

.mock__menu li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--c-border);
}

.mock__menu li:last-child { border-bottom: 0; }
.mock__menu b { color: var(--c-primary); font-size: 0.75rem; }

.mock__thumb { width: 30px; height: 30px; border-radius: 9px; }
.mock__thumb--1 { background: radial-gradient(circle at 50% 45%, #6b3f24 0 8px, #f3e7d8 9px 11px, #d9c2a5 12px); }
.mock__thumb--2 { background: radial-gradient(circle at 50% 45%, #f6efe4 0 6px, #b98a5e 7px 11px, #e9dccb 12px); }
.mock__thumb--3 { background: linear-gradient(160deg, #fbe7b5 0 45%, #f0c66c 46% 60%, #e2a1a1 61%); }
.mock__thumb--4 { background: radial-gradient(circle at 35% 35%, #fff9c4 0 5px, #f7e463 6px 10px, #cdeccb 11px); }
/* Salon services */
.mock__thumb--5 { background: radial-gradient(circle at 50% 38%, #5b3a29 0 9px, transparent 10px), linear-gradient(#f9d5e5, #f4b6cf); }
.mock__thumb--6 { background: linear-gradient(120deg, #7c2d12 0 30%, #c2410c 31% 55%, #f59e0b 56% 75%, #fde68a 76%); }
.mock__thumb--7 { background: radial-gradient(ellipse 4px 7px at 30% 55%, #db2777 0 99%, transparent), radial-gradient(ellipse 4px 7px at 50% 45%, #db2777 0 99%, transparent), radial-gradient(ellipse 4px 7px at 70% 55%, #db2777 0 99%, transparent), #fce7f3; }
/* Properties: building fronts */
.mock__thumb--8 { background: repeating-linear-gradient(90deg, #c7d2fe 0 4px, transparent 4px 8px) 7px 6px / 16px 18px no-repeat, linear-gradient(#64748b, #475569); }
.mock__thumb--9 { background: repeating-linear-gradient(0deg, #fef3c7 0 3px, transparent 3px 6px) 8px 5px / 14px 20px no-repeat, linear-gradient(#b45309, #92400e); }
.mock__thumb--10 { background: linear-gradient(135deg, transparent 0 48%, #b91c1c 49% 52%, transparent 53%) 0 0 / 100% 55% no-repeat, linear-gradient(#e2e8f0 0 50%, #e7d7c1 51%); }
/* Cars: a body on two wheels */
.mock__thumb--11, .mock__thumb--12, .mock__thumb--13 {
  background:
    radial-gradient(circle at 30% 72%, #1f2937 0 3.5px, transparent 4.5px),
    radial-gradient(circle at 70% 72%, #1f2937 0 3.5px, transparent 4.5px),
    linear-gradient(transparent 0 36%, var(--car) 37% 70%, transparent 71%) 3px 0 / 24px 100% no-repeat,
    linear-gradient(transparent 0 24%, var(--car) 25% 40%, transparent 41%) 8px 0 / 14px 100% no-repeat,
    #e8edf2;
}
.mock__thumb--11 { --car: #f8fafc; background-color: #cbd5e1; }
.mock__thumb--12 { --car: #1e3a8a; }
.mock__thumb--13 { --car: #6b7280; }

.mock__menu li > span { min-width: 0; }
.mock__menu small { display: block; color: var(--c-muted); font-size: 0.62rem; line-height: 1.4; }

/* The phone's samples take turns (a CSS carousel, under prefers-reduced-motion: no-preference below). They share
   one grid cell, so the phone keeps the tallest one's height; without motion only the first shows. */
.mock__slides { display: grid; }
.mock__slide { grid-area: 1 / 1; }
.mock__slide:not(:first-child) { visibility: hidden; opacity: 0; }
.mock__slide--salon { --mock-cover: linear-gradient(135deg, #9d174d, #db2777 60%, #f9a8d4); --mock-logo: linear-gradient(135deg, #7c3aed, #5b21b6); }
.mock__slide--estate { --mock-cover: linear-gradient(135deg, #1e3a8a, #3b82f6 60%, #bfdbfe); --mock-logo: linear-gradient(135deg, #f59e0b, #b45309); }
.mock__slide--cars { --mock-cover: linear-gradient(135deg, #111827, #475569 60%, #cbd5e1); --mock-logo: linear-gradient(135deg, #dc2626, #991b1b); }

.mock__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0.55rem 10px 0;
  padding: 0.35rem;
  border-radius: 12px;
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.mock__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 0.7rem;
}

.mock__dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--c-border); transition: width 0.3s ease; }
.mock__dots i:first-child { width: 16px; background: var(--c-primary); }
.mock__phone { cursor: pointer; }

/* A tap shows the next sample (site.js) and stops the turns. */
.mock.is-manual .mock__slide, .mock.is-manual .mock__dots i { animation: none; }
.mock.is-manual .mock__slide { visibility: hidden; opacity: 0; }
.mock.is-manual .mock__slide.is-current { visibility: visible; opacity: 1; }
.mock.is-manual .mock__dots i { width: 6px; background: var(--c-border); }
.mock.is-manual .mock__dots i.is-current { width: 16px; background: var(--c-primary); }

.mock__float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--c-surface) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px -16px rgb(7 60 57 / 0.4);
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: nowrap;
}

.mock__float b { display: block; font-size: 0.9rem; }
.mock__float small { display: block; color: var(--c-muted); font-size: 0.72rem; }

.mock__float--qr {
  top: 4%;
  inset-inline-end: 0;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem;
}

.mock__qr {
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  color: #18201f;
}

.mock__qr .icon { width: 56px; height: 56px; vertical-align: 0; }

.mock__float--stat { top: 7%; inset-inline-start: -5%; }
.mock__float--booking { bottom: -1%; inset-inline-end: -2%; }

.mock__ic {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.mock__bars {
  height: 30px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-inline-start: 0.25rem;
}

.mock__bars i {
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(var(--c-primary-2), var(--c-primary));
  transform-origin: bottom;
}

.mock__bars i:nth-child(1) { height: 35%; }
.mock__bars i:nth-child(2) { height: 55%; }
.mock__bars i:nth-child(3) { height: 45%; }
.mock__bars i:nth-child(4) { height: 70%; }
.mock__bars i:nth-child(5) { height: 60%; }
.mock__bars i:nth-child(6) { height: 85%; }
.mock__bars i:nth-child(7) { height: 100%; }

@media (max-width: 480px) {
  .mock { padding: 0.5rem 0; }
  .mock__phone { width: 220px; }
  .mock__float { font-size: 0.72rem; padding: 0.45rem 0.6rem; }
  .mock__float--stat { inset-inline-start: 0; }
  .mock__float--stat .mock__bars { display: none; }
  .mock__float--booking { inset-inline-end: 0; }
  .mock__qr .icon { width: 44px; height: 44px; }
}

/* Features: lift on hover, with a soft light that follows the pointer (site.js sets --mx/--my). */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.feature {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c-primary) 13%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature > * { position: relative; }

.feature:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-border));
  box-shadow: var(--shadow-lift);
}

.feature:hover::before { opacity: 1; }

.feature h3 { margin: 0.85rem 0 0.25rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--c-muted); }

.feature__icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.25s, color 0.25s;
}

.feature__icon .icon { width: 1.45em; height: 1.45em; vertical-align: 0; }

.feature:hover .feature__icon {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: var(--c-on-primary);
  transform: rotate(-8deg) scale(1.1);
}

.pro-tag {
  display: inline-block;
  margin-inline-start: 0.3rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--c-accent-fill);
  color: var(--c-on-accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.7;
}

/* Business kinds: two endless rows of chips moving in opposite directions. */

.kinds .section__title { margin-bottom: 1.75rem; }

.marquee {
  overflow: hidden;
  padding: 0.35rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track { display: flex; width: max-content; }

.marquee__list {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  padding-inline-end: 0.75rem;
  list-style: none;
}

.marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  white-space: nowrap;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.marquee__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
}

.marquee__list li:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  transform: translateY(-2px);
}

/* Steps: numbered badges joined by a dashed line on wide screens. */

.steps {
  position: relative;
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .steps::before {
    content: "";
    position: absolute;
    top: 28px;
    inset-inline: 17%;
    height: 2px;
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c-primary) 45%, transparent) 0 8px, transparent 8px 16px);
  }
}

.steps li { position: relative; counter-increment: step; text-align: center; padding: 0 0.5rem; }

.steps li::before {
  content: counter(step, persian);
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: var(--c-on-primary);
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 0 0 7px var(--c-bg), 0 12px 24px -10px color-mix(in srgb, var(--c-primary) 70%, transparent);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.steps li:hover::before { transform: rotate(-8deg) scale(1.1); }

.steps h3 { margin: 0.9rem 0 0.25rem; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--c-muted); }

/* Business cards */

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-border));
  box-shadow: var(--shadow-lift);
}

.card__cover {
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-soft));
}

.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover .card__cover img { transform: scale(1.06); }

.card__logo {
  width: 64px;
  height: 64px;
  margin: -32px 16px 0;
  position: relative;
  display: grid;
  place-items: center;
  border: 3px solid var(--c-surface);
  border-radius: 50%;
  background: var(--c-surface);
  overflow: hidden;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--c-primary);
}

.card__logo img { width: 100%; height: 100%; object-fit: contain; }

/* Transparent logos get a backdrop only in the mode where they would vanish (see ImageTone). */
.card__logo.ink-light { background: #1f1f1f; }
:root[data-mode="dark"] .card__logo.ink-light { background: var(--c-surface); }
:root[data-mode="dark"] .card__logo.ink-dark { background: #ffffff; }

@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] .card__logo.ink-light { background: var(--c-surface); }
  :root[data-mode="auto"] .card__logo.ink-dark { background: #ffffff; }
}

.card__body {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 16px 1rem;
}

.card__name { font-size: 1.05rem; }
.card__verified { color: var(--c-primary, currentColor); vertical-align: -0.15em; }
.card__verified .icon { width: 1.05em; height: 1.05em; }
.card__meta { color: var(--c-muted); font-size: 0.9rem; }
.card__tagline { margin-top: 0.25rem; font-size: 0.95rem; }

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 780px;
  margin: 0 auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* Pro: a slowly turning turquoise-and-saffron border (static where @property isn't supported). */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.plan--pro {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    conic-gradient(from var(--angle), var(--c-primary), var(--c-primary-2), var(--c-accent-fill), var(--c-primary)) border-box;
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--c-accent-fill) 70%, transparent), var(--shadow);
}

.plan--pro:hover { box-shadow: 0 28px 56px -24px color-mix(in srgb, var(--c-accent-fill) 75%, transparent), var(--shadow); }

.plan h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
}

.plan--pro h3 .icon { color: var(--c-accent-fill); }

.plan__price { margin: 0.25rem 0 1rem; color: var(--c-muted); }

.plan__badge {
  margin: 0.5rem 0 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--c-accent-fill) 22%, transparent);
  color: var(--c-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.plan__prices {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.plan__prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--c-border);
}

.plan__prices s { color: var(--c-muted); font-size: 0.9rem; margin-inline-end: 0.4rem; }

.plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.plan__list li { display: flex; gap: 0.5rem; padding: 0.2rem 0; }
.plan__list .icon { color: var(--c-primary); margin-top: 0.3em; vertical-align: 0; }

/* Closing call to action: a deep turquoise panel with the mark, in both modes. */

.cta { text-align: center; }

.cta__inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.5rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #064a46, #0b6e69 50%, #129a91);
  color: #ffffff;
  box-shadow: 0 30px 60px -32px rgb(11 110 105 / 0.8);
}

/* A QR-like checker fading in from one corner, and a soft light from the other. */
.cta__inner::before,
.cta__inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.cta__inner::before {
  inset: 0;
  background: repeating-conic-gradient(rgb(255 255 255 / 0.07) 0 25%, transparent 0 50%) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 0% 100%, #000, transparent 55%);
  mask-image: radial-gradient(circle at 0% 100%, #000, transparent 55%);
}

.cta__inner::after {
  width: 420px;
  height: 420px;
  top: -210px;
  inset-inline-start: -120px;
  border-radius: 50%;
  background: radial-gradient(rgb(255 255 255 / 0.22), transparent 65%);
}

.cta__mark {
  position: absolute;
  z-index: -1;
  top: 50%;
  inset-inline-start: 4%;
  font-size: 4.5rem;
  translate: 0 -50%;
  rotate: -10deg;
  opacity: 0.9;
}

.cta__mark .brand-mark__body { fill: rgb(255 255 255 / 0.14); }

.cta h2 { margin: 0 0 0.5rem; font-size: clamp(1.35rem, 3.8vw, 2rem); }
.cta p { margin: 0 auto 1.75rem; max-width: 520px; color: rgb(255 255 255 / 0.85); }

.cta .button {
  border-color: #ffffff;
  background: #ffffff;
  color: #075450;
}

.cta .button:hover { box-shadow: 0 12px 28px -10px rgb(0 0 0 / 0.45); }

@media (max-width: 640px) {
  .cta__mark { top: auto; bottom: -1.5rem; translate: none; font-size: 3.5rem; }
}

/* ---------- Home motion: entrance, scroll reveal and ambient movement, only when motion is welcome ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
}

@keyframes bob {
  50% { transform: translateY(-10px); }
}

@keyframes drift {
  to { transform: translate3d(50px, 30px, 0) scale(1.12); }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-primary) 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 9px transparent; }
}

@keyframes marker {
  from { transform: scaleX(0); }
}

@keyframes grow {
  from { transform: scaleY(0); }
}

/* One sample of four: in for a quarter of the cycle, then out (the next one comes in as it leaves). */
@keyframes mock-slide {
  0% { opacity: 0; visibility: visible; transform: translateX(14px); }
  3%, 23% { opacity: 1; visibility: visible; transform: none; }
  26%, 100% { opacity: 0; visibility: hidden; transform: translateX(-14px); }
}

/* Starts small: a dot waiting for its turn (the animation's delay) must not look current. */
@keyframes mock-dot {
  0% { width: 6px; background: var(--c-border); }
  2%, 24% { width: 16px; background: var(--c-primary); }
  27%, 100% { width: 6px; background: var(--c-border); }
}

@keyframes marquee {
  to { transform: translateX(50%); }
}

@keyframes spin-border {
  to { --angle: 360deg; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hero__text > :nth-child(2) { animation-delay: 0.08s; }
  .hero__text > :nth-child(3) { animation-delay: 0.16s; }
  .hero__text > :nth-child(4) { animation-delay: 0.24s; }
  .hero__text > :nth-child(5) { animation-delay: 0.32s; }

  .hl::after { animation: marker 0.7s 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

  .hero__art { animation: pop 1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

  /* Each float pops in, then bobs on its own rhythm. */
  .mock__float { animation: pop 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards, bob 6s ease-in-out infinite; }
  .mock__float--qr { animation-delay: 0.7s, 1.4s; }
  .mock__float--stat { animation-delay: 0.9s, 1.6s; animation-duration: 0.7s, 7s; }
  .mock__float--booking { animation-delay: 1.1s, 1.8s; animation-duration: 0.7s, 5.5s; }

  /* The samples' carousel: 4 slides × 5s, paused while the pointer is on the phone. */
  .mock__slide, .mock__dots i { animation: mock-slide 20s ease-in-out infinite backwards; }
  .mock__dots i { animation-name: mock-dot; }
  .mock__slide:nth-child(2), .mock__dots i:nth-child(2) { animation-delay: 5s; }
  .mock__slide:nth-child(3), .mock__dots i:nth-child(3) { animation-delay: 10s; }
  .mock__slide:nth-child(4), .mock__dots i:nth-child(4) { animation-delay: 15s; }
  .hero__art:hover .mock__slide, .hero__art:hover .mock__dots i { animation-play-state: paused; }

  .mock__bars i { animation: grow 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .mock__bars i:nth-child(1) { animation-delay: 1.1s; }
  .mock__bars i:nth-child(2) { animation-delay: 1.15s; }
  .mock__bars i:nth-child(3) { animation-delay: 1.2s; }
  .mock__bars i:nth-child(4) { animation-delay: 1.25s; }
  .mock__bars i:nth-child(5) { animation-delay: 1.3s; }
  .mock__bars i:nth-child(6) { animation-delay: 1.35s; }
  .mock__bars i:nth-child(7) { animation-delay: 1.4s; }

  .blob { animation: drift 16s ease-in-out infinite alternate; }
  .blob--2 { animation-duration: 20s; animation-direction: alternate-reverse; }
  .blob--3 { animation-duration: 13s; }

  .eyebrow__dot { animation: ping 2s ease-out infinite; }

  .marquee__track { animation: marquee 45s linear infinite; }
  .marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 50s; }
  .marquee:hover .marquee__track { animation-play-state: paused; }

  .plan--pro { animation: spin-border 6s linear infinite; }

  .cta__mark { animation: bob 7s ease-in-out infinite; }

  /* Scroll reveal (site.js adds .is-visible and a stagger delay as --rd). Without JS nothing is hidden.
     The fill is "backwards" only, so hover transforms still apply once the reveal ends. */
  .js [data-reveal]:not(.is-visible) { opacity: 0; }
  .js [data-reveal].is-visible { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0s) backwards; }
  .js .plan--pro[data-reveal].is-visible { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0s) backwards, spin-border 6s linear infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .mock__phone { transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .marquee__list { flex-wrap: wrap; justify-content: center; padding: 0; }
  .marquee__list[aria-hidden] { display: none; }
}

/* ---------- Text pages (About, Terms, Privacy, Contact) ---------- */

.prose-page {
  max-width: 760px;
  padding-top: 2.5rem;
}

.prose-page h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin: 0 0 0.25rem; }
.prose-page .section__lead { text-align: start; }

.prose-page__updated { margin: 0 0 1.5rem; color: var(--c-muted); font-size: 0.9rem; }

.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-inline-start: 1.5rem; }
.prose li { margin: 0.2rem 0; }
.credits { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--c-border); font-size: 0.92rem; color: var(--c-muted); }
.credits h2 { font-size: 1.05rem; color: inherit; }
.prose ol { list-style: persian; }

.contact-list { display: grid; gap: 1rem; }

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}

.contact-list div { display: flex; flex-direction: column; }
.contact-list__label { color: var(--c-muted); font-size: 0.9rem; }
.contact-list a { color: var(--c-text); font-weight: 600; text-decoration: none; }

.pre-line { white-space: pre-line; }

/* ---------- 404 and error ---------- */

.message-page {
  max-width: 720px;
  padding-top: 15vh;
  text-align: center;
}

.message-page h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 1rem; }
.message-page p { color: var(--c-muted); margin: 0 0 2rem; }
