/* =========================================================
   LYNX SEARCH / ACQUISITION PAGES
   Additive styles for /qr-code-generator/ and /url-shortener/.
   Requires fabric-small-app-shell.css + /css/lynx.css first.
   ========================================================= */

body.lynxSearchLanding {
    min-height: 100vh;
}

body.lynxSearchLanding .holder {
    padding-top: max(88px, env(safe-area-inset-top));
}

.lynxSeoTopNav {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100vw - 230px);
    padding: 6px;
    border: 1px solid var(--lynx-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--lynx-surface-strong) 82%, transparent);
    box-shadow: var(--lynx-shadow-soft);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
}

.lynxSeoTopNav a,
.lynxSeoTopNav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin: 0;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--lynx-text-soft);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    text-decoration: none;
    cursor: pointer;
}

.lynxSeoTopNav a:hover,
.lynxSeoTopNav button:hover,
.lynxSeoTopNav a[aria-current="page"] {
    background: var(--lynx-surface-soft);
    color: var(--lynx-text);
}

.lynxSeoTopNav .lynxSeoNavCta {
    background: var(--lynx-accent);
    color: #fff;
}

body.fabricSmallApp .lynxSeoShell {
    width: min(1120px, calc(100vw - 44px));
    margin: 18px auto 42px;
    padding: 0 0 40px;
    display: grid;
    gap: 18px;
    position: relative;
    z-index: 50;
}

.lynxSeoHero,
.lynxSeoSection,
.lynxSeoRelated,
.lynxSeoFooter {
    border: 1px solid var(--lynx-border);
    background: color-mix(in srgb, var(--lynx-surface-strong) 90%, transparent);
    box-shadow: var(--lynx-shadow-soft);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    backdrop-filter: blur(14px) saturate(125%);
}

.lynxSeoHero {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(390px, 1fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: center;
    min-height: 560px;
    padding: clamp(30px, 4.5vw, 58px);
    border-radius: 30px;
}

.lynxSeoHeroCopy {
    min-width: 0;
}

.lynxSeoBreadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    color: var(--lynx-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lynxSeoBreadcrumb a {
    color: var(--lynx-accent-strong);
}

.lynxSeoHero h1 {
    max-width: 680px;
    margin: 0 0 18px;
    color: var(--lynx-text);
    font-family: var(--themeHeaders);
    font-size: clamp(38px, 5.8vw, 68px);
    font-weight: 250;
    line-height: .98;
    letter-spacing: -.04em;
}

.lynxSeoLead {
    max-width: 620px;
    margin: 0;
    color: var(--lynx-text-soft);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.65;
    font-weight: 500;
}

.lynxSeoPoints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.lynxSeoPoints span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--lynx-border-soft);
    border-radius: 999px;
    background: var(--lynx-surface-soft);
    color: var(--lynx-text-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.lynxSeoHeroActions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.lynxSeoButton,
body.fabricSmallApp button.lynxSeoButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--lynx-border);
    border-radius: 12px;
    background: var(--lynx-surface-strong);
    color: var(--lynx-text);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.lynxSeoButton--primary,
body.fabricSmallApp button.lynxSeoButton--primary {
    border-color: transparent;
    background: var(--lynx-accent);
    color: #fff;
}

.lynxSeoToolWrap {
    position: relative;
    min-width: 0;
}

.lynxSeoToolWrap::before {
    content: "";
    position: absolute;
    inset: 26px -12px -16px 30px;
    z-index: -1;
    border: 1px solid var(--lynx-border-soft);
    border-radius: 28px;
    background: var(--lynx-surface-soft);
    transform: rotate(2.4deg);
    opacity: .65;
}

.lynxSeoToolCard {
    position: relative;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--lynx-border);
    border-radius: 24px;
    background: color-mix(in srgb, var(--lynx-surface) 96%, transparent);
    box-shadow: var(--lynx-shadow);
}

.lynxSeoToolCard .lynxPublicMaker {
    height: auto;
    min-height: 350px;
}

.lynxSeoToolContext {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.lynxSeoToolContext p {
    margin: 0;
    color: var(--lynx-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.lynxSeoToolContext a {
    color: var(--lynx-accent-strong);
    font-size: 11px;
    font-weight: 800;
}

.lynxSeoSection {
    padding: clamp(28px, 4vw, 46px);
    border-radius: 26px;
}

.lynxSeoSectionHead {
    max-width: 730px;
    margin-bottom: 26px;
}

.lynxSeoEyebrow {
    margin: 0 0 7px;
    color: var(--lynx-accent-strong);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.lynxSeoSection h2,
.lynxSeoRelated h2 {
    margin: 0 0 10px;
    color: var(--lynx-text);
    font-family: var(--themeHeaders);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 300;
    line-height: 1.08;
}

.lynxSeoSectionHead > p:last-child,
.lynxSeoRelated > p {
    margin: 0;
    color: var(--lynx-text-soft);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
}

.lynxSeoStepGrid,
.lynxSeoValueGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.lynxSeoStep,
.lynxSeoValue {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--lynx-border-soft);
    border-radius: 18px;
    background: var(--lynx-surface-soft);
}

.lynxSeoStepNum,
.lynxSeoValueIcon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 11px;
    background: var(--lynx-accent-soft);
    color: var(--lynx-accent-strong);
    font-size: 12px;
    font-weight: 900;
}

.lynxSeoStep h3,
.lynxSeoValue h3 {
    margin: 0 0 7px;
    color: var(--lynx-text);
    font-family: var(--themeBody);
    font-size: 16px;
    font-weight: 800;
}

.lynxSeoStep p,
.lynxSeoValue p {
    margin: 0;
    color: var(--lynx-text-soft);
    font-size: 13px;
    line-height: 1.65;
    font-weight: 500;
}

.lynxSeoFaq {
    display: grid;
    gap: 9px;
}

.lynxSeoFaq details {
    border: 1px solid var(--lynx-border-soft);
    border-radius: 15px;
    background: var(--lynx-surface-soft);
    overflow: clip;
}

.lynxSeoFaq summary {
    padding: 16px 18px;
    color: var(--lynx-text);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.lynxSeoFaq details p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--lynx-text-soft);
    font-size: 13px;
    line-height: 1.7;
    font-weight: 500;
}

.lynxSeoRelated {
    padding: clamp(26px, 4vw, 42px);
    border-radius: 26px;
}

.lynxSeoRelatedGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.lynxSeoRelatedCard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 100px;
    padding: 20px;
    border: 1px solid var(--lynx-border-soft);
    border-radius: 18px;
    background: var(--lynx-surface-soft);
    color: var(--lynx-text);
}

.lynxSeoRelatedCard strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.lynxSeoRelatedCard span {
    display: block;
    color: var(--lynx-text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.lynxSeoRelatedCard i {
    color: var(--lynx-accent-strong);
}

.lynxSeoFooter {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border-radius: 20px;
    color: var(--lynx-text-soft);
    font-size: 11px;
    font-weight: 700;
}

.lynxSeoFooter nav {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.lynxSeoFooter a {
    color: var(--lynx-accent-strong);
}

/* The SEO pages are public surfaces even when a Fabric session exists. */
body.loggedIn .lynxSeoShell {
    display: grid;
    opacity: 1;
    max-width: none;
    overflow: visible;
    pointer-events: auto;
}

html[data-theme="classic"] .lynxSeoHero,
html[data-theme="classic"] .lynxSeoSection,
html[data-theme="classic"] .lynxSeoRelated,
html[data-theme="classic"] .lynxSeoFooter,
html[data-theme="classic"] .lynxSeoToolCard,
html[data-theme="classic"] .lynxSeoStep,
html[data-theme="classic"] .lynxSeoValue,
html[data-theme="classic"] .lynxSeoFaq details,
html[data-theme="classic"] .lynxSeoRelatedCard {
    border-radius: 6px;
}

@media (max-width: 900px) {
    body.lynxSearchLanding .holder {
        padding-top: max(78px, env(safe-area-inset-top));
    }

    .lynxSeoTopNav {
        max-width: calc(100vw - 170px);
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .lynxSeoTopNav::-webkit-scrollbar {
        display: none;
    }

    .lynxSeoHero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .lynxSeoToolWrap {
        width: 100%;
        max-width: 680px;
    }

    .lynxSeoStepGrid,
    .lynxSeoValueGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.fabricSmallApp .lynxSeoShell {
        width: calc(100vw - 20px);
        margin-top: 10px;
        gap: 12px;
    }

    body.fabricSmallApp #logo {
        left: 14px;
    }

    body.fabricSmallApp #logo img {
        max-width: 132px;
    }

    .lynxSeoTopNav {
        right: 10px;
        max-width: calc(100vw - 164px);
        padding: 4px;
    }

    .lynxSeoTopNav a,
    .lynxSeoTopNav button {
        min-height: 29px;
        padding-inline: 8px;
        font-size: 9px;
        white-space: nowrap;
    }

    .lynxSeoHero,
    .lynxSeoSection,
    .lynxSeoRelated {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .lynxSeoHero {
        gap: 30px;
    }

    .lynxSeoHero h1 {
        font-size: clamp(38px, 13vw, 54px);
    }

    .lynxSeoToolWrap::before {
        display: none;
    }

    .lynxSeoToolCard {
        padding: 17px;
        border-radius: 18px;
    }

    .lynxSeoToolCard .lynxPublicMaker {
        min-height: 0;
    }

    .lynxSeoRelatedGrid {
        grid-template-columns: 1fr;
    }

    .lynxSeoFooter {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   INTENT PAGE ADDITIONS
   /custom-short-links/ + /qr-code-for-menu/
   ========================================================= */

.lynxSeoPlannerCard {
    min-height: 0;
}

.lynxCustomPlanner {
    display: grid;
    gap: 16px;
}

.lynxCustomPlanner .lynxPublicMakerHead {
    margin-bottom: 2px;
}

.lynxCustomPlannerLabel {
    display: block;
    color: var(--lynx-text-soft);
    font-size: 12px;
    font-weight: 800;
}

.lynxCustomSlugInput {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid var(--lynx-border-strong);
    border-radius: 15px;
    background: var(--lynx-input-bg);
}

.lynxCustomSlugInput > span {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 0 0 16px;
    color: var(--lynx-text-muted);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.lynxCustomSlugInput input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 16px 0 3px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--lynx-text);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
}

.lynxCustomPreview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--lynx-border-soft);
    border-radius: 14px;
    background: var(--lynx-surface-soft);
}

.lynxCustomPreview > span {
    color: var(--lynx-text-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lynxCustomPreview strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--lynx-accent-strong);
    font-size: 16px;
}

.lynxCustomSuggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

body.fabricSmallApp .lynxCustomSuggestions button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--lynx-border-soft);
    border-radius: 999px;
    background: var(--lynx-surface-soft);
    color: var(--lynx-text-soft);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

body.fabricSmallApp .lynxCustomSuggestions button:hover {
    border-color: var(--lynx-border-strong);
    color: var(--lynx-accent-strong);
}

.lynxCustomClaim {
    width: 100%;
}

.lynxSeoValue em {
    color: var(--lynx-accent-strong);
    font-style: normal;
    font-weight: 800;
}

.lynxSeoCompareGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lynxSeoCompareCard {
    position: relative;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--lynx-border-soft);
    border-radius: 20px;
    background: var(--lynx-surface-soft);
}

.lynxSeoCompareCard.is-emphasized {
    border-color: var(--lynx-border-strong);
    background: color-mix(in srgb, var(--lynx-accent-soft) 58%, var(--lynx-surface-soft));
}

.lynxSeoCompareTag {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-bottom: 15px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--lynx-accent-soft);
    color: var(--lynx-accent-strong);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lynxSeoCompareCard h3 {
    margin: 0 0 9px;
    color: var(--lynx-text);
    font-family: var(--themeHeaders);
    font-size: 24px;
    font-weight: 400;
}

.lynxSeoCompareCard > p {
    margin: 0;
    color: var(--lynx-text-soft);
    font-size: 13px;
    line-height: 1.7;
    font-weight: 500;
}

.lynxSeoCompareCard ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 20px;
    padding: 0;
}

.lynxSeoCompareCard li {
    position: relative;
    padding-left: 20px;
    color: var(--lynx-text-soft);
    font-size: 12px;
    line-height: 1.55;
    font-weight: 600;
}

.lynxSeoCompareCard li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--lynx-accent-strong);
    font-weight: 900;
}

html[data-theme="classic"] .lynxCustomSlugInput,
html[data-theme="classic"] .lynxCustomPreview,
html[data-theme="classic"] .lynxSeoCompareCard {
    border-radius: 6px;
}

@media (max-width: 900px) {
    .lynxSeoCompareGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lynxCustomSlugInput {
        grid-template-columns: 1fr;
        padding-top: 9px;
    }

    .lynxCustomSlugInput > span {
        min-height: 22px;
        padding: 0 14px;
        font-size: 11px;
    }

    .lynxCustomSlugInput input {
        height: 42px;
        padding: 0 14px;
    }

    .lynxCustomPreview {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .lynxSeoCompareCard {
        padding: 20px;
    }
}


/* =========================================================
   INTENT PAGE ADDITIONS · PASS 3
   /qr-code-for-business-card/
   /qr-code-for-event/
   /short-link-for-instagram/
   ========================================================= */

.lynxSeoNotice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    margin-top: 20px;
    padding: 15px 16px;
    border: 1px solid var(--lynx-border-soft);
    border-radius: 16px;
    background: color-mix(
        in srgb,
        var(--lynx-accent-soft) 38%,
        var(--lynx-surface-soft)
    );
}

.lynxSeoNoticeIcon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--lynx-surface-strong);
    color: var(--lynx-accent-strong);
    font-size: 14px;
}

.lynxSeoNotice strong {
    display: block;
    margin-bottom: 3px;
    color: var(--lynx-text);
    font-size: 12px;
}

.lynxSeoNotice p {
    margin: 0;
    color: var(--lynx-text-soft);
    font-size: 12px;
    line-height: 1.65;
    font-weight: 500;
}

.lynxSeoExamples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.lynxSeoExamples span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--lynx-border-soft);
    border-radius: 999px;
    background: var(--lynx-surface-soft);
    color: var(--lynx-text-soft);
    font-size: 10px;
    font-weight: 800;
}

html[data-theme="classic"] .lynxSeoNotice {
    border-radius: 6px;
}

@media (max-width: 640px) {
    .lynxSeoNotice {
        grid-template-columns: 1fr;
    }
}
