/* ─────────────────────────────────────────────────────────────────────────
   Vaqto — landing page
   Brand: royal purple + gold (the official Vaqto identity — "Vaqtingni qadrla").
   Deep purple carries the brand moments (hero, CTA, footer); gold is the accent
   for CTAs, the logo, badges and the selected slot, always with dark text on it.
   Times & prices in monospace because in a booking product, time is data.
   Self-contained CSS — no build step, no webfonts.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light dark;

  --brand-purple: #3d1e6e;  /* fixed deep royal purple for brand bands (theme-independent) */
  --brand-purple-2: #6c2fb2;

  --ground:      #ffffff;
  --surface:     #ffffff;
  --surface-2:   #f7f5fc;   /* barely-there tint for the occasional set-apart section */
  --ink:         #241344;
  --muted:       #6b5f80;
  --primary:     #6c2fb2;
  --primary-deep:#3d1e6e;
  --primary-050: #ece2fa;
  --accent:      #f5b301;   /* brand gold — used as a fill, never as text on light */
  --accent-050:  #fdf1cf;
  --accent-ink:  #2a1550;   /* deep-purple text that sits ON a gold fill */
  --accent-strong:#a97e00;  /* legible gold for small marks on light */
  --line:        #e7e0f2;
  --line-strong: #d5c9ea;

  --shadow-sm: 0 1px 2px rgba(15,42,43,.06), 0 2px 8px rgba(15,42,43,.05);
  --shadow:    0 12px 28px -14px rgba(15,42,43,.28);
  --shadow-lg: 0 34px 60px -28px rgba(10,90,98,.42);

  --radius:    18px;
  --radius-sm: 12px;
  --wrap:      1120px;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-hero: clamp(2.35rem, 5.2vw, 4rem);
  --fs-h2:   clamp(1.7rem, 3.3vw, 2.5rem);
  --fs-h3:   1.18rem;
  --fs-lead: clamp(1.05rem, 1.5vw, 1.22rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:      #201042;
    --surface:     #2a1553;
    --surface-2:   #331a61;
    --ink:         #f0e9fb;
    --muted:       #b4a4d3;
    --primary:     #b585f0;
    --primary-deep:#8b5cf6;
    --primary-050: #3a2168;
    --accent:      #f7be1f;
    --accent-050:  #3a2c08;
    --accent-ink:  #241046;
    --accent-strong:#f7be1f;
    --line:        #3c2470;
    --line-strong: #4d3085;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 14px 30px -14px rgba(0,0,0,.6);
    --shadow-lg: 0 34px 60px -28px rgba(0,0,0,.7);
  }
}
/* Explicit toggle wins over the OS media query, both directions. */
:root[data-theme="light"] {
  --ground:#ffffff; --surface:#fff; --surface-2:#f7f5fc; --ink:#241344; --muted:#6b5f80;
  --primary:#6c2fb2; --primary-deep:#3d1e6e; --primary-050:#ece2fa; --accent:#f5b301;
  --accent-050:#fdf1cf; --accent-ink:#2a1550; --accent-strong:#a97e00; --line:#eae4f3; --line-strong:#dcd3ec;
}
:root[data-theme="dark"] {
  --ground:#201042; --surface:#2a1553; --surface-2:#331a61; --ink:#f0e9fb; --muted:#b4a4d3;
  --primary:#b585f0; --primary-deep:#8b5cf6; --primary-050:#3a2168; --accent:#f7be1f;
  --accent-050:#3a2c08; --accent-ink:#241046; --accent-strong:#f7be1f; --line:#3c2470; --line-strong:#4d3085;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ground);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabnum { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.block { padding: 92px 0; }

/* Eyebrow with a small tile-tick — a structural nod to the schedule grid */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.head h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; text-wrap: balance; }
.head p { font-size: var(--fs-lead); color: var(--muted); margin: 0; text-wrap: balance; }
.head .eyebrow { justify-content: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 650; font-size: .96rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn-accent:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-white { background: #fff; color: var(--primary-deep); }
.btn-white:hover { transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-white:hover { background: rgba(255,255,255,.14); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ── Header ──────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
/* Logo lockup as a dark-purple badge, so white "Vaqt" reads on the white page. */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.18rem;
  letter-spacing: -.02em; background: var(--brand-purple); color: #fff;
  padding: 8px 15px 8px 11px; border-radius: 12px; }
.brand .brand-ic { width: 26px; height: 26px; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand .wordmark { color: #fff; }                        /* "Vaqt" — white */
.brand em { font-style: normal; color: var(--accent); }  /* "O" — gold */
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: .95rem; color: var(--muted); font-weight: 550; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
/* Language toggle — a compact segmented control (UZ | RU) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-btn { border: 0; background: transparent; font: inherit; font-size: .8rem; font-weight: 700;
  letter-spacing: .02em; color: var(--muted); padding: 5px 9px; border-radius: 999px; cursor: pointer; line-height: 1; }
.lang-btn.on { background: var(--primary); color: #fff; }
.lang-btn:not(.on):hover { color: var(--primary); }

.hide-sm { }   /* shown by default; hidden on small screens (see media queries) */

/* ── Hero (white, with a restrained accent glow) ─────────── */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .85;
  background:
    radial-gradient(720px 380px at 92% -22%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 62%),
    radial-gradient(460px 300px at -4% -12%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 60px; align-items: center; padding: 74px 0 84px; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.03; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
.hero h1 .u { color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 .u::after { content:""; position:absolute; left:-.02em; right:-.02em; bottom:.05em; height:.18em; background: var(--accent); opacity:.45; border-radius: 3px; }
.hero .lead { font-size: var(--fs-lead); color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-note { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--muted); }
.hero-note .icon { width: 17px; height: 17px; color: var(--primary); }

/* Signature: the hero IS a live appointment schedule */
.sched {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow-lg); padding: 20px 20px 22px; max-width: 400px; margin-left: auto;
}
.sched-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sched-top .ava { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-050); color: var(--primary);
  display: grid; place-items: center; }
.sched-top .ava .icon { width: 24px; height: 24px; }
.sched-top h4 { margin: 0; font-size: 1rem; }
.sched-top span { font-size: .82rem; color: var(--muted); }
.sched-top .rate { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 4px; }
.sched-day { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 2px 10px; }
.rows { display: grid; gap: 7px; }
.row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; }
.row .t { font-family: var(--mono); font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .bar { height: 34px; border-radius: 9px; border: 1px dashed var(--line-strong); display: flex; align-items: center; padding: 0 12px; font-size: .82rem; color: var(--muted); }
.row.busy .bar { border: 1px solid transparent; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.row.pick .bar { border: 1px solid var(--primary); background: var(--primary); color: #fff; font-weight: 650; justify-content: space-between; }
.row.pick .bar .go { font-size: .74rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 3px 10px; border-radius: 999px; }
.sched-toast {
  position: absolute; right: -10px; bottom: -20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 11px 14px; display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600;
}
.sched-toast .tg { width: 30px; height: 30px; border-radius: 8px; background: #2aabee; color: #fff; display: grid; place-items: center; }
.sched-toast .tg .icon { width: 17px; height: 17px; stroke: #fff; }

/* ── Stats strip ─────────────────────────────────────────── */
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 20px; margin-top: -40px; }
.stat { text-align: center; padding: 4px 10px; }
.stat .n { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; color: var(--primary); }
.stat .l { font-size: .9rem; color: var(--muted); }
.stat + .stat { border-left: 1px solid var(--line); }

/* ── Steps ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-050); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: var(--fs-h3); }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
.step .num { position: absolute; top: 22px; right: 24px; font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--line-strong); }
.step .num::before { counter-increment: s; content: "0" counter(s); }

/* ── Feature grid ────────────────────────────────────────── */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--primary-050); color: var(--primary); }
.card.amber .ic { background: var(--accent-050); color: var(--accent-strong); }
.card h3 { margin: 0 0 8px; font-size: var(--fs-h3); display: flex; align-items: center; gap: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.soon { font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-050); padding: 3px 8px; border-radius: 999px; }

/* ── Niche chips ─────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: .95rem; }
.chip .ic { color: var(--primary); display: grid; place-items: center; }
.chip.muted { color: var(--muted); }
.chip.muted .ic { color: var(--muted); }
.chip .tag { font-size: .66rem; font-weight: 700; text-transform: uppercase; color: var(--accent-strong); }

/* ── Pricing ─────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; }
.plan.hot { border: 1.5px solid var(--primary); box-shadow: var(--shadow-lg); position: relative; }
.plan.hot .badge { position: absolute; top: -12px; left: 26px; background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 13px; border-radius: 999px; }
.plan h3 { margin: 0 0 4px; font-size: 1.25rem; }
.plan .sub { color: var(--muted); font-size: .9rem; min-height: 38px; }
.plan .price { font-family: var(--mono); font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin: 10px 0 2px; }
.plan .price small { font-family: var(--font); font-size: .92rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: .95rem; color: var(--muted); align-items: flex-start; }
.plan li .icon { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; justify-content: center; }
.price-note { text-align: center; color: var(--muted); font-size: .86rem; margin: 24px 0 0; }

/* ── Testimonial strip ───────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.quote .stars { color: var(--accent-strong); font-size: .95rem; letter-spacing: 2px; margin-bottom: 12px; }
.quote p { margin: 0 0 18px; font-size: .98rem; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 40px; height: 40px; border-radius: 999px; background: var(--primary-050); color: var(--primary);
  display: grid; place-items: center; font-weight: 800; }
.quote .who b { display: block; font-size: .9rem; }
.quote .who span { font-size: .82rem; color: var(--muted); }

/* ── CTA band ────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; border-radius: 24px; text-align: center; padding: 62px 24px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; box-shadow: var(--shadow-lg); }
.cta::after { content: ""; position: absolute; inset: 0; opacity: .12;
  background: radial-gradient(360px 200px at 82% 0%, #fff, transparent 65%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: var(--fs-h2); margin: 0 0 12px; letter-spacing: -.025em; text-wrap: balance; }
.cta p { font-size: var(--fs-lead); opacity: .92; margin: 0 auto 28px; max-width: 520px; }
.cta-row { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); color: var(--muted); padding: 58px 0 30px; }
/* footer logo uses the shared .brand badge (dark pill, white "Vaqt", gold "O") */
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand p { color: var(--muted); font-size: .95rem; max-width: 300px; margin: 14px 0 0; }
.foot-tag { color: var(--accent-strong) !important; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin: 12px 0 0 !important; }
.foot-col h4 { color: var(--ink); font-size: .95rem; margin: 0 0 14px; }
.foot-col a { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.foot-col a:hover { color: var(--primary); }
.foot-bot { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }

/* ── Motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .reveal.d1 { animation-delay: .06s; }
  .reveal.d2 { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 54px 0 68px; }
  .hero-visual { order: -1; }
  .sched { margin: 0 auto; }
  .steps, .grid3, .plans, .quotes { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .block { padding: 64px 0; }
  .stats { grid-template-columns: 1fr; margin-top: -28px; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }             /* hide the "Kirish" link; primary CTA stays */
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav { height: 60px; }
  .brand { font-size: 1.02rem; gap: 7px; padding: 7px 12px 7px 9px; }
  .brand .brand-ic { width: 22px; height: 22px; }
  .nav-actions { gap: 8px; }
  .header .btn { padding: 9px 15px; font-size: .88rem; }   /* smaller header CTA on phones */

  /* Hero — tighter top, smaller headline, closer card↔text rhythm */
  .hero-inner { padding: 24px 0 38px; gap: 30px; }
  .hero h1 { font-size: 2.1rem; line-height: 1.09; margin-bottom: 16px; }
  .hero .lead { font-size: 1.02rem; margin-bottom: 22px; }
  .hero-cta { gap: 10px; margin-bottom: 16px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }  /* full-width, easy-tap CTAs */

  /* Stats — clear gap on mobile instead of the desktop overlap */
  .stats { margin-top: 16px; padding: 8px 14px; }
  .stat { padding: 17px 8px; }

  /* Sections — comfortable, consistent vertical rhythm */
  .block { padding: 54px 0; }
  .head { margin-bottom: 30px; }
  .head h2 { margin-bottom: 10px; }
  .grid3, .steps, .plans, .quotes { gap: 16px; }
  .card, .step, .plan { padding: 24px 20px; }
  .chips { gap: 10px; }

  .cta { padding: 46px 22px; border-radius: 20px; }
  .cta p { margin-bottom: 24px; }
  .cta-row { gap: 10px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 1.95rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .sched { padding: 16px; }
}
