/* Vayara website — Twilight (light) and Crimson Night (dark), same palettes as the app */
:root {
  --bg: #F5F2F8;
  --bg-soft: #E4EAF3;
  --card: #FFFFFF;
  --line: #E4EAF3;
  --text: #1C1C1E;
  --muted: #4B5563;
  --soft: #6B7280;
  --primary: #26415E;
  --accent: #4A6A93;
  --on-primary: #FFFFFF;
  --sos: #C2344D;
  --panel-a: #4A6A93;
  --panel-b: #26415E;
  --dot: rgba(38, 65, 94, 0.09);
  --shadow: 0 6px 22px rgba(38, 65, 94, 0.08);
  --ok: #16A34A;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070E26; --bg-soft: #1B2A5C; --card: #0F1B45; --line: #26366B;
    --text: #F4F1F8; --muted: #B4B9CC; --soft: #A3A9C2;
    --primary: #EB3B52; --accent: #FF7A8A; --on-primary: #FFFFFF; --sos: #EB3B52;
    --panel-a: #94243F; --panel-b: #54153A; --dot: rgba(244, 241, 248, 0.07);
    --shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #070E26; --bg-soft: #1B2A5C; --card: #0F1B45; --line: #26366B;
  --text: #F4F1F8; --muted: #B4B9CC; --soft: #A3A9C2;
  --primary: #EB3B52; --accent: #FF7A8A; --on-primary: #FFFFFF; --sos: #EB3B52;
  --panel-a: #94243F; --panel-b: #54153A; --dot: rgba(244, 241, 248, 0.07);
  --shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 20px 20px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--text); }
.brand svg { width: 28px; height: 32px; }
.links { display: flex; gap: 22px; margin-left: 18px; }
.links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--text); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn-donate { background: var(--sos); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--sos) 35%, transparent); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 64px 0 40px; position: relative; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: 13.5px; color: var(--text); }
.pill svg { width: 14px; height: 14px; color: var(--accent); }
h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; margin: 18px 0 18px; color: var(--text); }
h1 .grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.lead b { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 13px; background: var(--primary); color: var(--on-primary); position: relative; }
.store svg { width: 22px; height: 22px; }
.store small { display: block; font-size: 10.5px; font-weight: 500; opacity: .85; line-height: 1.1; }
.store strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; }
.soon-tag { position: absolute; top: -9px; right: -6px; background: var(--ok); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 10px; letter-spacing: .04em; }
.note { margin-top: 14px; font-size: 14px; color: var(--soft); }

.phones { position: relative; height: 560px; }
.phones .panel { position: absolute; right: -10px; top: 70px; width: 88%; height: 440px; border-radius: 40px; background: linear-gradient(155deg, var(--panel-a), var(--panel-b)); overflow: hidden; }
.phones .panel::before, .phones .panel::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); }
.phones .panel::before { width: 420px; height: 420px; left: 60px; top: 10px; }
.phones .panel::after { width: 260px; height: 260px; left: 140px; top: 90px; }
.phones img { position: absolute; filter: drop-shadow(0 26px 40px rgba(7, 14, 38, .35)); }
.ph1 { width: 210px; left: 2%; top: 120px; transform: rotate(-12deg); }
.ph2 { width: 236px; left: 26%; top: 70px; transform: rotate(-5deg); }
.ph3 { width: 270px; right: 0; top: 20px; transform: rotate(2deg); }

/* Sections */
section { padding: 72px 0; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; margin: 10px 0 14px; }
h2 em { font-style: normal; color: var(--accent); }
.sub { font-size: 18px; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 30px; letter-spacing: -0.03em; color: var(--primary); }
.stat span { color: var(--muted); font-size: 14.5px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; font-weight: 800; margin: 12px 0 6px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }
.ic { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; }
.ic svg { width: 22px; height: 22px; }

/* Feature blocks */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 36px 0; }
.feature.flip .shots { order: -1; }
.feature ul { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; }
.feature li .n { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--bg-soft); color: var(--primary); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.feature li b { display: block; font-size: 16.5px; }
.feature li span { color: var(--muted); font-size: 15px; }
.shots { position: relative; height: 470px; border-radius: 34px; background: linear-gradient(155deg, var(--panel-a), var(--panel-b)); overflow: hidden; }
.shots img { position: absolute; width: 200px; filter: drop-shadow(0 22px 34px rgba(7,14,38,.35)); }
.shots img:nth-child(1) { left: 6%; top: 70px; transform: rotate(-8deg); }
.shots img:nth-child(2) { left: 35%; top: 34px; transform: rotate(0deg); z-index: 2; }
.shots img:nth-child(3) { right: 4%; top: 74px; transform: rotate(8deg); }
.shots.two img:nth-child(1) { left: 14%; top: 56px; width: 220px; }
.shots.two img:nth-child(2) { left: auto; right: 12%; top: 40px; width: 230px; transform: rotate(5deg); }
.safe .shots { background: linear-gradient(155deg, #94243F, #2A0A14); }

/* Tools grid */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; gap: 12px; align-items: center; }
.tool .ic { width: 38px; height: 38px; border-radius: 11px; }
.tool .ic svg { width: 19px; height: 19px; }
.tool b { font-size: 15px; display: block; }
.tool span { font-size: 13px; color: var(--soft); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 16px; margin-top: 34px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.plan.dark { background: linear-gradient(155deg, var(--panel-a), var(--panel-b)); color: #fff; border: 0; }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.plan li { padding-left: 24px; position: relative; font-size: 15px; color: var(--muted); }
.plan.dark li { color: rgba(255,255,255,.86); }
.plan li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.plan.dark li::before { border-color: #fff; }
.prices { display: grid; gap: 16px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; position: relative; box-shadow: var(--shadow); }
.price .amt { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.price p { color: var(--muted); font-size: 14.5px; }
.badge { position: absolute; top: -11px; right: 18px; background: var(--ok); color: #fff; font-weight: 800; font-size: 12.5px; padding: 5px 11px; border-radius: 12px; }
.trial { margin-top: 18px; display: flex; gap: 12px; align-items: center; background: var(--bg-soft); border-radius: 16px; padding: 14px 18px; color: var(--text); font-size: 15px; }
.trial svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* Partners */
.partner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 30px; }
.partner .big { background: linear-gradient(155deg, var(--panel-a), var(--panel-b)); color: #fff; border-radius: 26px; padding: 32px; }
.partner .big .amt { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.partner .big .amt small { font-size: 18px; opacity: .8; font-weight: 600; letter-spacing: 0; }
.partner .big p { color: rgba(255,255,255,.85); margin-top: 8px; }
.partner .big .btn { margin-top: 22px; background: #fff; color: #26415E; }

/* Donate */
.donate { background: linear-gradient(135deg, var(--panel-b), var(--panel-a)); color: #fff; border-radius: 32px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; overflow: hidden; position: relative; }
.donate::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.donate h2 { color: #fff; }
.donate p { color: rgba(255,255,255,.85); font-size: 17px; }
.donate .amounts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; position: relative; z-index: 1; }
.donate .btn-donate { background: #fff; color: #C2344D; font-size: 17px; padding: 15px 26px; }
.heart { color: #EB3B52; }

/* FAQ */
.faq { max-width: 820px; margin: 30px auto 0; display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 50px; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.foot a, .foot p { display: block; color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.copy { margin-top: 26px; color: var(--soft); font-size: 13.5px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(7, 14, 38, .55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal.open { display: flex; }
.modal .box { background: var(--card); color: var(--text); border-radius: 24px; padding: 28px; max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); text-align: center; }
.modal .box h3 { font-size: 22px; margin: 10px 0 6px; }
.modal .box p { color: var(--muted); }
.modal .box .btn { margin-top: 18px; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 0; }
.legal h1 { font-size: clamp(36px, 5vw, 54px); }
.legal h2 { font-size: 22px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); font-size: 16px; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 980px) {
  .hero .grid, .feature, .partner, .donate { grid-template-columns: 1fr; }
  .feature.flip .shots { order: 0; }
  .phones { height: 480px; }
  .cards3, .pricing { grid-template-columns: 1fr 1fr; }
  .pricing .prices { grid-column: span 2; grid-template-columns: 1fr 1fr; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .donate .amounts { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; margin: 0; }
  .links.open { display: flex; }
  .links a { padding: 10px 0; font-size: 17px; }
  .menu-btn { display: inline-flex; }
  .nav .right .btn-donate span { display: none; }
  .hero { padding-top: 40px; }
  .phones { height: 400px; }
  .ph1 { width: 150px; top: 110px; } .ph2 { width: 170px; top: 70px; } .ph3 { width: 196px; top: 30px; }
  .phones .panel { height: 320px; top: 70px; }
  .cards3, .pricing, .tools, .pricing .prices { grid-template-columns: 1fr; }
  .pricing .prices { grid-column: auto; }
  .shots { height: 380px; }
  .shots img { width: 150px; }
  .shots.two img:nth-child(1), .shots.two img:nth-child(2) { width: 160px; }
  .donate { padding: 30px 22px; }
  section { padding: 52px 0; }
  .foot { grid-template-columns: 1fr; }
}

img { max-width: 100%; height: auto; }
.foot .brand { margin-bottom: 10px; }
