/* RomanticaVibe landing — plain CSS, no build step */
:root {
  --vibe-blue: oklch(49% .21 25);
  --vibe-violet: oklch(55% .23 25);
  --vibe-pink: oklch(58% .24 27);
  --vibe-coral: oklch(64% .23 29);
  --primary: oklch(52% .23 27);
  --ink: oklch(20% .012 25);
  --ink-soft: oklch(44% .015 25);
  --muted: oklch(50% .014 25);
  --bg: oklch(99.5% .002 25);
  --surface: oklch(100% 0 0);
  --tint: oklch(97% .012 25);
  --border: oklch(91% .015 25);
  --star: oklch(85.2% .199 91.936);
  --gradient-vibe: linear-gradient(100deg, var(--vibe-blue), var(--vibe-violet) 35%, var(--vibe-pink) 70%, var(--vibe-coral));
  --shadow-cta: 0 12px 28px -12px color-mix(in oklab, var(--primary) 48%, transparent);
  --shadow-card: 0 10px 30px -18px color-mix(in oklab, var(--ink) 35%, transparent);
  --radius: 22px;
  --font: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
section { padding: 72px 0; }

.grad { background: var(--gradient-vibe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-align: center; margin-bottom: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--surface); background: var(--gradient-vibe); padding: 18px 44px; border-radius: 999px; box-shadow: var(--shadow-cta); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px color-mix(in oklab, var(--vibe-pink) 70%, transparent); }
.btn svg { width: 22px; height: 22px; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--surface) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 0; font-weight: 700; font-size: 19px; }
.logo-mark { margin-right: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-vibe); display: grid; place-items: center; }
.logo-mark svg { width: 16px; height: 16px; fill: var(--surface); }
.header .btn { font-size: 15px; padding: 10px 22px; }

/* Hero */
.hero { position: relative; padding: 64px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: 0; line-height: 1.08; max-width: 12ch; }
.brand-logo { width: 88px; height: 64px; object-fit: contain; margin-bottom: 20px; }
.hero h1 > span { display: block; padding-bottom: .15em; margin-bottom: -.15em; }
.hero h1 .heart { width: .8em; height: .8em; flex: none; }
.hero .lead { font-size: 21px; color: var(--ink-soft); margin: 22px 0 18px; max-width: 30ch; }
.checks { list-style: none; display: grid; gap: 8px; margin-bottom: 32px; font-size: 18px; color: var(--ink-soft); }

.collage { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 12px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-card); }
.collage .big { grid-column: span 2; grid-row: span 2; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 16px; text-align: center; box-shadow: var(--shadow-card); }
.stat b { display: block; font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: 18px; }

/* How it works */
.how { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; }
.how h3 { font-size: 34px; font-weight: 700; text-align: center; letter-spacing: -.02em; }
.how p.sub { text-align: center; color: var(--muted); font-size: 19px; margin-bottom: 26px; }
.panel { border-radius: 28px; padding: 24px; display: flex; gap: 24px; justify-content: center; }
.panel-soft { background: var(--tint); border: 1px solid var(--border); }
.panel-vibe { background: var(--gradient-vibe); box-shadow: var(--shadow-cta); position: relative; }
.panel img { width: 46%; max-width: 230px; border-radius: 16px; box-shadow: var(--shadow-card); }
.panel-vibe img { width: 80%; }
.float { position: absolute; font-size: 30px; animation: bob 3s ease-in-out infinite; }
.float.f1 { top: -14px; left: -10px; } .float.f2 { top: -14px; right: -10px; animation-delay: .6s; }
.float.f3 { bottom: -14px; left: 20px; animation-delay: 1.2s; } .float.f4 { bottom: -14px; right: -6px; animation-delay: 1.8s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }

/* Why */
.tg-icon { display: block; width: 80px; height: 80px; margin: 0 auto 20px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 26px; }
.feature .ico { margin-bottom: 16px; }
.feature .ico svg { display: block; width: 40px; height: 40px; fill: var(--primary); stroke: none; }
.feature h4 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* Profiles */
.profiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.profile { display: block; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s; }
.profile:hover { transform: translateY(-4px); }
.profile img { aspect-ratio: 205 / 224; width: 100%; object-fit: cover; }
.profile span { display: block; padding: 10px 12px; font-weight: 600; }
.profile-count { display: grid; place-content: center; text-align: center; background: var(--tint); border: 1px solid var(--border); border-radius: 18px; }
.profile-count b { font-size: 46px; font-weight: 800; line-height: 1; }
.profile-count strong { letter-spacing: .12em; font-size: 14px; margin-top: 10px; }
.profile-count small { color: var(--muted); }

/* Reviews */
.stories { max-width: 1040px; margin-inline: auto; }
.couple-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); align-items: center; gap: 36px; min-height: 320px; }
.couple-story[hidden], .story-controls[hidden] { display: none; }
.story-person { min-width: 0; text-align: center; }
.story-person img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 5px solid var(--surface); border-radius: 8px; box-shadow: var(--shadow-card); }
.story-man img { transform: rotate(-5deg); }
.story-woman img { transform: rotate(5deg); }
.story-person figcaption { color: var(--ink-soft); font-size: 17px; margin-top: 18px; }
.story-copy { text-align: center; }
.story-quote { display: block; height: 66px; font-size: 88px; line-height: 1; color: var(--primary); }
.story-copy p { font-size: 24px; line-height: 1.5; }
.story-copy cite { display: block; margin-top: 24px; font-size: 16px; font-style: normal; color: var(--muted); }
.story-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; position: relative; }
.story-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); color: var(--ink); background: var(--surface); cursor: pointer; }
.story-arrow:hover { border-color: var(--primary); color: var(--primary); }
.story-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story-dots { display: flex; gap: 4px; }
.story-dot { display: grid; place-items: center; width: 28px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.story-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.story-dot[aria-pressed="true"]::after { background: var(--primary); }
.story-arrow:focus-visible, .story-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.story-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 900px) {
  .couple-story { gap: 24px; }
  .story-copy p { font-size: 20px; }
}
@media (max-width: 640px) {
  .couple-story { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; min-height: 440px; align-content: start; }
  .story-person { width: min(100%, 150px); justify-self: center; }
  .story-man { grid-column: 1; grid-row: 1; }
  .story-woman { grid-column: 2; grid-row: 1; }
  .story-copy { grid-column: 1 / -1; grid-row: 2; }
  .story-copy p { font-size: 20px; }
  .story-quote { height: 46px; font-size: 64px; }
  .story-copy cite { margin-top: 16px; }
  .story-controls { margin-top: 20px; }
}
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 16px; }
.stars { color: var(--star); font-size: 20px; letter-spacing: 2px; }
.review q { font-style: italic; color: var(--ink-soft); flex: 1; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.who img, .who .ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.who .ava { background: var(--gradient-vibe); color: var(--surface); display: grid; place-items: center; }

/* Final CTA */
.final { text-align: center; }
.final .h2 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0; text-align: center; color: var(--muted); font-size: 15px; }
.footer nav { display: flex; gap: 24px; justify-content: center; margin-bottom: 14px; }
.footer nav a:hover { color: var(--primary); }

/* Mobile sticky CTA */
.sticky-cta { display: none; }

@media (max-width: 900px) {
  section { padding: 52px 0; }
  .hero .container, .how { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero h1 { font-size: 44px; margin-inline: auto; max-width: 18ch; }
  .brand-logo { margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .checks { justify-items: center; }
  .collage { grid-auto-rows: 110px; }
  .features { grid-template-columns: 1fr 1fr; }
  .profiles { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .header .btn { display: none; }
}
@media (max-width: 560px) {
  .stats { gap: 10px; }
  .stat { padding: 18px 6px; }
  .stat span { font-size: 14px; }
  .stat b { font-size: 28px; white-space: nowrap; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 18px; }
  .features, .reviews { grid-template-columns: 1fr; }
  .profiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .panel { padding: 16px; gap: 12px; }
  .sticky-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; }
  .sticky-cta .btn { width: 100%; }
  body { padding-bottom: 90px; }
}

/* Matched couple: outward tilts with the shared logo between portraits */
.match-couple { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 24px; width: 100%; max-width: 580px; margin-inline: auto; padding: 24px 18px; }
.match-person { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-card); border: 5px solid var(--surface); }
.match-man { transform: rotate(-7deg); }
.match-woman { transform: rotate(7deg); }
.couple-match { position: absolute; z-index: 1; left: 50%; top: 56%; transform: translate(-50%, -50%); width: 100px; height: 72px; object-fit: contain; filter: drop-shadow(0 3px 2px var(--surface)); }
@media (max-width: 900px) {
  .hero { padding: 28px 0 32px; }
  .hero .container { gap: 18px; }
  .hero-copy { display: contents; }
  .hero h1 { grid-row: 1; }
  .hero .lead { grid-row: 2; max-width: 40ch; margin: 0 auto; }
  .match-couple { grid-row: 3; max-width: 450px; }
  .hero .cta { grid-row: 4; justify-self: center; }
}
@media (max-width: 560px) {
  .hero { padding: 24px 0; }
  .hero .container { gap: 12px; width: min(1120px, 100% - 32px); }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
  .match-couple { gap: 16px; max-width: 350px; padding: 20px 12px; }
  .match-person { aspect-ratio: 4 / 5; border-width: 3px; }
  .couple-match { width: 80px; height: 58px; }
  .hero .cta { padding: 14px 32px; }
}

/* Potential matches mosaic banner */
.mosaic { display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 110px; grid-auto-flow: dense; gap: 10px; border-radius: 28px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.mosaic .b { grid-column: span 2; grid-row: span 2; }
.mosaic .t { grid-row: span 2; }
.mosaic .w { grid-column: span 2; }
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 90px; } }
@media (max-width: 560px) { .mosaic { grid-auto-rows: 72px; gap: 6px; } }
.mosaic .p17 { grid-area: 3 / 6 / 4 / 8; }
.mosaic .p18 { grid-area: 4 / 6 / 5 / 8; }
.mosaic .p19 { grid-area: 3 / 8 / 5 / 9; }
@media (max-width: 900px) { .mosaic .p17, .mosaic .p18 { grid-area: auto; grid-column: span 2; } .mosaic .p19 { grid-area: auto; grid-row: span 2; } }
.mosaic img { object-position: center 20%; }
.pair { display: flex; flex: none; }
.pair img + img { margin-left: -12px; border: 2px solid var(--surface); }
.pair img:first-child { border: 2px solid var(--surface); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .near, .float { animation: none; }
  .btn, .profile { transition: none; }
}

/* Illustrated steps: unframed rows, with self-contained portrait and chat visuals. */
:root {
  --positive: oklch(47% .15 153);
  --positive-tint: oklch(96% .035 153);
  --chat-accent: oklch(49% .13 238);
  --chat-bg: oklch(83% .065 137);
  --chat-outgoing: oklch(97% .048 125);
  --chat-doodle: oklch(63% .065 140);
  --chat-toolbar: oklch(97% .012 130);
  --shadow-step: 0 16px 36px -20px color-mix(in oklab, var(--ink) 35%, transparent);
}
.dating-steps { padding: 40px 0 56px; }
.dating-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 64px; padding: 64px 0; }
.dating-step:first-child { grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); gap: 40px; }
.dating-step + .dating-step { border-top: 1px solid var(--border); }
.step-copy { min-width: 0; }
.step-copy h2 { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: 0; max-width: 18ch; }
.rating-scene { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 24px 0; align-items: center; min-width: 0; }
.rated-photo { position: relative; background: var(--surface); padding: 5px; border-radius: 8px; box-shadow: var(--shadow-step); }
.rated-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 5px; }
.rating-mark { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%) rotate(-10deg); display: flex; align-items: center; justify-content: center; gap: 5px; border: 2px solid currentColor; border-radius: 4px; font-size: 23px; font-weight: 800; padding: 2px 8px; white-space: nowrap; }
.rating-mark span { font-size: 13px; }
.is-like { color: var(--positive); background: var(--positive-tint); }
.is-dislike { color: var(--primary); background: var(--tint); transform: translateX(-50%) rotate(10deg); }
.step-chat .step-copy { grid-column: 2; grid-row: 1; }
.step-chat .chat-scene { grid-column: 1; grid-row: 1; }
.chat-scene { min-width: 0; padding: 20px; }
.telegram-chat { width: min(100%, 380px); margin: auto; border-radius: 8px; overflow: hidden; background: var(--chat-toolbar); border: 1px solid var(--border); box-shadow: var(--shadow-step); font-family: Arial, sans-serif; }
.chat-header { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 14px 12px; }
.chat-call { width: 20px; height: 20px; color: var(--ink); }
.chat-back { font-size: 30px; color: var(--chat-accent); line-height: 1; }
.chat-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-header strong { display: block; font-size: 15px; }
.chat-header div > span { display: block; color: var(--chat-accent); font-size: 12px; margin-top: 3px; }
.chat-more { color: var(--ink); font-size: 24px; }
.chat-messages { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; background: var(--chat-bg); padding: 16px 12px 24px; }
.chat-wallpaper { position: absolute; inset: 0; z-index: -1; color: var(--chat-doodle); opacity: .55; }
.chat-date { align-self: center; color: var(--ink-soft); font-size: 11px; margin-bottom: 4px; }
.chat-bubble { align-self: flex-start; max-width: 87%; padding: 10px 12px 6px; border-radius: 8px 8px 8px 2px; background: var(--surface); font-size: 13px; line-height: 1.45; }
.chat-bubble.outgoing { align-self: flex-end; background: var(--chat-outgoing); border-radius: 8px 8px 2px 8px; }
.chat-bubble small { display: block; text-align: right; color: var(--muted); font-size: 10px; margin-top: 4px; }
.chat-bubble small span { color: var(--positive); }
.chat-compose { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; color: var(--muted); font-size: 14px; }
.chat-input { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.chat-input > span { font-size: 22px; }
.chat-compose svg { width: 22px; height: 22px; color: var(--ink-soft); }
.step-couple { grid-row: auto; max-width: 470px; }
.step-couple .match-person { aspect-ratio: 4 / 5; object-position: center; }
@media (max-width: 900px) {
  .dating-step { gap: 32px; }
  .step-copy h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .dating-steps { padding: 12px 0 24px; }
  .dating-steps .container { width: min(1120px, 100% - 40px); }
  .dating-step { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 38px 0; }
  .dating-step:first-child { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .step-copy { text-align: center; }
  .step-copy h2 { font-size: 29px; max-width: 20ch; margin-inline: auto; }
  .step-chat .step-copy, .step-chat .chat-scene { grid-column: 1; grid-row: auto; }
  .rating-scene { width: calc(100% + 16px); max-width: none; margin-inline: -8px; padding: 12px 0 16px; gap: 6px; }
  .rated-photo { padding: 3px; }
  .rating-mark { bottom: 14px; padding: 1px 5px; gap: 3px; font-size: 19px; }
  .rating-mark span { font-size: 10px; }
  .chat-scene { padding: 12px; }
  .telegram-chat { max-width: 330px; }
  .step-couple { width: 100%; max-width: 370px; }
}
