/* «Mentor iOS» — visionOS-style glass layout for coaches, therapists, courses */
.mios {
    --glass: rgba(255, 255, 255, 0.62);
    --glass-strong: rgba(255, 255, 255, 0.82);
    --glass-line: rgba(255, 255, 255, 0.75);
    --hair: rgba(60, 60, 67, 0.14);
    --ink: #1c1c1e;
    --ink-2: rgba(60, 60, 67, 0.72);
    --ink-3: rgba(60, 60, 67, 0.5);
    --wash: #f4f1ec;
    --fill: rgba(120, 120, 128, 0.12);
    --shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 20px 50px -20px rgba(40, 30, 20, 0.28);
    --radius: 28px;
    --sheet: rgba(250, 249, 247, 0.94);
    --radius-sm: 18px;
    --sys: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", var(--font, "Inter"), "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    font-family: var(--sys);
    color: var(--ink);
    background: var(--wash);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.mios.mios-dark {
    --glass: rgba(44, 44, 46, 0.55);
    --glass-strong: rgba(44, 44, 46, 0.86);
    --glass-line: rgba(255, 255, 255, 0.12);
    --hair: rgba(255, 255, 255, 0.12);
    --ink: #f5f5f7;
    --ink-2: rgba(235, 235, 245, 0.72);
    --ink-3: rgba(235, 235, 245, 0.45);
    --wash: #121214;
    --fill: rgba(120, 120, 128, 0.28);
    --shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --sheet: rgba(36, 36, 38, 0.94);
}
@media (prefers-color-scheme: dark) {
    .mios.mios-auto {
        --glass: rgba(44, 44, 46, 0.55);
        --glass-strong: rgba(44, 44, 46, 0.86);
        --glass-line: rgba(255, 255, 255, 0.12);
        --hair: rgba(255, 255, 255, 0.12);
        --ink: #f5f5f7;
        --ink-2: rgba(235, 235, 245, 0.72);
        --ink-3: rgba(235, 235, 245, 0.45);
        --wash: #121214;
        --fill: rgba(120, 120, 128, 0.28);
        --shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
        --sheet: rgba(36, 36, 38, 0.94);
    }
}
.mios *, .mios *::before, .mios *::after { box-sizing: border-box; }
.mios a { color: inherit; }
.mios h1, .mios h2, .mios h3, .mios h4 { font-family: var(--font-heading, var(--sys)); margin: 0; }

/* Ambient backdrop: the banner, blurred, behind everything */
.mios-ambient { position: fixed; inset: -10vh -10vw; z-index: 0; pointer-events: none;
    background: var(--mios-ambient) center/cover no-repeat, radial-gradient(60% 50% at 20% 10%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%), radial-gradient(50% 50% at 90% 30%, color-mix(in srgb, var(--brand2) 35%, transparent), transparent 70%);
    filter: blur(60px) saturate(140%); opacity: 0.35; transform: translateZ(0); }
.mios-dark .mios-ambient { opacity: 0.3; }
@media (prefers-color-scheme: dark) { .mios-auto .mios-ambient { opacity: 0.3; } }
.mios-page { position: relative; z-index: 1; }

.mios-glass { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }

.mios-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.mios-bar { position: sticky; top: 10px; z-index: 50; margin: 10px auto 0; max-width: 1120px; padding: 0 16px; }
.mios-bar-inner { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 999px; }
.mios-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 0.98rem; min-width: 0; }
.mios-brand img, .mios-brand .mios-mono { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mios-mono { display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.mios-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mios-seg { display: none; margin: 0 auto; padding: 3px; border-radius: 999px; background: var(--fill); gap: 2px; }
.mios-seg a { text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); }
.mios-seg a:hover { background: var(--glass-strong); color: var(--ink); }
@media (min-width: 860px) { .mios-seg { display: flex; } }
.mios-bar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mios-lang { appearance: none; border: 0; background: var(--fill); color: var(--ink); font: 600 0.78rem var(--sys); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.mios-bar-end .auth-nav .btn { font-size: 0.82rem !important; padding: 7px 12px !important; border-radius: 999px !important; text-decoration: none; }
.mios-bar-end .auth-nav--guest .btn:first-child { border: 0 !important; background: var(--fill) !important; color: var(--ink) !important; }
.mios-bar-end .auth-nav--guest .btn:last-child { background: var(--brand) !important; color: #fff !important; }
@media (max-width: 575px) { .mios-bar-end .auth-nav--guest .btn:first-child { display: none !important; } .mios-brand span { max-width: 42vw; } }

/* Buttons */
.mios-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
    font: 600 1rem var(--sys); padding: 14px 22px; border-radius: 999px; transition: transform .15s ease, filter .15s ease; min-height: 48px; }
.mios-btn:active { transform: scale(0.97); }
.mios-btn-primary { background: var(--brand); color: #fff !important; box-shadow: 0 10px 24px -10px var(--brand); }
.mios-btn-primary:hover { filter: brightness(1.06); }
.mios-btn-glass { background: var(--glass-strong); color: var(--ink) !important; border: 1px solid var(--glass-line); }
.mios-btn-sm { padding: 8px 16px; min-height: 36px; font-size: 0.88rem; }
.mios-btn[disabled] { opacity: 0.55; pointer-events: none; }

/* Hero */
.mios-hero { padding: 56px 0 24px; }
.mios-hero-card { position: relative; border-radius: 36px; overflow: hidden; display: grid; grid-template-columns: 1fr; min-height: 420px; }
.mios-hero-media { position: relative; min-height: 260px; background: var(--brand) center/cover no-repeat; }
.mios-hero-media.no-photo { background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--brand) 55%, #fff) 0%, var(--brand) 45%, color-mix(in srgb, var(--brand2) 80%, #000) 100%); display: grid; place-items: center; }
.mios-hero-mono { font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: -0.04em; position: relative; z-index: 1; font-family: var(--font-heading, var(--sys)); }
.mios-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35)); }
.mios-hero-body { padding: 28px 24px 30px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.mios-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.mios-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
.mios-hero p.lead { font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 34ch; }
.mios-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.mios-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mios-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); background: var(--fill); padding: 6px 12px; border-radius: 999px; }
.mios-pill i { color: var(--brand); }
@media (min-width: 860px) {
    .mios-hero { padding-top: 72px; }
    .mios-hero-card { grid-template-columns: 1.05fr 1fr; min-height: 480px; }
    .mios-hero-body { padding: 48px; order: -1; }
    .mios-hero-media::after { background: linear-gradient(90deg, rgba(0,0,0,0.12), transparent 30%); }
}

/* Sections */
.mios-section { padding: 36px 0; scroll-margin-top: 90px; }
.mios-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.mios-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; font-weight: 700; }
.mios-head p { margin: 6px 0 0; color: var(--ink-2); }

/* Segmented filter */
.mios-filter { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.mios-filter::-webkit-scrollbar { display: none; }
.mios-filter button { border: 0; background: transparent; font: 600 0.85rem var(--sys); color: var(--ink-2); padding: 8px 14px; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.mios-filter button.on { background: var(--glass-strong); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* Offer cards */
.mios-group-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 22px 4px 10px; }
.mios-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .mios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mios-grid { grid-template-columns: repeat(3, 1fr); } }
.mios-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-align: left; cursor: pointer;
    font: inherit; color: inherit; padding: 0; transition: transform .2s ease, box-shadow .2s ease; }
.mios-card:hover { transform: translateY(-3px); }
.mios-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.mios-card-media { height: 150px; background: center/cover no-repeat; position: relative; }
.mios-card-media.no-photo { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, #fff), color-mix(in srgb, var(--brand2) 60%, #000)); display: grid; place-items: center; }
.mios-card-media.no-photo i { font-size: 2.2rem; color: rgba(255,255,255,0.9); }
.mios-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mios-card h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.mios-card p { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mios-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mios-chip { font-size: 0.74rem; font-weight: 600; color: var(--ink-2); background: var(--fill); padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }
.mios-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.mios-price { font-weight: 700; font-size: 1.05rem; }
.mios-price.soft { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.mios-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }

/* About */
.mios-about { border-radius: 32px; padding: 28px 24px; display: grid; gap: 22px; }
.mios-about-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--glass-line); box-shadow: var(--shadow); }
.mios-about-text { font-size: 1.05rem; line-height: 1.65; color: var(--ink); }
.mios-about-text p { margin: 0 0 1em; }
@media (min-width: 860px) { .mios-about { grid-template-columns: 180px 1fr; padding: 40px; } .mios-about-photo { width: 160px; height: 160px; } }

/* Team */
.mios-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mios-person { border-radius: var(--radius); padding: 20px; text-align: center; }
.mios-person img, .mios-person .mios-mono { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; font-size: 1.8rem; }
.mios-person h4 { font-size: 1rem; }
.mios-person small { color: var(--ink-2); }

/* Reviews */
.mios-reviews { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.mios-reviews::-webkit-scrollbar { display: none; }
.mios-review { flex: 0 0 min(320px, 85%); scroll-snap-align: start; border-radius: var(--radius); padding: 20px; }
.mios-stars { color: #ff9f0a; letter-spacing: 2px; }
.mios-review p { margin: 10px 0; line-height: 1.5; }
.mios-review small { color: var(--ink-2); font-weight: 600; }

/* Inset grouped lists (FAQ, contact) */
.mios-list { border-radius: 22px; overflow: hidden; }
.mios-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; min-height: 52px; }
.mios-row + .mios-row, .mios-list details + details { border-top: 1px solid var(--hair); }
.mios-row .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; }
.mios-row .tx { flex: 1; min-width: 0; }
.mios-row .tx small { display: block; color: var(--ink-3); font-size: 0.75rem; }
.mios-row .tx span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mios-row .chev { color: var(--ink-3); }
.mios-list details summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.mios-list details summary::-webkit-details-marker { display: none; }
.mios-list details summary i { transition: transform .2s; color: var(--ink-3); }
.mios-list details[open] summary i { transform: rotate(90deg); }
.mios-list details .ans { padding: 0 18px 16px; color: var(--ink-2); line-height: 1.55; }
.mios-contact { display: grid; gap: 14px; }
@media (min-width: 860px) { .mios-contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.mios-cta-card { border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.mios-cta-card p { margin: 0; color: var(--ink-2); }

.mios-foot { padding: 30px 0 110px; text-align: center; color: var(--ink-3); font-size: 0.82rem; }
.mios-foot a { color: var(--ink-2); }
.mios-socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.mios-socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); border: 1px solid var(--glass-line); font-size: 1.1rem; text-decoration: none; }

/* Floating action (phones) */
.mios-fab { position: fixed; left: 16px; right: 88px; bottom: 20px; z-index: 60; display: flex; justify-content: flex-start; }
.mios-fab .mios-btn { width: 100%; max-width: 420px; }
@media (min-width: 860px) { .mios-fab { display: none; } .mios-foot { padding-bottom: 40px; } }

/* Sheet */
.mios-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.32); z-index: 9200; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mios-scrim.on { opacity: 1; pointer-events: auto; }
.mios-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9201; max-height: 92vh; display: flex; flex-direction: column;
    border-radius: 30px 30px 0 0; background: var(--sheet); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); box-shadow: 0 -10px 60px rgba(0,0,0,0.25); transform: translateY(105%); transition: transform .35s cubic-bezier(.2,.9,.3,1); overflow: hidden; }
.mios-sheet.on { transform: translateY(0); }
@media (min-width: 720px) {
    .mios-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-height: 86vh; border-radius: 30px;
        transform: translate(-50%, -46%) scale(0.96); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.2,.9,.3,1), opacity .2s; }
    .mios-sheet.on { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
}
.mios-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--ink-3); margin: 8px auto 0; opacity: .5; }
@media (min-width: 720px) { .mios-grab { display: none; } }
.mios-sheet-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 6px; }
.mios-sheet-head h3 { font-size: 1.05rem; font-weight: 650; flex: 1; text-align: center; margin: 0 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mios-x { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.mios-back { position: absolute; left: 14px; top: 12px; border: 0; background: transparent; color: var(--brand); font: 600 0.95rem var(--sys); cursor: pointer; display: none; }
.mios-sheet-body { overflow-y: auto; padding: 8px 18px 22px; -webkit-overflow-scrolling: touch; }
.mios-sheet-photo { height: 170px; border-radius: 20px; background: center/cover no-repeat; margin-bottom: 14px; }
.mios-sheet-desc { color: var(--ink-2); line-height: 1.55; white-space: pre-line; margin: 10px 0 14px; }
.mios-kv { border-radius: 16px; background: var(--fill); padding: 4px 14px; margin-bottom: 16px; }
.mios-kv div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 0.92rem; }
.mios-kv div + div { border-top: 1px solid var(--hair); }
.mios-kv span { color: var(--ink-2); }
.mios-step-title { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 6px 2px 10px; }
.mios-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.mios-days::-webkit-scrollbar { display: none; }
.mios-day { flex: 0 0 auto; width: 62px; border: 0; border-radius: 16px; padding: 8px 0; background: var(--fill); color: var(--ink); cursor: pointer; font-family: var(--sys); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mios-day small { font-size: 0.68rem; color: var(--ink-2); text-transform: uppercase; font-weight: 600; }
.mios-day b { font-size: 1.25rem; }
.mios-day.on { background: var(--brand); color: #fff; }
.mios-day.on small { color: rgba(255,255,255,0.85); }
.mios-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.mios-time { border: 1px solid var(--hair); background: var(--glass-strong); color: var(--ink); border-radius: 12px; padding: 10px 0; font: 600 0.95rem var(--sys); cursor: pointer; }
.mios-time.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.mios-empty { text-align: center; color: var(--ink-2); padding: 18px 6px; }
.mios-form { display: grid; gap: 10px; }
.mios-field { border-radius: 14px; background: var(--fill); padding: 8px 14px; }
.mios-field label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--ink-3); }
.mios-field input, .mios-field textarea, .mios-field select { width: 100%; border: 0; background: transparent; color: var(--ink); font: 1rem var(--sys); padding: 2px 0; outline: none; resize: vertical; }
.mios-field select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.mios-field select option { color: #1c1c1e; }
.mios-check { display: flex; align-items: center; gap: 10px; padding: 4px 4px; font-size: 0.95rem; color: var(--ink); cursor: pointer; }
.mios-check input { width: 20px; height: 20px; accent-color: var(--brand); }
#miosBiz { display: grid; gap: 10px; }
#miosBiz[hidden] { display: none; }
.mios-tax:empty { display: none; }
.mios-tax { border-radius: 14px; border: 1px solid var(--hair); padding: 10px 14px; display: grid; gap: 4px; }
.mios-tax .mios-tax-row { display: flex; justify-content: space-between; align-items: baseline; }
.mios-tax .mios-tax-row b { font-size: 1.15rem; }
.mios-tax .note { font-size: 0.82rem; color: var(--ink-2); }
.mios-tax .ok { font-size: 0.82rem; color: #34c759; font-weight: 600; }
.mios-tax .warn { font-size: 0.82rem; color: #ff9f0a; font-weight: 600; }
.mios-sheet-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 12px; }
.mios-sheet-foot .sum { flex: 1; min-width: 0; font-size: 0.85rem; color: var(--ink-2); }
.mios-sheet-foot .sum b { display: block; color: var(--ink); font-size: 1rem; }
.mios-err { color: #ff3b30; font-size: 0.88rem; min-height: 1em; }
.mios-done { text-align: center; padding: 24px 8px 8px; }
.mios-done .ok { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 2.2rem; color: #fff; background: #34c759; }
.mios-done .ok.wait { background: #ff9f0a; }
.mios-done h4 { font-size: 1.3rem; margin-bottom: 6px; }
.mios-done p { color: var(--ink-2); }
body.mios-lock { overflow: hidden; }
body.mios-lock #aiChatBtn, body.mios-lock .mios-fab { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .mios * { transition: none !important; } }
