/* Carevo website — matches the app's blue/navy design system. No build step. */
:root {
    --blue: #1769ff;
    --blue-2: #287bff;
    --navy: #071e49;
    --text: #101d35;
    --muted: #5f6f89;
    --line: #e7ecf4;
    --pale: #eef5ff;
    --lavender: #f0ebff;
    --purple: #7b5cf5;
    --mint: #16b38a;
    --mint-soft: #e2f8f1;
    --cyan: #18b4e0;
    --amber: #f5a524;
    --amber-soft: #fff4dd;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(10, 42, 102, .08);
    --display: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--body); color: var(--text); background: #fff; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(23, 105, 255, .45); outline-offset: 3px; border-radius: 8px; }

/* Buttons, pills, icons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--body); transition: transform .15s, box-shadow .15s, background .15s; }
.btn--primary { background: linear-gradient(180deg, var(--blue-2), var(--blue)); color: #fff; box-shadow: 0 8px 22px rgba(23, 105, 255, .3); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(23, 105, 255, .36); }
.btn--outline { border: 1.5px solid #c9d8f5; color: var(--blue); background: #fff; }
.btn--outline:hover { border-color: var(--blue); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: var(--lavender); color: #3a2f86; font: 500 13px/1.2 var(--body); }
.pill--sm { font-size: 12.5px; padding: 5px 11px; background: #edeaff; }
.pill--white { background: #fff; color: var(--blue); }
.pill__dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #a28bff, var(--purple)); box-shadow: inset 0 0 0 3px #d9d0ff; }
.icon, .step__icon, .card__icon, .chip__icon { display: inline-grid; place-items: center; border-radius: 16px; }
.icon svg, .step__icon svg, .card__icon svg, .chip__icon svg { width: 52%; height: 52%; }
.icon--purple { background: linear-gradient(145deg, #f2edff, #e4dbff); color: var(--purple); }
.icon--blue { background: linear-gradient(145deg, #eaf3ff, #d8e8ff); color: var(--blue); }
.icon--violet { background: linear-gradient(145deg, #f1ebff, #e6dcff); color: #8f4cf0; }
.icon--mint { background: linear-gradient(145deg, #e3faf4, #cbf2e7); color: var(--mint); }
.icon--amber { background: var(--amber-soft); color: var(--amber); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); }
.header__bar { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 var(--display); color: var(--navy); letter-spacing: -.02em; }
.brand b { color: var(--blue); }
.nav { display: flex; gap: 34px; margin-inline: auto; font: 500 15px/1 var(--body); color: var(--text); }
.nav a:hover { color: var(--blue); }
.menu { display: none; }

/* Hero */
.hero { position: relative; padding: 36px 0 40px; background: radial-gradient(60% 70% at 85% 30%, #eef1ff 0, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #fff 0, #f8faff 100%); }
.hero__grid { display: grid; grid-template-columns: 1.12fr .95fr; align-items: center; gap: 30px; }
.hero h1 { font-size: clamp(34px, 4.1vw, 54px); margin: 22px 0 22px; letter-spacing: -.03em; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 11px; min-width: 182px; height: 60px; padding: 0 20px; border-radius: 12px; background: #000; color: #fff; font: 600 22px/1 var(--body); letter-spacing: -.01em; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: flex; flex-direction: column; gap: 3px; }
.store small { font: 500 11px/1 var(--body); letter-spacing: .02em; }
.store--soon { background: #3d4555; cursor: default; }
.store--soon:hover { transform: none; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 40px; }
.facts li { display: flex; align-items: center; gap: 12px; }
.facts b { display: block; font: 700 18px/1.2 var(--display); color: var(--navy); }
.facts li > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.3; }
.facts__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.facts__icon svg { width: 19px; height: 19px; }
.facts__icon--blue { background: var(--pale); color: var(--blue); }
.facts__icon--amber { background: var(--amber-soft); color: var(--amber); }
.facts__icon--purple { background: var(--lavender); color: var(--purple); }

.hero__art { position: relative; height: 560px; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob--a { width: 460px; height: 460px; right: -40px; top: 40px; background: radial-gradient(circle at 40% 40%, #e3e9ff, #ece4ff 60%, rgba(236, 228, 255, 0) 72%); }
.blob--b { width: 220px; height: 220px; right: 0; bottom: 10px; background: radial-gradient(circle, #e6dcff, rgba(230, 220, 255, 0) 70%); }
.phone { position: absolute; margin: 0; width: 250px; padding: 9px; border-radius: 40px; background: linear-gradient(145deg, #1c2233, #05070d); box-shadow: 0 30px 60px rgba(7, 30, 73, .28), inset 0 0 0 2px #3a4256; }
.phone img { width: 100%; height: auto; border-radius: 31px; }
.phone::before { content: ''; position: absolute; top: 15px; left: 50%; width: 70px; height: 18px; translate: -50% 0; background: #05070d; border-radius: 999px; z-index: 1; }
.phone--front { left: 0; top: 6px; rotate: -12deg; z-index: 2; }
.phone--back { right: 8%; top: 66px; rotate: 8deg; width: 232px; }
.float-tile { position: absolute; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; background: #fff; color: var(--blue); box-shadow: var(--shadow); z-index: 3; }
.float-tile svg { width: 30px; height: 30px; }
.hero__art .float-tile { left: -2%; top: 300px; rotate: -8deg; }
.note { position: absolute; right: -66px; top: 300px; width: 120px; font: 500 22px/1.1 'Caveat', cursive; color: #4a64d8; transform: rotate(-6deg); z-index: 3; }
.note svg { width: 54px; margin: 6px 0 0 18px; color: #4a64d8; }

/* Features */
.features { padding: 40px 0 46px; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.feature .icon { width: 64px; height: 64px; margin: 0 auto 18px; box-shadow: 0 10px 22px rgba(123, 92, 245, .14); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); max-width: 230px; margin-inline: auto; }

/* How it works */
.how { padding: 36px 0; }
.how__grid { display: grid; grid-template-columns: .82fr 2fr; gap: 36px; align-items: center; }
.how h2 { font-size: clamp(28px, 3vw, 34px); margin-top: 14px; }
.steps { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; align-items: center; }
.step { position: relative; padding: 34px 18px 22px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step__num { position: absolute; top: -14px; left: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #efeaff; color: #5b3fd8; font: 700 15px/1 var(--display); }
.step__icon { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 14px; }
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.step__arrow { text-align: center; color: #9aa9c6; font-size: 22px; }

/* Templates */
.templates { padding: 46px 0; }
.templates__grid { display: grid; grid-template-columns: .82fr 2fr; gap: 36px; align-items: center; }
.templates h2 { font-size: clamp(28px, 3vw, 34px); margin: 14px 0 16px; }
.templates__intro p { color: var(--muted); margin-bottom: 24px; }
.gallery { position: relative; min-width: 0; }
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 18px; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { scroll-snap-align: start; }
.gallery__item img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 26px rgba(7, 30, 73, .14); background: #fff; }
.gallery__item span { display: block; margin-top: 10px; text-align: center; font: 600 14px/1.2 var(--body); color: var(--navy); }
.gallery__nav { position: absolute; top: 42%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 26px; line-height: 1; box-shadow: var(--shadow); cursor: pointer; }
.gallery__nav--prev { left: -20px; }
.gallery__nav--next { right: -20px; }

/* Why */
.why { padding: 40px 0; }
.why__grid { display: grid; grid-template-columns: .82fr 2fr; gap: 36px; align-items: center; }
.why h2 { font-size: clamp(26px, 2.8vw, 31px); margin-top: 14px; }
.why__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__icon { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 14px; }
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* FAQ */
.faq { padding: 40px 0; }
.faq__wrap { max-width: 860px; }
.faq h2 { font-size: clamp(26px, 2.8vw, 32px); text-align: center; margin-bottom: 26px; }
.faq__item { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--blue); font: 600 22px/1 var(--body); }
.faq__item[open] summary::after { content: '−'; }
.faq__item h3 { font: 600 15.5px/1.4 var(--body); color: var(--navy); letter-spacing: 0; }
.faq__item p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* CTA */
.cta-section { padding: 30px 0 34px; }
.cta { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: end; min-height: 300px; padding: 0 0 0 48px; border-radius: 28px; overflow: hidden; background: linear-gradient(110deg, #eef3ff 0, #e8efff 45%, #efe9ff 100%); }
.cta__copy { padding: 40px 0; align-self: center; }
.cta h2 { font-size: clamp(28px, 3vw, 34px); margin: 14px 0 12px; }
.cta__copy p { color: var(--muted); max-width: 420px; }
.cta .stores { margin-top: 22px; }
.cta__art { position: relative; height: 300px; }
.cta__character { position: absolute; bottom: -4px; left: 50%; translate: -50% 0; width: 300px; height: auto; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); font: 600 12.5px/1.25 var(--body); color: var(--navy); z-index: 2; }
.chip__icon { width: 36px; height: 36px; border-radius: 10px; }
.chip--a { left: 2%; top: 28px; }
.chip--b { right: 4%; top: 54px; }
.chip--c { right: 6%; bottom: 46px; }
.float-tile--cta { left: 8%; bottom: 60px; width: 56px; height: 56px; border-radius: 16px; }
.float-tile--cta svg { width: 26px; height: 26px; }

/* Footer */
.footer { padding: 26px 0 34px; }
.footer__bar { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.brand--footer { font-size: 20px; }
.brand--footer > span { display: flex; flex-direction: column; gap: 4px; }
.brand--footer small { font: 400 12px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-inline: auto; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--blue); }
.footer__copy { font-size: 13px; color: var(--muted); }

/* Legal pages */
.legal { padding: 28px 0 48px; }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 6px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { color: #3b4a63; font-size: 15.5px; line-height: 1.7; }
.legal p { margin: 0 0 12px; }
.legal ul { list-style: disc; padding-inline-start: 22px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal__meta { color: var(--muted) !important; font-size: 14px !important; margin-bottom: 22px !important; }
.legal__back { margin-inline-start: auto; color: var(--blue); font-weight: 600; font-size: 15px; }
.legal__back:hover { text-decoration: underline; }
.notice { padding: 14px 16px; border-radius: 12px; margin: 16px 0; font-size: 15px; line-height: 1.6; }
.notice--success { background: #e7f8f0; color: #0f5e3c; }
.notice--error { background: #fdecec; color: #9b1c1c; }
.form { display: grid; gap: 14px; max-width: 440px; margin: 8px 0 20px; }
.form__field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.form__field input { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: 400 16px var(--body); color: var(--text); }
.form__field input:focus { outline: 3px solid rgba(23, 105, 255, .25); border-color: var(--blue); }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #3b4a63; line-height: 1.5; }
.form__check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.btn--danger { justify-content: center; background: #d93838; color: #fff; border: 0; cursor: pointer; min-height: 50px; }
.btn--danger:hover { background: #bf2c2c; }

/* Tablet */
@media (max-width: 1180px) { .phone--back { right: 4%; } .note { display: none; } }

@media (max-width: 1024px) {
    .nav { gap: 22px; }
    .hero__grid, .how__grid, .templates__grid, .why__grid { grid-template-columns: 1fr; }
    .hero__copy { text-align: center; }
    .hero__copy .lead { margin-inline: auto; }
    .stores, .facts { justify-content: center; }
    .hero__art { max-width: 560px; width: 100%; margin: 10px auto 0; }
    .note { display: none; }
    .how__intro, .templates__intro, .why__intro { text-align: center; }
    .templates__intro p { max-width: 560px; margin-inline: auto; margin-bottom: 22px; }
    .features__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .why__cards { grid-template-columns: repeat(3, 1fr); }
    .cta { grid-template-columns: 1fr; padding: 0 28px; text-align: center; }
    .cta__copy p { margin-inline: auto; }
}

/* Mobile */
@media (max-width: 760px) {
    body { font-size: 15px; }
    .header__bar { height: 64px; gap: 12px; }
    .nav, .header__cta { display: none; }
    .menu { display: block; margin-left: auto; position: relative; }
    .menu summary { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pale); cursor: pointer; list-style: none; }
    .menu summary::-webkit-details-marker { display: none; }
    .menu summary span { width: 20px; height: 2px; border-radius: 2px; background: var(--navy); }
    .menu__panel { position: absolute; right: 0; top: 54px; display: flex; flex-direction: column; gap: 4px; width: min(280px, calc(100vw - 32px)); padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(7, 30, 73, .16); }
    .menu__panel a { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
    .menu__panel a:not(.btn):hover { background: var(--pale); }
    .menu__panel .btn { justify-content: center; margin-top: 6px; }
    .hero { padding-top: 24px; }
    .lead { font-size: 16px; }
    .store { min-width: 0; height: 54px; padding: 0 16px; font-size: 19px; }
    .facts { gap: 14px 22px; margin-top: 28px; }
    .hero__art { height: 440px; }
    .phone { width: 190px; padding: 7px; border-radius: 32px; }
    .phone img { border-radius: 25px; }
    .phone::before { width: 54px; height: 14px; top: 12px; }
    .phone--front { left: 7%; top: 14px; }
    .phone--back { width: 176px; right: 2%; top: 50px; }
    .blob--a { width: 340px; height: 340px; right: -60px; }
    .hero__art .float-tile { width: 54px; height: 54px; border-radius: 16px; top: 240px; left: 0; }
    .note { display: none; }
    .features__grid { gap: 30px 16px; }
    .feature .icon { width: 56px; height: 56px; }
    .steps { grid-template-columns: 1fr; gap: 26px; }
    .step__arrow { rotate: 90deg; margin: -14px 0; }
    .gallery__track { grid-auto-columns: 62%; }
    .gallery__nav { display: none; }
    .why__cards { grid-template-columns: 1fr; }
    .cta { border-radius: 22px; padding: 0 20px; }
    .cta__art { height: 280px; }
    .cta__character { width: 250px; }
    .chip { font-size: 11.5px; padding: 8px 12px 8px 8px; }
    .chip__icon { width: 30px; height: 30px; }
    .chip--a { left: 0; top: 14px; }
    .chip--b { right: 0; top: 70px; }
    .chip--c { display: none; }
    .float-tile--cta { left: 4%; bottom: 40px; }
    .footer__bar { flex-direction: column; text-align: center; }
    .footer__links { margin: 0; justify-content: center; }
}

@media (max-width: 380px) {
    .phone { width: 160px; }
    .phone--back { width: 150px; }
    .hero__art { height: 380px; }
    .features__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
