/* VantaApps site styles */

:root {
    --ink: #0f172a;
    --ink-2: #475569;
    --ink-3: #64748b;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --brand: #6d28d9;
    --brand-dark: #5b21b6;
    --brand-soft: #f3efff;
    --accent: #0891b2;
    --accent-soft: #e6f8fb;
    --shopify: #008060;
    --shopify-dark: #006e52;
    --success-bg: #ecfdf5;
    --success-ink: #065f46;
    --danger: #b91c1c;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
    --container: 1180px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 1rem/1.2 var(--font); border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-shopify { background: var(--shopify); color: #fff; }
.btn-shopify:hover { background: var(--shopify-dark); color: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; display: block; flex: none; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-word span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: .97rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav .btn { margin-left: 10px; color: #fff; }
.nav .btn:hover { background: var(--brand-dark); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 104px; background: radial-gradient(1000px 500px at 85% -10%, #ede4ff 0%, transparent 60%), radial-gradient(700px 400px at -10% 110%, #e0f7fb 0%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 24px; }
.hero-badge b { white-space: nowrap; background: var(--success-bg); color: var(--shopify); padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--shopify); }
.hero-stack { display: grid; gap: 16px; }
.hero-app { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); color: inherit; transition: transform .2s, box-shadow .2s; }
.hero-app:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.hero-app:nth-child(2) { margin-left: 40px; }
.hero-app img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.hero-app h3 { font-size: 1.05rem; margin: 0 0 2px; }
.hero-app p { margin: 0; font-size: .92rem; color: var(--ink-3); line-height: 1.45; }
.hero-app .chev { margin-left: auto; width: 20px; height: 20px; color: var(--ink-3); flex: none; }

/* Page hero (inner pages) */
.page-hero { padding: 80px 0 64px; background: radial-gradient(900px 400px at 90% -20%, #ede4ff 0%, transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 640px; margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: #d8ccfd; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.icon-tile svg { width: 24px; height: 24px; }

/* App showcase */
.apps-list { display: grid; gap: 32px; }
.app-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.app-row:nth-child(even) .app-media { order: 2; }
.app-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-head img { width: 52px; height: 52px; border-radius: 12px; }
.app-head h3 { font-size: 1.5rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.app-body .btn-row { margin-top: 24px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-size: 1rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.step h3 { margin-bottom: 6px; }
.step p { font-size: .98rem; margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-list { display: grid; gap: 18px; }
.check-list li { display: flex; gap: 14px; }
.check-list .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--success-bg); color: var(--shopify); display: grid; place-items: center; flex: none; margin-top: 2px; }
.check-list .tick svg { width: 15px; height: 15px; }
.check-list h3 { font-size: 1.05rem; margin: 0 0 2px; }
.check-list p { margin: 0; font-size: .98rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: .95rem; }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 64px; background: linear-gradient(135deg, #2e1065 0%, #6d28d9 55%, #0891b2 100%); color: #ede9fe; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { margin: 0; font-size: 1.1rem; max-width: 560px; }
.cta .btn-row { position: relative; z-index: 1; }

/* Pricing */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 1000px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; position: relative; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -13px; left: 32px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 12px; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan .note { font-size: .9rem; color: var(--ink-3); margin: 8px 0 0; min-height: 1.5em; }
.plan ul { margin: 24px 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: .97rem; }
.plan li svg { width: 18px; height: 18px; color: var(--shopify); flex: none; margin-top: 4px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.faq details[open] { border-color: #d8ccfd; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .2s; color: var(--ink-3); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; }

/* App page hero */
.app-hero { padding: 72px 0 88px; background: radial-gradient(900px 420px at 90% -10%, color-mix(in srgb, var(--app-color) 18%, transparent) 0%, transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.app-hero .app-head img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.app-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; color: var(--ink-3); margin-top: 28px; }
.app-hero .app-media { box-shadow: var(--shadow-lg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.info-list { display: grid; gap: 16px; margin-top: 32px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.info-item .icon-tile { margin: 0; flex: none; width: 44px; height: 44px; }
.info-item h3 { font-size: 1rem; margin: 0 0 2px; }
.info-item p { margin: 0; font-size: .95rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.field label span { color: var(--ink-3); font-weight: 500; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field .error { color: var(--danger); font-size: .88rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-actions small { color: var(--ink-3); font-size: .88rem; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 24px; font-weight: 500; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.alert-success { background: var(--success-bg); color: var(--success-ink); }
.alert-error { background: #fef2f2; color: var(--danger); }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.site-footer .logo-word span { color: #c4b5fd; }
.site-footer p { font-size: .95rem; max-width: 320px; margin-top: 16px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #94a3b8; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }

/* Platforms */
.platform-tile { width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.platform-tile img { width: 60%; height: 60%; object-fit: contain; }
.platform-tile svg { width: 50%; height: 50%; color: var(--pf, var(--ink)); }
.platform-logos { display: flex; gap: 8px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: inherit; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.platform-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--pf) 40%, var(--line)); color: inherit; }
.platform-card h3 { font-size: 1rem; margin: 0; }
.platform-card p { margin: 0; font-size: .85rem; color: var(--ink-3); line-height: 1.4; }
.hero-platforms { grid-template-columns: repeat(2, 1fr); }
.hero-platforms .platform-card:nth-child(even) { transform: translateY(24px); }
.hero-platforms .platform-card:nth-child(even):hover { transform: translateY(21px); }
.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; }
.pill-nav a:hover { border-color: var(--pf); color: var(--ink); }
.pill-nav .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pf); margin: 0 4px; }
.pill-nav img { width: 18px; height: 18px; object-fit: contain; }
.platform-section { scroll-margin-top: 88px; }
.platform-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 40px; }
.platform-head .platform-tile { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.platform-head h2 { margin: 0 0 4px; }
.platform-head p { margin: 0; }
.platform-num { font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: var(--ink-3); display: block; margin-bottom: 4px; }
.best-for { margin-top: 28px; display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; background: var(--bg-soft); border-radius: 12px; padding: 14px 18px; }
.section-soft .best-for { background: #fff; border: 1px solid var(--line); }
.best-for svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.platform-section .icon-tile { background: color-mix(in srgb, var(--pf) 10%, #fff); color: var(--pf); }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.matrix { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .95rem; }
.matrix th, .matrix td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { background: var(--bg-soft); color: var(--ink); font-size: .9rem; }
.matrix tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-app:nth-child(2) { margin-left: 0; }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-platforms .platform-card:nth-child(even), .hero-platforms .platform-card:nth-child(even):hover { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta { grid-template-columns: 1fr; padding: 48px; }
}
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; display: none; box-shadow: var(--shadow); }
    .nav.open { display: flex; }
    .nav a { padding: 12px 14px; border-radius: 10px; }
    .nav .btn { margin: 8px 0 0; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .app-row { grid-template-columns: 1fr; gap: 28px; padding: 20px; }
    .app-row:nth-child(even) .app-media { order: 0; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    .hero { padding: 56px 0 72px; }
    .page-hero, .app-hero { padding: 56px 0 48px; }
    .grid-4, .stats, .platform-grid { grid-template-columns: 1fr; }
    .hero-platforms { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero-platforms .platform-card { padding: 12px; gap: 10px; }
    .hero-platforms .platform-tile { width: 38px; height: 38px; border-radius: 10px; }
    .hero-platforms h3 { font-size: .92rem; }
    .hero-platforms p { display: none; }
    .platform-head { grid-template-columns: auto 1fr; }
    .platform-head .btn { grid-column: 1 / -1; justify-self: start; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
    .cta { padding: 36px 24px; border-radius: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn-row .btn { flex: 1 1 auto; }
}
