/* Vibey website. Brand tokens mirror the app (src/theme.ts). One accent: plum ink. Radius rule: images 22px, buttons pill. */
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fff7f8;
  --surface: #ffffff;
  --surface-soft: #fcebf1;
  --ink: #522e40;
  --ink-soft: #7a5a69;
  --ink-muted: #8e7180;
  --line: #f1dce5;
  --on-ink: #fff7f8;
  --grad: linear-gradient(135deg, #ffe0c3 0%, #ffbfd2 45%, #ff99d6 100%);
  --shadow: 0 24px 60px -24px rgba(82, 46, 64, 0.35);
  --r-img: 22px;
  --page: min(1200px, 100% - 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1116;
    --surface: #26181f;
    --surface-soft: #2f1e27;
    --ink: #fbe8ef;
    --ink-soft: #d9bccb;
    --ink-muted: #b498a7;
    --line: #3a2631;
    --on-ink: #2a1720;
    --grad: linear-gradient(135deg, #5a3346 0%, #7a3a5c 50%, #a3497a 100%);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: var(--page); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; }
.brand img { width: 24px; height: 25px; }
@media (prefers-color-scheme: dark) { .brand img { filter: brightness(0) invert(0.93) sepia(0.2) saturate(3) hue-rotate(290deg); } }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--on-ink); }
.lang { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: var(--ink); color: var(--on-ink); text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 15px 26px; font-size: 16px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  box-shadow: 0 10px 24px -12px rgba(82, 46, 64, 0.6);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.small { padding: 10px 18px; font-size: 14px; box-shadow: none; }
.btn small { display: block; font-weight: 500; font-size: 11px; opacity: 0.8; line-height: 1.1; }
.btn .stack { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.045em; margin: 0 0 22px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #e8659f 0%, #c94f86 55%, #a9406f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.04em; }
@media (prefers-color-scheme: dark) { .hero h1 em { background: linear-gradient(135deg, #ffd3b0, #ff9fd2); -webkit-background-clip: text; background-clip: text; } }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 30ch; margin: 0 0 32px; }
.compare { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--surface-soft); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 12px rgba(0,0,0,0.25); }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; border-radius: 999px; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.compare .tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.88); color: #522e40; font-size: 13px; font-weight: 700; }
.compare .tag.l { left: 14px; } .compare .tag.r { right: 14px; }
.hero-visual { position: relative; }
.hero-visual .float { position: absolute; width: 38%; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 5px solid var(--surface); }
.hero-visual .float img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .f1 { left: -14%; bottom: -6%; transform: rotate(-7deg); }
.hero-visual .f2 { right: -8%; top: -5%; transform: rotate(6deg); width: 30%; }
@media (max-width: 900px) {
  .hero { padding: 20px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { width: min(420px, 82%); margin-inline: auto; }
  .hero-visual .f1 { left: -16%; } .hero-visual .f2 { right: -12%; }
}

/* Effects strip */
section { scroll-margin-top: 80px; }
.sec-head { margin: 0 0 28px; max-width: 640px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 12px; font-weight: 800; }
.sec-head p { margin: 0; color: var(--ink-soft); font-size: 18px; max-width: 52ch; }
.effects { padding: 64px 0 40px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 260px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(20px, calc((100% - 1200px) / 2)) 24px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip .ph { aspect-ratio: 4/5; border-radius: var(--r-img); overflow: hidden; background: var(--surface-soft); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.strip figure:hover img { transform: scale(1.04); }
.strip figcaption { font-weight: 700; margin-top: 10px; font-size: 16px; }

/* Templates masonry */
.templates { padding: 72px 0; }
.templates .band { background: var(--surface-soft); border-radius: 36px; padding: clamp(28px, 5vw, 64px); }
.masonry { columns: 3; column-gap: 16px; }
@media (max-width: 900px) { .masonry { columns: 2; column-gap: 10px; } .masonry figure { margin-bottom: 10px; } .masonry figcaption { font-size: 14px; padding: 28px 10px 10px; } }
.masonry figure { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: var(--r-img); overflow: hidden; }
.masonry img { width: 100%; height: auto; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff7f8; font-weight: 700; font-size: 17px; background: linear-gradient(transparent, rgba(30, 14, 22, 0.6)); }

/* How it works */
.how { padding: 56px 0 72px; }
.how .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.how li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.how .ic { width: 56px; height: 56px; border-radius: 999px; background: var(--grad); display: grid; place-items: center; color: #522e40; }
.how .ic .icon { width: 26px; height: 26px; }
.how h3 { margin: 4px 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.how li p { margin: 0; color: var(--ink-soft); }
.how .shot { border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; max-width: 440px; justify-self: end; width: 100%; }
.how .shot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .how .wrap { grid-template-columns: 1fr; } .how .shot { justify-self: center; } }

/* FAQ */
.faq { padding: 40px 0 72px; }
.faq .wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 65ch; }

/* Closing CTA */
.cta { padding: 24px 0 88px; }
.cta .box { position: relative; overflow: hidden; border-radius: 36px; background: var(--grad); padding: clamp(40px, 7vw, 88px) 24px; text-align: center; color: #522e40; }
.cta .box img.mark { width: 64px; height: auto; margin: 0 auto 22px; }
.cta h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.035em; line-height: 1.02; margin: 0 auto 14px; max-width: 16ch; }
.cta p { margin: 0 auto 28px; max-width: 42ch; font-size: 18px; color: #6a4456; }
.cta .btn { background: #522e40; color: #fff7f8; }
@media (prefers-color-scheme: dark) { .cta .box, .cta p { color: #fbe8ef; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: 32px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.02; margin: 12px 0 8px; }
.legal h1 + p { color: var(--ink-muted); margin-top: 0; }
.legal h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.legal h3 { font-size: 18px; margin: 28px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--ink); text-underline-offset: 3px; }

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .hero-anim > * { animation: up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-anim > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-anim > *:nth-child(3) { animation-delay: 0.16s; }
  @keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
.compare .tag.r { top: auto; bottom: 14px; }
