/* ==========================================================================
   HistoMed Landing — landing.css (v2)
   ساده، تمیز، موبایل‌اول · تم روشن/تیره · موشن وابسته به اسکرول
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --brand: #00897b;
    --brand-2: #2dd4bf;
    --btn-grad: linear-gradient(135deg, #00796b, #00897b 50%, #14a394);
    --hl-grad: linear-gradient(100deg, #0d9488 0%, #06b6d4 45%, #6366f1 100%);

    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --text: #0e1430;
    --text-2: #4d546f;
    --text-3: #8a90a8;
    --line: rgba(14, 20, 48, .08);
    --line-2: rgba(14, 20, 48, .14);
    --ink: #0e1430;
    --ink-text: #ffffff;
    --ink-hover: #1d2550;
    --glass: rgba(255, 255, 255, .78);
    --shadow-sm: 0 1px 2px rgba(14, 20, 48, .04), 0 4px 14px -6px rgba(14, 20, 48, .08);
    --shadow: 0 2px 6px rgba(14, 20, 48, .04), 0 18px 40px -18px rgba(14, 20, 48, .18);
    --shadow-lg: 0 30px 80px -30px rgba(14, 20, 48, .35);
    --phone-body: linear-gradient(150deg, #ffffff, #eef0f5);
    --phone-ring: rgba(14, 20, 48, .07);

    --m-bg: #f4f6f9;
    --m-card: #ffffff;
    --m-text: #10182f;
    --m-muted: #7d8399;
    --m-line: rgba(14, 20, 48, .07);

    --r-lg: 28px;
    --r-xl: 40px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.76, 0, .24, 1);
    --font: 'Peyda', 'Vazirmatn', Tahoma, system-ui, sans-serif;
    --nav-h: 72px;
    --gutter: 20px;
    --intro: 0s;
    color-scheme: light;
}

[data-theme="dark"] {
    --brand: #2dd4bf;
    --brand-2: #5eead4;
    --hl-grad: linear-gradient(100deg, #2dd4bf 0%, #38bdf8 45%, #a5b4fc 100%);
    --bg: #07090f;
    --bg-alt: #0c0f17;
    --surface: #121621;
    --surface-2: #181d2a;
    --text: #eef0f7;
    --text-2: #a7adc3;
    --text-3: #6f7590;
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .13);
    --ink: #ffffff;
    --ink-text: #0e1430;
    --ink-hover: #e3e6ef;
    --glass: rgba(10, 12, 20, .72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .9);
    --phone-body: linear-gradient(150deg, #2a2f3d, #12151d);
    --phone-ring: rgba(255, 255, 255, .08);

    --m-bg: #0b0e15;
    --m-card: #161b27;
    --m-text: #e7eaf3;
    --m-muted: #848aa1;
    --m-line: rgba(255, 255, 255, .07);
    color-scheme: dark;
}
html.is-intro { --intro: 1.05s; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    font-family: var(--font); background: var(--bg); color: var(--text);
    line-height: 1.8; font-size: 1rem;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: clip; -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--brand); color: #fff; }
.container { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: fixed; top: 10px; right: 10px; z-index: 300; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--ink-text); transform: translateY(-150%); transition: transform .3s; }
.skip:focus { transform: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease !important; }

/* ---------- Buttons ---------- */
.btn {
    --h: 48px;
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: var(--h); padding: 0 1.4em; border-radius: 14px;
    font-weight: 700; font-size: .95rem; white-space: nowrap;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 40px; padding: 0 1.1em; font-size: .88rem; border-radius: 12px; }
.btn-lg { --h: 56px; padding: 0 1.7em; font-size: 1rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn i { font-size: .85em; transition: transform .4s var(--ease); }
.btn:hover i.fa-arrow-left { transform: translateX(-4px); }
.btn-ink { background: var(--ink); color: var(--ink-text); }
.btn-ink:hover { background: var(--ink-hover); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(14, 20, 48, .6); }
.btn-soft { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); }
.btn-soft:hover { border-color: var(--text-3); transform: translateY(-2px); }
.btn-ink::after, .dlb::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
    transform: translateX(110%); transition: transform .8s var(--ease);
}
[data-theme="dark"] .btn-ink::after { background: linear-gradient(110deg, transparent 35%, rgba(14, 20, 48, .12) 50%, transparent 65%); }
.btn-ink:hover::after, .dlb:hover::after { transform: translateX(-110%); }

.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--text-2); transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn--line { width: 48px; height: 48px; border: 1px solid var(--line-2); background: var(--surface); }
.icon-btn--line:hover { border-color: var(--text); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

/* download button (store-badge style) */
.dlb {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; gap: 12px;
    min-height: 58px; padding: 9px 18px 9px 16px; border-radius: 16px;
    background: var(--ink); color: var(--ink-text); text-align: right;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .25s;
}
.dlb:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(14, 20, 48, .55); background: var(--ink-hover); }
.dlb:active { transform: scale(.97); }
.dlb-ic { width: 28px; height: 28px; display: grid; place-items: center; font-size: 1.55rem; flex: 0 0 auto; transition: transform .5s var(--ease); }
.dlb:hover .dlb-ic { transform: translateY(-2px) rotate(-8deg) scale(1.08); }
.dlb-ic img { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; }
.dlb-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.dlb-txt small { font-size: .7rem; opacity: .65; font-weight: 500; }
.dlb-txt b { font-size: .95rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlb-tag { margin-inline-start: auto; font-style: normal; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .14); direction: ltr; }
[data-theme="dark"] .dlb-tag { background: rgba(14, 20, 48, .08); }
.dlb--light { background: #fff; color: #0e1430; box-shadow: var(--shadow-sm); }
.dlb--light:hover { background: #fff; }
.dlb--light .dlb-tag { background: rgba(14, 20, 48, .07); }
.dlb.is-suggested { box-shadow: 0 0 0 3px rgba(45, 212, 191, .45); }

/* ---------- Pills & tiles ---------- */
.pill {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .35em .95em; border-radius: 999px; font-size: .82rem; font-weight: 700; line-height: 1.7;
}
.pill-brand { background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); box-shadow: var(--shadow-sm); }
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pill-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--brand); animation: ping 2s var(--ease) infinite; }
.pill-accent { color: var(--c1); background: color-mix(in srgb, var(--c1) 10%, transparent); }
[data-theme="dark"] .pill-accent { color: var(--c2); background: color-mix(in srgb, var(--c2) 14%, transparent); }
.tile {
    width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto;
    display: grid; place-items: center; color: #fff; font-size: 1.2rem;
    background: linear-gradient(135deg, var(--c2), var(--c1));
    box-shadow: 0 10px 22px -10px var(--c1), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.tile--sm { width: 36px; height: 36px; border-radius: 11px; font-size: .8rem; }
.eyebrow { font-size: .9rem; font-weight: 800; color: var(--brand); }

/* ---------- Mesh gradient panels ---------- */
.mesh {
    position: absolute; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(55% 60% at 18% 22%, var(--g1) 0%, transparent 72%),
        radial-gradient(50% 55% at 85% 18%, var(--g2) 0%, transparent 72%),
        radial-gradient(65% 65% at 62% 92%, var(--g3) 0%, transparent 72%),
        radial-gradient(45% 45% at 12% 88%, var(--g2) 0%, transparent 70%),
        linear-gradient(135deg, var(--g1), var(--g3));
    background-size: 170% 170%;
    animation: meshFlow 18s ease-in-out infinite alternate;
}
[data-theme="dark"] .mesh { filter: saturate(.92) brightness(.82); }
.mesh-shine { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%); animation: shine 7s var(--ease-io) infinite; }

/* ---------- Reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(8% 4% 8% 4% round 40px); transition: clip-path 1.3s var(--ease-io); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 40px); }

.sw { display: inline-block; overflow: hidden; padding: .06em 0 .16em; margin: -.06em 0 -.16em; vertical-align: top; }
.sw > span { display: inline-block; }
.js [data-split] .sw > span { transform: translateY(110%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); transform-origin: 0 100%; }
.js [data-split].is-in .sw > span { transform: none; }
.hl > span, span.hl.on { background: var(--hl-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js [data-rise] { opacity: 0; animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--intro) + .25s + var(--d, 0) * 90ms); }

/* ---------- Intro ---------- */
.intro { display: none; }
.is-intro .intro {
    position: fixed; inset: 0; z-index: 250; display: grid; place-items: center;
    background: var(--bg); clip-path: inset(0 0 0 0);
    animation: introOut .85s var(--ease-io) .7s forwards;
}
.intro-mark { display: flex; align-items: center; gap: 14px; font-size: 1.6rem; animation: introMark .9s var(--ease) both; }
.intro-mark img { height: 56px; width: auto; }
.brand-mark--lg { width: 56px !important; height: 56px !important; border-radius: 18px !important; font-size: 1.4rem !important; }

/* ---------- Nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 100;
    border-bottom: 1px solid transparent;
    transition: transform .55s var(--ease), background-color .35s, border-color .35s;
}
.nav.is-scrolled { background: var(--glass); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.brand-img--dark { display: none; }
[data-theme="dark"] .brand-img--light { display: none; }
[data-theme="dark"] .brand-img--dark { display: block; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--btn-grad); color: #fff; font-size: .95rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 1.05rem; font-weight: 800; }
.brand-text small { font-size: .68rem; color: var(--text-3); }
.nav-links { display: none; margin-inline: auto; gap: 2px; }
.nav-links a { position: relative; padding: 8px 14px; font-size: .92rem; color: var(--text-2); transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; right: 14px; left: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--text); transform: scaleX(0); transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav-login { display: none; padding: 8px 12px; font-size: .92rem; font-weight: 700; color: var(--text-2); }
.nav-login:hover { color: var(--text); }
.theme-toggle i { display: none; }
[data-pref="light"] .theme-toggle .t-light, [data-pref="dark"] .theme-toggle .t-dark, [data-pref="auto"] .theme-toggle .t-auto { display: block; }
.menu-btn { position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }
@media (min-width: 600px) { .nav-login { display: inline-block; } }
@media (min-width: 960px) { .nav-links { display: flex; } .menu-btn { display: none; } .nav-actions { margin-inline-start: 0; } }

.mobile-menu {
    position: fixed; inset: 0; z-index: 90; background: var(--bg);
    padding: calc(var(--nav-h) + 20px) 24px calc(24px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; justify-content: space-between;
    visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io), visibility 0s .6s;
}
.menu-open { overflow: hidden; }
.menu-open .mobile-menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .6s var(--ease-io); }
.menu-open .nav { background: var(--bg); transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-size: clamp(1.7rem, 8vw, 2.2rem); font-weight: 800; padding: 10px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 200ms); }
.mobile-menu-foot { display: grid; gap: 14px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 16px; background: var(--surface-2); }
.segmented button { padding: 10px 6px; border-radius: 12px; font-size: .85rem; font-weight: 700; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.segmented button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   PHONE
   ========================================================================== */
.phone {
    --pw: 280px;
    position: relative; width: var(--pw); height: calc(var(--pw) * 2.05);
    padding: calc(var(--pw) * .03); border-radius: calc(var(--pw) * .16);
    background: var(--phone-body);
    box-shadow: 0 0 0 1px var(--phone-ring), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 2px 4px rgba(14, 20, 48, .05), 0 40px 70px -28px rgba(14, 20, 48, .45);
}
[data-theme="dark"] .phone { box-shadow: 0 0 0 1px var(--phone-ring), inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -28px rgba(0, 0, 0, .9); }
.phone-island { position: absolute; z-index: 10; top: calc(var(--pw) * .055); left: 50%; transform: translateX(-50%); width: 30%; height: calc(var(--pw) * .08); border-radius: 99px; background: #0b0d12; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * .13); background: var(--m-bg); font-size: calc(var(--pw) * .037); isolation: isolate; }
.phone-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* ==========================================================================
   MOCKUP SCREENS (m-*) — em-based, scales with --pw
   ========================================================================== */
.m-screen {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    padding: 0 1.1em 1em; color: var(--m-text); background: var(--m-bg);
    line-height: 1.55; overflow: hidden; text-align: right;
}
.m-status { display: flex; justify-content: space-between; align-items: center; height: 3.4em; padding: 0 .9em; font-size: .82em; font-weight: 700; flex: 0 0 auto; }
.m-status-icons { display: flex; gap: .4em; font-size: .9em; }
.m-status--light { color: #fff; }
.m-muted { color: var(--m-muted); font-size: .82em; }
.m-h { font-size: 1.22em; font-weight: 800; }
.m-avatar { width: 2.7em; height: 2.7em; border-radius: 50%; display: grid; place-items: center; background: var(--btn-grad); color: #fff; font-weight: 800; }
.m-avatar.sm { width: 2.4em; height: 2.4em; background: rgba(255, 255, 255, .22); }
.m-card { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 1.1em; padding: .85em; margin-bottom: .6em; font-size: .82em; }
.m-pill { display: inline-flex; align-items: center; gap: .4em; padding: .3em .75em; border-radius: 99px; background: var(--m-card); border: 1px solid var(--m-line); font-size: .74em; font-weight: 700; }
.m-pill i { color: var(--brand); }
.m-steps-bar { height: .38em; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.m-steps-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #fff; }
.m-steps-bar.dark { background: var(--m-line); margin-bottom: .3em; }
.m-steps-bar.dark span { background: var(--btn-grad); }

/* dashboard */
.m-dash-head { display: flex; justify-content: space-between; align-items: center; margin: .2em 0 .9em; }
.m-promo {
    position: relative; overflow: hidden;
    display: flex; justify-content: space-between; align-items: center; gap: .6em;
    padding: 1em; border-radius: 1.2em; color: #fff;
    background: linear-gradient(135deg, #00695c, #00897b 50%, #26c6b2);
}
.m-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(120%); animation: shimmer 3.8s ease-in-out infinite 1.5s; }
.m-promo > i { font-size: 2.4em; opacity: .9; }
.m-promo-tag { display: inline-block; font-size: .65em; font-weight: 700; padding: .15em .7em; border-radius: 99px; background: rgba(255, 255, 255, .22); }
.m-promo-title { font-weight: 800; font-size: .95em; margin-top: .3em; }
.m-promo-sub { font-size: .72em; opacity: .85; }
.m-section { font-size: .88em; font-weight: 800; margin: 1em 0 .6em; }
.m-section i { color: #f59e0b; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.m-tile { display: flex; flex-direction: column; gap: .5em; padding: .75em; border-radius: 1em; background: var(--m-card); border: 1px solid var(--m-line); font-size: .78em; font-weight: 700; }
.m-tile-ic { width: 2.5em; height: 2.5em; border-radius: .8em; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 .4em 1em -.4em var(--c1); }
.is-active .m-tile { animation: popIn .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 900ms); }
.m-recent { margin-top: .7em; display: grid; grid-template-columns: auto 1fr; gap: .2em .6em; align-items: center; padding: .7em; border-radius: 1em; background: var(--m-card); border: 1px solid var(--m-line); font-size: .78em; }
.m-recent b { display: block; font-size: .95em; }
.m-recent p { color: var(--m-muted); font-size: .85em; }
.m-recent-ic { width: 2.4em; height: 2.4em; border-radius: .8em; display: grid; place-items: center; color: var(--brand); background: rgba(0, 137, 123, .12); grid-row: span 2; }
.m-recent-bar { grid-column: 2; height: .35em; border-radius: 99px; background: var(--m-line); overflow: hidden; }
.m-recent-bar i { display: block; width: 70%; height: 100%; border-radius: inherit; background: var(--btn-grad); }
.is-active .m-recent { animation: popIn .8s var(--ease) both 1.5s; }
.is-active .m-recent-bar i { animation: growW 1.4s var(--ease) both 1.9s; }
.m-nav { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: .65em .4em; border-radius: 1.4em; background: var(--m-card); border: 1px solid var(--m-line); color: var(--m-muted); font-size: .95em; }
.m-nav-home { width: 2.9em; height: 2.9em; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--btn-grad); transform: translateY(-.8em); box-shadow: 0 .6em 1.2em -.4em rgba(0, 137, 123, .8); }

/* history */
.m-appbar { margin: 0 -1.1em; padding: 0 1.1em 1em; color: #fff; border-radius: 0 0 1.4em 1.4em; background: linear-gradient(135deg, #00695c, #00897b 60%, #14a394); }
.m-appbar-row { display: flex; justify-content: space-between; align-items: center; font-weight: 800; padding: .2em 0 .8em; }
.m-appbar-sub { font-size: .72em; opacity: .85; margin-top: .45em; }
.is-active .m-steps-bar span { animation: growW 1.2s var(--ease) both .3s; }
.m-body { display: flex; flex-direction: column; gap: .5em; padding-top: 1em; }
.m-step { display: flex; align-items: center; gap: .6em; padding: .55em .7em; border-radius: .9em; background: var(--m-card); border: 1px solid var(--m-line); font-size: .82em; font-weight: 600; }
.m-step b { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; font-size: .8em; background: var(--m-line); color: var(--m-muted); }
.m-step.done b { background: var(--brand); color: #fff; }
.m-step i { margin-inline-start: auto; color: var(--brand); }
.m-step.dim { opacity: .5; }
.m-field label { display: block; font-size: .72em; font-weight: 700; color: var(--m-muted); margin-bottom: .3em; }
.m-input { min-height: 5.6em; padding: .7em; border-radius: .9em; background: var(--m-card); border: 1.5px solid var(--brand); box-shadow: 0 0 0 .3em rgba(0, 137, 123, .12); font-size: .82em; line-height: 1.75; }
.m-caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--brand); vertical-align: middle; margin-inline-start: 1px; animation: blink 1s steps(1) infinite; }
.m-ai-chip { display: flex; gap: .5em; align-items: flex-start; padding: .6em .7em; border-radius: .9em; font-size: .74em; font-weight: 600; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; }
[data-theme="dark"] .m-ai-chip { color: #fcd34d; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .25); }
.m-ai-chip i { margin-top: .25em; }
.is-active .m-ai-chip { animation: popIn .7s var(--ease) both 3.2s; }

/* voice */
.m-voice { align-items: center; text-align: center; color: #fff; background: radial-gradient(120% 70% at 50% 30%, #0f766e 0%, #063b35 55%, #031a17 100%); }
.m-voice .m-status { align-self: stretch; }
.m-voice-title { margin-top: 1.2em; font-size: .85em; opacity: .75; }
.m-voice-time { font-size: 2.3em; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-wave { display: flex; align-items: center; justify-content: center; gap: .22em; height: 4.2em; margin: 1.2em 0; direction: ltr; }
.m-wave span { width: .26em; height: 100%; border-radius: 99px; background: linear-gradient(#5eead4, #14b8a6); transform: scaleY(.18); animation: wave 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -97ms); }
.m-wave span:nth-child(3n) { animation-duration: .8s; }
.m-wave span:nth-child(4n+1) { animation-duration: 1.35s; }
.m-wave span:nth-child(5n+2) { animation-duration: .95s; }
.m-mic { position: relative; width: 4.8em; height: 4.8em; border-radius: 50%; display: grid; place-items: center; font-size: 1em; background: linear-gradient(135deg, #14b8a6, #0d9488); box-shadow: 0 .8em 2em -.6em #14b8a6; }
.m-mic i { font-size: 1.7em; position: relative; z-index: 2; }
.m-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #5eead4; animation: ripple 2s ease-out infinite; }
.m-ring.r2 { animation-delay: 1s; }
.m-transcript { margin-top: auto; align-self: stretch; text-align: right; padding: .85em; border-radius: 1em; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); font-size: .8em; }
.m-tags { display: flex; flex-wrap: wrap; gap: .35em; margin-top: .6em; }
.m-tags span { padding: .2em .65em; border-radius: 99px; font-size: .85em; font-weight: 700; background: rgba(94, 234, 212, .16); color: #99f6e4; }
.is-active .m-tr-line, .is-active .m-tags span { animation: fadeUp .7s var(--ease) both; animation-delay: calc(var(--d) * 450ms + 700ms); }

/* assistant */
.m-card-head { display: flex; align-items: center; gap: .5em; margin-bottom: .45em; }
.m-card-head em { margin-inline-start: auto; font-style: normal; font-size: .82em; font-weight: 700; padding: .15em .6em; border-radius: 99px; color: var(--brand); background: rgba(0, 137, 123, .1); }
.m-ic { width: 2em; height: 2em; border-radius: .6em; display: grid; place-items: center; color: var(--brand); background: rgba(0, 137, 123, .12); }
.m-card-ai { border-color: rgba(0, 137, 123, .3); margin-top: .3em; }
.m-qs li { display: flex; align-items: center; gap: .5em; margin-top: .4em; padding: .45em .6em; border-radius: .6em; background: var(--m-bg); font-weight: 600; }
.m-qs li::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.m-qs li:nth-child(3)::before { background: #f59e0b; }
.m-flag { border-color: rgba(234, 88, 12, .35); }
.m-flag b { color: #ea580c; display: flex; gap: .4em; align-items: center; }
.m-flag p { margin-top: .25em; color: var(--m-muted); }
.m-small-h { display: block; margin-bottom: .45em; }
.m-chips { display: flex; flex-wrap: wrap; gap: .35em; }
.m-chips span { padding: .2em .7em; border-radius: 99px; font-weight: 700; font-size: .9em; background: var(--m-bg); border: 1px solid var(--m-line); }
.m-chips .c-red { color: #e11d48; background: rgba(225, 29, 72, .08); border-color: rgba(225, 29, 72, .2); }
.m-chips .c-blue { color: #0284c7; background: rgba(2, 132, 199, .08); border-color: rgba(2, 132, 199, .2); }
.is-active .m-qs li, .is-active .m-asst > .m-card:not(.m-card-ai) { animation: slideIn .7s var(--ease) both; animation-delay: calc(var(--d) * 380ms + 500ms); }

/* chat */
.m-chat-head { margin: 0 -1.1em; padding: 0 1.1em .8em; color: #fff; background: linear-gradient(135deg, #00695c, #00897b 60%, #14a394); }
.m-chat-row { display: flex; gap: .6em; align-items: center; }
.m-chat-row b { font-size: .95em; }
.m-chat-row p { font-size: .7em; opacity: .85; }
.m-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: #4ade80; vertical-align: middle; }
.m-msgs { flex: 1; display: flex; flex-direction: column; gap: .5em; padding: 1em 0; overflow: hidden; }
.m-msg { max-width: 82%; padding: .6em .85em; border-radius: 1.1em; font-size: .8em; line-height: 1.65; }
.m-msg.in { align-self: flex-start; background: var(--m-card); border: 1px solid var(--m-line); border-top-right-radius: .3em; }
.m-msg.out { align-self: flex-end; color: #fff; background: var(--btn-grad); border-top-left-radius: .3em; }
.m-typing { align-self: flex-start; display: flex; gap: .25em; padding: .7em .9em; border-radius: 1.1em; background: var(--m-card); border: 1px solid var(--m-line); }
.m-typing i { width: .45em; height: .45em; border-radius: 50%; background: var(--m-muted); animation: bounce 1s infinite; }
.m-typing i:nth-child(2) { animation-delay: .15s; }
.m-typing i:nth-child(3) { animation-delay: .3s; }
.is-active .m-msg, .is-active .m-typing { animation: msgIn .6s var(--ease) both; animation-delay: calc(var(--d) * 850ms + 350ms); }
.m-chat-actions { display: flex; gap: .4em; }
.m-chat-actions span { flex: 1; text-align: center; padding: .55em .3em; border-radius: .9em; font-size: .72em; font-weight: 700; background: var(--m-card); border: 1px solid var(--m-line); }
.m-chat-actions span i { color: var(--brand); }
.m-chat-actions .hl { color: #fff; background: var(--btn-grad); border-color: transparent; }
.m-chat-actions .hl i { color: #fff; }

/* quiz */
.m-quiz-top { display: flex; justify-content: space-between; margin: .1em 0 .9em; }
.m-q { font-weight: 800; font-size: .92em; line-height: 1.75; margin: .5em 0 .8em; }
.m-opts { display: flex; flex-direction: column; gap: .42em; }
.m-opts span { padding: .58em .85em; border-radius: .85em; font-size: .8em; font-weight: 600; background: var(--m-card); border: 1.5px solid var(--m-line); transition: all .4s; }
.m-opts .ok { border-color: #10b981; background: rgba(16, 185, 129, .1); color: #059669; }
[data-theme="dark"] .m-opts .ok { color: #34d399; }
.is-active .m-opts .ok { animation: pickOk 2.2s var(--ease) both .4s; }
.m-explain { margin-top: .6em; padding: .55em .7em; border-radius: .85em; font-size: .72em; font-weight: 600; background: rgba(245, 158, 11, .1); color: #b45309; }
[data-theme="dark"] .m-explain { color: #fcd34d; }
.m-explain i { color: #f59e0b; }
.is-active .m-explain { animation: fadeUp .7s var(--ease) both 2s; }
.m-score { margin-top: auto; display: flex; align-items: center; gap: .8em; padding: .75em; border-radius: 1em; background: var(--m-card); border: 1px solid var(--m-line); }
.m-score svg { width: 3.3em; height: 3.3em; transform: rotate(-90deg); flex: 0 0 auto; }
.m-score circle { fill: none; stroke-width: 3.4; }
.m-score .bg { stroke: var(--m-line); }
.m-score .fg { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 14; }
.is-active .m-score .fg { animation: ringFill 1.6s var(--ease) both 1s; }
.m-score b { font-size: 1.2em; }
.m-score p { font-size: .72em; color: var(--m-muted); }

/* uptodate */
.m-utd-search { display: flex; gap: .6em; align-items: center; padding: .65em .9em; border-radius: 99px; background: var(--m-card); border: 1px solid var(--m-line); font-size: .82em; margin: .2em 0 1em; }
.m-utd-search i { color: var(--m-muted); }
.m-utd-art .m-h { margin: .6em 0 .15em; font-size: 1.05em; line-height: 1.6; }
.m-lines i { display: block; height: .5em; border-radius: 99px; background: var(--m-line); margin: .65em 0; }
.m-lines i.s { width: 62%; }
.m-sum { margin-top: .9em; border-color: rgba(0, 137, 123, .3); background: rgba(0, 137, 123, .06); }
.m-sum b { color: var(--brand); display: block; margin-bottom: .2em; }
.is-active .m-lines i { animation: growW 1s var(--ease) both; }
.is-active .m-sum { animation: popIn .8s var(--ease) both .8s; }


/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 6vw, 60px); }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: clamp(.98rem, 3.4vw, 1.1rem); }
.section-head--row { max-width: none; text-align: right; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.section-head--row > div { max-width: 620px; }
@media (min-width: 760px) { .section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.display { font-size: clamp(1.8rem, 6.4vw, 3rem); font-weight: 800; line-height: 1.32; text-wrap: balance; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(28px, 6vw, 72px)) 0 clamp(48px, 7vw, 80px); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 70%; z-index: -1; background: radial-gradient(60% 60% at 25% 0%, color-mix(in srgb, #2dd4bf 12%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: clamp(40px, 7vw, 56px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.hero-title { margin-top: 20px; font-size: clamp(2.35rem, 9.6vw, 4.3rem); line-height: 1.22; font-weight: 900; text-wrap: balance; }
.hero-sub { margin-top: 18px; max-width: 32em; color: var(--text-2); font-size: clamp(1rem, 3.8vw, 1.13rem); line-height: 1.95; }
.hero-ctas { margin-top: 30px; display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 460px; }
.hero-ctas .dlb { width: 100%; }
@media (min-width: 440px) { .hero-ctas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .hero-ctas { display: flex; flex-wrap: wrap; max-width: none; } .hero-ctas .dlb { width: auto; } }
.hero-web { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .25s, border-color .25s, gap .35s var(--ease); }
.hero-web:hover { color: var(--text); border-color: var(--text); gap: 12px; }
.hero-web i { font-size: .75em; }

.hero-visual { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.04; container-type: inline-size; perspective: 1400px; }
.hero-mesh { inset: 9% 0 0; border-radius: var(--r-xl); animation: meshFlow 18s ease-in-out infinite alternate, meshIn 1.4s var(--ease-io) calc(var(--intro) + .1s) both; }
.hero-phones { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(calc(var(--hp, 0) * -50px)) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .6s var(--ease); }
.hero-phones .phone { --pw: 44cqi; position: absolute; }
.ph-back { top: 1%; left: 9%; rotate: -9deg; translate: 0 calc(var(--hp, 0) * -60px); animation: phoneIn 1.4s var(--ease) calc(var(--intro) + .35s) both; }
.ph-front { top: 15%; right: 9%; rotate: -9deg; translate: 0 calc(var(--hp, 0) * 50px); animation: phoneIn 1.4s var(--ease) calc(var(--intro) + .2s) both; }
.ph-back .phone-screen { filter: saturate(.9); }

.trust-row { margin-top: clamp(48px, 8vw, 88px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 20px; align-items: center; }
.trust-label { font-weight: 800; font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: clamp(1.45rem, 5.6vw, 1.9rem); font-weight: 900; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.stats em { font-style: normal; color: var(--brand); }
.stats li > span { font-size: .84rem; color: var(--text-3); }
@media (min-width: 760px) { .trust-row { grid-template-columns: 200px 1fr; } .stats { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   STATEMENT (pinned)
   ========================================================================== */
.statement { position: relative; height: 230vh; height: 230svh; }
.statement-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.statement-glow {
    position: absolute; left: 50%; top: 50%; width: 80vmin; height: 80vmin; border-radius: 50%;
    background: conic-gradient(from calc(var(--sp, 0) * 220deg), #2dd4bf, #38bdf8, #a78bfa, #f472b6, #2dd4bf);
    filter: blur(90px); opacity: calc(.08 + var(--sp, 0) * .22);
    transform: translate(-50%, -50%) scale(calc(.55 + var(--sp, 0) * .55));
}
[data-theme="dark"] .statement-glow { opacity: calc(.1 + var(--sp, 0) * .2); }
.statement-inner { position: relative; z-index: 2; text-align: center; }
.statement .eyebrow { display: inline-block; margin-bottom: 22px; padding: 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.statement-text { max-width: 15em; margin-inline: auto; font-size: clamp(1.75rem, 6.9vw, 3.6rem); font-weight: 900; line-height: 1.55; text-wrap: balance; }
.statement-text span { opacity: .13; transition: opacity .45s ease; }
.statement-text span.on { opacity: 1; }
.no-js .statement-text span, html:not(.js) .statement-text span { opacity: 1; }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orb {
    position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px;
    display: grid; place-items: center; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: var(--o, 0);
    transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)) scale(var(--s, .6));
    will-change: transform, opacity;
}
.orb i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1rem; background: linear-gradient(135deg, var(--c2), var(--c1)); }
@media (max-width: 600px) { .orb { width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 16px; } .orb i { width: 32px; height: 32px; border-radius: 10px; font-size: .85rem; } }

/* ==========================================================================
   TOOLS (bento)
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tool {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    padding: 20px; min-height: 190px;
    transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .3s, opacity .9s var(--ease);
    transform-style: preserve-3d;
}
.tool:hover { box-shadow: var(--shadow); border-color: transparent; }
.tool--wide { grid-column: span 2; }
.tool-body { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; }
.tool-body h3 { margin-top: 18px; font-size: 1.02rem; font-weight: 800; }
.tool-body p { margin-top: 6px; color: var(--text-2); font-size: .86rem; line-height: 1.8; }
.tool-more { margin-top: auto; padding-top: 14px; font-size: .82rem; font-weight: 700; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; transition: color .3s, gap .4s var(--ease); }
.tool:hover .tool-more { color: var(--c1); gap: 10px; }
[data-theme="dark"] .tool:hover .tool-more { color: var(--c2); }
.tool-more i { font-size: .75em; }
.tool.has-phone { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; padding-bottom: 0; }
.tool.has-phone .tool-body { padding-bottom: 20px; }
.tool-visual { position: relative; align-self: end; height: 100%; min-height: 200px; container-type: inline-size; }
.tool-mesh { inset: 18% 0 0; border-radius: 22px 22px 0 0; }
.tool-visual .phone { --pw: min(78cqi, 210px); position: absolute; left: 50%; top: 6%; translate: -50% 0; box-shadow: 0 0 0 1px var(--phone-ring), 0 20px 40px -20px rgba(14, 20, 48, .5); transition: translate .8s var(--ease); }
.tool:hover .tool-visual .phone { translate: -50% -14px; }
@media (min-width: 760px) {
    .bento { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .tool { padding: 26px; min-height: 230px; }
    .tool--tall { grid-row: span 2; }
    .tool--tall.has-phone { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .tool--tall .tool-visual { min-height: 260px; }
    .tool.has-phone .tool-body { padding-bottom: 26px; }
    .tool-body h3 { font-size: 1.12rem; }
}
@media (max-width: 759px) { .tool--tall.has-phone { grid-column: span 2; } }

/* ==========================================================================
   SHOWCASES
   ========================================================================== */
.show { padding: clamp(72px, 11vw, 130px) 0; overflow: clip; }
.show-grid { display: grid; gap: 44px; align-items: center; }
.show-copy .display { margin-top: 16px; }
.show-desc { margin-top: 14px; color: var(--text-2); font-size: clamp(1rem, 3.6vw, 1.1rem); max-width: 30em; }
.show-list { margin-top: 28px; display: grid; gap: 20px; }
.show-list li { display: flex; gap: 14px; align-items: flex-start; }
.show-list b { display: block; font-weight: 800; font-size: 1rem; line-height: 1.6; }
.show-list li span:not(.tile) { display: block; color: var(--text-2); font-size: .9rem; margin-top: 2px; }
.show-visual { position: relative; width: 100%; max-width: 540px; margin-inline: auto; aspect-ratio: 1 / 1; container-type: inline-size; }
.show-mesh {
    inset: 0; border-radius: var(--r-xl);
    clip-path: inset(calc((1 - var(--pin, 1)) * 16%) round 40px);
    transform: scale(calc(.94 + var(--pin, 1) * .06));
}
.ph-show {
    --pw: min(46cqi, 270px) !important;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, calc(-46% + (.5 - var(--p, .5)) * 150px)) rotate(calc((.5 - var(--p, .5)) * -12deg));
}
@media (min-width: 960px) {
    .show-grid { grid-template-columns: 1fr 1fr; gap: 88px; }
    .show--flip .show-visual { order: -1; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.slider-nav { display: flex; gap: 8px; }
.quotes {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 6px max(var(--gutter), calc((100vw - 1200px) / 2)) 24px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.quotes::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 min(84vw, 380px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; padding: 26px; }
.stars { color: #f59e0b; font-size: .8rem; display: flex; gap: 3px; }
.quote blockquote { flex: 1; color: var(--text-2); font-size: .98rem; line-height: 1.95; }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote figcaption img, .q-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.q-avatar { display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--btn-grad); }
.quote figcaption span { display: flex; flex-direction: column; line-height: 1.5; }
.quote figcaption small { color: var(--text-3); font-size: .82rem; }

/* ==========================================================================
   DOWNLOAD
   ========================================================================== */
.download { padding-top: clamp(40px, 8vw, 90px); }
.dl-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); color: #fff; padding: clamp(30px, 6vw, 72px) clamp(22px, 6vw, 72px) 0; }
.dl-mesh { inset: 0; z-index: -2; }
.dl-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(3, 30, 38, .55), rgba(3, 30, 38, .05) 70%); }
@media (max-width: 959px) { .dl-panel::before { background: linear-gradient(to bottom, rgba(3, 30, 38, .55), rgba(3, 30, 38, .1)); } }
.dl-grid { display: grid; gap: 28px; }
.dl-copy { padding-bottom: 8px; }
.dl-copy .display { color: #fff; }
.dl-copy > p { margin-top: 14px; max-width: 30em; color: rgba(255, 255, 255, .85); font-size: clamp(.98rem, 3.4vw, 1.08rem); }
.dl-buttons { margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.dl-buttons .dlb { width: 100%; }
.dl-panel .dlb { background: #0e1430; color: #fff; }
.dl-panel .dlb:hover { background: #1d2550; }
.dl-panel .dlb-tag { background: rgba(255, 255, 255, .14); }
.dl-panel .dlb--light { background: #fff; color: #0e1430; }
.dl-panel .dlb--light .dlb-tag { background: rgba(14, 20, 48, .07); }
@media (min-width: 480px) { .dl-buttons { grid-template-columns: repeat(2, 1fr); } }
.dl-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.dl-meta > span, .dl-history {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 10px; font-size: .8rem; font-weight: 600;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dl-meta i { opacity: .8; font-size: .9em; }
.dl-history { color: #fff; transition: background-color .3s; }
.dl-history:hover { background: rgba(255, 255, 255, .28); }
.dl-history i { font-size: .7em; }
.dl-ios-note { margin-top: 16px; font-size: .88rem; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .16); }
.dl-side { position: relative; height: 300px; container-type: inline-size; }
.dl-phone { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, calc(34% + (.5 - var(--p, .5)) * 90px)); }
.ph-dl { --pw: min(62cqi, 260px) !important; }
.qr-card { display: none; }
@media (min-width: 960px) {
    .dl-panel { padding-bottom: clamp(40px, 6vw, 72px); }
    .dl-grid { grid-template-columns: 1.2fr .8fr; align-items: center; }
    .dl-side { height: 100%; min-height: 380px; position: static; }
    .dl-phone { left: 9%; transform: translate(0, calc(36% + (.5 - var(--p, .5)) * 90px)); }
    .qr-card {
        position: absolute; top: clamp(28px, 4vw, 48px); left: clamp(28px, 4vw, 48px); z-index: 3;
        display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px;
        background: #fff; color: #0e1430; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45);
    }
    .qr-box { width: 84px; height: 84px; border-radius: 10px; background: var(--surface-2); }
    .qr-box svg { width: 100%; height: 100%; }
    .qr-card b { display: block; font-size: .9rem; }
    .qr-card span { display: block; font-size: .74rem; color: #6b7280; }
}

/* version history sheet */
.sheet {
    margin: auto auto 0; width: 100%; max-width: 100%; max-height: 86vh; padding: 0; border: 0;
    border-radius: 28px 28px 0 0; background: var(--surface); color: var(--text); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.sheet[open] { display: flex; flex-direction: column; animation: sheetUp .55s var(--ease); }
.sheet::backdrop { background: rgba(7, 9, 15, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .3s ease; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-size: 1.1rem; }
.versions { overflow-y: auto; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); }
.versions > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.versions > li:last-child { border-bottom: 0; }
.v-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.v-head small { width: 100%; color: var(--text-3); font-size: .8rem; }
.v-tag { font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 8px; color: #fff; background: var(--btn-grad); }
.versions ul { margin-top: 8px; display: grid; gap: 4px; color: var(--text-2); font-size: .9rem; }
.versions ul li { display: flex; gap: 8px; }
.versions ul li::before { content: ""; width: 5px; height: 5px; margin-top: .8em; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.v-dl { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .85rem; font-weight: 700; color: var(--brand); }
@media (min-width: 640px) {
    .sheet { margin: auto; max-width: 560px; border-radius: 28px; }
    .sheet[open] { animation: sheetPop .5s var(--ease); }
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.billing { position: relative; display: inline-flex; margin-top: 26px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.billing button { position: relative; z-index: 1; padding: 8px 20px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--text-2); transition: color .35s; display: inline-flex; align-items: center; gap: 6px; }
.billing button.is-active { color: var(--ink-text); }
.billing em { font-style: normal; font-size: .66rem; padding: 1px 7px; border-radius: 6px; background: #f59e0b; color: #fff; }
.billing-thumb { position: absolute; top: 5px; bottom: 5px; border-radius: 10px; background: var(--ink); transition: left .5s var(--ease), width .5s var(--ease); }
.plans {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px 8% 24px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; overscroll-behavior-x: contain;
}
.plans::-webkit-scrollbar { display: none; }
.plan { flex: 0 0 min(82%, 360px); scroll-snap-align: center; display: flex; flex-direction: column; padding: 26px 24px; }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.tile--plan { --c1: #0e1430; --c2: #4b5270; width: 48px; height: 48px; border-radius: 14px; }
.plan--featured .tile--plan { --c1: #0d9488; --c2: #a78bfa; }
.plan-badge { padding: 4px 12px; border-radius: 9px; font-size: .74rem; font-weight: 800; background: var(--ink); color: var(--ink-text); }
.plan h3 { font-size: 1.2rem; }
.plan-desc { margin-top: 4px; color: var(--text-2); font-size: .88rem; }
.plan-price { margin: 18px 0 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: 66px; }
.plan-price b { font-size: clamp(2rem, 7vw, 2.4rem); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-price b.swap { animation: priceSwap .55s var(--ease); }
.plan-price small { color: var(--text-3); font-size: .85rem; }
.plan-save { display: none; width: 100%; font-size: .78rem; font-weight: 800; color: #059669; }
.plans.is-3m .plan-save { display: block; }
.plan-features { margin-top: 24px; display: grid; gap: 12px; font-size: .92rem; }
.plan-features li { display: flex; align-items: center; gap: 10px; }
.plan-features i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem; flex: 0 0 auto; border: 1.5px solid var(--line-2); color: var(--text); }
.plan--featured .plan-features i { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.plan-features li.off { color: var(--text-3); }
.plan-features li.off i { background: transparent !important; border-color: var(--line) !important; color: var(--text-3) !important; }
.plan--featured {
    border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #2dd4bf, #818cf8, #f472b6) border-box;
    box-shadow: 0 30px 60px -30px rgba(99, 102, 241, .45);
}
.plans-dots { display: flex; justify-content: center; gap: 6px; }
.plans-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); transition: width .45s var(--ease), background-color .3s; }
.plans-dots i.is-active { width: 22px; background: var(--text); }
@media (min-width: 960px) {
    .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); max-width: 1060px; margin: 0 auto; padding: 0; overflow: visible; gap: 20px; align-items: start; }
    .plan { padding: 32px 30px; }
    .plans-dots { display: none; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; gap: 36px; }
.faq-head p { margin-top: 14px; color: var(--text-2); }
.faq-contact { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 800; font-size: clamp(1rem, 3.6vw, 1.08rem); }
.faq-item summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto; background: var(--surface-2); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq-item[open] .plus { background: var(--ink); color: var(--ink-text); }
.faq-item[open] .plus::after { transform: rotate(0deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding-bottom: 22px; color: var(--text-2); line-height: 2; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; } .faq-head { position: sticky; top: calc(var(--nav-h) + 30px); } }

/* ==========================================================================
   FINAL CTA + FOOTER
   ========================================================================== */
.final { padding-top: 0; }
.final-card { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(64px, 10vw, 110px) 22px; border-radius: var(--r-xl); background: var(--bg-alt); border: 1px solid var(--line); }
.final-glow { width: 70%; height: 90%; left: 15%; top: 40%; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .35; }
[data-theme="dark"] .final-glow { opacity: .22; filter: blur(70px) brightness(.85); }
.final-card .display { max-width: 15em; margin-inline: auto; }
.final-card > p { margin-top: 14px; color: var(--text-2); }
.final-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.footer { border-top: 1px solid var(--line); padding: 60px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-top { display: grid; gap: 36px; }
.footer-brand > p { color: var(--text-3); font-size: .9rem; margin-top: 14px; max-width: 26em; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); background: var(--surface-2); transition: all .3s var(--ease); }
.socials a:hover { color: var(--ink-text); background: var(--ink); transform: translateY(-2px); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-cols a { display: block; width: fit-content; padding: 5px 0; color: var(--text-2); font-size: .92rem; transition: color .25s; }
.footer-cols a:hover { color: var(--text); }
.footer-h { font-weight: 800; margin-bottom: 8px; }
.trust { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .84rem; }
@media (min-width: 960px) { .footer-top { grid-template-columns: 1.3fr 1.5fr auto; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }

.toast {
    position: fixed; z-index: 260; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
    padding: 12px 18px; border-radius: 14px; font-size: .9rem; font-weight: 600;
    color: var(--ink-text); background: var(--ink); box-shadow: var(--shadow-lg);
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.toast i { color: #2dd4bf; }

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes meshFlow { 0% { background-position: 0% 0%; } 50% { background-position: 100% 40%; } 100% { background-position: 30% 100%; } }
@keyframes meshIn { from { clip-path: inset(16% 10% 16% 10% round 40px); opacity: 0; } to { clip-path: inset(0 round 40px); opacity: 1; } }
@keyframes shine { 0%, 55% { transform: translateX(70%); } 100% { transform: translateX(-70%); } }
@keyframes phoneIn { from { opacity: 0; translate: 0 38%; rotate: 4deg; scale: .92; } }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); } }
@keyframes introMark { from { opacity: 0; transform: translateY(14px) scale(.92); filter: blur(8px); } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetPop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes priceSwap { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
@keyframes popIn { from { opacity: 0; transform: translateY(.8em) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(1.2em); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(.8em) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes growW { from { width: 0; } }
@keyframes shimmer { 0% { transform: translateX(120%); } 60%, 100% { transform: translateX(-120%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wave { to { transform: scaleY(1); } }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.35em); } }
@keyframes pickOk { 0%, 40% { border-color: var(--m-line); background: var(--m-card); color: var(--m-text); } 55% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes ringFill { from { stroke-dashoffset: 100; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .statement { height: auto; } .statement-sticky { position: relative; height: auto; padding: 120px 0; }
    .statement-text span { opacity: 1; } .orbit { display: none; }
}
