/* Minik Kalp — site styles. Palette mirrors the app (DesignSystem/Theme.swift). */
:root {
  --bg: #FFF8F3;
  --bg-2: #FCEDE8;
  --card: #FFFFFF;
  --ink: #2E201E;
  --ink-soft: #7B6662;
  --line: #EFE2DC;
  --rose: #E0705F;
  --rose-deep: #B94A3E;
  --plum: #2A0A1D;
  --plum-2: #4A1631;
  --gold: #F2B862;
  --gold-ink: #A8741F;
  --lavender: #9D8CF2;
  --sage: #3F7A52;
  --shadow: 0 30px 60px -30px rgba(122, 40, 30, .35);
  --radius: 28px;
  --maxw: 1160px;
  --display: "Fraunces", ui-serif, Georgia, serif;
  --text: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #160F10;
    --bg-2: #1E1416;
    --card: #241A1C;
    --ink: #F6EDE9;
    --ink-soft: #BCA9A4;
    --line: #3A2D2B;
    --rose: #EC8A7D;
    --rose-deep: #F09A8C;
    --gold-ink: #F2B862;
    --sage: #8FC79E;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { font: 800 12px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.01em; margin: 0; }
.muted { color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--ink); font: 650 21px/1 var(--display); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px rgba(120, 40, 40, .25); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; opacity: .8; }
.nav a:hover { opacity: 1; color: var(--rose-deep); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 700 15px/1 var(--text); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-rose { background: linear-gradient(135deg, #F2A07A, var(--rose) 50%, #C9567E); color: #fff; box-shadow: 0 12px 30px -10px rgba(224, 112, 95, .7); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn svg { width: 18px; height: 18px; }
.header-cta { padding: 11px 18px; font-size: 14px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .75;
}
.hero::before { width: 560px; height: 560px; left: -160px; top: -120px; background: radial-gradient(circle, #FFD3BF, transparent 70%); }
.hero::after { width: 620px; height: 620px; right: -200px; top: 60px; background: radial-gradient(circle, #F6C9D9, transparent 70%); }
@media (prefers-color-scheme: dark) {
  .hero::before { background: radial-gradient(circle, #5A1F1A, transparent 70%); }
  .hero::after { background: radial-gradient(circle, #4A1631, transparent 70%); }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1.02; margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--rose-deep); }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 520px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--sage); font-weight: 800; }

.badge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.badge-pill .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); }
.heart-beat { color: var(--rose); animation: beat 1.2s ease-in-out infinite; display: inline-block; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.25); } 24% { transform: scale(1); } 36% { transform: scale(1.18); } 48% { transform: scale(1); } }

/* Phone mockups */
.phones { position: relative; height: 640px; }
.phone {
  position: absolute; width: 290px; aspect-ratio: 1206 / 2622;
  border-radius: 46px; padding: 9px; background: #121012;
  box-shadow: 0 0 0 1.5px #3a3236, var(--shadow), 0 60px 80px -40px rgba(80, 20, 30, .45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phones .p1 { left: 50%; top: 0; transform: translateX(-30%) rotate(4deg); z-index: 2; }
.phones .p2 { left: 50%; top: 70px; transform: translateX(-102%) rotate(-7deg); z-index: 1; filter: saturate(.95); }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 18px; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(80, 30, 30, .35);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 12px; }
.chip .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; }
.chip.c1 { right: 0; top: 120px; }
.chip.c2 { left: 0; bottom: 120px; animation-delay: -2s; }
.chip.c3 { right: 20px; bottom: 40px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust strip ---------- */
.strip { padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.strip .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.strip div { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.strip i { font-style: normal; font-size: 20px; }

/* ---------- Sections ---------- */
section.block { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; margin: 14px 0 16px; }
.section-head p { font-size: 19px; color: var(--ink-soft); margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-bottom: 130px; }
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-media { order: 2; }
.feature h3 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin: 14px 0 16px; }
.feature p { font-size: 18px; color: var(--ink-soft); margin: 0 0 22px; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.feature li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0705F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.feature-media { position: relative; display: flex; justify-content: center; gap: 22px; }
.feature-media::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 44px; background: linear-gradient(160deg, var(--bg-2), transparent); z-index: -1; }
.feature-media .phone { position: relative; width: 270px; }
.feature-media .phone.small { width: 230px; margin-top: 70px; }

/* Letter card (voice letters) */
.voice { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.voice .play { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #F2A07A, #C9567E); display: grid; place-items: center; color: #fff; }
.voice .bars { display: flex; gap: 3px; align-items: center; height: 20px; }
.voice .bars span { width: 3px; border-radius: 3px; background: var(--rose); animation: bar 1s ease-in-out infinite; }
.voice .bars span:nth-child(2) { animation-delay: -.2s; } .voice .bars span:nth-child(3) { animation-delay: -.4s; } .voice .bars span:nth-child(4) { animation-delay: -.6s; } .voice .bars span:nth-child(5) { animation-delay: -.8s; }
@keyframes bar { 0%, 100% { height: 6px; } 50% { height: 20px; } }

/* Grid of small features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.tile h4 { font: 700 18px/1.3 var(--text); margin: 0 0 6px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.bg-rose { background: #FCE3DD; } .bg-lav { background: #ECE8FD; } .bg-sage { background: #E3F1E7; } .bg-sky { background: #E2EEF9; } .bg-gold { background: #FDF0DC; } .bg-pink { background: #FBE3EC; }
@media (prefers-color-scheme: dark) {
  .bg-rose { background: #3B2427; } .bg-lav { background: #25213A; } .bg-sage { background: #1C2A21; } .bg-sky { background: #1A2532; } .bg-gold { background: #2E2517; } .bg-pink { background: #3A1E2A; }
}

/* Gallery */
.gallery { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 22px 40px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .phone { position: relative; flex: none; width: 250px; scroll-snap-align: center; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; }
.gallery figcaption { text-align: center; margin-top: 16px; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.gallery-wrap { position: relative; }
.gallery-wrap::before, .gallery-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.gallery-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.gallery-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

/* Dark band (night) */
.night { background: radial-gradient(1200px 600px at 70% 0%, #5A1F3A, transparent 60%), linear-gradient(160deg, #2A0A1D, #12060C); color: #F6EDE9; border-radius: 44px; margin: 0 22px; padding: 90px 0; position: relative; overflow: hidden; }
.night .muted, .night p { color: rgba(246, 237, 233, .72); }
.night .eyebrow { color: var(--gold); }
.night .feature li::before { background-color: rgba(255, 255, 255, .08); }
.night .heart-art { position: absolute; right: -60px; top: -40px; width: 380px; opacity: .25; pointer-events: none; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 940px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan h4 { font: 700 17px/1.2 var(--text); margin: 0; }
.plan .price { font: 650 36px/1.1 var(--display); margin: 10px 0 2px; }
.plan .per { color: var(--ink-soft); font-size: 14px; }
.plan .desc { color: var(--ink-soft); font-size: 15px; margin-top: 12px; }
.plan.featured { background: linear-gradient(165deg, #2A0A1D, #4A1631); color: #fff; border-color: transparent; box-shadow: 0 30px 60px -28px rgba(74, 22, 49, .8); transform: translateY(-8px); }
.plan.featured .per, .plan.featured .desc { color: rgba(255, 255, 255, .75); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: linear-gradient(135deg, #FFE3A3, #F2B862); color: #2A0A1D; font: 800 11px/1 var(--text); letter-spacing: .1em; padding: 7px 10px; border-radius: 999px; }
.pricing-note { text-align: center; margin-top: 26px; color: var(--ink-soft); font-size: 15px; }
.free-row { margin: 0 auto 30px; max-width: 760px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: 20px; padding: 18px 22px; font-weight: 600; }

/* Privacy */
.privacy-card { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 36px; padding: 50px; }
.privacy-card .shield { width: 120px; height: 120px; border-radius: 34px; display: grid; place-items: center; font-size: 56px; background: linear-gradient(160deg, #E3F1E7, #ECE8FD); }
@media (prefers-color-scheme: dark) { .privacy-card .shield { background: linear-gradient(160deg, #1C2A21, #25213A); } }
.privacy-card h3 { font-size: 34px; margin-bottom: 12px; }
.privacy-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.privacy-card li { font-weight: 600; }
.privacy-card li::before { content: "✓  "; color: var(--sage); font-weight: 800; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--rose); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* CTA */
.cta { text-align: center; padding: 100px 22px; }
.cta img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 26px; box-shadow: 0 20px 40px -16px rgba(120, 40, 40, .5); }
.cta h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin-bottom: 18px; }
.cta p { color: var(--ink-soft); font-size: 19px; margin: 0 0 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h5 { font: 800 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--rose-deep); }
.site-footer .fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 64px 0 20px; text-align: center; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 54px); margin: 12px 0 10px; }
.legal { max-width: 780px; margin: 0 auto; padding: 20px 22px 90px; }
.legal .summary { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; font-weight: 600; margin: 10px 0 34px; }
.legal h2 { font: 700 22px/1.3 var(--text); margin: 38px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal li { margin-bottom: 6px; }
.legal .toc { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.legal .toc a, .legal-hero .toc a { padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.legal-hero .toc { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.legal-hero .toc a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.contact-card { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; margin: 26px 0; }
.contact-card .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; flex: none; }
.urgent { background: linear-gradient(135deg, #E0705F, #B94A3E); color: #fff; border-radius: 24px; padding: 22px 24px; margin: 26px 0; }
.urgent a { color: #fff; font-weight: 800; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
/* Above the fold: pure CSS, never waits for JS. */
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.rise.d2 { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .rise { opacity: 1; transform: none; transition: none; animation: none; }
  .chip, .heart-beat, .voice .bars span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .feature, .privacy-card { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .phones { height: 560px; margin-top: 10px; }
  .phones .phone { width: 240px; }
  .feature { gap: 40px; margin-bottom: 90px; text-align: center; }
  .feature.reverse .feature-media { order: 0; }
  .feature ul { justify-items: center; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .privacy-card { text-align: center; padding: 36px 24px; }
  .privacy-card .shield { margin: 0 auto; }
  .privacy-card ul { grid-template-columns: 1fr; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 22px 18px; }
  .nav.open a { padding: 12px 0; font-size: 17px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section.block { padding: 76px 0; }
  .phones { height: 470px; }
  .phones .phone { width: 200px; border-radius: 34px; padding: 7px; }
  .phones .phone img { border-radius: 28px; }
  .phones .p2 { top: 50px; }
  .chip { font-size: 12.5px; padding: 9px 12px; }
  .chip .ico { width: 28px; height: 28px; font-size: 15px; }
  .chip.c1 { right: -6px; top: 70px; } .chip.c2 { left: -6px; bottom: 90px; } .chip.c3 { display: none; }
  .feature-media .phone { width: 210px; }
  .feature-media .phone.small { display: none; }
  .grid-3, .pricing { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .night { margin: 0 10px; border-radius: 32px; padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery .phone { width: 210px; }
}
