/* Phone design (loaded only below 768 px, see _Layout). The home page has its own short markup, .m-home; the rest of the site just gets tighter spacing. */

html { -webkit-text-size-adjust: 100%; }
body { padding-bottom: env(safe-area-inset-bottom); }

main.container { padding-left: 14px; padding-right: 14px; }
.wiz-nav .navbar-brand img { width: 32px; height: 32px; }
.wiz-nav .nav-link, .theme-toggle { min-height: 44px; display: flex; align-items: center; }
.navbar-collapse .navbar-nav { padding-top: 6px; }
footer .container { padding-left: 14px; padding-right: 14px; }
/* room for the sticky bar on the home page */
body:has(.m-home) footer { margin-bottom: 76px; }

.m-home { display: block; margin: 4px 0 0; }

/* Hero */
.m-hero { text-align: center; padding: 18px 4px 8px; }
.m-hero-logo { border-radius: 18px; box-shadow: 0 8px 24px var(--wf-shadow); border: 1px solid rgba(167, 139, 250, .35); }
.m-hero h1 { font-size: 2rem; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 10px; }
.m-lead { color: var(--wf-body); font-size: 1.02rem; line-height: 1.5; margin: 0 auto 18px; max-width: 34rem; }

.m-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 12px 18px; margin: 0 0 10px;
    border-radius: 14px; border: 1px solid transparent;
    font-size: 1.05rem; font-weight: 700; text-decoration: none; color: #fff;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.m-btn:active { transform: scale(.985); filter: brightness(1.08); }
.m-btn-play { background: linear-gradient(135deg, #059669 0%, #10b981 100%); box-shadow: 0 6px 18px rgba(16, 185, 129, .35); }
.m-btn-primary { background: linear-gradient(135deg, #6D5BF0 0%, #A78BFA 100%); box-shadow: 0 6px 18px rgba(124, 92, 255, .35); }

.m-chips { display: flex; gap: 8px; overflow-x: auto; margin: 6px -14px 0; padding: 4px 14px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.m-chips::-webkit-scrollbar { display: none; }
.m-chips span {
    flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap;
    padding: 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    background: var(--wf-ghost); border: 1px solid var(--wf-ghost-border); color: var(--wf-ghost-text);
}

/* Sections */
.m-section { margin-top: 28px; }
.m-section h2 { font-size: 1.35rem; font-weight: 800; color: var(--wf-heading); margin: 0 0 4px; }
.m-sub { color: var(--wf-muted); font-size: .92rem; line-height: 1.45; margin: 0 0 14px; }

/* App list: one tappable row per product */
.m-apps { display: flex; flex-direction: column; gap: 10px; }
.m-app {
    --a: #A78BFA; --b: #7C3AED;
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 12px 12px 12px 14px; min-height: 76px;
    background: var(--wf-card); border: 1px solid var(--wf-card-border); border-left: 4px solid var(--a);
    border-radius: 14px; color: inherit; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.m-app:active { background: var(--wf-ghost-hover); }
.m-app-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--wf-icon-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.m-app-icon img { width: 48px; height: 48px; object-fit: cover; }
.m-app-icon b { font-size: 1.4rem; background: linear-gradient(135deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-app-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.m-app-text b { color: var(--wf-heading); font-size: 1.02rem; overflow-wrap: anywhere; }
.m-app-text small { color: var(--wf-body); font-size: .85rem; line-height: 1.3; }
.m-app-text em { font-style: normal; color: var(--wf-green); font-size: .78rem; font-weight: 600; margin-top: 2px; }
.m-app-go { flex: 0 0 auto; font-size: 1.8rem; line-height: 1; color: var(--wf-subtle); }

/* Play card */
.m-play { text-align: center; padding: 14px; border-radius: 16px; background: var(--wf-card); border: 1px solid var(--wf-card-border); }
.m-play img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 12px; aspect-ratio: 3 / 2; object-fit: cover; }
.m-play .m-btn { margin-bottom: 0; }

/* Steps */
.m-steps { list-style: none; counter-reset: s; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.m-steps li { counter-increment: s; position: relative; padding: 12px 12px 12px 54px; border-radius: 14px; background: var(--wf-card); border: 1px solid var(--wf-card-border); }
.m-steps li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6D5BF0, #A78BFA); }
.m-steps b { display: block; color: var(--wf-heading); }
.m-steps span { color: var(--wf-body); font-size: .9rem; }

/* Accordions */
.m-acc { background: var(--wf-card); border: 1px solid var(--wf-card-border); border-radius: 12px; margin-bottom: 8px; }
.m-acc summary { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: 48px; padding: 13px 40px 13px 14px; position: relative; cursor: pointer; font-weight: 700; color: var(--wf-heading); -webkit-tap-highlight-color: transparent; }
.m-acc summary::-webkit-details-marker { display: none; }
.m-acc summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--wf-muted); }
.m-acc[open] summary::after { content: "\2212"; }
.m-acc summary small { color: var(--wf-violet); font-weight: 600; font-size: .78rem; }
.m-acc p { margin: 0; padding: 0 14px 14px; color: var(--wf-body); font-size: .93rem; line-height: 1.5; }

/* Sticky action bar */
.m-cta-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--wf-nav); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--wf-card-border);
}
.m-cta-bar .m-btn { margin: 0; min-height: 48px; font-size: .98rem; padding: 10px 8px; }

@media (max-width: 360px) {
    .m-hero h1 { font-size: 1.7rem; }
    .m-cta-bar { gap: 8px; padding-left: 10px; padding-right: 10px; }
}
