/* Piyovu — about the people you love. Hand-drawn, clean, warm. */
@font-face { font-family: "Shantell"; src: url("fonts/shantell.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("fonts/kalam.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #2E2A33; --ink2: #4A4450; --muted: #756D7B; --faint: #B3ABB8; --line: #F0EBEC;
  --bg: #FFFFFF; --soft: #FAF7F6; --rose: #C9506F; --blush: #F4A7B9; --blush-deep: #E8728F; --press: #F7B9C8;
  --blush-t: #FDEEF2; --butter-t: #FBF3E1; --sky-t: #EAF2FA; --sage-t: #EEF5EA; --lilac-t: #F1EEFA; --red-t: #FFF0EE;
  --blush-d: #B4486A; --butter-d: #8A6A1E; --sky-d: #3E6A93; --sage-d: #4F7446; --lilac-d: #6250A0; --red-d: #B23B2E;
  --r: 28px 24px 28px 23px;          /* slightly uneven, like it was drawn by hand */
  --display: "Shantell", "Comic Sans MS", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Shantell", cursive;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-weight: 500; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; font-variation-settings: "INFM" 45, "BNCE" 0; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.accent { color: var(--rose); font-style: italic; position: relative; white-space: nowrap; }
.accent svg { position: absolute; left: -2%; bottom: -.2em; width: 104%; height: .42em; overflow: visible; }
.accent svg path { fill: none; stroke: var(--blush); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.kicker { font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; display: inline-flex; gap: .5rem; align-items: center; }
.lead { font-size: 1.2rem; color: var(--ink2); max-width: 34em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- Wordmark: the heart is the dot on the i ---------- */
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.75rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: .45rem; }
.wordmark .i { position: relative; }
.wordmark .i::before { content: ""; position: absolute; left: 50%; top: .02em; width: .42em; height: .38em; transform: translateX(-50%);
  background: var(--blush-deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-9-5.6-9-12.1A5 5 0 0 1 12 6a5 5 0 0 1 9 2.9C21 15.4 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-9-5.6-9-12.1A5 5 0 0 1 12 6a5 5 0 0 1 9 2.9C21 15.4 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 70%, 100% { transform: translateX(-50%) scale(1); } 78% { transform: translateX(-50%) scale(1.25); } 86% { transform: translateX(-50%) scale(.95); } }
.wordmark img { width: 38px; height: 38px; border-radius: 10px; }

/* ---------- Hand-drawn controls (if it has an ink outline, you can tap it) ---------- */
.btn { --sh: 4px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: 800 1.05rem/1 var(--body); color: var(--ink);
  background: var(--press); border: 2px solid var(--ink); border-radius: var(--r); padding: 1rem 1.5rem; min-height: 54px; text-decoration: none; cursor: pointer;
  box-shadow: var(--sh) var(--sh) 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(var(--sh), var(--sh)); box-shadow: 0 0 0 var(--ink); }
.btn.secondary { background: #fff; }
.btn.small { padding: .65rem 1.05rem; min-height: 44px; font-size: .95rem; --sh: 3px; border-width: 1.5px; }
.btn img { width: 26px; height: 26px; }
:focus-visible { outline: 3px solid var(--blush-deep); outline-offset: 3px; border-radius: 10px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.top nav { display: flex; gap: 1.6rem; align-items: center; }
.top nav a:not(.btn) { color: var(--ink2); text-decoration: none; font-weight: 700; font-size: .98rem; }
.top nav a:not(.btn):hover { color: var(--rose); }
@media (max-width: 860px) { .top nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 3rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, var(--blush-t) 0%, rgba(253,238,242,0) 65%); z-index: -1; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { margin-bottom: 1.6rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--muted); font-size: .92rem; font-weight: 700; margin-top: 1.1rem; }
.trust span { display: inline-flex; align-items: center; gap: .4rem; }
.trust img { width: 22px; height: 22px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { margin-top: 1rem; } }

/* Waitlist form */
.join { display: flex; gap: .7rem; flex-wrap: wrap; max-width: 520px; }
.join input[type=email] { flex: 1 1 240px; min-height: 54px; font: 600 1.05rem var(--body); color: var(--ink); padding: 0 1.1rem; border: 2px solid var(--ink); border-radius: var(--r);
  background: #fff; box-shadow: 3px 3px 0 var(--press); }
.join input[type=email]::placeholder { color: var(--faint); }
.join .hp { position: absolute; left: -5000px; }
.join-msg { min-height: 1.6em; margin-top: .6rem; font-weight: 700; font-size: .95rem; }
.join-msg.ok { color: var(--sage-d); } .join-msg.err { color: var(--red-d); }
.soon { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.1rem; padding: .5rem .9rem .5rem .6rem; border: 1.5px dashed var(--faint); border-radius: 999px; font-weight: 700; color: var(--ink2); font-size: .92rem; }
.soon svg { width: 22px; height: 22px; }

/* Phone with floating notes */
.hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone { width: min(300px, 70vw); aspect-ratio: 1080 / 2400; border: 3px solid var(--ink); border-radius: 42px; padding: 9px; background: #fff; box-shadow: 8px 8px 0 var(--ink); transform: rotate(2deg); position: relative; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); opacity: .85; }
.note { position: absolute; display: flex; align-items: center; gap: .6rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: .55rem .9rem .55rem .55rem; box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800; font-size: .95rem; line-height: 1.25; max-width: 240px; animation: float 6s ease-in-out infinite; }
.note small { display: block; font-weight: 700; color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.note img { width: 46px; height: 46px; flex: none; }
.note.red { background: var(--red-t); color: var(--red-d); } .note.lilac { background: var(--lilac-t); } .note.butter { background: var(--butter-t); }
.n1 { top: 8%; left: -2%; transform: rotate(-5deg); } .n2 { top: 40%; right: -4%; transform: rotate(4deg); animation-delay: -2s; }
.n3 { bottom: 10%; left: 0; transform: rotate(-3deg); animation-delay: -4s; } .n4 { top: 2%; right: 6%; transform: rotate(6deg); animation-delay: -3s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 560px) { .hero-art { min-height: 520px; } .note { font-size: .82rem; max-width: 190px; } .note img { width: 36px; height: 36px; } .n2 { right: -2%; } }

/* ---------- Marquee of little things ---------- */
.marquee { border-block: 2px solid var(--ink); background: var(--blush-t); overflow: hidden; padding: .9rem 0; }
.marquee .track { display: flex; gap: 1rem; width: max-content; animation: slide 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: .55rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: .35rem .95rem .35rem .35rem; font-weight: 700; white-space: nowrap; font-size: .95rem; }
.chip img { width: 30px; height: 30px; border-radius: 50%; }
.chip b { font-weight: 900; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.story .scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bubble { font-family: var(--hand); font-size: 1.55rem; line-height: 1.3; color: var(--ink2); background: var(--soft); border-radius: 26px 26px 26px 6px; padding: 1rem 1.3rem; margin: 0 0 1rem; position: relative; }
.bubble.me { border-radius: 26px 26px 6px 26px; background: var(--blush-t); margin-left: 2.5rem; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: 3.5rem 0; }
.feature:nth-of-type(even) .shot { order: 2; }
.feature .shot { position: relative; display: grid; place-items: center; padding: 2.5rem 0; }
.feature .shot::before { content: ""; position: absolute; inset: 6% 10%; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; background: var(--tint, var(--blush-t)); z-index: -1; }
.feature .phone { width: min(270px, 64vw); transform: rotate(-2deg); box-shadow: 7px 7px 0 var(--ink); }
.feature:nth-of-type(even) .phone { transform: rotate(2deg); }
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.feature .icon { width: 64px; height: 64px; margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .65rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: var(--ink2); }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border: 2px solid var(--ink); border-radius: 8px 7px 8px 6px; background: var(--press) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2A33' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat; }
.pill { display: inline-block; font: 800 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 999px; background: var(--tint, var(--blush-t)); color: var(--tint-d, var(--blush-d)); margin-bottom: .9rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; padding: 2rem 0; } .feature:nth-of-type(even) .shot { order: 0; } }

/* Voice waveform */
.wave { display: flex; gap: 5px; align-items: center; height: 44px; margin-top: 1.2rem; }
.wave i { width: 6px; border-radius: 6px; background: var(--blush); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { background: var(--blush-deep); }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 40px; } }

/* People grid */
.people { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.6rem 2.2rem; margin-top: 2.5rem; }
.person { text-align: center; font-weight: 800; }
.person img { width: 108px; height: 108px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ring, var(--blush)); margin: 0 auto .6rem; transition: transform .25s; background: var(--tint, var(--blush-t)); }
.person:hover img { transform: rotate(-6deg) scale(1.06); }
.person span { display: block; font-weight: 700; color: var(--muted); font-size: .88rem; }

/* Privacy */
.privacy-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; background: var(--soft); border-radius: 40px 34px 42px 32px; padding: clamp(2rem, 5vw, 4rem); }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.promise { background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 1.1rem; }
.promise img { width: 44px; height: 44px; margin-bottom: .4rem; }
.promise b { display: block; font-size: 1.05rem; }
.promise span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .privacy-card { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } }

/* Together banner */
.together { position: relative; border: 2px solid var(--ink); border-radius: 40px 34px 42px 32px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; background: #fff; display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; }
.together .copy { padding: clamp(1.8rem, 5vw, 3.5rem); }
.together img { width: 100%; height: 100%; object-fit: contain; object-position: right center; padding: 1rem 1rem 1rem 0; }
@media (max-width: 860px) { .together { grid-template-columns: 1fr; } .together img { max-height: 380px; } }

/* FAQ */
.faq { max-width: 820px; margin: 2rem auto 0; display: grid; gap: .9rem; }
.faq details { border: 2px solid var(--ink); border-radius: var(--r); background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3.2rem 1.1rem 1.3rem; font-weight: 800; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; font: 700 1.6rem/1 var(--display); color: var(--rose); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--ink2); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
footer nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
footer a { color: var(--ink2); font-weight: 700; text-decoration: none; } footer a:hover { color: var(--rose); }
footer .made { font-family: var(--hand); font-size: 1.2rem; color: var(--ink2); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Legal pages */
.legal { max-width: 760px; padding: 3rem 0 5rem; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--ink2); }
.legal .updated { color: var(--muted); font-weight: 700; }
.legal .box { background: var(--soft); border-radius: 22px; padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: .9rem; }
.steps li { counter-increment: s; display: flex; gap: .9rem; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--press); font-weight: 900; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .accent svg path { stroke-dashoffset: 0; }
}
