/* =========================================================
   TryOnAva — landing styles
   Palette taken from the logo: deep charcoal + slate teal + coral
   ========================================================= */

:root {
  --bg:        #08090b;
  --bg-2:      #0d0f12;
  --card:      rgba(255, 255, 255, 0.035);
  --card-2:    rgba(255, 255, 255, 0.06);
  --line:      rgba(255, 255, 255, 0.10);
  --text:      #f4f5f7;
  --muted:     #a3a8b0;
  --dim:       #b9bec7;
  --coral:     #f4917a;
  --coral-2:   #ffb59c;
  --slate:     #4a6672;

  --radius:    22px;
  --radius-sm: 14px;
  --maxw:      1180px;
  --pad:       clamp(20px, 5vw, 40px);
}

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

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(244, 145, 122, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(74, 102, 114, 0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.container > *, .soon__card > *, .hero__grid > * { min-width: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

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

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}
h1 .dim { color: var(--dim); }

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead { color: #d3d6dc; font-size: clamp(16px, 1.6vw, 19px); margin-top: 22px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.btn--light { background: #fff; color: #0a0b0d; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(244, 145, 122, 0.25); }
.btn--sm { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
  padding: 12px 22px 12px 14px;
}
.btn--ghost:hover { background: var(--card-2); }
.play {
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; padding-left: 2px;
}

/* store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.stores--tight { margin: 22px 0 0; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  transition: border-color .2s, transform .2s;
}
.store:hover { border-color: #fff; transform: translateY(-2px); }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 10px; color: #d7d9de; }
.store b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 11px; }
.brand { flex: none; }

.nav__links { display: flex; gap: 34px; font-size: 14px; color: #d3d6dc; }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--coral-2); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line);
  flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer;
}
.burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column;
  padding: 8px var(--pad) 22px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: #dfe2e7; }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 6vw, 70px) 0 clamp(24px, 4vw, 50px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 20px; }
.hero__copy { position: relative; z-index: 2; }

.hero__visual { position: relative; }
.hero__visual img {
  width: 100%;
  border-radius: 28px;
  /* плавное растворение краёв в фон */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 16%, #000 100%),
    linear-gradient(to bottom, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 16%, #000 100%),
    linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.hero__visual::after {
  content: ""; position: absolute; inset: 10% 8% -6% 8%;
  background: radial-gradient(closest-side, rgba(244,145,122,.22), transparent 70%);
  filter: blur(30px); z-index: -1;
}

/* ---------- features ---------- */
.features { padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature { text-align: center; padding: 6px 10px; }
.feature svg, .checklist svg, .faq summary svg {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.feature svg { width: 40px; height: 40px; margin: 0 auto 16px; color: #fff; }
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { font-size: 13.5px; color: var(--muted); max-width: 200px; margin: 0 auto; }

/* ---------- shoppers / vendors ---------- */
.duo { padding: clamp(28px, 4vw, 48px) 0; }
.duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  padding: clamp(24px, 3vw, 36px);
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: center;
}
.card__copy { position: relative; z-index: 2; max-width: 58%; }
.card h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.card__copy > p:not(.eyebrow) { color: #cfd3d9; font-size: 15px; }

.card__media { position: absolute; z-index: 1; pointer-events: none; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__media--right {
  right: 0; top: 0; bottom: 0; width: 56%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%);
  mask-image: linear-gradient(to right, transparent 0, #000 40%);
}
.card__media--vendors {
  right: 0; top: 0; bottom: 0; width: 42%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 45%),
    linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 45%),
    linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
  mask-composite: intersect;
}
.card--vendors .card__media--vendors img { object-position: 30% top; }

.checklist {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 11, 14, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 18px;
  display: inline-block;
  min-width: 230px;
}
.checklist li { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 14.5px; color: #eceef1; }
.checklist svg { width: 22px; height: 22px; flex: none; color: #fff; }

/* ---------- smarter ---------- */
.smarter { padding: clamp(36px, 6vw, 80px) 0; }
.smarter__grid { display: grid; grid-template-columns: 0.9fr 1.3fr; align-items: center; gap: 30px; }
.smarter__copy .btn { margin-top: 28px; }
.smarter__visual img {
  width: 100%; border-radius: 26px;
  -webkit-mask-image: radial-gradient(ellipse 88% 86% at 55% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 86% at 55% 50%, #000 62%, transparent 100%);
}

/* ---------- coming soon ---------- */
.soon { padding: clamp(16px, 3vw, 30px) 0 clamp(36px, 5vw, 60px); }
.soon__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(700px 400px at 100% 100%, rgba(244,145,122,.20), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
}
.soon__copy p { color: #cfd3d9; margin-top: 14px; max-width: 380px; }

.waitlist {
  display: flex; align-items: center; gap: 6px;
  max-width: 440px; margin-top: 26px;
  padding: 5px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.waitlist input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: #fff; font: inherit; font-size: 15px;
  padding: 12px 18px;
}
.waitlist input::placeholder { color: #8b9098; }
.waitlist:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(244,145,122,.15); }
.waitlist .btn { padding: 12px 22px; }

.soon__visual img {
  width: 100%; border-radius: 22px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%);
}

/* ---------- faq ---------- */
.faq { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 70px); }
.faq__inner { max-width: var(--maxw); }
.faq__list { max-width: 860px; }
.faq h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 26px; }

.faq__list { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  transition: background .2s, border-color .2s;
}
.faq details[open] { background: rgba(255,255,255,.055); border-color: rgba(244,145,122,.4); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; font-weight: 500; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: #e9ebee; }
.faq summary span { flex: 1; }
.faq .chev {
  width: 9px; height: 9px; flex: none;
  border-right: 2px solid #cfd3d9; border-bottom: 2px solid #cfd3d9;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s;
}
.faq details[open] .chev { transform: rotate(225deg) translateY(-2px); }
.faq details p { padding: 0 20px 20px 54px; color: #c4c8cf; font-size: 14.5px; max-width: 640px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,.06); padding: 34px 0 26px; background: rgba(0,0,0,.25); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand--footer { font-size: 18px; }
.brand--footer span { display: flex; flex-direction: column; line-height: 1.2; }
.brand--footer b { font-weight: 600; }
.brand--footer small { font-size: 12px; color: var(--muted); font-weight: 400; }

.footer__links { display: flex; gap: 28px; font-size: 13.5px; color: #cfd3d9; flex-wrap: wrap; }
.footer__links a:hover { color: var(--coral-2); }

.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: #e9ebee;
  border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--card-2); color: var(--coral-2); border-color: rgba(244,145,122,.5); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12.5px; color: var(--muted);
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* tablet */
@media (max-width: 1020px) {
  .nav__links { gap: 22px; }
  .duo__grid { grid-template-columns: 1fr; }
  .card { min-height: 380px; }
  .card__copy { max-width: 56%; }
  .card__media--right { width: 50%; }
  .card__media--vendors { width: 40%; }
}

/* phone + small tablet */
@media (max-width: 820px) {
  .nav__inner { height: 64px; }
  .nav__links { display: none; }
  .burger { display: flex; }

  /* hero: текст сверху, картинка снизу */
  .hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__visual img {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
    border-radius: 24px;
    max-height: 520px;
    object-fit: cover;
    object-position: 50% 18%;
  }

  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }

  .smarter__grid { grid-template-columns: 1fr; }
  .soon__card { grid-template-columns: 1fr; }
  .soon__visual img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  }

}

/* cards stack vertically only on phones */
@media (max-width: 640px) {
  .card { min-height: 0; padding-bottom: 0; }
  .card__copy { max-width: 100%; padding-bottom: 24px; }
  /* на телефоне фото уходит под текст и растворяется */
  .card__media--right,
  .card__media--vendors {
    position: relative; width: calc(100% + clamp(48px, 6vw, 72px));
    margin: 0 calc(clamp(24px, 3vw, 36px) * -1);
    height: 300px; right: auto; top: auto; bottom: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .card--shoppers .card__media--right img { object-position: 60% 20%; }
  .card--vendors .card__media--vendors img { object-position: 35% 0%; height: 100%; transform: scale(1.35); transform-origin: 40% 8%; }
  .card__media--right, .card__media--vendors { overflow: hidden; }
}

/* small phones */
@media (max-width: 480px) {
  .btn--sm { padding: 9px 14px; font-size: 13px; }
  .brand { font-size: 19px; gap: 9px; }
  .brand img { width: 36px; height: 36px; }
  .nav__inner { gap: 10px; }
  .nav__actions { gap: 8px; }
  .stores { gap: 10px; }
  .store { padding: 8px 12px; }
  .store b { font-size: 16px; }
  .hero__copy .btn { width: 100%; max-width: 320px; }
  .waitlist { padding: 4px; }
  .waitlist input { padding: 12px 12px; font-size: 14px; }
  .waitlist .btn { padding: 12px 16px; font-size: 14px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; }
  .faq details p { padding-left: 20px; }
}

/* very small phones (<= 360px) */
@media (max-width: 360px) {
  .nav__actions .btn { display: none; }      /* CTA дублируется в hero, освобождаем место */
  .store { padding: 8px 10px; gap: 8px; }
  .store b { font-size: 15px; }
  .stores { flex-direction: column; align-items: flex-start; }
  .waitlist { flex-direction: column; border-radius: 22px; padding: 8px; gap: 8px; }
  .waitlist input { width: 100%; text-align: center; }
  .waitlist .btn { width: 100%; }
  .soon__card { padding: 24px 18px; }
}
