/* Sales page. Same brand as the app: raspberry, sunflower and plum on a soft pink-white, set in Nunito.
   Built for the phone first, because the visitors come from ads on Instagram and Facebook. */
:root {
  --bg: #fff8fa; --surface: #ffffff; --ink: #2a0f1f; --muted: #6b4a58; --line: #f0dce3;
  --primary: #c2185b; --primary-dark: #8e1244; --primary-soft: #fdecef;
  --sun: #ffc53d; --sun-soft: #fff1c7; --sun-ink: #5a3b00; --good: #1b7f4b;
  --shadow: 0 1px 2px rgba(42, 15, 31, .06), 0 10px 26px rgba(42, 15, 31, .09);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 18px/1.55 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
a:focus-visible, summary:focus-visible { outline: 3px solid rgba(194, 24, 91, .4); outline-offset: 3px; border-radius: 8px; }

/* ---------- top ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 248, 250, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 23px; letter-spacing: -.02em; color: var(--primary); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { white-space: nowrap; }
.brand b { color: var(--ink); font-weight: inherit; }
.top nav { display: flex; align-items: center; gap: 12px; }
.lang { font-size: 15px; font-weight: 700; color: var(--muted); padding: 10px 4px; white-space: nowrap; }
/* On a phone the buy bar at the bottom does this button's job, so the header stays on one line. */
.top .btn { display: none; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 16px; background: var(--primary); color: #fff; font-weight: 900; text-decoration: none; text-align: center; }
.btn:active { background: var(--primary-dark); }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 15.5px; border-radius: 12px; }
.btn.big { position: relative; overflow: hidden; min-height: 62px; padding: 0 30px; font-size: 20px; width: 100%; }
.btn.sun { background: var(--sun); color: var(--ink); }

/* ---------- hero: the problem first, then the app ---------- */
.hero { background: var(--primary); color: #fff; overflow: hidden; }
.hero-in { display: grid; gap: 8px; padding-top: 34px; }
.kicker { font-size: 15px; font-weight: 800; letter-spacing: .03em; color: #ffd9e6; }
.hero h1 { margin-top: 10px; font-size: 35px; line-height: 1.08; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.lead { margin-top: 16px; font-size: 19px; line-height: 1.45; font-weight: 600; color: #ffe9f0; }
.hero .btn { margin-top: 22px; }
.under { margin-top: 10px; font-size: 14.5px; font-weight: 700; color: #ffd9e6; text-align: center; }
.hero-art { position: relative; height: 430px; margin-top: 26px; }
.hero-art .disc { position: absolute; left: -110px; bottom: -190px; width: 430px; height: 430px; border-radius: 50%; background: var(--sun); }
/* Mana stands in front of the phone, so the phone never cuts across her face. */
.hero-art .mana { position: absolute; z-index: 2; left: -46px; bottom: 0; width: 262px; height: 262px; transform-origin: 50% 100%; }
.hero-art .mana img { width: 100%; height: 100%; }
.hero-art .phone { position: absolute; right: 0; top: 0; width: 214px; }

/* ---------- phone with a real screen ---------- */
.phone { width: 270px; max-width: 78%; margin: 0 auto; padding: 9px; border-radius: 40px; background: var(--ink); box-shadow: 0 22px 44px rgba(42, 15, 31, .28); }
.screen { position: relative; border-radius: 31px; overflow: hidden; }
.phone img { width: 100%; }

/* ---------- one block per problem ---------- */
/* Hidden overflow: a phone waiting to slide in from the side must not widen the page. */
.block { padding: 54px 0; background: var(--surface); overflow: hidden; }
.block.alt { background: var(--primary-soft); }
.block-in { display: grid; gap: 34px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.tag.problem { background: var(--ink); color: #fff; }
.tag.solution { background: var(--sun); color: var(--ink); }
.tag svg { width: 15px; height: 15px; }
.block h2 { margin-top: 14px; font-size: 31px; line-height: 1.12; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.pain { margin-top: 12px; font-size: 18.5px; color: var(--muted); }
.answer { margin-top: 26px; padding: 22px 20px; border-radius: 26px; background: var(--sun-soft); }
.block.alt .answer { background: var(--surface); box-shadow: var(--shadow); }
.answer h3 { margin-top: 12px; font-size: 23px; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }
.answer ul { margin-top: 14px; display: grid; gap: 10px; }
.answer li, .offer li, .card-s { display: flex; gap: 10px; align-items: flex-start; }
.answer li svg, .offer li svg, .card-s svg { flex: none; width: 22px; height: 22px; margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--good); color: #fff; }

/* ---------- three more problems ---------- */
.more { padding: 54px 0; background: var(--sun-soft); }
.more h2, .how h2, .faq h2 { font-size: 29px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.cards { display: grid; gap: 14px; margin-top: 26px; }
.card { padding: 20px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.card img { width: 84px; height: 84px; }
.card-p { margin-top: 10px; font-size: 20px; line-height: 1.25; font-weight: 900; }
.card-s { margin-top: 10px; font-size: 17px; color: #4a2b38; }

/* ---------- how it works ---------- */
.how { padding: 54px 0; background: var(--surface); }
.how ol { display: grid; gap: 14px; margin-top: 26px; }
.how li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px; background: var(--primary-soft); font-weight: 700; }
.n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 20px; font-weight: 900; }

/* ---------- price ---------- */
.price { padding: 54px 0; background: var(--primary-soft); scroll-margin-top: 62px; }
.offer { max-width: 560px; margin: 0 auto; padding: 30px 24px; border-radius: 32px; background: var(--ink); color: #fff; text-align: center; box-shadow: var(--shadow); }
.offer h2 { font-size: 28px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; }
.offer ul { display: grid; gap: 10px; margin-top: 20px; text-align: left; font-weight: 600; }
.offer li svg { background: var(--sun); color: var(--ink); }
.amount { margin-top: 24px; font-size: 62px; line-height: 1; font-weight: 900; letter-spacing: -.03em; color: var(--sun); }
.amount small { display: block; margin-top: 8px; font-size: 16px; font-weight: 800; letter-spacing: 0; color: #f3dfe7; }
.offer .btn { margin-top: 22px; }
.guarantee { margin-top: 14px; font-size: 15.5px; color: #f3dfe7; }

/* ---------- questions ---------- */
.faq { padding: 54px 0; background: var(--surface); }
.faq details { margin-top: 10px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.faq h2 + details { margin-top: 24px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 14px 18px; font-weight: 800; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 22px; font-weight: 800; line-height: 28px; text-align: center; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; color: #4a2b38; overflow-wrap: anywhere; }

.foot { padding: 30px 0 110px; text-align: center; color: var(--muted); font-size: 16px; }
.foot .small { margin-top: 6px; font-size: 14px; }

/* ---------- buy bar that follows the reader on the phone ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(42, 15, 31, .08); transform: translateY(110%); transition: transform .25s; }
.sticky.on { transform: none; }
.sticky strong { display: block; font-size: 22px; font-weight: 900; line-height: 1.1; color: var(--primary); }
.sticky span { font-size: 13px; font-weight: 700; color: var(--muted); }
.sticky .btn { min-height: 48px; padding: 0 18px; font-size: 16px; }

/* ---------- motion ----------
   Everything moves with transform and opacity only, so it stays smooth on a modest phone.
   The whole section is switched off for people who asked their phone for less motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Opening: the text arrives line by line, the phone rises, Mana hops in and keeps a gentle sway. */
  @keyframes up { from { opacity: 0; transform: translateY(24px); } }
  @keyframes grow { from { opacity: 0; transform: scale(.35); } }
  @keyframes rise { from { opacity: 0; transform: translateY(70px) rotate(5deg); } }
  @keyframes float { 50% { transform: translateY(-11px); } }
  @keyframes hop { from { opacity: 0; transform: translateY(90px) scale(.88); } }
  @keyframes sway { 0%, 100% { transform: rotate(-1.7deg); } 50% { transform: rotate(1.9deg) translateY(-3px); } }
  @keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
  @keyframes shine { 0%, 62% { transform: translateX(-260%) skewX(-18deg); } 100% { transform: translateX(520%) skewX(-18deg); } }
  .hero-text > * { animation: up .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .1s; }
  .hero-text > :nth-child(3) { animation-delay: .22s; }
  .hero-text > :nth-child(4) { animation-delay: .34s; }
  .hero-text > :nth-child(5) { animation-delay: .44s; }
  .hero-art .disc { animation: grow .9s cubic-bezier(.2, .8, .2, 1) .25s both; }
  .hero-art .phone { animation: rise .9s cubic-bezier(.2, .8, .2, 1) .4s both, float 6s ease-in-out 1.5s infinite; }
  .hero-art .mana { animation: hop .9s cubic-bezier(.3, 1.4, .5, 1) .65s both, sway 4.2s ease-in-out 1.7s infinite; }
  .spark { animation: twinkle 2.6s ease-in-out infinite; }
  .spark.s2 { animation-delay: .5s; } .spark.s3 { animation-delay: 1.1s; } .spark.s4 { animation-delay: 1.6s; } .spark.s5 { animation-delay: 2.1s; }
  .btn.big::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); animation: shine 4.6s ease-in-out 1.6s infinite; }

  /* On scroll: a group (.g) gets .in when it enters the screen and its parts (.rv) arrive in turn. */
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
  .rv.pop { transform: scale(.6); transition-timing-function: ease, cubic-bezier(.3, 1.6, .5, 1); }
  .rv.from-r { transform: translateX(56px) rotate(5deg); transition-duration: .7s, .9s; }
  .rv.from-l { transform: translateX(-56px) rotate(-5deg); transition-duration: .7s, .9s; }
  .in .rv, .rv.in { opacity: 1; transform: none; }
  /* The check marks draw themselves a moment after their line arrives. */
  .rv svg polyline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s ease calc(var(--d, 0ms) + 260ms); }
  .in .rv svg polyline, .rv.in svg polyline { stroke-dashoffset: 0; }
  /* The drawings of the small cards give a little wiggle, and the step numbers pop. */
  @keyframes wiggle { 0% { transform: rotate(0); } 25% { transform: rotate(-9deg) scale(1.08); } 55% { transform: rotate(7deg) scale(1.08); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
  @keyframes pop { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
  .in .card img { animation: wiggle .9s ease calc(var(--d, 0ms) + 350ms) both; }
  .in .rv .n { animation: pop .6s ease calc(var(--d, 0ms) + 150ms) both; }
  /* A finger tapping on the screen, on the control that solves the problem. */
  @keyframes tapdot { 0%, 100% { opacity: 0; transform: scale(.5); } 12%, 22% { opacity: 1; transform: scale(.62); } 30% { opacity: 1; transform: scale(.44); } 42%, 78% { opacity: 1; transform: scale(.56); } }
  @keyframes tapring { 0%, 28% { opacity: 0; transform: scale(.45); } 32% { opacity: .95; } 78%, 100% { opacity: 0; transform: scale(1.7); } }
  .phone.in .tap::before { animation: tapdot 2.6s ease-in-out 1.1s infinite; }
  .phone.in .tap::after { animation: tapring 2.6s ease-out 1.1s infinite; }
  @media (hover: hover) { .card { transition: transform .25s ease, box-shadow .25s ease; } .card:hover { transform: translateY(-6px); } .btn { transition: transform .15s ease; } .btn:hover { transform: translateY(-2px); } }
}
.spark { position: absolute; width: 22px; height: 22px; opacity: 0; pointer-events: none; }
.spark svg { display: block; width: 100%; height: 100%; fill: #fff; }
.spark.s1 { left: 0; top: 14%; }
.spark.s2 { left: 30%; top: 4%; width: 16px; height: 16px; }
.spark.s3 { left: 36%; top: 30%; width: 14px; height: 14px; }
.spark.s4 { left: -6%; top: 44%; width: 18px; height: 18px; }
.spark.s5 { left: 62%; top: 2%; width: 15px; height: 15px; }
.tap { position: absolute; width: 0; height: 0; pointer-events: none; }
.tap::before, .tap::after { content: ""; position: absolute; left: -21px; top: -21px; width: 42px; height: 42px; border-radius: 50%; opacity: 0; }
/* See-through, so the label under the finger can still be read. */
.tap::before { background: rgba(255, 197, 61, .38); border: 3px solid #fff; box-shadow: 0 3px 12px rgba(42, 15, 31, .3); }
.tap::after { border: 3px solid var(--sun); }
.tap.wide::before, .tap.wide::after { left: -34px; top: -34px; width: 68px; height: 68px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sticky { transition: none; } }

/* ---------- wider screens ---------- */
@media (min-width: 560px) { .top .btn { display: inline-flex; } }
@media (min-width: 860px) {
  .hero-in { grid-template-columns: 1.08fr 1fr; align-items: center; gap: 30px; padding-top: 56px; }
  .hero h1 { font-size: 50px; }
  .lead { font-size: 21px; }
  .hero .btn { width: auto; }
  .under { text-align: left; }
  .hero-art { height: 560px; margin-top: 0; }
  .hero-art .disc { left: -90px; bottom: -230px; width: 540px; height: 540px; }
  .hero-art .mana { left: -30px; width: 360px; height: 360px; }
  .hero-art .phone { width: 262px; right: 6px; }
  .block { padding: 84px 0; }
  .block-in { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .block.alt .block-text { order: 2; }
  .block h2 { font-size: 40px; }
  .phone { width: 300px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .how ol { grid-template-columns: repeat(3, 1fr); }
  .how li { flex-direction: column; align-items: flex-start; }
  .more, .how, .price, .faq { padding: 84px 0; }
  .more h2, .how h2, .faq h2 { font-size: 36px; }
  .foot { padding-bottom: 40px; }
  .sticky { display: none; }
}
