/*
 * mimir.css — Vitus product page styles
 *
 * Depends on: ../styles/main.css (must be loaded first for design tokens)
 *
 * Contents:
 *   1. Page shell and grain overlay
 *   2. Container / wrap
 *   3. Eyebrow
 *   4. Navigation
 *   5. Buttons (primary, secondary, ghost)
 *   6. Hero
 *   7. Section headers
 *   8. Features grid
 *   9. How-it-works (split layout)
 *  10. Pricing grid / tiers
 *  11. Footer
 *  12. FAQ accordion
 *  13. PAYG credit blocks
 *  14. Pricing commitments
 *  15. Well illustration (Ask Vitus)
 *  16. Signup form
 *  17. Content grid
 *  18. Character art
 *  19. Screenshot treatment
 *  20. Annotation motif
 *  21. Pill CTA buttons
 *  22. Badge — coming soon
 */


/* ==========================================================================
   1. Page Shell + Grain Overlay
   ========================================================================== */

.ms-page { position: relative; isolation: isolate; }
.ms-page::before { content: ""; position: fixed; inset: 0; background-image: var(--grain-svg); background-size: 220px; mix-blend-mode: overlay; opacity: 0.5; pointer-events: none; z-index: 1; }


/* ==========================================================================
   2. Container / Wrap
   ========================================================================== */

.ms-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }


/* ==========================================================================
   3. Eyebrow
   ========================================================================== */

.ms-eyebrow { font: 600 11px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }


/* ==========================================================================
   4. Navigation
   ========================================================================== */

.ms-nav { position: relative; z-index: 10; padding: 14px 0; }
.ms-nav-inner { display: flex; align-items: center; gap: 28px; }
.ms-nav-brand { display: flex; align-items: center; gap: 10px; }
.ms-nav-brand img { height: 38px; width: auto; }
.ms-nav-wordmark-img { height: 28px !important; }
.ms-nav-brand-word { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.005em; }
.ms-nav-links { display: flex; gap: 24px; margin-left: 24px; white-space: nowrap; }
.ms-nav-links a { color: var(--fg-2); font-size: 14px; text-decoration: none; }
.ms-nav-links a:hover { color: var(--fg-1); }
.ms-nav-spacer { flex: 1; }
.ms-nav-cta { display: flex; align-items: center; gap: 10px; }


/* ==========================================================================
   5. Buttons — primary, secondary, ghost
   ========================================================================== */

.ms-btn-primary, .ms-btn-secondary, .ms-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 6px; cursor: pointer;
  font: 600 14px var(--font-sans); letter-spacing: 0.01em;
  border: 1px solid; transition: all 240ms var(--easing-settle);
  text-decoration: none;
}
.ms-btn-primary { background: var(--accent); color: var(--fg-on-accent); border-color: rgba(255,240,210,0.06); box-shadow: inset 0 1px 0 rgba(255,240,210,0.12), 0 1px 0 rgba(0,0,0,0.3), 0 6px 18px rgba(184,90,44,0.22); }
.ms-btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.ms-btn-secondary { background: rgba(214,201,168,0.05); color: var(--fg-1); border-color: var(--border); }
.ms-btn-secondary:hover { background: var(--bg-surface); border-color: var(--border-strong-c); }
.ms-btn-ghost { background: transparent; color: var(--fg-2); border-color: transparent; }
.ms-btn-ghost:hover { color: var(--fg-1); }


/* ==========================================================================
   6. Hero
   ========================================================================== */

.ms-hero { position: relative; padding: 36px 0 96px; overflow: hidden; }
.ms-hero-bg { position: absolute; inset: -10% 0 0; background-size: cover; background-position: center 30%; filter: saturate(0.65) brightness(0.45); }
.ms-hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,13,0.55) 0%, rgba(20,16,13,0.4) 30%, rgba(20,16,13,0.92) 95%, rgba(20,16,13,1) 100%), radial-gradient(ellipse at 70% 40%, rgba(184,90,44,0.18) 0%, transparent 60%); }
.ms-hero::after { content: ""; position: absolute; inset: 0; background-image: var(--grain-svg); background-size: 220px; mix-blend-mode: overlay; opacity: 0.4; pointer-events: none; }
.ms-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 48px; align-items: center; min-height: 580px; padding-top: 60px; }
.ms-hero-copy { max-width: 540px; }
.ms-hero-eyebrow { color: var(--accent); font: 600 12px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.ms-hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.ms-hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: 0.95; letter-spacing: 0; color: #f7f1e3; margin: 0 0 22px; text-shadow: 0 4px 32px rgba(0,0,0,0.6); }
.ms-hero-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--fg-2); display: block; font-size: 0.6em; line-height: 1.2; margin-top: 14px; letter-spacing: -0.01em; }
.ms-hero-sub { font-family: var(--font-serif); font-size: 19px; line-height: 1.65; color: var(--fg-2); text-wrap: pretty; margin: 0 0 32px; }
.ms-hero-cta { display: flex; gap: 12px; align-items: center; }
.ms-hero-meta { margin-top: 28px; display: flex; gap: 22px; font-size: 12.5px; color: var(--fg-3); }
.ms-hero-meta strong { color: var(--fg-1); font-family: var(--font-mono); display: block; }

.ms-hero-plate { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-strong-c); box-shadow: var(--shadow-lg); }
.ms-hero-plate img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); }
.ms-hero-plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(20,16,13,0.7) 100%); }
.ms-hero-plate-cap { position: absolute; left: 18px; bottom: 18px; right: 18px; z-index: 1; font-family: var(--font-serif); font-style: italic; font-size: 13px; color: rgba(247,241,227,0.85); }


/* ==========================================================================
   7. Section Headers
   ========================================================================== */

.ms-section { padding: 96px 0; position: relative; z-index: 2; }
.ms-section.ms-wrap { padding-inline: 32px; }
.ms-section-head { max-width: 720px; margin-bottom: 48px; }
.ms-section-h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.01em; margin: 12px 0 16px; color: var(--fg-1); }
.ms-section-h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.ms-section-sub { font-family: var(--font-serif); font-size: 18px; line-height: 1.65; color: var(--fg-2); margin: 0; max-width: 56ch; text-wrap: pretty; }


/* ==========================================================================
   8. Features Grid
   ========================================================================== */

.ms-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ms-feature { background: var(--bg-page); padding: 32px 28px; position: relative; }
.ms-feature::before { content: ""; position: absolute; inset: 0; background-image: var(--grain-svg); background-size: 220px; mix-blend-mode: overlay; opacity: 0.4; pointer-events: none; }
.ms-feat-icon { width: 56px; height: 56px; margin-bottom: 18px; position: relative; z-index: 1; }
.ms-feat-icon img { width: 100%; height: 100%; object-fit: contain; filter: invert() opacity(0.78); }
.ms-feat-title { font-family: var(--font-serif); font-weight: 600; font-size: 22px; line-height: 1.2; margin: 0 0 8px; position: relative; z-index: 1; }
.ms-feat-body { font-family: var(--font-serif); font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0; position: relative; z-index: 1; text-wrap: pretty; }


/* ==========================================================================
   9. How-it-Works (Split Layout)
   ========================================================================== */

.ms-how { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.ms-how-plate { aspect-ratio: 5/4; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-strong-c); box-shadow: var(--shadow-lg); position: relative; }
.ms-how-plate img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.ms-how-plate::after { content: ""; position: absolute; inset: 0; background-image: var(--grain-svg); background-size: 220px; mix-blend-mode: overlay; opacity: 0.4; }
.ms-how-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.ms-how-step { counter-increment: step; padding: 18px 0; border-bottom: 1px solid var(--border); display: flex; gap: 18px; }
.ms-how-step:last-child { border: 0; }
.ms-how-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 99px; border: 1px solid var(--border-strong-c); display: grid; place-items: center; font-family: var(--font-display); font-size: 16px; color: var(--accent); background: var(--bg-surface); }
.ms-how-step h4 { font-family: var(--font-serif); font-weight: 600; font-size: 18px; margin: 4px 0 4px; }
.ms-how-step p { font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0; }


/* ==========================================================================
   10. Pricing Grid / Tiers
   ========================================================================== */

.ms-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ms-tier { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 28px 26px; position: relative; overflow: hidden; }
.ms-tier::before { content: ""; position: absolute; inset: 0; background-image: var(--grain-svg); background-size: 220px; mix-blend-mode: overlay; opacity: 0.5; pointer-events: none; }
.ms-tier > * { position: relative; z-index: 1; }
.ms-tier.is-featured { background: var(--bg-shell); border-color: rgba(184,90,44,0.4); box-shadow: 0 0 0 1px rgba(184,90,44,0.1), 0 16px 40px rgba(184,90,44,0.12); }
.ms-tier-name { font-family: var(--font-display); font-size: 28px; margin: 0 0 6px; }
.ms-tier-price { font-family: var(--font-serif); font-size: 38px; font-weight: 500; margin: 14px 0 6px; color: var(--fg-1); }
.ms-tier-price small { font-family: var(--font-sans); font-size: 14px; color: var(--fg-3); font-weight: 400; }
.ms-tier-tag { font-family: var(--font-serif); font-style: italic; font-size: 13.5px; color: var(--fg-2); margin: 0 0 18px; min-height: 38px; }
.ms-tier ul { list-style: none; padding: 0; margin: 0 0 22px; }
.ms-tier li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--fg-1); border-top: 1px solid var(--border); }
.ms-tier li:first-child { border: 0; }
.ms-tier li::before { content: "\2726"; color: var(--accent); font-size: 11px; padding-top: 2px; }


/* ==========================================================================
   11. Footer
   ========================================================================== */

.ms-footer { border-top: 1px solid var(--border); padding: 48px 0 36px; position: relative; z-index: 2; }
.ms-foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.ms-foot-brand { font-family: var(--font-display); font-size: 28px; }
.ms-foot-wordmark-img { height: 28px; width: auto; }
.ms-foot-tag { font-family: var(--font-serif); font-style: italic; color: var(--fg-2); font-size: 14px; margin: 6px 0 0; }
.ms-foot-col h5,
.ms-foot-col h2 { font: 600 11px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 12px; }
.ms-foot-col a { display: block; padding: 4px 0; color: var(--fg-2); text-decoration: none; font-size: 14px; }
.ms-foot-col a:hover { color: var(--fg-1); }
.ms-foot-base { display: flex; align-items: center; padding-top: 32px; margin-top: 36px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-3); }
.ms-foot-base a { color: var(--fg-3); margin-left: 18px; text-decoration: none; }
.ms-foot-base a:hover { color: var(--fg-1); }


/* ==========================================================================
   12. FAQ Accordion
   ========================================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    min-width: 0;
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item__question button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    min-width: 0;
    padding: var(--space-4) clamp(20px, 3vw, 32px);
    font-family: var(--font-serif);
    font-size: var(--fs-2xl);
    font-weight: 400;
    color: var(--fg-1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
    transition: color var(--duration-quick) var(--easing-settle);
}

.faq-item__question button:hover {
    color: var(--accent);
}

.faq-item__question button::after {
    content: '+';
    font-size: var(--fs-3xl);
    font-weight: 300;
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--easing-settle);
    color: var(--accent);
}

.faq-item__question button[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.faq-item__answer {
    box-sizing: border-box;
    font-family: var(--font-serif);
    font-size: var(--fs-md);
    color: var(--fg-2);
    line-height: 1.75;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 0 clamp(20px, 3vw, 32px) var(--space-4);
}

.faq-item__answer[hidden] {
    display: none;
}


/* ==========================================================================
   13. PAYG Credit Blocks
   ========================================================================== */

.payg-block {
    margin-top: var(--space-7);
    padding: var(--space-5);
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.payg-block__heading {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 400;
    color: var(--fg-1);
    margin-bottom: var(--space-2);
}

.payg-block__subtext {
    font-family: var(--font-serif);
    font-size: var(--fs-md);
    color: var(--fg-2);
    max-width: var(--max-width-text);
    margin-inline: auto;
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.payg-block__packs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.payg-pack {
    background-color: var(--bg-shell);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.payg-pack__price {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 400;
    color: var(--accent);
}

.payg-pack__credits {
    font-family: var(--font-serif);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--fg-1);
}

.payg-pack__note {
    font-family: var(--font-serif);
    font-size: var(--fs-2xs);
    color: var(--fg-2);
    opacity: 0.8;
}


/* ==========================================================================
   14. Pricing Commitments
   ========================================================================== */

.pricing-commitments {
    margin-top: var(--space-7);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    text-align: center;
}

.pricing-commitments__heading {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 400;
    color: var(--fg-1);
    margin-bottom: var(--space-2);
}

.pricing-commitments__subtext {
    font-family: var(--font-serif);
    font-size: var(--fs-md);
    color: var(--fg-2);
    max-width: var(--max-width-text);
    margin-inline: auto;
    margin-bottom: var(--space-5);
    line-height: 1.7;
}

.pricing-commitments__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: left;
    max-width: 800px;
    margin-inline: auto;
}

@media (min-width: 640px) {
    .pricing-commitments__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pricing-commitment {
    display: block;
    min-width: 0;
    padding: clamp(22px, 2.25vw, 30px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.pricing-commitment > div {
    min-width: 0;
}

.pricing-commitment__icon {
    color: var(--accent);
    font-size: var(--fs-2xl);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-commitment strong {
    display: block;
    font-family: var(--font-serif);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--fg-1);
    margin-bottom: var(--space-1);
}

.pricing-commitment p {
    font-family: var(--font-serif);
    font-size: var(--fs-sm);
    color: var(--fg-2);
    line-height: 1.6;
    margin: 0;
}


/* ==========================================================================
   15. Well Illustration — Ask Vitus
   V1: styled placeholder. V1.1: animated blob replaces this.
   ========================================================================== */

.well-illustration {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
}

.well-illustration__placeholder {
    aspect-ratio: 3 / 4;
    background: radial-gradient(
        ellipse 60% 70% at 50% 60%,
        rgba(180, 0, 220, 0.15),
        transparent 80%
    );
    border: 1px dashed rgba(217, 70, 239, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.well-illustration__wisp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(217, 70, 239, 0.8) 0%,
        rgba(217, 70, 239, 0.2) 60%,
        transparent 100%
    );
    filter: blur(8px);
    animation: wisp-pulse 3s ease-in-out infinite;
}

@keyframes wisp-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.2); opacity: 1; }
}

.well-illustration__placeholder p {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    color: var(--fg-2);
    margin: 0;
}

.well-illustration__placeholder span {
    font-size: var(--fs-2xs);
    opacity: 0.6;
}


/* ==========================================================================
   16. Email Signup Form
   ========================================================================== */

.signup-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
    max-width: var(--max-width-narrow);
}

@media (min-width: 520px) {
    .signup-form--inline {
        flex-direction: row;
        align-items: flex-start;
    }
}

.signup-form__label {
    font-family: var(--font-serif);
    font-size: var(--fs-sm);
    color: var(--fg-2);
    margin-bottom: var(--space-1);
}

.signup-form__input {
    flex: 1;
    font-family: var(--font-serif);
    font-size: var(--fs-md);
    background-color: var(--bg-surface);
    color: var(--fg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    outline: none;
    transition: border-color var(--duration-quick) var(--easing-settle), box-shadow var(--duration-quick) var(--easing-settle);
}

.signup-form__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--section-glow, rgba(201, 168, 76, 0.2));
}

.signup-form__input::placeholder {
    color: var(--fg-2);
    opacity: 0.7;
}

.signup-form__select {
    font-family: var(--font-serif);
    font-size: var(--fs-sm);
    background-color: var(--bg-surface);
    color: var(--fg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    outline: none;
    cursor: pointer;
}

.signup-form__select:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 90, 44, 0.25);
}

.signup-form__note {
    font-size: var(--fs-2xs);
    color: var(--fg-2);
    opacity: 0.8;
}


/* ==========================================================================
   17. Content Grid
   Two-column layout used across Vitus sections.
   Text left or right, character art / screenshot opposite side.
   ========================================================================== */

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: center;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-7);
    }
}

/* Reverse column order on alternate sections */
.content-grid--reversed .content-grid__media {
    order: -1;
}

@media (min-width: 768px) {
    .content-grid--reversed .content-grid__media {
        order: 2;
    }
    .content-grid--reversed .content-grid__text {
        order: 1;
    }
}

.content-grid__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.content-grid__media {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


/* ==========================================================================
   18. Character Art
   Edge-positioned cutout illustrations with glow halos.
   ========================================================================== */

.char-art {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    max-width: none;
}

@media (min-width: 768px) {
    .char-art {
        width: 50%;
    }
}

.char-art__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    border: none;
    background: none;
    box-shadow: none;
    filter: drop-shadow(0 0 60px var(--section-glow, rgba(100, 120, 180, 0.5)));
}

/* Placeholder state — shown until real art is supplied */
.char-art__placeholder {
    aspect-ratio: 3 / 4;
    background-color: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-2);
    font-family: var(--font-serif);
    font-size: var(--fs-sm);
    text-align: center;
    padding: var(--space-3);
}


/* ==========================================================================
   19. Screenshot Treatment
   Floating app screenshots with rounded corners, glow, slight tilt.
   ========================================================================== */

.screenshot {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border),
        0 8px 40px rgba(0, 0, 0, 0.25),
        0 0 60px var(--section-glow, rgba(100, 120, 180, 0.2));
}

.screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* Slight tilt variants */
.screenshot--tilt-right {
    transform: rotate(1.5deg);
}

.screenshot--tilt-left {
    transform: rotate(-1.5deg);
}

/* Placeholder state */
.screenshot__placeholder {
    aspect-ratio: 16 / 10;
    background: linear-gradient(
        135deg,
        var(--bg-shell),
        var(--bg-surface)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-2);
    font-family: var(--font-serif);
    font-size: var(--fs-sm);
}


/* ==========================================================================
   20. Annotation Motif
   Tasteful decorative markers — use sparingly.
   ========================================================================== */

/* Annotation marker — the small + motif */
.annotation {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-serif);
    font-size: var(--fs-2xs);
    color: var(--section-accent, var(--accent));
    pointer-events: none;
}

.annotation::before {
    content: '+';
    font-size: var(--fs-2xl);
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
}

.annotation__line {
    width: 32px;
    height: 1px;
    background-color: currentColor;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Highlight underline — hand-drawn style */
.highlight {
    position: relative;
    display: inline;
    color: var(--section-accent, var(--accent));
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--section-accent, var(--accent));
    opacity: 0.5;
    border-radius: 1px;
}


/* ==========================================================================
   21. Pill CTA Buttons
   Rounded pill, section accent colour, glow halo.
   ========================================================================== */

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-serif);
    font-size: var(--fs-sm);
    font-weight: 600;
    background-color: var(--section-cta-bg, var(--accent));
    color: var(--fg-on-accent);
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 0 20px var(--section-glow, rgba(201, 168, 76, 0.3));
    transition:
        opacity var(--duration-quick) var(--easing-settle),
        box-shadow var(--duration-quick) var(--easing-settle);
}

.btn-pill:hover {
    opacity: 0.9;
    box-shadow: 0 0 32px var(--section-glow, rgba(201, 168, 76, 0.5));
}

.btn-pill:focus-visible {
    outline: 2px solid var(--section-accent, var(--accent));
    outline-offset: 3px;
}

.btn-pill svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Ghost variant */
.btn-pill--ghost {
    background-color: transparent;
    border: 1px solid var(--section-accent, var(--accent));
    color: var(--section-accent, var(--accent));
    box-shadow: none;
}

.btn-pill--ghost:hover {
    background-color: var(--section-cta-bg, var(--accent));
    color: var(--fg-on-accent);
    opacity: 1;
    box-shadow: 0 0 20px var(--section-glow, rgba(201, 168, 76, 0.3));
}


/* ==========================================================================
   22. Badge — Coming Soon
   ========================================================================== */

.badge-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-serif);
    font-size: var(--fs-2xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--section-accent, var(--accent));
    border: 1px solid var(--section-accent, var(--accent));
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    margin-bottom: var(--space-2);
}


/* ==========================================================================
   23. Responsive — Mobile (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {

    /* Container padding */
    .ms-wrap {
        padding: 0 20px;
    }

    /* Section spacing */
    .ms-section {
        padding: 64px 0;
    }

    .ms-section.ms-wrap {
        padding-inline: 20px;
    }

    /* Navigation — hide desktop links, show hamburger area */
    .ms-nav-links {
        display: none;
    }

    .ms-nav-cta .ms-btn-primary {
        font-size: 12px;
        padding: 8px 14px;
    }

    /* Hero — stack to single column */
    .ms-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
        padding-top: 40px;
    }

    .ms-hero-title {
        font-size: clamp(36px, 8vw, 48px);
    }

    .ms-hero-sub {
        font-size: 16px;
    }

    .ms-hero-cta {
        flex-wrap: wrap;
    }

    .ms-hero-meta {
        flex-wrap: wrap;
        gap: 16px;
    }

    .ms-hero-plate {
        max-width: 320px;
        margin: 0 auto;
    }

    /* Features grid — 1 column on mobile */
    .ms-features {
        grid-template-columns: 1fr;
    }

    .ms-feat-title {
        font-size: 19px;
    }

    .ms-feat-body {
        font-size: 14px;
    }

    /* How-it-works — stack to single column */
    .ms-how {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Pricing grid — 1 column on mobile */
    .ms-pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Section headings */
    .ms-section-h2 {
        font-size: clamp(26px, 6vw, 36px);
    }

    .ms-section-sub {
        font-size: 16px;
    }

    /* Footer grid — stack to single column */
    .ms-foot-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ms-foot-base {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .ms-foot-base span:last-child {
        margin-left: 0;
    }

    .ms-foot-base a {
        margin-left: 0;
        margin-right: 14px;
    }

    /* PAYG block */
    .payg-block {
        padding: var(--space-4);
    }

    .payg-block__heading {
        font-size: var(--fs-2xl);
    }

    /* FAQ question text */
    .faq-item__question button {
        font-size: var(--fs-lg);
    }
}

/* Comparison table */
.ms-compare-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: var(--fs-sm); }
.ms-compare-table th { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-strong-c); color: var(--fg-1); font-weight: 600; white-space: nowrap; }
.ms-compare-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--fg-2); }
.ms-compare-table td:first-child { color: var(--fg-1); font-weight: 500; }
.ms-compare-table tr:hover td { background: var(--bg-surface); }


/* ==========================================================================
   24. Comparison Table Scroll Wrapper
   ========================================================================== */

.ms-compare-scroll {
    overflow-x: auto;
}


/* ==========================================================================
   25. Pricing Section Utilities
   ========================================================================== */

/* Pricing caveat text — small muted note */
.ms-pricing-caveat {
    font-size: 12px;
    color: var(--fg-3);
    margin-top: 12px;
}

/* Tier annual price note */
.ms-tier-annual {
    font-size: 12px;
    color: var(--fg-3);
}

/* Enterprise contact box */
.ms-enterprise-box {
    text-align: center;
    margin-top: 48px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* Enterprise box strong text */
.ms-enterprise-box strong {
    color: var(--fg-1);
}

/* Enterprise contact link */
.ms-enterprise-box a {
    color: var(--accent);
}

/* Roadmap CTA block below pricing */
.ms-roadmap-cta {
    text-align: center;
    margin-top: 48px;
}

/* Roadmap CTA button spacing */
.ms-roadmap-cta .ms-btn-secondary {
    margin-top: 16px;
    display: inline-flex;
}


/* ==========================================================================
   26. FAQ Section Layout
   ========================================================================== */

/* Constrained FAQ list container */
.ms-faq-container {
    max-width: 720px;
    margin: 0 auto;
}


/* ==========================================================================
   27. Beta Signup Section
   ========================================================================== */

/* Centered signup wrapper */
.ms-beta-wrapper {
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(30px, 5vw, 64px);
    padding-bottom: clamp(36px, 6vw, 72px);
    text-align: center;
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
}

/* Beta section sub with bottom margin */
.ms-beta-sub {
    margin-inline: auto;
    margin-bottom: 32px;
}


/* ==========================================================================
   28. Footer Utilities
   ========================================================================== */

/* Footer attribution text */
.ms-foot-attribution {
    font-size: 13px;
    color: var(--fg-3);
    margin: 14px 0 0;
}

/* Footer social icons row */
.ms-foot-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}


/* ==========================================================================
   29. Centred Content Alignment
   Keep centred content blocks centred while preserving left-aligned sections.
   ========================================================================== */

#pricing > .ms-section-head.text-center,
#faq > .ms-section-head.text-center {
    margin-inline: auto;
}

.ms-section-sub.margin-inline-auto {
    margin-inline: auto;
}

/* ==========================================================================
   30. Product-proof architecture
   Real media can replace placeholder internals without changing page layout.
   ========================================================================== */

.ms-section--band {
    background: linear-gradient(180deg, rgba(215, 155, 62, 0.035), rgba(215, 155, 62, 0.012));
    border-block: 1px solid var(--border);
}

.ms-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}

.ms-split--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.ms-copy-block > p {
    color: var(--fg-2);
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.75;
}

.ms-ownership-line {
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 18px 0 0;
}

.ms-launch-state,
.ms-small-note,
.ms-media-caption,
.ms-media figcaption {
    color: var(--fg-3);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.55;
}

.ms-media {
    margin: 0;
    min-width: 0;
}

.ms-media picture { display: block; }
.ms-media picture img,
.ms-media > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .04);
}

.ms-media-placeholder,
.ms-video-placeholder {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(215, 155, 62, .09), transparent 45%),
        repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.018) 22px 23px),
        var(--bg-surface);
    border: 1px solid var(--border-strong-c);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
    padding: 32px;
    position: relative;
    text-align: center;
}

.ms-media-placeholder::before,
.ms-video-placeholder::before {
    border: 1px solid rgba(215, 155, 62, .17);
    border-radius: 50%;
    content: "";
    height: 170px;
    position: absolute;
    width: 170px;
}

.ms-media-placeholder strong,
.ms-video-placeholder strong {
    color: var(--fg-1);
    font-family: var(--font-display);
    font-size: clamp(19px, 1.7vw, 30px);
    font-weight: 400;
    line-height: 1.15;
    max-width: 100%;
    overflow-wrap: anywhere;
    position: relative;
}

.ms-media-placeholder > span:last-child,
.ms-video-placeholder > span:last-child {
    color: var(--fg-3);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-top: 10px;
    position: relative;
}

.ms-media-kicker {
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: 12px;
    position: relative;
    text-transform: uppercase;
}

.ms-media figcaption {
    overflow-wrap: anywhere;
    padding: 10px 8px 0;
}

.ms-media--hero .ms-media-placeholder {
    min-height: 430px;
}

.ms-media--wide .ms-media-placeholder {
    aspect-ratio: 16 / 10;
}

.ms-media-grid {
    display: grid;
    gap: 18px;
}

.ms-media-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-media-grid--two .ms-media-placeholder {
    min-height: 230px;
}

.ms-video-shell {
    margin-top: 36px;
}

.ms-video-placeholder {
    height: 100%;
}

.ms-demo-steps,
.ms-proof-grid,
.ms-audience-grid,
.ms-composite {
    display: grid;
}

.ms-demo-steps {
    border-block: 1px solid var(--border);
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
}

.ms-demo-steps span {
    color: var(--fg-2);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 16px;
    text-align: center;
}

.ms-proof-strip {
    background: var(--bg-surface);
    border-block: 1px solid var(--border-strong-c);
}

.ms-proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ms-proof {
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 130px;
    padding: 28px 24px;
    text-decoration: none;
}

.ms-proof + .ms-proof {
    border-left: 1px solid var(--border);
}

a.ms-proof:hover {
    background: rgba(215, 155, 62, .045);
}

.ms-proof strong {
    color: var(--fg-1);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
}

.ms-proof span {
    color: var(--fg-3);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.5;
}

.ms-example {
    background: var(--bg-surface);
    border-left: 3px solid var(--accent);
    margin: 26px 0 14px;
    padding: 18px 22px;
}

.ms-example p {
    color: var(--fg-2);
    font-family: var(--font-serif);
    line-height: 1.6;
    margin: 0;
}

.ms-example p + p {
    margin-top: 12px;
}

.ms-composite {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 38px;
}

.ms-composite > div {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    min-height: 190px;
    padding: 28px;
}

.ms-composite > div + div {
    border-left: 0;
}

.ms-composite span,
.ms-audience-grid article > span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
}

.ms-composite strong {
    color: var(--fg-1);
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-top: 38px;
}

.ms-composite small {
    color: var(--fg-3);
    display: block;
    font-family: var(--font-sans);
    line-height: 1.5;
    margin-top: 8px;
}

.ms-audience-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 38px;
}

.ms-audience-grid article {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
}

.ms-audience-grid h3 {
    color: var(--fg-1);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 400;
    margin: 22px 0 12px;
}

.ms-audience-grid p,
.ms-network-note {
    color: var(--fg-2);
    font-family: var(--font-serif);
    line-height: 1.65;
}

.ms-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

.ms-check-list {
    color: var(--fg-2);
    font-family: var(--font-sans);
    line-height: 1.6;
    padding-left: 20px;
}

.ms-network-note {
    border-top: 1px solid var(--border);
    font-size: 14px !important;
    margin-top: 24px;
    padding-top: 20px;
}

[data-analytics-event]:focus-visible,
.ms-media:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 980px) {
    .ms-proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ms-proof:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .ms-proof:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .ms-split,
    .ms-split--reverse {
        grid-template-columns: 1fr;
    }

    .ms-audience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ms-proof-grid,
    .ms-media-grid--two,
    .ms-composite,
    .ms-demo-steps {
        grid-template-columns: 1fr;
    }

    .ms-proof + .ms-proof {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .ms-composite > div + div {
        border-left: 1px solid var(--border);
        border-top: 0;
    }

    .ms-media--hero .ms-media-placeholder,
    .ms-media-placeholder {
        min-height: 240px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .ms-page *,
    .ms-page *::before,
    .ms-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================================
   31. Descent into the Well
   Chapter stage, local lighting, progress navigation and motion system.
   Final artwork is configured in scripts/chapters.js.
   ========================================================================== */

:root {
    --active-chapter-accent: #c9a45a;
    --active-chapter-text: #d9e5ea;
    --active-chapter-frame: #7a8791;
    --active-chapter-nav: #c9a45a;
    --active-chapter-glow: rgba(201, 164, 90, .3);
    scroll-padding-top: 88px;
    scroll-snap-type: y proximity;
}

.ms-well-page {
    background: #0a1017;
}

.ms-well-page .ms-page {
    background: transparent;
    color: var(--fg-1);
}

.ms-well-stage {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

.ms-well-layer,
.ms-well-layer__dark,
.ms-well-layer__light,
.ms-well-stage__readability,
.ms-well-stage__depth {
    inset: 0;
    position: absolute;
}

.ms-well-layer {
    opacity: 0;
    transform: scale(1.015);
    transition:
        opacity 900ms var(--easing-settle),
        transform 1400ms var(--easing-settle);
}

.ms-well-layer.is-active {
    opacity: 1;
    transform: scale(1);
}

.ms-well-layer__dark,
.ms-well-layer__light {
    background-position: var(--well-focal-point, 50% 50%);
    background-repeat: no-repeat;
    background-size: cover;
}

.ms-well-layer__dark {
    filter: saturate(.82) contrast(1.04);
}

.ms-well-layer__light {
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 1100ms var(--easing-settle);
}

.ms-well-layer.is-illuminated .ms-well-layer__light {
    opacity: .76;
}

.ms-well-stage__readability {
    background:
        linear-gradient(90deg, rgba(7, 10, 14, .66), rgba(7, 10, 14, .40) 46%, rgba(7, 10, 14, .58)),
        linear-gradient(180deg, rgba(7, 10, 14, .26), rgba(7, 10, 14, .52));
}

.ms-well-stage__depth {
    background:
        radial-gradient(ellipse at 50% 42%, transparent 28%, rgba(0, 0, 0, .24) 74%, rgba(0, 0, 0, .5) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .32), transparent 15% 85%, rgba(0, 0, 0, .32));
    box-shadow: inset 0 0 160px rgba(0, 0, 0, .52);
}

.ms-nav {
    background: rgba(12, 16, 20, .7);
    border-bottom: 1px solid color-mix(in srgb, var(--active-chapter-frame) 42%, transparent);
    position: sticky;
    top: 0;
    transition:
        background 320ms ease,
        border-color 500ms ease,
        padding 320ms ease;
    z-index: 50;
}

@supports (backdrop-filter: blur(14px)) {
    .ms-nav,
    .ms-depth-nav,
    .ms-media-placeholder,
    .ms-video-placeholder,
    .ms-proof,
    .ms-tier,
    .ms-audience-grid article,
    .pricing-commitment,
    .faq-list,
    .ms-beta-wrapper {
        backdrop-filter: blur(14px) saturate(1.04);
    }
}

.ms-nav.scrolled {
    background: rgba(9, 13, 17, .9);
    padding-block: 12px;
}

.ms-nav-links a:hover,
.ms-nav-links a:focus-visible,
.ms-eyebrow,
.ms-hero-eyebrow,
.ms-media-kicker {
    color: var(--chapter-text-accent, var(--active-chapter-text));
}

.ms-chapter,
.ms-chapter-continuation {
    --accent: var(--chapter-accent, var(--active-chapter-accent));
    --border: color-mix(in srgb, var(--chapter-frame, var(--active-chapter-frame)) 34%, transparent);
    --border-strong-c: color-mix(in srgb, var(--chapter-frame, var(--active-chapter-frame)) 68%, transparent);
    --section-glow: var(--chapter-glow, var(--active-chapter-glow));
}

.ms-chapter {
    align-items: center;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    scroll-margin-top: 82px;
}

.ms-hero.ms-chapter {
    min-height: calc(100vh - 78px);
    min-height: calc(100svh - 78px);
    padding-block: 32px 72px;
    scroll-snap-align: start;
}

[data-snap-chapter] {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.ms-chapter--long {
    display: block;
    min-height: auto;
    scroll-snap-align: none;
}

.ms-section--band {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--chapter-accent, var(--active-chapter-accent)) 5%, rgba(9, 12, 16, .56)),
        rgba(9, 12, 16, .34)
    );
    border-color: color-mix(in srgb, var(--chapter-frame, var(--active-chapter-frame)) 30%, transparent);
}

.ms-chapter::before,
.ms-chapter-continuation::before {
    border: 1px solid color-mix(in srgb, var(--chapter-accent, var(--active-chapter-accent)) 30%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 44px var(--chapter-glow, var(--active-chapter-glow));
    content: "";
    height: 12px;
    left: clamp(18px, 3.5vw, 64px);
    opacity: .34;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 700ms ease, box-shadow 700ms ease;
    width: 12px;
}

.ms-chapter.is-current-chapter::before,
.ms-chapter-continuation.is-current-chapter::before {
    animation: ms-rune-breathe 3.8s ease-in-out infinite;
    opacity: .9;
}

.ms-media-placeholder,
.ms-video-placeholder,
.ms-tier,
.ms-audience-grid article,
.pricing-commitment,
.faq-list,
.ms-beta-wrapper {
    background-color: rgba(13, 17, 22, .72);
    border-color: color-mix(in srgb, var(--chapter-frame, var(--active-chapter-frame)) 54%, transparent);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, .24),
        0 0 0 1px rgba(255, 255, 255, .015),
        0 0 44px color-mix(in srgb, var(--chapter-glow, var(--active-chapter-glow)) 58%, transparent);
}

.ms-media-placeholder,
.ms-video-placeholder {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--chapter-accent, var(--active-chapter-accent)) 13%, transparent), transparent 46%),
        repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.018) 22px 23px),
        rgba(13, 17, 22, .78);
    transition:
        border-color 420ms ease,
        box-shadow 420ms ease,
        transform 420ms var(--easing-settle);
}

.ms-media:hover .ms-media-placeholder,
.ms-video-shell:hover .ms-video-placeholder {
    border-color: var(--chapter-frame, var(--active-chapter-frame));
    box-shadow:
        0 24px 72px rgba(0, 0, 0, .3),
        0 0 52px var(--chapter-glow, var(--active-chapter-glow));
    transform: translateY(-4px);
}

.ms-media-placeholder::before,
.ms-video-placeholder::before {
    border-color: color-mix(in srgb, var(--chapter-accent, var(--active-chapter-accent)) 40%, transparent);
    box-shadow: 0 0 40px var(--chapter-glow, var(--active-chapter-glow));
}

.ms-proof-strip {
    background: rgba(10, 14, 18, .55);
}

.ms-proof {
    background: rgba(15, 20, 25, .58);
}

.ms-proof:hover,
.ms-audience-grid article:hover,
.pricing-commitment:hover {
    border-color: var(--chapter-frame, var(--active-chapter-frame));
    box-shadow: 0 16px 48px rgba(0, 0, 0, .24), 0 0 34px var(--chapter-glow, var(--active-chapter-glow));
    transform: translateY(-3px);
}

.ms-audience-grid article,
.pricing-commitment {
    transition: transform 320ms var(--easing-settle), border-color 320ms ease, box-shadow 320ms ease;
}

.ms-tier {
    transition: transform 340ms var(--easing-settle), border-color 340ms ease, box-shadow 340ms ease;
}

.ms-tier:hover {
    border-color: var(--chapter-frame, var(--active-chapter-frame));
    transform: translateY(-5px);
}

.ms-tier.is-featured {
    border-color: var(--chapter-accent, var(--active-chapter-accent));
    box-shadow: 0 22px 72px rgba(0, 0, 0, .32), 0 0 54px var(--chapter-glow, var(--active-chapter-glow));
}

.ms-composite > div {
    background: rgba(13, 17, 22, .76);
    border-color: color-mix(in srgb, var(--chapter-frame, var(--active-chapter-frame)) 48%, transparent);
    position: relative;
    transition: background 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.ms-composite > div::after {
    background: var(--chapter-accent, var(--active-chapter-accent));
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    opacity: .3;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 650ms var(--easing-settle), opacity 350ms ease;
    width: 100%;
}

.ms-composite.is-revealed > div::after {
    opacity: .85;
    transform: scaleX(1);
}

.ms-composite.is-revealed > div:nth-child(2)::after { transition-delay: 160ms; }
.ms-composite.is-revealed > div:nth-child(3)::after { transition-delay: 320ms; }

.ms-media-composition {
    min-width: 0;
    position: relative;
}

.ms-media-composition--character {
    padding-right: clamp(0px, 7vw, 92px);
}

.ms-character-overlay {
    bottom: -8%;
    filter:
        drop-shadow(0 22px 34px rgba(0, 0, 0, .7))
        drop-shadow(0 0 28px var(--chapter-glow, var(--active-chapter-glow)));
    height: 88%;
    mask-image: linear-gradient(90deg, transparent 0%, #000 20% 82%, transparent 100%);
    object-fit: cover;
    object-position: center;
    opacity: .76;
    pointer-events: none;
    position: absolute;
    right: -13%;
    transform: translate3d(16px, 20px, 0);
    transition: opacity 900ms ease, transform 1000ms var(--easing-settle);
    width: 43%;
    z-index: 3;
}

.is-revealed .ms-character-overlay,
.ms-media-composition:has(.is-revealed) .ms-character-overlay {
    opacity: .92;
    transform: translate3d(0, 0, 0);
}

.ms-depth-nav {
    align-items: center;
    background: rgba(10, 14, 18, .46);
    border: 1px solid color-mix(in srgb, var(--active-chapter-frame) 32%, transparent);
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
    position: fixed;
    right: clamp(10px, 1.6vw, 28px);
    top: 50%;
    transform: translateY(-50%);
    transition: border-color 500ms ease, background 500ms ease;
    z-index: 45;
}

.ms-depth-nav__title {
    color: var(--fg-3);
    font: 600 8px var(--font-mono);
    letter-spacing: .16em;
    padding-bottom: 5px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.ms-depth-nav ol {
    display: flex;
    flex-direction: column;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ms-depth-nav__link {
    align-items: center;
    display: flex;
    height: 20px;
    justify-content: center;
    position: relative;
    text-decoration: none;
    width: 20px;
}

.ms-depth-nav__marker {
    border: 1px solid rgba(218, 226, 231, .3);
    border-radius: 50%;
    height: 6px;
    transition: background 320ms ease, border-color 320ms ease, box-shadow 320ms ease, transform 320ms var(--easing-settle);
    width: 6px;
}

.ms-depth-nav__link.is-complete .ms-depth-nav__marker {
    background: color-mix(in srgb, var(--active-chapter-nav) 30%, transparent);
    border-color: color-mix(in srgb, var(--active-chapter-nav) 48%, transparent);
}

.ms-depth-nav__link.is-active .ms-depth-nav__marker {
    background: var(--active-chapter-nav);
    border-color: var(--active-chapter-nav);
    box-shadow: 0 0 14px var(--active-chapter-nav), 0 0 28px var(--active-chapter-glow);
    transform: scale(1.65);
}

.ms-depth-nav__label {
    background: rgba(8, 12, 16, .94);
    border: 1px solid color-mix(in srgb, var(--active-chapter-frame) 44%, transparent);
    border-radius: 4px;
    color: var(--fg-1);
    font: 500 11px var(--font-sans);
    opacity: 0;
    padding: 6px 9px;
    pointer-events: none;
    position: absolute;
    right: 28px;
    transform: translateX(6px);
    transition: opacity 180ms ease, transform 180ms ease;
    white-space: nowrap;
}

.ms-depth-nav__link:hover .ms-depth-nav__label,
.ms-depth-nav__link:focus-visible .ms-depth-nav__label {
    opacity: 1;
    transform: translateX(0);
}

.ms-depth-nav__link:focus-visible {
    border-radius: 50%;
    outline: 2px solid var(--active-chapter-nav);
    outline-offset: 3px;
}

.ms-motion-ready .ms-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 720ms var(--easing-settle) var(--reveal-delay, 0ms),
        transform 720ms var(--easing-settle) var(--reveal-delay, 0ms);
}

.ms-motion-ready .ms-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.faq-item__answer {
    max-height: 32rem;
    opacity: 1;
    overflow: hidden;
    transition: max-height 360ms var(--easing-settle), opacity 260ms ease, padding 360ms var(--easing-settle);
}

.faq-item__answer.is-closing {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
}

.ms-footer {
    background:
        linear-gradient(180deg, rgba(8, 13, 20, .42), rgba(5, 9, 15, .92)),
        radial-gradient(ellipse at 50% 100%, rgba(75, 163, 214, .10), transparent 52%);
    position: relative;
    z-index: 2;
}

.ms-footer::before {
    background: linear-gradient(174deg, transparent 35%, rgba(75, 163, 214, .07) 50%, transparent 66%);
    content: "";
    inset: 0;
    opacity: .6;
    pointer-events: none;
    position: absolute;
}

.ms-chapter-motion--entrance.is-current-chapter .ms-hero-eyebrow::before,
.ms-chapter-motion--runes.is-current-chapter .ms-media-placeholder::before {
    box-shadow: 0 0 28px var(--chapter-glow, var(--active-chapter-glow));
}

.ms-chapter-motion--migration.is-current-chapter .ms-composite > div::after {
    opacity: .9;
}

.ms-chapter-motion--water.is-current-chapter .ms-beta-wrapper {
    box-shadow: 0 24px 80px rgba(0, 0, 0, .38), 0 0 64px var(--chapter-glow, var(--active-chapter-glow));
}

@keyframes ms-rune-breathe {
    0%, 100% { box-shadow: 0 0 18px var(--chapter-glow, var(--active-chapter-glow)); transform: translateY(-50%) scale(.92); }
    50% { box-shadow: 0 0 40px var(--chapter-glow, var(--active-chapter-glow)); transform: translateY(-50%) scale(1.08); }
}

@media (max-width: 1180px) {
    .ms-depth-nav {
        right: 7px;
    }

    .ms-chapter::before,
    .ms-chapter-continuation::before {
        display: none;
    }
}

@media (max-width: 767px) {
    :root {
        scroll-padding-top: 70px;
    }

    .ms-well-stage__readability {
        background:
            linear-gradient(180deg, rgba(7, 10, 14, .44), rgba(7, 10, 14, .67)),
            linear-gradient(90deg, rgba(7, 10, 14, .58), rgba(7, 10, 14, .36), rgba(7, 10, 14, .58));
    }

    .ms-chapter {
        min-height: 100vh;
        min-height: 100svh;
        scroll-margin-top: 68px;
    }

    .ms-chapter--long {
        min-height: auto;
    }

    .ms-depth-nav {
        bottom: 10px;
        flex-direction: row;
        gap: 0;
        left: 50%;
        padding: 5px 9px;
        right: auto;
        top: auto;
        transform: translateX(-50%);
    }

    .ms-depth-nav__title,
    .ms-depth-nav__label {
        display: none;
    }

    .ms-depth-nav ol {
        flex-direction: row;
        gap: 2px;
    }

    .ms-depth-nav__link {
        height: 18px;
        width: 15px;
    }

    .ms-depth-nav__marker {
        height: 4px;
        width: 4px;
    }

    .ms-depth-nav__link.is-active .ms-depth-nav__marker {
        transform: scale(1.45);
    }

    .ms-media-composition--character {
        padding-right: 0;
        padding-bottom: 94px;
    }

    .ms-character-overlay {
        bottom: -4%;
        height: 190px;
        mask-image: linear-gradient(90deg, transparent, #000 18% 82%, transparent);
        opacity: .55;
        right: -4%;
        width: 180px;
    }

    .ms-footer {
        padding-bottom: 54px;
    }
}

@media (max-width: 420px) {
    .ms-depth-nav {
        display: none;
    }

    .ms-media-composition--character {
        padding-bottom: 0;
    }

    .ms-character-overlay {
        display: none;
    }
}

/* ==========================================================================
   32. Content containment and softened surfaces
   Every reusable content surface owns its internal spacing. Long labels and
   injected form content must wrap instead of touching or escaping an edge.
   ========================================================================== */

.ms-page :where(h1, h2, h3, h4, h5, p, li, dt, dd, figcaption, strong, small, span, a, button, blockquote) {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ms-page :where(h1, h2, h3, h4, h5) {
    overflow-wrap: break-word;
}

.ms-page :where(
    .ms-split,
    .ms-media-grid,
    .ms-pricing-grid,
    .pricing-commitments__grid,
    .ms-proof-grid,
    .ms-audience-grid,
    .ms-composite
) > * {
    min-width: 0;
}

.pricing-commitment {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--chapter-accent, var(--active-chapter-accent)) 9%, transparent), transparent 72%),
        rgba(13, 17, 22, .58);
    border-color: color-mix(in srgb, var(--chapter-frame, var(--active-chapter-frame)) 42%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 12px 34px rgba(0, 0, 0, .16);
}

.faq-list {
    background:
        linear-gradient(180deg, rgba(18, 24, 30, .74), rgba(11, 15, 20, .62));
}

.faq-item__question button {
    transition: color var(--duration-quick) var(--easing-settle), background-color var(--duration-quick) ease;
}

.faq-item__question button:hover,
.faq-item__question button:focus-visible {
    background: color-mix(in srgb, var(--chapter-accent, var(--active-chapter-accent)) 8%, transparent);
}

.ms-beta-wrapper {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--chapter-accent, var(--active-chapter-accent)) 8%, transparent), transparent 55%),
        rgba(11, 16, 23, .76);
    border-color: color-mix(in srgb, var(--chapter-frame, var(--active-chapter-frame)) 48%, transparent);
}

.ms-beta-wrapper .ml-embedded {
    box-sizing: border-box;
    margin-top: 32px;
    min-width: 0;
    padding-bottom: 4px;
    width: 100%;
}

.ms-beta-wrapper :where(.ml-form-embedContainer, .ml-form-embedWrapper) {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
}

.ms-beta-wrapper .ml-form-embedWrapper {
    border-radius: 16px !important;
    margin-inline: auto !important;
    overflow: hidden !important;
}

.ms-beta-wrapper .ml-form-embedBody {
    box-sizing: border-box !important;
    padding: clamp(22px, 4vw, 38px) !important;
}

@media (max-width: 767px) {
    .faq-item__question button {
        padding: 20px 18px;
    }

    .faq-item__answer {
        padding-inline: 18px;
    }

    .ms-beta-wrapper {
        border-radius: 20px;
        padding: 28px 18px 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        scroll-snap-type: none;
    }

    .ms-well-layer,
    .ms-well-layer__light,
    .ms-media-placeholder,
    .ms-video-placeholder,
    .ms-tier,
    .ms-audience-grid article,
    .pricing-commitment,
    .ms-character-overlay,
    .ms-motion-ready .ms-reveal,
    .faq-item__answer {
        animation: none !important;
        transition-duration: .01ms !important;
        transform: none !important;
    }

    .ms-motion-ready .ms-reveal {
        opacity: 1;
    }

    .ms-chapter.is-current-chapter::before,
    .ms-chapter-continuation.is-current-chapter::before {
        animation: none;
    }
}

/* ==========================================================================
   Stacked chapters and product galleries
   A chapter that holds a heading plus wide media stacks vertically, so
   product captures can use the full content width and stay legible.
   ========================================================================== */
.ms-chapter.ms-wrap {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
}

.ms-chapter > .ms-wrap {
    width: 100%;
}

.ms-stack-head {
    margin-bottom: 32px;
    max-width: 760px;
}

.ms-stack-head .ms-section-h2 {
    margin-bottom: 18px;
}

.ms-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ms-gallery-tabs [role="tab"] {
    background: transparent;
    border: 1px solid var(--border-strong-c);
    border-radius: 999px;
    color: var(--fg-2);
    cursor: pointer;
    font: 600 13px/1 var(--font-sans);
    padding: 10px 16px;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.ms-gallery-tabs [role="tab"]:hover {
    border-color: var(--accent);
    color: var(--fg-1);
}

.ms-gallery-tabs [role="tab"][aria-selected="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #14100d;
}

.ms-gallery-tabs [role="tab"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.ms-gallery-panel + .ms-gallery-panel {
    margin-top: 28px;
}

.ms-gallery.is-enhanced .ms-gallery-panel + .ms-gallery-panel {
    margin-top: 0;
}

.ms-media--stage picture img,
.ms-gallery-panel picture img {
    margin: 0 auto;
    max-height: min(74vh, 780px);
    object-fit: contain;
    width: auto;
    max-width: 100%;
}

.ms-media--stage figcaption,
.ms-gallery-panel figcaption {
    font-size: 13px;
    margin: 0 auto;
    max-width: 760px;
    text-align: center;
}

.ms-video-shell video {
    background: #0b0907;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .04);
    display: block;
    height: auto;
    width: 100%;
}

.ms-split + .ms-gallery,
.ms-stage-after-split {
    margin-top: 44px;
}

.ms-pricing-notes {
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--fg-2);
    display: grid;
    font-size: 15px;
    gap: 12px;
    line-height: 1.65;
    margin: 32px auto 0;
    max-width: 880px;
    padding: 22px 26px;
}

.ms-pricing-notes p { margin: 0; }
.ms-pricing-notes strong { color: var(--fg-1); }

.ms-audience-link {
    color: var(--accent);
    display: inline-block;
    font: 600 13px/1.4 var(--font-sans);
    margin-top: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
