/* avatarforai.com - one stylesheet for all pages.
   body.landing = home page, body.card-page = small "thank you / cancelled" pages, body.doc-page = privacy etc. */

:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #10131a;
  --muted: #5b6270;
  --line: rgb(16 19 26 / 0.09);
  --accent: #2563eb;
  --accent-text: #ffffff;
  --hero-bg: #1c2230;
  --hero-text: #f3f5f9;
  --hero-muted: #b4bccb;
  --radius: 16px;
  --shadow: 0 6px 28px rgb(16 19 26 / 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #14171f;
    --surface: #1d212b;
    --text: #eceff4;
    --muted: #a3abba;
    --line: rgb(255 255 255 / 0.09);
    --accent: #8ab4f8;
    --accent-text: #10131a;
    --hero-bg: #0f1218;
    --shadow: 0 6px 28px rgb(0 0 0 / 0.35);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgb(37 99 235 / 0.35);
}
.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ───────── Header ───────── */
.site-header {
  background: var(--hero-bg);
  color: var(--hero-text);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}
.site-nav a {
  color: var(--hero-muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--hero-text);
}

/* ───────── Hero ───────── */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding-block: 40px 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 19px;
  color: var(--hero-muted);
  margin: 0 0 28px;
}
/* Our rounded white "button" around the unmodified official badge (borderless version, made for white backgrounds). */
.cws-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cws-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}
.cws-badge img {
  width: 232px;
  height: auto;
}
/* Badge + "Try it now for free!" hint with an arrow pointing at it */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.cta-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffd166;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transform: rotate(-4deg);
}
.cta-arrow {
  width: 56px;
  height: 36px;
  flex-shrink: 0;
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: translateX(-6px);
  }
}
/* Narrow screens: hint goes above the badge, arrow points down at it */
@media (max-width: 560px) {
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-hint {
    order: -1;
    margin-left: 70px;
  }
  .cta-hint br {
    display: none;
  }
  .cta-arrow {
    width: 40px;
    height: 26px;
    transform: rotate(-70deg);
    animation-name: nudge-down;
  }
  @keyframes nudge-down {
    50% {
      transform: rotate(-70deg) translateX(-5px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-arrow {
    animation: none;
  }
}
.final-cta .wrap {
  text-align: center;
}
.final-cta .section-lead {
  margin-bottom: 28px;
}
.hero .note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--hero-muted);
}

/* Video-call frame (like the store screenshots) */
.call {
  position: relative;
  margin: 0;
  padding-bottom: 28px;
}
.call video {
  width: 100%;
  aspect-ratio: 1280 / 704;
  object-fit: cover;
  border-radius: 22px;
  background: #2a3142;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.45);
}
.call-status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(15 18 24 / 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.call-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.call-controls {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  padding: 14px 36px;
  border-radius: 999px;
  background: rgb(40 44 54 / 0.92);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}
.call-controls svg {
  width: 24px;
  height: 24px;
  fill: #f3f5f9;
}

/* ───────── Sections ───────── */
section {
  padding-block: 72px;
}
.section-title {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 19px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}
.feature-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
}

/* Avatars gallery */
.avatars {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.avatar {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.avatar video,
.avatar .placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.avatar .placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5a6a7a, #2f3a46);
  color: #fff;
  font-size: 34px;
}
.avatar figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-weight: 600;
}
.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(52 211 153 / 0.18);
  color: #0f9f6e;
}
.tag.soon {
  background: rgb(37 99 235 / 0.14);
  color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  .tag {
    color: #34d399;
  }
}

/* Pro teaser */
.pro {
  background: var(--hero-bg);
  color: var(--hero-text);
}
.pro .wrap {
  max-width: 760px;
  text-align: center;
}
.pro .section-lead {
  color: var(--hero-muted);
}
.pro-points {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}
.pro-points li::before {
  content: "✓ ";
  color: #34d399;
  font-weight: 700;
}
.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.notify input[type="email"] {
  flex: 1 1 260px;
  max-width: 360px;
  padding: 13px 16px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.06);
  color: var(--hero-text);
  font: inherit;
}
.notify input[type="email"]::placeholder {
  color: var(--hero-muted);
}
.notify .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.notify-consent {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--hero-muted);
}
.notify-consent a {
  color: inherit;
}
.notify-result {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-weight: 600;
}
.notify-result.ok {
  color: #34d399;
}
.notify-result.error {
  color: #f28b82;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 4px;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style-position: outside;
}
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ───────── Small "thank you / cancelled" pages ───────── */
body.card-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
body.card-page main {
  width: 100%;
  max-width: 520px;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
body.card-page .icon {
  font-size: 44px;
  line-height: 1;
}
body.card-page h1 {
  margin: 12px 0 8px;
  font-size: 24px;
}
body.card-page p {
  margin: 0 0 12px;
  color: var(--muted);
}
body.card-page footer {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ───────── Documents (privacy) ───────── */
body.doc-page main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}
body.doc-page h1 {
  font-size: 34px;
}
body.doc-page h2 {
  margin-top: 32px;
  font-size: 22px;
}
body.doc-page p,
body.doc-page li {
  color: var(--muted);
}

/* ───────── Phones ───────── */
@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .site-nav {
    display: none;
  }
  section {
    padding-block: 56px;
  }
  .call-controls {
    gap: 28px;
    padding: 12px 26px;
  }
}
