/*
 * Magai AI Tools — page-local styles.
 *
 * Ported verbatim from the marketing advisory board package
 * (.claude/pages/Magai-AI-Tools-Laravel-Integration-Package-2026-07-27/public/css/page.css).
 *
 * The source was a standalone document, so every rule that targeted a global
 * element (`*`, `html`, `body`, `a`, `img`, `button`, `.container`) has been
 * scoped under `.magai-page` and `.container` renamed to `.magai-container`.
 * Declared values are unchanged; only selectors were rewritten so the page can
 * sit inside the legacy `layouts.app` header/footer without leaking into it.
 *
 * The preview-chrome rules (`.tgd-preview-chrome`, `.audience-rail`,
 * `.site-rail`, `.tgd-mark`, `.cart-mark`, `.skip-link`) were dropped — the
 * real site header/footer replaces them.
 */

.magai-page {
    --ink: #10132f;
    --muted: #667093;
    --navy: #05091e;
    --navy-raised: #0b112d;
    --line: #dfe3f5;
    --violet: #7724f5;
    --blue: #12a8f3;
    --pink: #f01b85;
    --cyan: #1ad0ff;
    --surface: #ffffff;
    --shadow: 0 22px 56px rgba(21, 29, 75, .12);

    min-width: 320px;
    color: var(--ink);
    background: #fafaff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /*
     * The handoff CSS was authored against the 16px browser default, but the
     * legacy theme sets `html { font-size: 10px }` and `body { font-size: 20px }`.
     * Every `rem` above was therefore converted to its 16px-base `px` value, and
     * the inherited base is pinned here so untyped text matches the mockup.
     */
    font-size: 16px;
    line-height: 1.45;
    overflow-x: hidden;
}

html:has(.magai-page) { scroll-behavior: smooth; }

.magai-page, .magai-page *, .magai-page *::before, .magai-page *::after { box-sizing: border-box; }

/* Neutralize the legacy theme's base element styles inside the page only. */
.magai-page h1, .magai-page h2, .magai-page h3, .magai-page h4, .magai-page h5, .magai-page h6 {
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    line-height: inherit;
    text-transform: none;
    word-break: normal;
    overflow-wrap: normal;
}
.magai-page p { margin: 0; padding: 0; color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.magai-page ul, .magai-page ol { margin: 0; padding: 0; list-style: none; }
/*
 * `color: inherit` is load-bearing — the theme's `ul li { color: var(--color-body) }`
 * (#6b7385) otherwise wins over the list's own colour and greys out every
 * bullet in the plan features, check list, and model list.
 */
.magai-page li { margin: 0; padding: 0; color: inherit; }
.magai-page section, .magai-page article, .magai-page form, .magai-page details, .magai-page summary { margin: 0; padding: 0; }
.magai-page span, .magai-page small, .magai-page strong, .magai-page b { color: inherit; }
.magai-page strong, .magai-page b { font-weight: bolder; }
.magai-page input[type="hidden"] { display: none; }

.magai-page button, .magai-page input { font: inherit; }
.magai-page button {
    margin: 0;
    padding: 0;
    color: inherit;
    border: 0;
    background: none;
    letter-spacing: normal;
    line-height: inherit;
    text-transform: none;
    cursor: pointer;
}
.magai-page a { color: inherit; text-decoration: none; transition: none; }
.magai-page img, .magai-page video { display: block; max-width: 100%; }

.magai-page .magai-container { width: min(1216px, calc(100% - 48px)); margin-inline: auto; }

.magai-page .eyebrow { margin: 0 0 11px; color: #5b37db; font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }

.magai-page .magai-lockup { display: inline-flex; align-items: center; gap: 9px; color: #1e2449; font-size: clamp(32px, 3vw, 43.2px); font-weight: 860; letter-spacing: -.065em; }
.magai-page .magai-lockup__mark { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; flex: 0 0 auto; border-radius: 11px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.magai-page .magai-lockup__mark img { width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.55); }
.magai-page .magai-wordmark-frame { position: relative; display: block; width: 145px; height: 42px; overflow: hidden; }
.magai-page .magai-wordmark { position: absolute; top: 50%; left: 50%; width: 205px; max-width: none; transform: translate(-50%, -50%); }
.magai-page .magai-prism { display: inline-block; width: 25px; aspect-ratio: 1; border-radius: 4px; background: conic-gradient(from 30deg, var(--pink), var(--violet), var(--blue), var(--cyan), var(--pink)); box-shadow: 0 7px 20px rgba(79, 49, 220, .26); transform: rotate(6deg); }

.magai-page .pricing-zone { position: relative; padding: clamp(22px, 2.4vw, 34px) 0 clamp(38px, 4vw, 58px); color: #f7f8ff; background: radial-gradient(circle at 83% 5%, rgba(108, 45, 255, .23), transparent 26%), radial-gradient(circle at 10% 80%, rgba(0, 173, 241, .16), transparent 27%), var(--navy); }
.magai-page .pricing-zone::before { position: absolute; inset: 0; opacity: .4; content: ""; background-image: radial-gradient(circle at 1px 1px, rgba(178, 203, 255, .23) 1px, transparent 1.3px); background-size: 22px 22px; pointer-events: none; }
.magai-page .pricing-zone .magai-container { position: relative; }
.magai-page .pricing-hero { max-width: 1120px; margin: 0 auto 17px; text-align: center; }
.magai-page .magai-lockup--on-dark { color: #fff; }
.magai-page .pricing-hero h1 { max-width: 1120px; margin: 13px auto 0; color: #fff; font-size: clamp(36.8px, 4vw, 64.8px); font-weight: 880; letter-spacing: -.07em; line-height: .96; }
.magai-page .pricing-hero h1 span { display: inline-block; margin-left: .06em; color: transparent; background: linear-gradient(100deg, #d1acff 5%, #8bbcff 52%, #80e8ff); background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 0 14px rgba(103, 181, 255, .18)); }
.magai-page .section-intro { max-width: 670px; margin-bottom: 18px; }
.magai-page .section-intro--dark { margin-inline: auto; text-align: center; }
.magai-page .section-intro--dark .eyebrow { color: #8acfff; }
.magai-page .section-intro h2, .magai-page .story-copy h2, .magai-page .faq-shell h2, .magai-page .bottom-cta h2 { margin: 0; font-weight: 850; letter-spacing: -.055em; line-height: .99; }
.magai-page .section-intro h2 { font-size: clamp(28px, 2.75vw, 40.8px); font-weight: 620; }
.magai-page .section-intro p:last-child { margin: 12px 0 0; color: #aeb7d8; }

.magai-page .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); align-items: stretch; }
.magai-page .pricing-plan { display: flex; min-height: 468px; flex-direction: column; padding: clamp(24px, 2.4vw, 34px); color: #f8f9ff; border: 2px solid #21345d; border-radius: 18px; background: linear-gradient(145deg, rgba(11, 18, 47, .96), rgba(4, 8, 28, .96)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.magai-page .pricing-plan--featured { position: relative; border-color: transparent; background: linear-gradient(var(--navy-raised), var(--navy-raised)) padding-box, linear-gradient(135deg, var(--cyan), var(--violet) 56%, var(--pink)) border-box; box-shadow: 0 16px 44px rgba(112, 47, 240, .28), inset 0 1px rgba(255,255,255,.06); }
.magai-page .pricing-plan h3 { margin: 0; font-size: clamp(33.6px, 3vw, 49.92px); font-weight: 860; letter-spacing: -.065em; }
.magai-page .plan-positioning { min-height: 68px; margin: 13px 0 0; color: #90a9d4; font-size: clamp(15.52px, 1.25vw, 17.92px); line-height: 1.5; }
.magai-page .plan-price { margin: 29px 0 24px; display: flex; align-items: baseline; gap: 8px; }
.magai-page .plan-price strong { font-size: clamp(43.2px, 4.4vw, 61.6px); font-weight: 860; letter-spacing: -.08em; line-height: .9; }
.magai-page .plan-price span { color: #a9badc; font-size: 18.4px; }
.magai-page .plan-features { display: grid; gap: 16px; margin: 0 0 26px; padding: 0; list-style: none; color: #e8ecf8; font-size: clamp(15.2px, 1.22vw, 17.28px); }
.magai-page .plan-features li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; align-items: center; }
.magai-page .plan-features li::before { content: "\203A"; color: var(--cyan); font-size: 32px; font-weight: 350; line-height: .5; }
.magai-page .plan-features .is-emphasized { font-weight: 820; }
.magai-page .plan-cta { width: 100%; min-height: 58px; margin-top: auto; padding: 12px 18px; color: #0b112a; border: 1px solid #fff; border-radius: 7px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18); font-size: 17.28px; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease; }
.magai-page .plan-cta span { margin-left: 9px; font-size: 1.45em; vertical-align: -1px; }
.magai-page .pricing-plan:nth-of-type(2) .plan-cta { color: #fff; border-color: #0eaef1; background: #0eaef1; }
.magai-page .pricing-plan--featured .plan-cta { color: #fff; border: 0; background: linear-gradient(100deg, #236ff5, #a717f5 48%, #f11879); }
.magai-page .plan-cta:hover, .magai-page .plan-cta:focus-visible { outline: 0; box-shadow: 0 13px 28px rgba(28, 120, 255, .28); transform: translateY(-2px); }
.magai-page .plan-cta:disabled { cursor: default; opacity: .62; box-shadow: none; transform: none; }
.magai-page .checkout-status { grid-column: 1 / -1; min-height: 0; margin: 0; color: #9cddff; text-align: center; }

/*
 * "Your membership already includes Magai" dialog. Shown when a visitor whose
 * AI Genius Club / Creator Support Pack / Creator & Marketers Suite plan already
 * bundles the workspace tries to buy a standalone seat.
 */
.magai-page .magai-notice { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; }
.magai-page .magai-notice__backdrop { position: absolute; inset: 0; background: rgba(3, 6, 22, .74); backdrop-filter: blur(3px); }
.magai-page .magai-notice__card { position: relative; width: min(516px, 100%); padding: clamp(26px, 3vw, 38px); color: #f3f5ff; border: 2px solid transparent; border-radius: 18px; background: linear-gradient(var(--navy-raised), var(--navy-raised)) padding-box, linear-gradient(135deg, var(--cyan), var(--violet) 56%, var(--pink)) border-box; box-shadow: 0 26px 66px rgba(4, 8, 30, .55); text-align: left; }
.magai-page .magai-notice__card .eyebrow { color: #8acfff; }
.magai-page .magai-notice__card h2 { margin: 0; font-size: clamp(25.6px, 2.4vw, 33.6px); font-weight: 850; letter-spacing: -.045em; line-height: 1.06; }
.magai-page .magai-notice__card p:not(.eyebrow) { margin: 14px 0 0; color: #aebbdc; font-size: 15.2px; line-height: 1.55; }
.magai-page .magai-notice__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.magai-page .magai-notice__cta { display: inline-flex; gap: 9px; align-items: center; padding: 13px 20px; color: #fff; border-radius: 8px; background: linear-gradient(100deg, #236ff5, #a717f5 48%, #f11879); font-size: 15.2px; font-weight: 850; box-shadow: 0 12px 26px rgba(28, 120, 255, .26); }
.magai-page .magai-notice__cta:hover { transform: translateY(-2px); }
.magai-page .magai-notice__dismiss { padding: 13px 18px; color: #a9badc; border: 1px solid #2a3d68; border-radius: 8px; font-size: 15.2px; font-weight: 750; }
.magai-page .magai-notice__dismiss:hover { color: #f3f5ff; border-color: #4a5f97; }
.magai-page .pricing-brand-lockup { display: grid; justify-items: center; gap: 5px; }
.magai-page .pricing-brand-lockup p { margin: 0; color: #9e9bff; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.magai-page .pricing-brand-lockup .magai-lockup { font-size: 27.2px; }
.magai-page .pricing-brand-lockup .magai-lockup__mark { width: 32px; height: 32px; border-radius: 8px; }
.magai-page .pricing-disclaimer { max-width: 560px; margin: 8px auto 0; color: #91a0c5; font-size: 12.8px; text-align: center; }

.magai-page .story-section { position: relative; padding: clamp(64px, 7.5vw, 92px) 0; overflow: hidden; }
.magai-page .story-section--models, .magai-page .story-section--threads { color: #fff; background: radial-gradient(circle at 18% 35%, rgba(25, 116, 244, .18), transparent 31%), radial-gradient(circle at 78% 13%, rgba(152, 38, 234, .16), transparent 28%), #05091e; }
.magai-page .story-section--editor { color: var(--ink); background: linear-gradient(145deg, #fbfbff, #edf1ff); }
.magai-page .story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(38px, 6vw, 92px); }
.magai-page .story-grid--reverse .story-copy { order: initial; }
.magai-page .story-section--threads .story-copy { order: 1; }
.magai-page .story-section--threads .showcase-media { order: 2; }
.magai-page .story-copy .eyebrow { margin-bottom: 15px; }
.magai-page .story-copy h2, .magai-page .faq-shell h2, .magai-page .bottom-cta h2 { font-size: clamp(34.4px, 3.6vw, 60px); }
.magai-page .story-copy p:not(.eyebrow) { max-width: 530px; margin: 21px 0 0; color: var(--muted); font-size: clamp(16px, 1.35vw, 17.92px); }
.magai-page .story-section--models .eyebrow, .magai-page .story-section--threads .eyebrow { color: #26c3ff; }
/*
 * `:not(.eyebrow)` is a deliberate divergence from the handoff package.
 *
 * There the body-copy rule is written without the exclusion, so it outranks the
 * cyan eyebrow rule above (0,2,1 beats 0,2,0) and the eyebrows in these two
 * sections render as body text. The package excludes `.eyebrow` in the
 * equivalent `.story-copy p:not(.eyebrow)` rule, so the omission here reads as
 * an oversight rather than intent — every other section gives the eyebrow its
 * own accent colour.
 */
.magai-page .story-section--models .story-copy p:not(.eyebrow), .magai-page .story-section--threads .story-copy p:not(.eyebrow) { color: #b4c5e8; }
.magai-page .check-list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 15.68px; font-weight: 730; }
.magai-page .check-list li { display: flex; gap: 10px; align-items: center; }
.magai-page .check-list li::before { display: inline-grid; width: 21px; height: 21px; place-items: center; flex: 0 0 auto; content: "\2713"; color: #fff; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--violet)); font-size: 11.52px; }
.magai-page .capability-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.magai-page .capability-row span { padding: 8px 14px; border: 1px solid #c8d1f5; border-radius: 999px; color: #333d74; background: #fff; font-size: 14.08px; font-weight: 750; }
.magai-page .text-link { display: inline-flex; gap: 8px; margin-top: 28px; color: #3c30d9; font-weight: 850; text-decoration: none; }
.magai-page .text-link:hover { text-decoration: underline; }

.magai-page .model-logo-list { display: grid; gap: 13px; margin: 28px 0 0; padding: 0; list-style: none; color: #c4d2eb; font-size: 15.68px; }
.magai-page .model-logo-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; }
.magai-page .model-logo-list strong { color: #fff; }
.magai-page .model-logo { display: grid; width: 32px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: #fff; background: #172342; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); font-size: 16.8px; font-weight: 900; }
.magai-page .model-logo img { width: 17px; height: 17px; object-fit: contain; }
.magai-page .model-logo--openai { background: #26303c; }
.magai-page .model-logo--claude { background: #d87955; }
.magai-page .model-logo--gemini { background: #141932; color: #80ccff; }
.magai-page .model-logo--deepseek { background: #152a67; }
.magai-page .model-logo--perplexity { background: #0c9fbc; }

.magai-page .showcase-media { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 18px; background: #071029; box-shadow: 0 24px 58px rgba(1, 8, 34, .24); }
.magai-page .showcase-media::before { position: absolute; z-index: 1; inset: 0; border: 1px solid rgba(149, 190, 255, .28); border-radius: inherit; content: ""; pointer-events: none; }
.magai-page .showcase-media video { width: 100%; height: 100%; object-fit: cover; }
.magai-page .story-section--editor .showcase-media { box-shadow: 0 24px 58px rgba(35, 54, 136, .18); }

.magai-page .faq-section { padding: clamp(64px, 8vw, 112px) 0; background: #fff; }
.magai-page .faq-shell { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(38px, 7vw, 105px); }
.magai-page .faq-list { display: grid; gap: 10px; }
.magai-page .faq-list details { padding: 0 19px; border: 1px solid #e1e5f1; border-radius: 12px; background: #fbfcff; }
.magai-page .faq-list summary { padding: 19px 25px 19px 0; color: #161d3c; cursor: pointer; font-weight: 800; list-style: none; }
.magai-page .faq-list summary::-webkit-details-marker { display: none; }
.magai-page .faq-list summary::after { float: right; content: "+"; color: #5b37dd; font-size: 21.6px; line-height: .8; }
.magai-page .faq-list details[open] summary::after { content: "\2212"; }
.magai-page .faq-list p { margin: -3px 0 19px; color: #667093; font-size: 15.04px; }

.magai-page .bottom-cta { padding: clamp(62px, 8vw, 102px) 0; color: #fff; text-align: center; background: radial-gradient(circle at 18% 20%, rgba(7, 180, 255, .38), transparent 23%), radial-gradient(circle at 82% 60%, rgba(235, 28, 143, .38), transparent 25%), linear-gradient(125deg, #131151, #2f167f 52%, #171046); }
.magai-page .bottom-cta .eyebrow { color: #a6e8ff; }
.magai-page .bottom-cta h2 { max-width: 800px; margin-inline: auto; }
.magai-page .bottom-cta__button { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; padding: 15px 22px; color: #1a1746; border-radius: 9px; background: #fff; font-weight: 850; text-decoration: none; box-shadow: 0 15px 30px rgba(0,0,0,.22); }
.magai-page .bottom-cta__button:hover { transform: translateY(-2px); }

@media (max-width: 900px) {
    .magai-page .pricing-grid, .magai-page .story-grid, .magai-page .story-grid--reverse, .magai-page .faq-shell { grid-template-columns: 1fr; }
    .magai-page .story-grid--media-first .showcase-media { order: initial; }
    .magai-page .pricing-plan { min-height: auto; }
    .magai-page .plan-positioning { min-height: auto; }
    .magai-page .plan-price { margin: 29px 0; }
    .magai-page .showcase-media { max-width: 620px; }
    .magai-page .faq-shell { gap: 34px; }
}

@media (max-width: 560px) {
    .magai-page .magai-container { width: min(100% - 32px, 1216px); }
    .magai-page .pricing-zone { padding-top: 34px; }
    .magai-page .pricing-hero { margin-bottom: 17px; }
    .magai-page .pricing-hero h1 { font-size: clamp(35.2px, 11vw, 49.6px); }
    .magai-page .magai-lockup__mark { width: 42px; height: 42px; }
    .magai-page .magai-wordmark-frame { width: 132px; height: 38px; }
    .magai-page .magai-wordmark { width: 185px; }
    .magai-page .pricing-plan { padding: 29px 25px; }
    .magai-page .plan-features { gap: 17px; }
    .magai-page .story-section { padding: 58px 0; }
    .magai-page .showcase-media { border-radius: 14px; }
    .magai-page .faq-list details { padding-inline: 14px; }
}

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