/* ==========================================================================
   Appvio — Mobile App Landing Template · v1.0.0 · by cancap
   One hand-written stylesheet. No framework, no build step.

   Contents
   1.  Font
   2.  Theme tokens (default + 6 demo themes via body[data-theme])
   3.  Base & typography
   4.  Layout helpers
   5.  Buttons, badges, store buttons
   6.  Header & navigation
   7.  Hero layouts
   8.  Phone mockup + app screens
   9.  Sections (stats, logos, features, split, steps, carousel, video,
       testimonials, pricing, FAQ, integrations, CTA, newsletter)
   10. Inner pages (page hero, blog, contact, download, legal, 404, soon)
   11. Footer
   12. Utilities & animation
   ========================================================================== */

/* 1. Font ------------------------------------------------------------------ */
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* 2. Theme tokens ---------------------------------------------------------- */
:root {
  --brand: #6d4aff;          /* main color: buttons, links, highlights */
  --brand-2: #00c2ff;        /* second gradient color */
  --accent: #ffb020;         /* small highlights (stars, tags) */
  --on-brand: #fff;
  --bg: #ffffff;
  --bg-2: #f6f5fb;           /* alternate section background */
  --surface: #ffffff;        /* cards */
  --text: #12101c;
  --muted: #625f73;
  --line: #e9e7f2;
  --shadow: 0 1px 2px rgb(18 16 28 / .05), 0 20px 50px -24px rgb(18 16 28 / .25);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --grad: linear-gradient(120deg, var(--brand), var(--brand-2));
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* Dark base used by dark demos */
[data-theme="fitness"], [data-theme="meditation"] {
  --bg: #0b0b10;
  --bg-2: #13131b;
  --surface: #17171f;
  --text: #f4f4f8;
  --muted: #a3a3b5;
  --line: #262633;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 30px 60px -30px rgb(0 0 0 / .8);
  color-scheme: dark;
}
[data-theme="fitness"]     { --brand: #c6ff3d; --brand-2: #ff6b2c; --accent: #ff6b2c; --on-brand: #0b0b10; }
[data-theme="meditation"]  { --brand: #a78bfa; --brand-2: #5eead4; --accent: #fcd34d; --on-brand: #120d24; --bg: #0f0c1d; --bg-2: #161229; --surface: #1c1733; --line: #2b2547; }
[data-theme="finance"]     { --brand: #3b5bfd; --brand-2: #10b981; --accent: #10b981; --bg-2: #f3f6ff; --line: #e3e8f7; }
[data-theme="food"]        { --brand: #ff4d2e; --brand-2: #ffb020; --accent: #ffb020; --bg: #fffaf5; --bg-2: #fff1e6; --surface: #fff; --line: #f6e3d4; --text: #24140c; --muted: #7a6458; }
[data-theme="social"]      { --brand: #e8338b; --brand-2: #7b5cff; --accent: #ffcd3c; --bg-2: #fdf3fa; --line: #f1e1ee; }
[data-theme="productivity"]{ --brand: #2563eb; --brand-2: #14b8a6; --accent: #f59e0b; --bg-2: #f2f7fb; --line: #e2eaf2; }

/* 3. Base & typography ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  --grad: linear-gradient(120deg, var(--brand), var(--brand-2)); /* re-evaluated per theme */
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--muted); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* 4. Layout helpers -------------------------------------------------------- */
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head p { font-size: 1.08rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
[data-theme="fitness"] .eyebrow, [data-theme="meditation"] .eyebrow { color: var(--brand); }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.center { text-align: center; }

/* 5. Buttons & badges ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent; font: 700 .98rem/1 var(--font); cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); font-size: .86rem; font-weight: 600; color: var(--text); }
.pill b { background: var(--brand); color: var(--on-brand); padding: 3px 10px; border-radius: 999px; font-size: .75rem; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }

/* Store buttons (App Store / Google Play) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 14px; background: #0b0b10; color: #fff; border: 1px solid rgb(255 255 255 / .14); transition: transform .2s, box-shadow .2s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgb(0 0 0 / .6); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .66rem; opacity: .75; line-height: 1.1; letter-spacing: .02em; }
.store b { display: block; font-size: 1.08rem; line-height: 1.15; letter-spacing: -.01em; }
[data-theme="fitness"] .store, [data-theme="meditation"] .store { background: #fff; color: #0b0b10; }

.rating { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: .9rem; color: var(--muted); }
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars svg { width: 17px; height: 17px; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; }
.avatars span + span { margin-inline-start: -10px; }

/* 6. Header ---------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, height .3s; }
.header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 84px; transition: height .3s; }
.header.scrolled .nav { height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.logo i { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px -8px var(--brand); }
.logo i svg { width: 20px; height: 20px; }
.menu { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.menu > li > a, .menu > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; font: 600 .95rem var(--font); color: var(--muted); background: none; border: 0; cursor: pointer; transition: color .2s, background .2s; }
.menu > li > a:hover, .menu > li > button:hover, .menu a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.has-drop { position: relative; }
.has-drop svg { width: 14px; height: 14px; transition: transform .2s; }
.drop { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-drop:hover .drop, .has-drop.open .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop.open svg { transform: rotate(180deg); }
.drop a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; font-size: .92rem; font-weight: 700; }
.drop a:hover { background: var(--bg-2); }
.drop a small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.drop .dot { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; place-items: center; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 1020px) {
  .burger { display: grid; margin-inline-start: auto; }
  .nav-cta .btn { display: none; }
  .menu { position: fixed; inset: 72px 12px auto; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 90px); overflow: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s; }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu > li > a, .menu > li > button { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1rem; }
  .drop { position: static; translate: none; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 6px 8px; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-drop:hover .drop { display: none; }
  .has-drop.open .drop { display: grid; }
  .menu .menu-cta { display: block; padding: 8px 4px 2px; }
  .menu .menu-cta .btn { width: 100%; }
}
@media (min-width: 1021px) { .menu .menu-cta { display: none; } }

/* 7. Hero ------------------------------------------------------------------ */
/* first section slides under the transparent header so backgrounds are not cut */
main > .hero:first-child { margin-top: -84px; padding-top: calc(84px + clamp(36px, 6vw, 80px)); }
main > .page-hero:first-child { margin-top: -84px; padding-top: calc(84px + clamp(50px, 8vw, 100px)); }
main > .full-center:first-child { margin-top: -84px; min-height: 100vh; }
.hero.centered h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy > p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 540px; }
.hero-copy h1 { margin: 22px 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero.centered { text-align: center; }
.hero.centered .hero-copy { max-width: 820px; margin: 0 auto; }
.hero.centered .hero-copy > p { margin-inline: auto; }
.hero.centered .hero-actions, .hero.centered .rating, .hero.centered .stores { justify-content: center; }
.hero.reverse .hero-grid { grid-template-columns: .95fr 1.05fr; }
.hero.reverse .hero-visual { order: -1; }
@media (max-width: 960px) {
  .hero-grid, .hero.reverse .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero.reverse .hero-visual { order: 0; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .rating, .hero .stores { justify-content: center; }
  .hero-visual { min-height: 480px; }
}

/* decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: -1; }
.blob.b1 { width: 520px; height: 520px; background: var(--brand); top: -160px; right: -120px; opacity: .28; }
.blob.b2 { width: 420px; height: 420px; background: var(--brand-2); bottom: -180px; left: -140px; opacity: .22; }
.ring { position: absolute; width: 480px; height: 480px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent); z-index: 0; animation: spin 60s linear infinite; }
.disc { position: absolute; width: min(440px, 88vw); aspect-ratio: 1; border-radius: 50%; background: var(--grad); opacity: .9; z-index: 0; }
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); opacity: .7; }
@media (max-width: 640px) { .disc { width: min(320px, 82vw); } .ring { width: 360px; height: 360px; } }

/* floating cards around phones */
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .85rem; animation: bob 6s ease-in-out infinite; text-align: start; }
.float b { display: block; font-size: 1.05rem; color: var(--text); line-height: 1.2; }
.float small { color: var(--muted); }
.float .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: var(--grad); }
.float .ic svg { width: 20px; height: 20px; }
.float.f2 { animation-delay: -3s; }
@media (max-width: 640px) { .float { transform: scale(.85); } .float.hide-sm { display: none; } }

/* 8. Phone mockup ---------------------------------------------------------- */
/* Change --pw to resize. Everything inside scales with it (em units). */
.phone {
  --pw: 290px;
  position: relative; z-index: 2; width: var(--pw); aspect-ratio: 9 / 19.3; flex: none;
  border-radius: calc(var(--pw) * .16); padding: calc(var(--pw) * .035);
  background: linear-gradient(145deg, #2c2c34, #0d0d12 45%, #24242c);
  box-shadow: inset 0 0 0 2px #3c3c46, 0 0 0 1px #000, 0 40px 80px -30px rgb(0 0 0 / .55), 0 18px 36px -18px rgb(0 0 0 / .4);
  font-size: calc(var(--pw) / 20.5);
}
.phone::before { content: ""; position: absolute; right: -3px; top: 26%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #2a2a31; }
.phone::after { content: ""; position: absolute; left: -3px; top: 20%; width: 3px; height: 7%; border-radius: 3px 0 0 3px; background: #2a2a31; box-shadow: 0 calc(var(--pw) * .13) 0 #2a2a31; }
.screen { position: relative; height: 100%; border-radius: calc(var(--pw) * .128); overflow: hidden; background: #fff; color: #14121c; isolation: isolate; }
.screen > img { width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: .55em; left: 50%; translate: -50% 0; width: 30%; height: 1.45em; border-radius: 1em; background: #000; z-index: 5; }
.status { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: .75em 1.6em 0; height: 2.6em; font-size: .78em; font-weight: 700; }
.status .sig { display: flex; gap: .35em; align-items: center; }
.status .sig i { display: block; width: 1.5em; height: .7em; border-radius: .2em; border: .12em solid currentColor; position: relative; }
.status .sig i::after { content: ""; position: absolute; inset: .1em; right: 30%; background: currentColor; border-radius: .06em; }
.status .sig b { display: block; width: 1em; height: .7em; background: linear-gradient(90deg, currentColor 20%, transparent 20% 30%, currentColor 30% 50%, transparent 50% 60%, currentColor 60% 80%, transparent 80% 90%, currentColor 90%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.phone.sm { --pw: 230px; }
.phone.xs { --pw: 190px; }
.phone.lg { --pw: 310px; }
.phone.tilt-l { transform: rotate(-8deg); }
.phone.tilt-r { transform: rotate(8deg); }
.phone-duo { position: relative; display: flex; align-items: center; justify-content: center; }
.phone-duo .phone + .phone { margin-left: calc(var(--pw) * -.25); margin-top: 18%; }
@media (max-width: 640px) { .phone { --pw: 240px; } .phone.sm { --pw: 190px; } .phone.lg { --pw: 250px; } .phone.xs { --pw: 160px; } }

/* --- app screen building blocks (used by all 6 app designs) --- */
.app { position: absolute; inset: 0; padding: 2.9em 1.1em 1em; display: flex; flex-direction: column; gap: .8em; font-size: 1em; line-height: 1.3; overflow: hidden; }
.app h5 { margin: 0; font-size: 1.35em; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.app h6 { margin: 0; font-size: .95em; font-weight: 800; }
.app p { margin: 0; font-size: .78em; color: inherit; opacity: .65; }
.app .row { display: flex; align-items: center; gap: .6em; }
.app .sp { margin-left: auto; }
.app .av { width: 2.2em; height: 2.2em; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .75em; font-weight: 800; color: #fff; }
.app .tile { border-radius: 1em; padding: .9em; }
.app .bar { height: .5em; border-radius: 1em; background: rgb(0 0 0 / .08); overflow: hidden; }
.app .bar i { display: block; height: 100%; border-radius: 1em; }
.app .chip { display: inline-block; padding: .35em .8em; border-radius: 1em; font-size: .7em; font-weight: 700; }
.app .tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: .7em .4em .2em; border-top: 1px solid rgb(0 0 0 / .06); }
.app .tabbar i { width: 1.5em; height: 1.5em; border-radius: .45em; background: currentColor; opacity: .18; }
.app .tabbar i.on { opacity: 1; }
.app .big { font-size: 2.1em; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.app svg { max-width: none; }
.app .home-ind { position: absolute; bottom: .45em; left: 50%; translate: -50% 0; width: 34%; height: .3em; border-radius: 1em; background: currentColor; opacity: .5; }

/* fitness app (dark, lime) */
.a-fit { background: #0e0f13; color: #f5f7f0; }
.a-fit .ringbox { display: grid; place-items: center; position: relative; }
.a-fit .tile { background: #1a1c22; }
.a-fit .lime { color: #c6ff3d; }
.a-fit .bars { display: flex; align-items: flex-end; gap: .35em; height: 4.6em; }
.a-fit .bars i { flex: 1; border-radius: .35em; background: #2b2f38; }
.a-fit .bars i.on { background: #c6ff3d; }
.a-fit .tabbar { border-color: #22252c; }
/* finance app (light, indigo) */
.a-fin { background: #f4f6ff; color: #121a3a; }
.a-fin .cardx { border-radius: 1.1em; padding: 1em; color: #fff; background: linear-gradient(135deg, #3b5bfd, #6d4aff 60%, #10b981); box-shadow: 0 .8em 1.6em -.8em #3b5bfd; }
.a-fin .tile { background: #fff; }
.a-fin .tx { display: flex; align-items: center; gap: .7em; padding: .45em 0; font-size: .85em; }
.a-fin .tx .ic { width: 2.2em; height: 2.2em; border-radius: .7em; display: grid; place-items: center; font-size: .9em; }
.a-fin .pos { color: #059669; font-weight: 800; }
/* food app (warm) */
.a-food { background: #fff8f2; color: #2a170d; }
.a-food .search { background: #fff; border-radius: 1em; padding: .7em .9em; font-size: .78em; color: #a08a7d; box-shadow: 0 .3em 1em -.4em rgb(120 60 20 / .25); }
.a-food .cats { display: flex; gap: .45em; }
.a-food .cats span { flex: 1; text-align: center; border-radius: .9em; padding: .55em 0; font-size: .66em; font-weight: 700; background: #fff; }
.a-food .cats span.on { background: #ff4d2e; color: #fff; }
.a-food .dish { border-radius: 1.1em; background: #fff; overflow: hidden; box-shadow: 0 .4em 1.2em -.6em rgb(120 60 20 / .35); }
.a-food .dish .img { height: 6.2em; display: grid; place-items: center; }
.a-food .dish .meta { padding: .6em .8em .75em; }
.a-food .price { color: #ff4d2e; font-weight: 800; }
.a-food .dish h6 { font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-food .dish .row { white-space: nowrap; gap: .3em; }
/* meditation app (deep violet) */
.a-med { background: radial-gradient(120% 70% at 50% 0%, #3b2d7a, #120d24 70%); color: #efeaff; }
.a-med .orb { width: 9.5em; height: 9.5em; margin: .6em auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c3aed 55%, #2e1065); box-shadow: 0 0 3em #8b5cf6aa, inset 0 0 2em #ffffff44; animation: breathe 6s ease-in-out infinite; }
.a-med .tile { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .1); }
.a-med .tabbar { border-color: rgb(255 255 255 / .08); }
/* social app (pink) */
.a-soc { background: #fff; color: #1d1424; }
.a-soc .stories { display: flex; gap: .55em; }
.a-soc .story { width: 2.9em; height: 2.9em; border-radius: 50%; padding: .17em; background: linear-gradient(135deg, #e8338b, #7b5cff, #ffcd3c); flex: none; }
.a-soc .story span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: .15em solid #fff; font-size: .7em; font-weight: 800; color: #fff; }
.a-soc .post { border-radius: 1.1em; overflow: hidden; background: #faf6fb; }
.a-soc .post .img { height: 9.5em; }
.a-soc .bubble { max-width: 78%; padding: .6em .85em; border-radius: 1.1em; font-size: .78em; background: #f3eef6; }
.a-soc .bubble.me { margin-left: auto; color: #fff; background: linear-gradient(135deg, #e8338b, #7b5cff); }
/* productivity app (blue) */
.a-pro { background: #f7f9fc; color: #0f1b2d; }
.a-pro .task { display: flex; align-items: center; gap: .6em; background: #fff; border-radius: .9em; padding: .7em .8em; font-size: .8em; box-shadow: 0 .2em .8em -.4em rgb(15 27 45 / .2); }
.a-pro .ck { width: 1.3em; height: 1.3em; border-radius: .4em; border: .14em solid #c3cfdd; flex: none; display: grid; place-items: center; }
.a-pro .ck.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.a-pro .done { text-decoration: line-through; opacity: .45; }
.a-pro .days { display: flex; justify-content: space-between; font-size: .68em; text-align: center; }
.a-pro .days span { padding: .5em .55em; border-radius: .8em; font-weight: 700; }
.a-pro .days span.on { background: #2563eb; color: #fff; }

/* 9. Sections -------------------------------------------------------------- */
/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* logo strip */
.logos { padding: 36px 0; }
.logos p { text-align: center; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; opacity: .6; }
.logo-row span { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; color: var(--text); }
.logo-row svg { width: 26px; height: 26px; }

/* features grid */
.feature { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.feature .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.feature .ic svg { width: 26px; height: 26px; }
.feature p { margin: 0; }

/* split (text + phone) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split + .split { margin-top: clamp(60px, 9vw, 120px); }
.split.rev .split-visual { order: 2; }
.split-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.split-visual .disc { width: min(400px, 86vw); opacity: .18; }
.checks { display: grid; gap: 14px; margin: 26px 0 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-weight: 600; }
.checks svg { width: 24px; height: 24px; flex: none; padding: 4px; border-radius: 50%; color: var(--on-brand); background: var(--brand); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev .split-visual { order: 0; } .split-visual { min-height: 460px; } }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step { position: relative; padding: 34px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; margin-bottom: 20px; font-weight: 800; font-size: 1.1rem; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px var(--brand); }
.step p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* screenshot carousel */
.carousel { position: relative; }
.track { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 30px max(20px, calc(50% - 600px)) 40px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track .phone { --pw: 230px; scroll-snap-align: center; transition: transform .4s; }
.track .phone:nth-child(odd) { transform: translateY(18px); }
.car-ctrl { display: flex; justify-content: center; align-items: center; gap: 16px; }
.car-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.car-btn:hover { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.car-btn svg { width: 20px; height: 20px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.dots button[aria-current="true"] { width: 30px; background: var(--brand); }

/* video / demo mock */
.video { position: relative; border-radius: 32px; overflow: hidden; padding: clamp(30px, 6vw, 70px); background: var(--grad); color: var(--on-brand); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.video h2, .video p, .video .eyebrow { color: inherit; }
.video p { opacity: .85; }
.video::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgb(255 255 255 / .25), transparent 40%), radial-gradient(circle at 10% 90%, rgb(0 0 0 / .25), transparent 40%); }
.video > * { position: relative; }
.play { width: 84px; height: 84px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: #fff; color: var(--brand); box-shadow: 0 0 0 14px rgb(255 255 255 / .2), 0 0 0 30px rgb(255 255 255 / .1); animation: pulse 2.4s infinite; }
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.video .phone { --pw: 230px; }
.video.playing .app > * { animation: demo-in .6s both; }
.video.playing .app > *:nth-child(2) { animation-delay: .1s; } .video.playing .app > *:nth-child(3) { animation-delay: .2s; } .video.playing .app > *:nth-child(4) { animation-delay: .3s; } .video.playing .app > *:nth-child(5) { animation-delay: .4s; }
@media (max-width: 860px) { .video { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* testimonials */
.quote { display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-size: 1.05rem; color: var(--text); line-height: 1.6; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .who span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.quote .who b { display: block; }
.quote .who small { color: var(--muted); }
.quote.featured { background: var(--grad); border-color: transparent; color: var(--on-brand); }
.quote.featured blockquote, .quote.featured b, .quote.featured .stars { color: inherit; } .quote.featured small { color: inherit; opacity: .8; }

/* pricing */
.billing { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); margin-top: 8px; }
.billing button { height: 42px; padding: 0 20px; border-radius: 99px; border: 0; background: none; font: 700 .92rem var(--font); color: var(--muted); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.billing .save { font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: #111; margin-inline-start: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 34px 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.plan.pop { border: 2px solid var(--brand); box-shadow: var(--shadow); transform: translateY(-10px); }
.plan.pop::before { content: attr(data-badge); position: absolute; top: -14px; left: 50%; translate: -50% 0; padding: 5px 14px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.price { display: flex; align-items: flex-end; gap: 6px; margin: 18px 0 6px; }
.price b { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.price span { color: var(--muted); padding-bottom: 6px; }
.plan .checks { margin: 22px 0 28px; font-size: .95rem; flex: 1; }
.plan .checks li { font-weight: 500; }
.plan .btn { width: 100%; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan.pop { transform: none; } }

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 0; background: none; cursor: pointer; font: 700 1.03rem/1.4 var(--font); color: var(--text); text-align: start; }
.faq-q i { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--bg-2); color: var(--brand); transition: transform .3s, background .3s; }
.faq-q i svg { width: 16px; height: 16px; }
.faq-q[aria-expanded="true"] i { transform: rotate(45deg); background: var(--brand); color: var(--on-brand); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; margin: 0; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }

/* integrations */
.integrations { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.intg { aspect-ratio: 1; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; align-content: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); transition: transform .3s; }
.intg:hover { transform: translateY(-5px) rotate(-2deg); }
.intg i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-size: 1.2rem; }
@media (max-width: 860px) { .integrations { grid-template-columns: repeat(3, 1fr); } }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(40px, 7vw, 80px); background: #0e0d16; color: #fff; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.cta h2 { color: #fff; } .cta p { color: rgb(255 255 255 / .75); }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--grad); filter: blur(90px); opacity: .5; right: -160px; top: -200px; }
.cta > * { position: relative; }
.cta .store { background: #fff; color: #0b0b10; }
.cta-visual { height: 280px; position: relative; }
.cta-visual .phone { --pw: 210px; position: absolute; left: 50%; top: 0; translate: -50% 0; transform: rotate(10deg); }
[data-theme="fitness"] .cta, [data-theme="meditation"] .cta { background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; text-align: center; } .cta .stores { justify-content: center; } .cta-visual { display: none; } }

/* newsletter */
.newsletter { display: flex; gap: 10px; max-width: 480px; }
.newsletter input, .field input, .field textarea, .field select {
  flex: 1; min-width: 0; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: 500 1rem var(--font); transition: border-color .2s, box-shadow .2s;
}
.newsletter input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.form-msg { margin-top: 10px; font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #10b981; } .form-msg.err { color: #ef4444; }
@media (max-width: 520px) { .newsletter { flex-direction: column; } }

/* 10. Inner pages ---------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(50px, 8vw, 100px) 0 clamp(40px, 6vw, 70px); text-align: center; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.crumbs { display: flex; justify-content: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand); }

/* demo chooser (index) */
.demo-card { display: block; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; }
.demo-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.demo-card .thumb { position: relative; height: 330px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 34px; }
.demo-card .thumb .phone { --pw: 210px; transition: transform .5s; }
.demo-card:hover .thumb .phone { transform: translateY(-14px); }
.demo-card .meta { padding: 20px 24px; display: flex; align-items: center; gap: 12px; }
.demo-card .meta b { font-size: 1.08rem; }
.demo-card .meta small { display: block; color: var(--muted); }
.demo-card .meta .arrow { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); transition: .3s; }
.demo-card:hover .arrow { background: var(--brand); color: var(--on-brand); }
.demo-card .arrow svg { width: 18px; height: 18px; }

/* blog */
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .cover { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.post-card .cover svg { width: 42%; height: auto; opacity: .95; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.18rem; }
.post-card .tag, .article-head .tag { align-self: flex-start; }
.post-card p { margin: 0; font-size: .95rem; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: .84rem; color: var(--muted); margin-top: auto; }
.article { max-width: 760px; margin: 0 auto; }
.article .cover { aspect-ratio: 16 / 8; border-radius: 28px; display: grid; place-items: center; margin-bottom: 40px; }
.article .cover svg { width: 30%; }
.article p, .article li { font-size: 1.08rem; color: var(--text); opacity: .85; }
.article h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.article blockquote { margin: 30px 0; padding: 24px 28px; border-radius: 20px; background: var(--bg-2); border-left: 4px solid var(--brand); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.author { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; font-size: .92rem; color: var(--muted); }
.author span { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border: 0; }
.info-item .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item b { display: block; color: var(--text); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select { border-radius: 14px; }
.field textarea { border-radius: 14px; height: 150px; padding: 16px 20px; resize: vertical; }
.field .err { color: #ef4444; font-size: .82rem; min-height: 1.1em; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ef4444; }
.success { display: none; text-align: center; padding: 40px 10px; }
.success.show { display: block; animation: demo-in .5s both; }
.success .ic { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #10b981; color: #fff; }
.success .ic svg { width: 34px; height: 34px; }
@media (max-width: 860px) { .contact-grid, .form { grid-template-columns: 1fr; } }

/* download page */
.qr { width: 190px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.req { display: grid; gap: 10px; font-size: .95rem; }
.req li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.req li span { color: var(--muted); }

/* legal */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.4em; }

/* 404 + coming soon */
.full-center { min-height: calc(100vh - 84px); display: grid; place-items: center; text-align: center; padding: 60px 0; position: relative; overflow: hidden; }
.e404 { font-size: clamp(6rem, 20vw, 13rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; }
.countdown { display: flex; justify-content: center; gap: 14px; margin: 34px 0; }
.countdown div { width: 96px; padding: 18px 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.countdown b { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .8rem; color: var(--muted); }
@media (max-width: 480px) { .countdown { gap: 8px; } .countdown div { width: 72px; } .countdown b { font-size: 1.6rem; } }

/* 11. Footer --------------------------------------------------------------- */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: .95rem; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.footer li a:hover { color: var(--brand); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); transition: .2s; }
.social a:hover { color: var(--on-brand); background: var(--brand); border-color: transparent; }
.social svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* 12. Utilities & animation ------------------------------------------------ */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 50% { transform: scale(1.08); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 20px rgb(255 255 255 / .15), 0 0 0 40px rgb(255 255 255 / .05); } }
@keyframes demo-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .header, .footer, .to-top { display: none; } }
