/* SafeChat website — one stylesheet for every page. */
:root {
  --cream: #fff8f1;
  --cream-2: #fbefe4;
  --paper: #ffffff;
  --ink: #120a24;
  --ink-2: #2b2142;
  --muted: #5f5874;
  --line: #ece2f3;
  --purple: #6223a9;
  --violet: #7a35e0;
  --pink: #c74999;
  --hot: #f953c6;
  --amber: #f39a3b;
  --plum: #120a26;
  --plum-2: #1c1236;
  --grad: linear-gradient(120deg, #5d26c1 0%, #a43bb0 55%, #f15ab8 100%);
  --grad-soft: linear-gradient(135deg, #efe5ff 0%, #ffe6f4 100%);
  --radius: 22px;
  --shadow: 0 30px 60px -28px rgba(42, 17, 82, .35), 0 12px 24px -16px rgba(42, 17, 82, .18);
  --shadow-sm: 0 10px 30px -18px rgba(42, 17, 82, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.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: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -20px rgba(42, 17, 82, .5); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.mark { width: 34px; height: 34px; }
.brand img.word { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { background: rgba(98, 35, 169, .08); color: var(--purple); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: 12px; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -14px rgba(160, 50, 180, .8); }
.btn-primary:hover { box-shadow: 0 18px 36px -14px rgba(160, 50, 180, .95); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: #e9d8ff; right: -120px; top: -80px; }
.hero::after { width: 420px; height: 420px; background: #ffd9ec; left: -160px; bottom: -120px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--purple); background: #fff; border: 1px solid var(--line);
  padding: 7px 14px 7px 8px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.eyebrow .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: ping 2s infinite; }
@keyframes ping { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .6; } }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 86px); line-height: .98; letter-spacing: -.035em; font-weight: 800;
  margin: 22px 0 22px; text-wrap: balance;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 30px; opacity: 0; animation: fadeUp .9s .45s var(--ease) forwards; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp .9s .6s var(--ease) forwards; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: 14px; color: var(--muted); font-weight: 600; opacity: 0; animation: fadeUp .9s .75s var(--ease) forwards; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--purple); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-stage { position: relative; height: 640px; display: grid; place-items: center; }
.hero-stage .phone { transform: rotate(-4deg); animation: phoneIn 1.2s .2s var(--ease) backwards; transition: transform .4s var(--ease); }
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotate(-10deg); } to { opacity: 1; transform: rotate(-4deg); } }
.float-card {
  position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; z-index: 3;
  animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--purple); flex: none; }
.float-card .ic svg { width: 22px; height: 22px; }
.fc-1 { top: 36px; right: -20px; animation-delay: -1s; }
.fc-2 { top: 46%; right: -40px; animation-delay: -3s; }
.fc-3 { bottom: 70px; left: -20px; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Phone mockup ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2a2338, #0d0916); box-shadow: var(--shadow), inset 0 0 0 2px #3a3249;
  flex: none;
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -3px; top: 120px; width: 3px; height: 70px; border-radius: 0 3px 3px 0; background: #2a2338;
}
.screen { color: var(--ink); position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0d0916; z-index: 5; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 6px; font-size: 12px; font-weight: 700; color: var(--ink); }
.status .icons { display: flex; gap: 5px; align-items: center; }
.status .icons i { display: block; width: 15px; height: 9px; border-radius: 2px; background: currentColor; opacity: .85; }
.status .icons i:first-child { width: 12px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.dark .status { color: #fff; }

.app-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid #f1eaf7; }
.app-bar .back { width: 18px; height: 18px; color: var(--ink); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; flex: none; }
.avatar.alt { background: linear-gradient(135deg, #f39a3b, #e2507a); }
.avatar.alt2 { background: linear-gradient(135deg, #2bb3a3, #3c6fe0); }
.avatar.alt3 { background: linear-gradient(135deg, #8a5cf6, #4a2fbf); }
.app-bar .who { flex: 1; line-height: 1.2; }
.app-bar .who b { font-size: 14px; display: block; }
.app-bar .who small { font-size: 11px; color: #2bb36a; font-weight: 600; }
.app-bar .acts { display: flex; gap: 12px; color: var(--purple); }
.app-bar .acts svg { width: 18px; height: 18px; }

.chat-body {
  flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; overflow: hidden;
  background: radial-gradient(circle at 20% 10%, #f7f0ff 0, transparent 40%), radial-gradient(circle at 90% 80%, #fff0f8 0, transparent 40%), #fcfaff;
}
.day-chip { align-self: center; font-size: 10px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid #efe6f6; padding: 3px 10px; border-radius: 999px; margin-bottom: 4px; }
.bubble {
  max-width: 78%; padding: 9px 12px; border-radius: 16px; font-size: 13px; line-height: 1.35; position: relative;
  box-shadow: 0 4px 10px -8px rgba(42, 17, 82, .4);
}
.bubble time { display: block; font-size: 9.5px; opacity: .7; margin-top: 3px; text-align: right; }
.bubble.in { align-self: flex-start; background: #fff; border: 1px solid #f0e8f7; border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.anim-seq > * { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.anim-seq > .show { opacity: 1; transform: none; }
.typing { align-self: flex-start; background: #fff; border: 1px solid #f0e8f7; border-radius: 16px; padding: 10px 14px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b9a8cf; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.soul-bubble {
  align-self: flex-end; width: 78%; border-radius: 16px; border-bottom-right-radius: 5px; padding: 10px; color: #fff;
  background: linear-gradient(135deg, #4b1f8f, #a63aa6); box-shadow: 0 10px 22px -12px rgba(98, 35, 169, .8);
}
.soul-bubble .card { background: #fff; color: var(--ink); border-radius: 12px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.soul-bubble .env { width: 34px; height: 26px; border-radius: 5px; background: var(--grad); position: relative; flex: none; overflow: hidden; }
.soul-bubble .env::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49%, rgba(255,255,255,.55) 50%, transparent 52%), linear-gradient(to bottom left, transparent 49%, rgba(255,255,255,.55) 50%, transparent 52%); }
.soul-bubble .env::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); left: 50%; top: 52%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fff; }
.soul-bubble b { font-size: 12.5px; display: block; }
.soul-bubble small { font-size: 10.5px; color: var(--muted); display: block; }
.soul-bubble .opens { font-size: 10.5px; margin-top: 7px; display: flex; justify-content: space-between; opacity: .95; }
.chat-body.top { justify-content: flex-start; }
.compose { display: flex; align-items: center; gap: 8px; padding: 10px 12px 18px; background: #fff; border-top: 1px solid #f1eaf7; }
.compose .field { flex: 1; height: 34px; border-radius: 999px; background: #f6f1fb; font-size: 12px; color: #9a90ad; display: flex; align-items: center; padding: 0 14px; }
.compose .mic { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; }
.compose .mic svg { width: 16px; height: 16px; }

/* chat list screen */
.list-head { padding: 6px 18px 10px; }
.list-head h4 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.chips { display: flex; gap: 6px; margin-top: 10px; }
.chips span { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #f3edf9; color: var(--muted); }
.chips span.on { background: var(--grad); color: #fff; }
.chat-row { display: flex; gap: 10px; align-items: center; padding: 9px 18px; }
.chat-row .meta { flex: 1; min-width: 0; line-height: 1.25; }
.chat-row b { font-size: 13px; display: block; }
.chat-row small { font-size: 11.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .side { text-align: right; font-size: 10px; color: var(--muted); }
.chat-row .badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 800; font-size: 10px; margin-top: 3px; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: 10px 10px 18px; border-top: 1px solid #f1eaf7; color: #a399b6; }
.tabbar svg { width: 20px; height: 20px; }
.tabbar .mid { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; margin-top: -24px; box-shadow: 0 10px 20px -8px rgba(160, 50, 180, .8); }

/* flash (story) screen */
.flash-screen { background: #1a1030; color: #fff; }
.flash-bars { display: flex; gap: 4px; padding: 6px 14px 0; }
.flash-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.flash-bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.flash-bars i.done::after { transform: scaleX(1); }
.flash-bars i.run::after { animation: fill 5s linear infinite; }
@keyframes fill { to { transform: scaleX(1); } }
.flash-user { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12px; }
.flash-user b { display: block; font-size: 13px; }
.flash-user small { opacity: .7; }
.sunset {
  flex: 1; margin: 6px 12px 12px; border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f29b6b 0%, #e7748f 45%, #6a3b9c 46%, #2c1757 100%);
}
.sunset .sun { position: absolute; left: 50%; top: 45%; width: 46%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -62%); background: #ffd66e; box-shadow: 0 0 60px 10px rgba(255, 214, 110, .45); animation: sunrise 6s ease-in-out infinite alternate; }
@keyframes sunrise { from { transform: translate(-50%, -52%); } to { transform: translate(-50%, -68%); } }
.sunset .sea { position: absolute; left: 0; right: 0; top: 46%; bottom: 0; background: repeating-linear-gradient(180deg, rgba(255, 214, 160, .55) 0 3px, transparent 3px 9px); -webkit-mask: linear-gradient(90deg, transparent 18%, #000 35%, #000 65%, transparent 82%); mask: linear-gradient(90deg, transparent 18%, #000 35%, #000 65%, transparent 82%); }
.sunset .tag { position: absolute; left: 14px; top: 18%; background: rgba(40, 20, 70, .55); backdrop-filter: blur(4px); padding: 5px 10px; border-radius: 8px; font-weight: 800; font-size: 13px; }
.flash-foot { display: flex; align-items: center; gap: 10px; padding: 0 14px 20px; }
.flash-foot .reply { flex: 1; height: 34px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); font-size: 12px; display: flex; align-items: center; padding: 0 14px; color: rgba(255, 255, 255, .75); }
.flash-foot svg { width: 22px; height: 22px; }

/* ---------- Scroll-drawn path + greetings ---------- */
.journey { position: relative; padding: 40px 0 120px; }
.journey-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.journey-path path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.journey-path path.glow { stroke: url(#pathGrad); stroke-width: 3.5; }
.journey-stage { position: relative; height: 640px; display: flex; justify-content: center; align-items: center; z-index: 1; }
.duo { position: relative; display: flex; align-items: flex-end; }
.duo .phone { --w: 270px; }
.duo .phone.front { z-index: 2; transform: rotate(-6deg) translateX(30px); }
.duo .phone.back { transform: rotate(5deg) translate(-30px, 30px); }
.greet {
  position: absolute; z-index: 3; padding: 10px 18px; border-radius: 18px; font-weight: 700; font-size: 18px; white-space: nowrap;
  box-shadow: var(--shadow-sm); opacity: 0; transform: scale(.6) translateY(20px);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.greet.in-view { opacity: 1; transform: none; animation: drift 7s ease-in-out infinite; }
.greet.solid { background: var(--grad); color: #fff; border-bottom-left-radius: 6px; }
.greet.outline { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-bottom-right-radius: 6px; }
.greet.amber { background: var(--amber); color: #2a1300; border-bottom-left-radius: 6px; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.journey-copy { text-align: center; max-width: 720px; margin: 0 auto 10px; position: relative; z-index: 2; }

/* ---------- Section heads ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head h2, .journey-copy h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; text-wrap: balance; }
.section-head p, .journey-copy p { font-size: 19px; color: var(--muted); margin: 0; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin-bottom: 14px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.f-card { background: var(--paper); border-radius: 26px; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.f-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.f-visual { height: 250px; position: relative; overflow: hidden; background: var(--grad-soft); display: grid; place-items: center; }
.f-copy { padding: 26px 28px 30px; text-align: center; }
.f-copy h3 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.02em; }
.f-copy p { margin: 0; color: var(--muted); font-size: 15.5px; }
.features .f-card.wide { grid-column: span 1; }

/* mini visuals */
.mini-call { display: grid; place-items: center; gap: 10px; text-align: center; }
.mini-call .ring { position: relative; width: 86px; height: 86px; display: grid; place-items: center; }
.mini-call .ring::before, .mini-call .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--violet); animation: ripple 2.4s infinite; }
.mini-call .ring::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.mini-call .avatar { width: 72px; height: 72px; font-size: 26px; }
.mini-call b { font-size: 15px; }
.mini-call small { color: var(--muted); font-weight: 600; }
.mini-call .btns { display: flex; gap: 16px; margin-top: 4px; }
.mini-call .btns span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.mini-call .btns span:first-child { background: #ef4a5b; }
.mini-call .btns span:last-child { background: #2bb36a; animation: nudge 1.6s ease-in-out infinite; }
.mini-call .btns svg { width: 18px; height: 18px; }
@keyframes nudge { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(0); } }

.mini-env { position: relative; width: 190px; height: 130px; }
.mini-env .body { position: absolute; inset: 0; border-radius: 14px; background: var(--grad); box-shadow: var(--shadow); }
.mini-env .letter { position: absolute; left: 14px; right: 14px; top: 10px; height: 110px; background: #fffdf7; border-radius: 8px; padding: 14px; font-family: var(--hand); font-size: 20px; color: var(--ink-2); line-height: 1.1; background-image: repeating-linear-gradient(180deg, transparent 0 21px, #eadff2 21px 22px); animation: peek 5s var(--ease) infinite; }
.mini-env .flap { position: absolute; inset: 0; border-radius: 14px; clip-path: polygon(0 0, 100% 0, 50% 58%); background: linear-gradient(160deg, #7a35e0, #c74999); transform-origin: top; animation: flap 5s var(--ease) infinite; z-index: 2; }
.mini-env .front { position: absolute; inset: 0; border-radius: 14px; clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%); background: linear-gradient(200deg, #5d26c1, #b9409f); z-index: 3; }
.mini-env .seal { position: absolute; left: 50%; top: 52%; width: 30px; height: 30px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 35%, #ffc27a, #e2761f); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); z-index: 4; display: grid; place-items: center; color: #fff; }
.mini-env .seal svg { width: 14px; height: 14px; }
.mini-env .timer { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; color: var(--purple); box-shadow: var(--shadow-sm); white-space: nowrap; z-index: 5; font-variant-numeric: tabular-nums; }
@keyframes flap { 0%, 55% { transform: rotateX(0); } 70%, 90% { transform: rotateX(180deg); } 100% { transform: rotateX(0); } }
@keyframes peek { 0%, 60% { transform: translateY(0); } 75%, 90% { transform: translateY(-46px); } 100% { transform: translateY(0); } }

.mini-flash { display: flex; gap: 14px; align-items: flex-end; }
.mini-flash .story { width: 92px; height: 160px; border-radius: 16px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.mini-flash .story:nth-child(2) { height: 190px; }
.mini-flash .story .sunset { margin: 0; border-radius: 0; height: 100%; }
.mini-flash .story.b { background: linear-gradient(160deg, #5d26c1, #f15ab8); }
.mini-flash .story.c { background: linear-gradient(160deg, #2bb3a3, #3c6fe0); }
.mini-flash .story .bar { position: absolute; top: 8px; left: 8px; right: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.mini-flash .story .bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill 4s linear infinite; }
.mini-flash .story .who { position: absolute; bottom: 8px; left: 8px; display: flex; align-items: center; gap: 5px; color: #fff; font-size: 10px; font-weight: 700; }
.mini-flash .story .who i { width: 18px; height: 18px; border-radius: 50%; background: #fff; display: block; opacity: .9; }
.mini-flash .story .t24 { position: absolute; top: 18px; right: 8px; font-size: 9px; font-weight: 800; background: rgba(0, 0, 0, .3); color: #fff; padding: 2px 6px; border-radius: 6px; }

.mini-comm { width: 230px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px; }
.mini-comm .top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mini-comm .top b { font-size: 14px; display: block; line-height: 1.1; }
.mini-comm .top small { font-size: 11px; color: var(--muted); }
.mini-comm .stack { display: flex; margin-left: auto; }
.mini-comm .stack .avatar { width: 24px; height: 24px; font-size: 10px; border: 2px solid #fff; margin-left: -8px; }
.mini-comm .msg { font-size: 12px; animation-duration: 8s; background: #f6f1fb; border-radius: 12px; padding: 7px 10px; margin-top: 6px; opacity: 0; transform: translateX(-10px); animation: slideMsg 6s var(--ease) infinite; }
.mini-comm .msg b { color: var(--purple); font-size: 11px; display: block; }
.mini-comm .msg:nth-of-type(2) { animation-delay: .6s; }
.mini-comm .msg:nth-of-type(3) { animation-delay: 1.2s; }
@keyframes slideMsg { 0% { opacity: 0; transform: translateX(-10px); } 6%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

.mini-lock { display: grid; place-items: center; gap: 14px; text-align: center; }
.mini-lock .shield { width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.mini-lock .shield svg { width: 30px; height: 30px; }
.mini-lock .pins { display: flex; gap: 10px; }
.mini-lock .pins i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--purple); animation: pin 3.2s infinite; }
.mini-lock .pins i:nth-child(2) { animation-delay: .25s; } .mini-lock .pins i:nth-child(3) { animation-delay: .5s; } .mini-lock .pins i:nth-child(4) { animation-delay: .75s; }
@keyframes pin { 0%, 15% { background: transparent; } 25%, 80% { background: var(--purple); } 100% { background: transparent; } }
.mini-lock .toast { background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 7px 14px; display: flex; gap: 8px; align-items: center; }
.mini-lock .toast svg { width: 14px; height: 14px; }

.mini-theme { width: 220px; }
.mini-theme .chat { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 7px; transition: background .6s; }
.mini-theme .b { font-size: 12px; padding: 7px 11px; border-radius: 13px; max-width: 80%; }
.mini-theme .b.in { background: #f3eef8; align-self: flex-start; }
.mini-theme .b.out { align-self: flex-end; color: #fff; background: var(--bubble, var(--grad)); transition: background .6s; }
.mini-theme .sw { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.mini-theme .sw i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.15); transition: transform .3s; }
.mini-theme .sw i.on { transform: scale(1.25); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--purple); }

/* ---------- Soul Card spotlight ---------- */
.spotlight { background: linear-gradient(180deg, var(--cream) 0%, #f6ecff 30%, #f6ecff 70%, var(--cream) 100%); }
.spot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.letter-wrap { position: sticky; top: 120px; align-self: start; display: grid; place-items: center; min-height: 520px; }
.letter {
  width: min(420px, 100%); background: #fffdf7; border-radius: 18px; padding: 34px 34px 40px 54px; position: relative;
  box-shadow: var(--shadow); transform: rotate(-3deg);
  background-image: linear-gradient(90deg, transparent 38px, #f3b6c8 38px, #f3b6c8 40px, transparent 40px), repeating-linear-gradient(180deg, transparent 0 33px, #e9dff3 33px 34px);
}
.letter .to { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.letter .hand { font-family: var(--hand); font-size: 34px; line-height: 34px; color: var(--ink-2); margin-top: 12px; min-height: 170px; }
.letter .hand .caret { display: inline-block; width: 2px; height: 28px; background: var(--purple); vertical-align: -4px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.letter .stamp { position: absolute; right: -18px; top: -22px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); transform: rotate(6deg); font-size: 12px; font-weight: 800; color: var(--purple); text-align: center; line-height: 1.2; }
.letter .stamp b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wax { position: absolute; left: -26px; bottom: 40px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb46b, #e06a1a 60%, #b8500f); box-shadow: 0 10px 20px -6px rgba(180, 80, 15, .6), inset 0 -4px 8px rgba(0,0,0,.2); display: grid; place-items: center; color: #fff; transform: rotate(-12deg); }
.wax svg { width: 28px; height: 28px; }
.steps { display: grid; gap: 14px; margin-top: 32px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.step .n { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.step h4 { margin: 0 0 2px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Pricing band ---------- */
.price-band { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 980px; margin: 0 auto; }
.price-card { background: #fff; border-radius: 28px; padding: 38px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.price-card.hl { background: var(--plum); color: #fff; }
.price-card.hl::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: .45; right: -100px; top: -120px; }
.price-card .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--grad-soft); color: var(--purple); }
.price-card.hl .tag { background: rgba(255, 255, 255, .12); color: #fff; }
.price-card .amt { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 22px 0 6px; position: relative; }
.price-card .amt small { font-size: 18px; font-weight: 600; letter-spacing: 0; opacity: .7; }
.price-card p { margin: 0 0 18px; color: var(--muted); position: relative; }
.price-card.hl p { color: rgba(255, 255, 255, .72); }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; position: relative; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks li svg { width: 20px; height: 20px; flex: none; color: var(--pink); margin-top: 2px; }
.price-card.hl .ticks li svg { color: #ff9bdc; }

/* ---------- Dark curved FAQ ---------- */
.dark-zone { background: var(--plum); color: #fff; position: relative; margin-top: 120px; padding: 80px 0 120px; }
.dark-zone::before { content: ""; position: absolute; left: -10%; right: -10%; top: -90px; height: 180px; background: var(--plum); border-radius: 50%; }
.dark-zone .section-head p { color: rgba(255, 255, 255, .7); }
.faq { max-width: 820px; margin: 0 auto; position: relative; }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 19px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); position: relative; flex: none; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; transform: translate(-50%, -50%); border-radius: 2px; }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary .pm { background: var(--grad); border-color: transparent; transform: rotate(180deg); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { overflow: hidden; color: rgba(255, 255, 255, .74); font-size: 16.5px; }
.faq .ans p { margin: 0 0 24px; max-width: 700px; }
.faq .ans a { color: #ffb3e4; }

/* CTA card */
.cta-card {
  position: relative; margin: 110px auto 0; max-width: 1080px; border-radius: 36px; overflow: hidden;
  background: var(--grad); color: #fff; padding: 70px 64px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px;
}
.cta-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .25), transparent 40%), radial-gradient(circle at 10% 110%, rgba(255, 255, 255, .18), transparent 40%); pointer-events: none; }
.cta-card h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 16px; }
.cta-card p { font-size: 18px; margin: 0 0 30px; color: rgba(255, 255, 255, .85); max-width: 460px; }
.cta-card .phone { --w: 230px; justify-self: center; margin-bottom: -170px; transform: rotate(8deg); }
.store-badge { display: inline-flex; align-items: center; gap: 12px; background: #0d0916; color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 14px; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 11px; opacity: .75; line-height: 1; }
.store-badge b { display: block; font-size: 17px; line-height: 1.2; }

/* ---------- Footer ---------- */
.site-footer { background: #f6f1ee; padding: 70px 0 30px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h5 { font-size: 16px; margin: 0 0 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--muted); transition: color .2s; }
.foot-grid a:hover { color: var(--purple); }
.foot-brand p { color: var(--muted); margin: 14px 0 0; max-width: 300px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid #e5dcd6; margin-top: 50px; padding-top: 24px; color: var(--muted); font-size: 14px; }
.foot-bottom a { color: var(--purple); font-weight: 700; text-decoration: none; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 80px 0 40px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 600px; height: 400px; border-radius: 50%; background: #efdfff; filter: blur(80px); left: 50%; top: -200px; transform: translateX(-50%); z-index: -1; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.035em; margin: 10px 0 16px; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0 auto; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { background: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--shadow-sm); }
.info-card h3 { margin: 0 0 10px; font-size: 20px; }
.info-card p { margin: 0 0 6px; color: var(--muted); }
.info-card a { color: var(--purple); font-weight: 700; }
.info-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.info-card dt { font-weight: 700; }
.info-card dd { margin: 0; color: var(--muted); }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.compare thead th { background: var(--plum); color: #fff; font-size: 14px; letter-spacing: .02em; }
.compare td.c { text-align: center; width: 22%; }
.compare tr:last-child td { border-bottom: 0; }
.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.yes { background: #e8f8ef; color: #1c9a55; } .no { background: #f4eff8; color: #b0a6c0; }
.yes svg, .no svg { width: 15px; height: 15px; }
.table-scroll { overflow-x: auto; border-radius: 24px; }

/* legal documents */
.doc { max-width: 820px; margin: 0 auto; padding: 50px 0 100px; }
.doc-card { background: #fff; border-radius: 28px; padding: 54px 60px; box-shadow: var(--shadow-sm); }
.doc h1 { font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 10px; }
.doc h2 { font-size: 22px; letter-spacing: -.01em; margin: 38px 0 12px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc a { color: var(--purple); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.doc th { background: #faf6fd; min-width: 160px; }
.doc mark { background: #fff1c2; padding: 0 4px; border-radius: 4px; }
.doc ul, .doc ol { padding-left: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .spot-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { grid-template-columns: 1fr; text-align: center; padding: 56px 32px 0; }
  .cta-card p { margin-left: auto; margin-right: auto; }
  .cta-card .phone { margin-bottom: -120px; }
  .cta-card { padding-bottom: 0; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 16px 20px 24px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(42,17,82,.3); transform: translateY(-120%); transition: transform .45s var(--ease); }
  .menu-open .nav { transform: none; }
  .nav a.link { padding: 14px 12px; font-size: 17px; }
  .nav .btn { margin-top: 8px; }
  .menu-btn { display: block; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .features, .price-band, .card-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 560px; }
  .hero-stage .phone { --w: 260px; }
  .fc-1 { left: 0; top: 40px; } .fc-2 { right: 0; } .fc-3 { display: none; }
  .journey-stage { height: 560px; }
  .duo .phone { --w: 210px; }
  .duo .phone.front { transform: rotate(-6deg) translateX(18px); }
  .duo .phone.back { transform: rotate(5deg) translate(-18px, 24px); }
  .greet { font-size: 12.5px; padding: 7px 11px; }
  .letter { padding: 28px 22px 32px 46px; }
  .letter .hand { font-size: 28px; line-height: 34px; }
  .doc-card { padding: 34px 24px; border-radius: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .price-card { padding: 30px 26px; }
  .faq summary { font-size: 17px; }
  .float-card { font-size: 12.5px; padding: 10px 12px; }
  .float-card .ic { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .greet, .anim-seq > * { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span { transform: none; }
}
