/*
 * mimir.css — Mimir 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 Mimir)
 *  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: 22px 0; }
.ms-nav-inner { display: flex; align-items: center; gap: 28px; }
.ms-nav-brand { display: flex; align-items: center; gap: 9px; }
.ms-nav-brand img { width: 30px; height: 30px; }
.ms-nav-brand-word { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.005em; }
.ms-nav-links { display: flex; gap: 26px; margin-left: 24px; }
.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: 1fr 1fr; gap: 60px; 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-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-tag { font-family: var(--font-serif); font-style: italic; color: var(--fg-2); font-size: 14px; margin: 6px 0 0; }
.ms-foot-col h5 { 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-top: 1px solid var(--border);
}

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

.faq-item__question button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding-block: var(--space-4);
    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);
    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 {
    font-family: var(--font-serif);
    font-size: var(--fs-md);
    color: var(--fg-2);
    line-height: 1.75;
    padding-bottom: var(--space-4);
    padding-right: var(--space-5);
}

.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: flex;
    gap: var(--space-3);
    align-items: flex-start;
}

.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 Mimir
   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__note {
    font-size: var(--fs-2xs);
    color: var(--fg-2);
    opacity: 0.8;
}


/* ==========================================================================
   17. Content Grid
   Two-column layout used across Mimir 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;
    }

    /* 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 {
    text-align: center;
    max-width: 600px;
    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;
}

