/* 4Musti website — one stylesheet for every page. */
:root {
  /* sunset theme: violet -> pink -> orange, from the purple of the logo */
  --brand: #8b3dff;
  --brand-2: #ec4899;
  --brand-3: #ff7a1a;
  --brand-deep: #6a1fd6;
  --grad: linear-gradient(115deg, #7b2ff7 0%, #c43ad6 38%, #ff4f8b 68%, #ff8a1f 100%);
  --night: #0e0a1f;
  --ink: #140f22;
  --ink-2: #3a3450;
  --muted: #6a6380;
  --line: #ece7f5;
  --bg: #ffffff;
  --bg-soft: #faf7ff;
  --bg-tint: #f2ebff;
  --card: #ffffff;
  --ok: #127a3e;
  --danger: #c62245;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(30, 10, 50, .05), 0 12px 32px rgba(60, 20, 100, .08);
  --shadow-lg: 0 30px 70px rgba(80, 20, 130, .22);
  --wrap: 1160px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(40, 10, 70, .06); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 44px; height: 44px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { background: var(--bg-tint); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--brand-deep); background: var(--bg-tint); }
.nav-links a.btn { display: inline-flex; padding: 0 18px; color: #fff; }
.nav-links a.btn:hover { background: var(--grad); color: #fff; }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s, opacity .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: 0 20px 40px rgba(40, 10, 70, .1);
    display: none;
  }
  .menu-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; display: flex; min-height: 48px; }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(236, 72, 153, .35); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(236, 72, 153, .45); transform: translateY(-1px); }
.btn-primary[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #d7cbe6; background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #fbf6ff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 18px;
  border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; line-height: 1.15;
}
.store-btn:hover { background: #2a2235; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; opacity: .75; font-weight: 500; letter-spacing: .02em; }
.store-btn strong { display: block; font-size: 17px; }
.store-btn.soon { background: #fff; color: var(--ink); border: 1px solid var(--line); cursor: default; }

/* ------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--bg-tint); color: var(--brand-deep); font-weight: 700; font-size: 13px; letter-spacing: .02em; margin-bottom: 18px;
}
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: var(--night); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: -35% -12% auto auto; width: 820px; height: 820px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 79, 139, .38), rgba(123, 47, 247, .22) 50%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -240px; bottom: -300px; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 138, 31, .26), rgba(123, 47, 247, .14) 55%, transparent 72%); pointer-events: none;
}
.hero .lead { color: #d9d2ea !important; }
.hero .eyebrow { background: rgba(255, 255, 255, .1); color: #ffd3e6; border: 1px solid rgba(255, 255, 255, .14); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.hero .store-btn { background: #fff; color: var(--ink); }
.hero .store-btn:hover { background: #f4f0fb; }
.hero .hero-meta { color: #bdb4d4; }
.hero .step { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.hero .step span { color: #bdb4d4; }
.hero .float-chip { color: var(--ink); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); display: inline-block; }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 520px; }
.hero-visual .phone { position: absolute; }
.hero-visual .phone.main { z-index: 2; top: 0; }
.hero-visual .phone.back-l { z-index: 1; width: 220px; top: 70px; left: 4%; transform: rotate(-8deg); opacity: .95; }
.hero-visual .phone.back-r { z-index: 1; width: 220px; top: 70px; right: 4%; transform: rotate(8deg); opacity: .95; }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: 14px;
}
.float-chip .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.float-chip.c1 { left: 0; bottom: 120px; }
.float-chip.c2 { right: 0; top: 40px; }
@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-visual { min-height: 490px; }
}
@media (max-width: 560px) {
  .hero-visual { min-height: 480px; }
  .hero-visual .phone.back-l, .hero-visual .phone.back-r { display: none; }
  .float-chip.c1 { left: 4px; bottom: 60px; }
  .float-chip.c2 { right: 4px; top: 24px; }
}

/* ----------------------------------------------------------------- phone */
.phone {
  width: 270px; padding: 9px; border-radius: 40px; background: #0f0c14;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b2533;
}
/* the screen has the app screenshots' own shape (750 x 1334), so a
   screenshot shows whole, never cropped at the sides */
.phone .screen { position: relative; width: 100%; aspect-ratio: 750 / 1334; overflow: hidden; border-radius: 31px; background: #1c1724; }
.phone .screen > img { width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.phone .screen::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 54px; height: 14px; border-radius: 10px; background: #0f0c14; z-index: 2; }

/* ------------------------------------------------------------ logo strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; }
.stat strong { display: block; font-size: 28px; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e2d4f3; }
.feature .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-tint); color: var(--brand-deep); margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 4vw, 44px); }
.split .lead { color: var(--ink-2); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--grad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.split-visual { display: flex; justify-content: center; position: relative; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 40px; } .split-visual { order: -1; } }

/* ------------------------------------------------------------- gallery */
.gallery { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 20px 32px; scrollbar-width: thin; }
.gallery .phone { flex: none; width: 240px; scroll-snap-align: center; box-shadow: var(--shadow); }
@media (min-width: 1200px) { .gallery { justify-content: center; } }

/* --------------------------------------------------------------- ad band */
.ad-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px; color: #fff; background: var(--grad);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.ad-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.ad-band h2 { font-size: clamp(28px, 3.6vw, 42px); color: #fff; }
.ad-band p { opacity: .92; font-size: 18px; }
.ad-band .price-tag { position: relative; z-index: 1; padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.ad-band .price-tag strong { display: block; font-size: 44px; letter-spacing: -.03em; line-height: 1.1; }
.ad-band .price-tag span { opacity: .9; }
@media (max-width: 860px) { .ad-band { grid-template-columns: 1fr; padding: 40px 24px; border-radius: 24px; } }

/* -------------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; color: var(--brand-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* -------------------------------------------------------------- download */
.download { text-align: center; }
.download .store-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--night); color: #cfc8da; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer p { font-size: 15px; color: #a9a1b6; max-width: 320px; margin-top: 16px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #cfc8da; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2a2433; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; color: #8f879c; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- page hero/prose */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 40px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; right: -160px; top: -200px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 79, 139, .16), rgba(255, 138, 31, .08) 50%, transparent 72%); }
.page-hero h1 { position: relative; font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { position: relative; color: var(--muted); font-size: 18px; max-width: 680px; margin: 0; }
.prose-wrap { padding: 56px 0 96px; }
.prose { max-width: 780px; margin: 0 auto; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.prose h2, .prose h3 { color: var(--ink); margin: 1.8em 0 .6em; font-size: 22px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose p > strong:only-child { display: block; font-size: 20px; margin-top: 1.4em; }

/* ------------------------------------------------------------------ cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }
.info-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.info-card p, .info-card a { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0; }

/* ------------------------------------------------------------------ forms */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #ddd5e8; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(139, 61, 255, .18); }
.field .err, .err-text { color: var(--danger); font-size: 14px; margin-top: 6px; display: block; }
.alert { padding: 14px 18px; border-radius: 14px; font-weight: 600; margin-bottom: 20px; }
.alert-ok { background: #e8f6ee; color: var(--ok); border: 1px solid #bfe5cf; }
.alert-err { background: #fdecef; color: var(--danger); border: 1px solid #f6c7d1; }

/* ------------------------------------------------------- small phones */
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .nav { height: 64px; }
  .brand img { width: 38px; height: 38px; }
  .nav-links { top: 64px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 16.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .hero-actions .store-btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 10px 16px; }
  .section { padding: 56px 0; }
  .section-head h2, .split h2 { font-size: 28px; }
  .section-head p, .split .lead { font-size: 16px; }
  .feature { padding: 22px; }
  .ad-band { padding: 32px 18px; }
  .ad-band p { font-size: 16px; }
  .download .store-row { flex-direction: column; align-items: center; }
  .page-hero { padding: 40px 0 28px; }
  .prose { font-size: 16px; }
  .card { padding: 22px 18px; }
  .info-card p, .info-card a { font-size: 16px; overflow-wrap: anywhere; }
  .footer-bottom { flex-direction: column; }
}

/* ----------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
