/* ==========================================================================
   Serviqo — landing stylesheet
   Vanilla CSS. No build step, no framework, no Tailwind runtime.
   Tokens mirror the Astro/Tailwind source of truth (tailwind.config.mjs).
   ========================================================================== */

:root {
  --ink-50:  #FAFAF9;
  --ink-100: #F4F4F2;
  --ink-200: #E7E5E0;
  --ink-300: #D1CFC8;
  --ink-400: #9A978D;
  --ink-500: #6B6862;
  --ink-600: #3F3D38;
  --ink-700: #28261F;
  --ink-800: #171611;
  --ink-900: #0B0A07;
  --ink-950: #050402;

  --gold-50:  #FDF9EE;
  --gold-100: #FAF0D2;
  --gold-200: #F5DDA1;
  --gold-300: #EFC368;
  --gold-400: #E9A93B;
  --gold-500: #D88A1B;
  --gold-600: #B86A14;
  --gold-700: #8F4D12;
  --gold-800: #653713;
  --gold-900: #422411;

  --accent:      #E9A93B;
  --accent-soft: #F5DDA1;
  --accent-deep: #B86A14;

  --shadow-glow: 0 0 80px -10px rgba(233, 169, 59, 0.35);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -8px rgba(0, 0, 0, 0.10);
  --shadow-elevated: 0 1px 2px rgba(0, 0, 0, 0.06), 0 20px 40px -20px rgba(0, 0, 0, 0.20);

  --container: 72rem;
  --font: 'Vazirmatn', 'IRANSansX', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- reset / base ---------- */

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--ink-50);
  color: var(--ink-900);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: rgba(233, 169, 59, 0.3); color: var(--ink-900); }

*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ink-50), 0 0 0 4px rgba(233, 169, 59, 0.6);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

#minimax-floating-ball { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 640px) { .container { padding-inline: 24px; } }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }

.section {
  position: relative;
  padding-block: 80px;
  scroll-margin-top: 6rem;
}
@media (min-width: 640px) { .section { padding-block: 112px; } }
@media (min-width: 1024px) { .section { padding-block: 128px; } }

.section--dark {
  background: var(--ink-900);
  color: var(--ink-50);
  overflow: hidden;
}
.section--dark .lead { color: var(--ink-300); }
.section--dark .h2 { color: var(--ink-50); }

.h2 {
  margin-top: 16px;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-wrap: balance;
}
@media (min-width: 640px) { .h2 { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .h2 { font-size: 3rem; line-height: 1.1; } }

.lead {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-600);
  text-wrap: pretty;
}
@media (min-width: 640px) { .lead { font-size: 1.125rem; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-700);
  background: rgba(11, 10, 7, 0.05);
}
.section--dark .eyebrow { background: rgba(250, 250, 249, 0.1); color: var(--ink-200); }

.grad-gold {
  background-image: linear-gradient(to bottom right, var(--accent), #fbbf24, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.head { max-width: 42rem; margin-inline: auto; text-align: center; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--dark { background: var(--ink-900); color: var(--ink-50); box-shadow: var(--shadow-soft); }
.btn--dark:hover { background: var(--ink-800); box-shadow: var(--shadow-elevated); }
.btn--ghost {
  border: 1px solid rgba(11, 10, 7, 0.15);
  background: rgba(250, 250, 249, 0.6);
  color: var(--ink-900);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: rgba(11, 10, 7, 0.3); background: var(--ink-50); }
.btn--gold { background: var(--accent); color: var(--ink-900); }
.btn--gold:hover { background: #fbbf24; box-shadow: var(--shadow-glow); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 0.875rem; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: top 0.3s ease;
}
.nav--scrolled { top: 8px; }

.nav__inner {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(11, 10, 7, 0.05);
  border-radius: 16px;
  background: rgba(250, 250, 249, 0.7);
  padding: 10px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
@media (min-width: 640px) { .nav__inner { padding-inline: 20px; } }
.nav--scrolled .nav__inner { box-shadow: var(--shadow-soft); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink-900); }
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--ink-50);
}
.brand__grad {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom right, var(--accent), #fbbf24, var(--accent-deep));
  opacity: 0.9;
}
.brand__letter { position: relative; font-weight: 700; color: var(--ink-900); font-size: 1rem; }
.brand__name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }

.nav__links { display: none; align-items: center; gap: 28px; }
@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__link {
  position: relative;
  font-size: 0.875rem;
  color: var(--ink-700);
  transition: color 0.25s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav__link:hover { color: var(--ink-900); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__contact {
  display: none;
  font-size: 0.875rem;
  color: var(--ink-700);
  transition: color 0.25s ease;
}
@media (min-width: 640px) { .nav__contact { display: inline-flex; } }
.nav__contact:hover { color: var(--ink-900); }

.nav__toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--ink-700);
  transition: background-color 0.25s ease, color 0.25s ease;
}
@media (min-width: 768px) { .nav__toggle { display: none; } }
.nav__toggle:hover { background: var(--ink-100); color: var(--ink-900); }
.nav__toggle svg { width: 20px; height: 20px; }

.mobile { display: none; }
@media (max-width: 767px) { .mobile { display: block; } }
.mobile__inner {
  margin-top: 8px;
  border: 1px solid rgba(11, 10, 7, 0.05);
  border-radius: 16px;
  background: rgba(250, 250, 249, 0.95);
  padding: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile__link {
  display: block;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--ink-700);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mobile__link:hover { background: var(--ink-100); color: var(--ink-900); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 112px;
  padding-bottom: 80px;
  scroll-margin-top: 6rem;
}
@media (min-width: 640px) { .hero { padding-top: 128px; padding-bottom: 96px; } }
@media (min-width: 1024px) { .hero { padding-top: 144px; padding-bottom: 128px; } }

.hero__bg { position: absolute; inset: 0; z-index: -10; background: var(--ink-50); }
.hero__glow { position: absolute; inset: 0; background-image: radial-gradient(ellipse at top, rgba(233, 169, 59, 0.18), transparent 55%); }
.hero__glow2 { position: absolute; inset: 0; background-image: radial-gradient(ellipse at bottom right, rgba(11, 10, 7, 0.06), transparent 60%); }
.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(11, 10, 7, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 10, 7, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.hero__noise { position: absolute; inset: 0; background-image: var(--noise); opacity: 0.04; mix-blend-mode: multiply; }

.hero__inner { max-width: 48rem; margin-inline: auto; text-align: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(11, 10, 7, 0.1);
  border-radius: 999px;
  background: rgba(250, 250, 249, 0.8);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-700);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dot-ping { position: relative; display: flex; width: 6px; height: 6px; }
.dot-ping::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #10b981;
  opacity: 0.75;
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.dot-ping::after {
  content: '';
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #10b981;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.75; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

.hero__title {
  margin-top: 24px;
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-wrap: balance;
}
@media (min-width: 640px) { .hero__title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 3.75rem; } }

.hero__text {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-600);
  text-wrap: pretty;
}
@media (min-width: 640px) { .hero__text { font-size: 1.125rem; } }

.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
@media (min-width: 640px) { .hero__cta { flex-direction: row; gap: 16px; } }
.hero__cta .btn { width: 100%; }
@media (min-width: 640px) { .hero__cta .btn { width: auto; } }

.hero__note { margin-top: 16px; font-size: 0.75rem; color: var(--ink-500); }

.hero__mock { margin-top: 64px; }
@media (min-width: 640px) { .hero__mock { margin-top: 80px; } }
@media (min-width: 1024px) { .hero__mock { margin-top: 96px; } }

.hero__mock-inner { position: relative; max-width: 64rem; margin-inline: auto; }

.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: block; } }

.hero__mock-glow {
  position: absolute;
  inset-inline: -24px;
  inset-block: -32px;
  z-index: -10;
  border-radius: 40px;
  filter: blur(64px);
  background-image: linear-gradient(to bottom right, rgba(233, 169, 59, 0.2), transparent, rgba(253, 230, 138, 0.2));
}

.browser {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(11, 10, 7, 0.1);
  background: var(--ink-50);
  box-shadow: var(--shadow-elevated);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(11, 10, 7, 0.05);
  background: rgba(244, 244, 242, 0.5);
  padding: 12px 16px;
}
.browser__dot { width: 10px; height: 10px; border-radius: 999px; background: var(--ink-300); }
.browser__url {
  margin-inline-start: 12px;
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  background: var(--ink-50);
  padding-inline: 12px;
  font-size: 10px;
  color: var(--ink-400);
  direction: ltr;
  text-align: left;
}

.mock { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(11, 10, 7, 0.05); }
@media (min-width: 1024px) { .mock { grid-template-columns: repeat(12, 1fr); } }
.mock__main { background: var(--ink-50); padding: 20px; }
.mock__side { background: var(--ink-50); padding: 20px; }
@media (min-width: 1024px) {
  .mock__main { grid-column: span 7; padding: 28px; }
  .mock__side { grid-column: span 5; padding: 28px; }
}

.mock__live { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--ink-500); }
.mock__live-dot { width: 6px; height: 6px; border-radius: 999px; background: #10b981; }
.mock__h3 { margin-top: 12px; font-size: 1.25rem; font-weight: 700; color: var(--ink-900); }
@media (min-width: 640px) { .mock__h3 { font-size: 1.5rem; } }
.mock__sub { margin-top: 4px; font-size: 0.875rem; color: var(--ink-500); }

.mock__cats { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.mock__cat { border-radius: 12px; background: rgba(244, 244, 242, 0.5); padding: 12px; }
.mock__cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mock__cat-name { font-size: 0.75rem; font-weight: 600; color: var(--ink-700); }
.mock__cat-count { font-size: 10px; color: var(--ink-400); }
.mock__items { display: flex; flex-direction: column; gap: 6px; }
.mock__row { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; }
.mock__row-name { color: var(--ink-800); }
.mock__row-right { display: flex; align-items: center; gap: 8px; }
.mock__tag {
  border-radius: 999px;
  background: rgba(233, 169, 59, 0.2);
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 500;
  color: var(--accent-deep);
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mock__price { color: var(--ink-600); }

.mock__side-head { display: flex; align-items: center; justify-content:space-between; }
.mock__side-label { font-size: 0.75rem; color: var(--ink-500); }
.mock__table {
  border-radius: 999px;
  background: #d1fae5;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  color: #047857;
}
.mock__lines { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.mock__line { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; }
.mock__line-name { color: var(--ink-700); }
.mock__qty { color: var(--ink-400); }
.mock__totals {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-200);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
}
.mock__total { display: flex; justify-content: space-between; color: var(--ink-500); }
.mock__total--main { margin-top: 4px; font-size: 0.875rem; font-weight: 700; color: var(--ink-900); }
.mock__pay {
  margin-top: 16px;
  width: 100%;
  border-radius: 12px;
  background: var(--ink-900);
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-50);
  transition: background-color 0.2s ease;
}
.mock__pay:hover { background: var(--ink-800); }
.mock__secure { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ink-400); }
.mock__secure svg { width: 12px; height: 12px; flex: none; }

.float-card {
  position: absolute;
  display: none;
  border: 1px solid rgba(11, 10, 7, 0.1);
  border-radius: 12px;
  background: var(--ink-50);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  align-items: center;
  gap: 12px;
}
@media (min-width: 640px) { .float-card { display: flex; } }
.float-card--order { bottom: -16px; left: 24px; transform: rotate(2deg); }
.float-card--trend { top: -12px; right: 8px; transform: rotate(-2deg); }
.float-card__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; }
.float-card__icon--ok { background: #d1fae5; color: #047857; }
.float-card__icon--trend { background: rgba(233, 169, 59, 0.2); color: var(--accent-deep); }
.float-card__icon svg { width: 16px; height: 16px; }
.float-card__title { font-size: 0.75rem; font-weight: 600; color: var(--ink-900); }
.float-card__sub { font-size: 0.75rem; color: var(--ink-500); }

.stats {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
}
@media (min-width: 640px) { .stats { margin-top: 80px; } }
.stat { text-align: center; }
.stat__value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); }
@media (min-width: 640px) { .stat__value { font-size: 1.875rem; } }
.stat__label { margin-top: 4px; font-size: 0.75rem; color: var(--ink-500); }

/* ---------- features ---------- */

.features__grid { margin-top: 64px; display: grid; gap: 20px; }
@media (min-width: 640px) {
  .features__grid { margin-top: 80px; grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(11, 10, 7, 0.08);
  background: var(--ink-50);
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 640px) { .feature { padding: 28px; } }
.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 10, 7, 0.15);
  box-shadow: var(--shadow-elevated);
}
.feature::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  opacity: 0;
  background-image: linear-gradient(to right, transparent, rgba(11, 10, 7, 0.2), transparent);
  transition: opacity 0.3s ease;
}
.feature:hover::before { opacity: 1; }

.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink-900);
  color: var(--ink-50);
  transition: transform 0.3s ease;
}
.feature:hover .feature__icon { transform: scale(1.05); }
.feature__icon--gold { background: rgba(233, 169, 59, 0.15); color: var(--accent-deep); }
.feature__icon svg { width: 20px; height: 20px; }
.feature__title { margin-top: 20px; font-size: 1.125rem; font-weight: 600; color: var(--ink-900); }
@media (min-width: 640px) { .feature__title { font-size: 1.25rem; } }
.feature__text { margin-top: 10px; font-size: 0.875rem; line-height: 1.9; color: var(--ink-600); }

/* ---------- how it works ---------- */

.how__bg { position: absolute; inset: 0; z-index: -10; }
.how__glow { position: absolute; inset: 0; background-image: radial-gradient(ellipse at top, rgba(233, 169, 59, 0.12), transparent 60%); }
.how__noise { position: absolute; inset: 0; background-image: var(--noise); opacity: 0.05; mix-blend-mode: overlay; }

.how__grid { margin-top: 64px; display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .how__grid { margin-top: 80px; grid-template-columns: repeat(3, 1fr); }
}
.step { position: relative; }
.step__num {
  position: absolute;
  top: -8px;
  right: 0;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(250, 250, 249, 0.05);
}
@media (min-width: 640px) { .step__num { font-size: 4rem; } }
.step__card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(250, 250, 249, 0.1);
  background: rgba(250, 250, 249, 0.05);
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 640px) { .step__card { padding: 32px; } }
.step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step__badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-900);
}
.step__rule { flex: 1; height: 1px; background-image: linear-gradient(to left, rgba(250, 250, 249, 0.2), transparent); }
.step__title { font-size: 1.25rem; font-weight: 600; color: var(--ink-50); }
@media (min-width: 640px) { .step__title { font-size: 1.5rem; } }
.step__text { margin-top: 12px; font-size: 0.875rem; line-height: 1.9; color: var(--ink-300); }

.how__cta { margin-top: 64px; text-align: center; }
@media (min-width: 640px) { .how__cta { margin-top: 80px; } }

/* ---------- pricing ---------- */

.billing {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(11, 10, 7, 0.1);
  border-radius: 999px;
  background: var(--ink-50);
  padding: 4px;
  font-size: 0.75rem;
}
.billing__btn {
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 500;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.billing__btn:hover { color: var(--ink-900); }
.billing__btn.is-active { background: var(--ink-900); color: var(--ink-50); }
.billing__discount {
  margin-inline-start: 4px;
  border-radius: 999px;
  background: #d1fae5;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  color: #047857;
}

.plans { margin-top: 56px; display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .plans { margin-top: 80px; grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.plan {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(11, 10, 7, 0.08);
  background: var(--ink-50);
  color: var(--ink-900);
  padding: 28px;
}
@media (min-width: 640px) { .plan { padding: 32px; } }
.plan--featured {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--ink-50);
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 1024px) {
  .plan--featured { margin-top: -16px; margin-bottom: -16px; }
}

.plan__flag { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); }
.plan__flag span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--accent);
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-900);
  box-shadow: var(--shadow-soft);
}
.plan__flag svg { width: 10px; height: 10px; }

.plan__name { font-size: 1.25rem; font-weight: 700; color: var(--ink-900); }
@media (min-width: 640px) { .plan__name { font-size: 1.5rem; } }
.plan--featured .plan__name { color: var(--ink-50); }
.plan__tagline { margin-top: 6px; font-size: 0.875rem; color: var(--ink-600); }
.plan--featured .plan__tagline { color: var(--ink-300); }

.plan__price-row { margin-top: 24px; display: flex; align-items: baseline; gap: 4px; }
.plan__price { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); }
@media (min-width: 640px) { .plan__price { font-size: 2.25rem; } }
.plan--featured .plan__price { color: var(--ink-50); }
.plan__unit { font-size: 0.875rem; color: var(--ink-500); }
.plan--featured .plan__unit { color: var(--ink-300); }

.plan__cta { margin-top: 24px; }
.plan--featured .plan__cta { background: var(--accent); color: var(--ink-900); }
.plan--featured .plan__cta:hover { background: #fbbf24; box-shadow: var(--shadow-glow); }
.plan:not(.plan--featured) .plan__cta {
  border: 1px solid rgba(11, 10, 7, 0.15);
  background: var(--ink-50);
  color: var(--ink-900);
}
.plan:not(.plan--featured) .plan__cta:hover {
  border-color: rgba(11, 10, 7, 0.3);
  background: var(--ink-100);
}

.plan__divider { margin-block: 24px; height: 1px; background: rgba(11, 10, 7, 0.08); }
.plan--featured .plan__divider { background: rgba(250, 250, 249, 0.1); }

.plan__list { display: flex; flex-direction: column; gap: 12px; }
.plan__item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.875rem; line-height: 1.75; }
.plan__check {
  margin-top: 2px;
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(11, 10, 7, 0.05);
  color: var(--ink-900);
}
.plan--featured .plan__check { background: rgba(233, 169, 59, 0.2); color: var(--accent); }
.plan__check svg { width: 12px; height: 12px; }
.plan__item-text { color: var(--ink-700); }
.plan--featured .plan__item-text { color: var(--ink-100); }

.pricing__note { margin-top: 40px; text-align: center; font-size: 0.75rem; color: var(--ink-500); }

/* ---------- faq ---------- */

.faq__wrap { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .faq__wrap { grid-template-columns: repeat(12, 1fr); gap: 64px; }
}
/* grid-column is only set from the lg breakpoint up.
   Applying "span 12" on a single-column grid makes the browser create 12
   implicit auto columns sized to max-content, which overflows the
   container on phones. Auto placement on mobile keeps it one column. */
@media (min-width: 1024px) {
  .faq__aside { grid-column: span 4; }
  .faq__list-wrap { grid-column: span 8; }
}

.faq__link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
  transition: color 0.25s ease;
}
.faq__link:hover { color: var(--accent-deep); }
.faq__link svg { width: 14px; height: 14px; }

.faq__list {
  border: 1px solid rgba(11, 10, 7, 0.08);
  border-radius: 16px;
  background: var(--ink-50);
  padding-inline: 20px;
}
@media (min-width: 640px) { .faq__list { padding-inline: 28px; } }
.faq__item { border-bottom: 1px solid rgba(11, 10, 7, 0.08); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
  transition: color 0.25s ease;
}
.faq__q::-webkit-details-marker { display: none; }
@media (min-width: 640px) {
  .faq__q { padding-block: 24px; font-size: 1rem; }
}
.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(11, 10, 7, 0.1);
  background: var(--ink-50);
  color: var(--ink-700);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.faq__icon svg { width: 14px; height: 14px; }
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--ink-900);
  color: var(--ink-50);
  border-color: var(--ink-900);
}
.faq__a { padding-bottom: 20px; font-size: 0.875rem; line-height: 1.9; color: var(--ink-600); }
@media (min-width: 640px) { .faq__a { padding-bottom: 24px; font-size: 1rem; } }

/* ---------- cta ---------- */

.cta__card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(11, 10, 7, 0.1);
  background: var(--ink-900);
  color: var(--ink-50);
  padding-inline: 24px;
  padding-block: 56px;
}
@media (min-width: 640px) { .cta__card { padding-inline: 48px; padding-block: 80px; } }
@media (min-width: 1024px) { .cta__card { padding-inline: 64px; } }
.cta__glow { position: absolute; inset: 0; z-index: 0; }
.cta__glow1 { position: absolute; inset: 0; background-image: radial-gradient(ellipse at top right, rgba(233, 169, 59, 0.2), transparent 60%); }
.cta__glow2 { position: absolute; inset: 0; background-image: radial-gradient(ellipse at bottom left, rgba(184, 106, 20, 0.18), transparent 60%); }
.cta__noise { position: absolute; inset: 0; background-image: var(--noise); opacity: 0.05; mix-blend-mode: overlay; }

.cta__body {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 40px;
}
@media (min-width: 1024px) {
  .cta__body { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.cta__title {
  margin-top: 16px;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
@media (min-width: 640px) { .cta__title { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .cta__title { font-size: 3rem; line-height: 1.1; } }
.cta__text { margin-top: 20px; font-size: 1rem; line-height: 1.75; color: var(--ink-300); text-wrap: pretty; }
@media (min-width: 640px) { .cta__text { font-size: 1.125rem; } }

.form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid rgba(250, 250, 249, 0.1);
  background: rgba(250, 250, 249, 0.05);
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 640px) { .form { padding: 24px; } }
.field { display: block; }
.field__label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--ink-300); }
.field__input {
  margin-top: 6px;
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(250, 250, 249, 0.15);
  background: rgba(250, 250, 249, 0.05);
  padding: 10px 14px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ink-50);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field__input::placeholder { color: var(--ink-400); }
.field__input:focus { border-color: var(--accent); background: rgba(250, 250, 249, 0.1); }
.form__msg {
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  padding: 8px 12px;
  text-align: center;
  font-size: 0.75rem;
  color: #6ee7b7;
}
.form__note { text-align: center; font-size: 10px; color: var(--ink-400); }

/* ---------- footer ---------- */

.footer {
  position: relative;
  border-top: 1px solid rgba(11, 10, 7, 0.08);
  background: var(--ink-50);
  padding-top: 64px;
  padding-bottom: 32px;
}
@media (min-width: 640px) { .footer { padding-top: 80px; } }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(5, 1fr); } }
.footer__brand { grid-column: span 2; }
.footer__desc { margin-top: 16px; max-width: 24rem; font-size: 0.875rem; line-height: 1.9; color: var(--ink-600); }
.footer__social { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.social {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(11, 10, 7, 0.1);
  color: var(--ink-700);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.social:hover { border-color: rgba(11, 10, 7, 0.3); color: var(--ink-900); }
.social svg { width: 16px; height: 16px; }
.footer__col-title { font-size: 0.875rem; font-weight: 600; color: var(--ink-900); }
.footer__list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.footer__list a { font-size: 0.875rem; color: var(--ink-600); transition: color 0.25s ease; }
.footer__list a:hover { color: var(--ink-900); }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(11, 10, 7, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--ink-500);
}
@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; margin-top: 64px; }
}
.footer__made { display: flex; align-items: center; gap: 6px; }
.footer__heart { width: 14px; height: 14px; color: #f43f5e; }

/* ---------- reveal animation ---------- */

[data-anim] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.21, 0.61, 0.35, 1),
    transform 0.7s cubic-bezier(0.21, 0.61, 0.35, 1);
}
[data-anim].is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1; transform: none; }
}
