.aeo-search-form {
    display: flex;
    align-items: center;
    margin: 0 auto;
    background: #fff;
    border-radius: 100px;
    box-shadow: 0 4px 24px rgba(15, 132, 101, 0.10), 0 1.5px 6px rgba(0,0,0,0.04);
    padding: 4px 4px 4px 0;
    height: 56px;
    transition: box-shadow 0.25s ease;
}
.aeo-search-form:focus-within {
    box-shadow: 0 6px 32px rgba(15, 132, 101, 0.18), 0 2px 8px rgba(0,0,0,0.06);
}

.aeo-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-family-primary);
    font-size: 0.95rem;
    color: var(--color-tertiary-900, #1a1a2e);
    padding: 0 8px 0 20px;
    height: 100%;
    min-width: 0;
}
.aeo-search-input::placeholder {
    color: #8e9aaf;
    opacity: 1;
}

.aeo-search-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 100px !important;
    font-family: var(--font-family-primary);
    font-weight: 500;
    font-size: 1rem;
    height: 48px;
    padding: 0 1.5rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.aeo-search-btn:hover {
    transform: translateY(-1px);
}
.aeo-search-btn:active {
    transform: translateY(0);
}

/* Hero section */
.hero-section-outer {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 6rem;
}

/* Connect button */
.connect-btn {
    height: 48px;
    width: 220px;
    border-radius: 999px;
    background: #212529;
    overflow: hidden;
    position: relative;
}
.connect-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.connect-state {
    width: 50%;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}
.connect-action {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}
.connect-action::before {
    content: '';
    position: absolute;
    inset: 0;
    right: -1px;
    border-radius: 999px 0 0 999px;
    background: rgba(255,255,255,0);
    transition: background 0.18s;
    pointer-events: none;
}
.connect-action:hover::before {
    background: rgba(255,255,255,0.08);
}
.connect-icon {
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.connect-label {
    font-family: var(--font-family-tertiary);
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    padding-right: 8px;
}
.connect-sep {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.connect-alt {
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    cursor: pointer;
    flex-shrink: 0;
    background: none;
    border: none;
    position: relative;
}
.connect-alt::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    right: -48px;
    border-radius: 0 999px 999px 0;
    background: rgba(255,255,255,0);
    transition: background 0.18s;
    pointer-events: none;
}
.connect-alt:hover::before {
    background: rgba(255,255,255,0.08);
}
/* Icon on the main/left side: Apple becomes white, Google stays multicolor (no filter) */
.connect-icon-white {
    filter: brightness(0) invert(1);
}

/* Icon on the alt/right side: greyed out */
.connect-icon-grey {
    filter: brightness(0) invert(1) opacity(0.4);
}

/* ─── Blog Article: TOC ─── */
.toc-link {
    transition: color 0.2s, border-color 0.2s;
    padding-left: 12px;
}
.toc-link.toc-active {
    color: var(--color-primary) !important;
    border-left-color: var(--color-primary) !important;
    font-weight: 600;
}

/* Article table styling */
.post-content table {
    border-collapse: collapse;
    width: 100%;
}
.post-content table th,
.post-content table td {
    border: 1px solid #e5e7eb;
}
.post-content table tr:nth-child(even) {
    background: #f9fafb;
}

/* Article callout boxes */
.post-content section {
    scroll-margin-top: 80px;
}

@media (max-width: 575px) {
    .aeo-search-form {
        height: 50px;
    }
    .aeo-search-input {
        font-size: 0.88rem;
        padding: 0 4px 0 16px;
    }
    .aeo-search-btn {
        font-size: 0.88rem;
        height: 42px;
        padding: 0 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   LLM Rank Tracking — animated panel (replaces home-13-feature-02.png)
   ───────────────────────────────────────────────────────────────────── */
.llm-anim {
    position: relative;
    background: #F4F2EC;
    padding: 36px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.llm-anim-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

.llm-anim-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background-image: repeating-linear-gradient(
        to right,
        #C9C6BC 0,
        #C9C6BC 8px,
        transparent 8px,
        transparent 16px
    );
    background-size: 16px 2px;
    background-repeat: repeat-x;
    animation: llm-dash-flow 1.4s linear infinite;
    pointer-events: none;
}
.llm-anim-line--reverse {
    animation-direction: reverse;
    animation-duration: 2s;
}

@keyframes llm-dash-flow {
    from { background-position: 0 0; }
    to   { background-position: 16px 0; }
}

.llm-anim-tiles {
    position: relative;
    display: flex;
    gap: 28px;
    z-index: 1;
}
.llm-anim-tiles--center { justify-content: center; }
.llm-anim-tiles--wide { gap: 48px; }

.llm-tile {
    width: 68px;
    height: 68px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 1px 0 rgba(15, 23, 42, .04),
        0 6px 18px -8px rgba(15, 23, 42, .14);
    display: grid;
    place-items: center;
    animation: llm-tile-float 4.5s ease-in-out infinite;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.llm-tile:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 1px 0 rgba(15, 23, 42, .04),
        0 14px 28px -10px rgba(15, 23, 42, .22);
}
.llm-tile img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* Stagger the gentle float so the tiles don't all bob in unison */
.llm-anim-row:nth-child(1) .llm-tile:nth-child(1) { animation-delay: 0s; }
.llm-anim-row:nth-child(1) .llm-tile:nth-child(2) { animation-delay: -1.2s; }
.llm-anim-row:nth-child(1) .llm-tile:nth-child(3) { animation-delay: -2.4s; }
.llm-anim-row:nth-child(2) .llm-tile:nth-child(1) { animation-delay: -0.6s; }
.llm-anim-row:nth-child(2) .llm-tile:nth-child(2) { animation-delay: -1.8s; }
.llm-anim-row:nth-child(2) .llm-tile:nth-child(3) { animation-delay: -3.0s; }
.llm-anim-row:nth-child(2) .llm-tile:nth-child(4) { animation-delay: -4.2s; }
.llm-anim-row:nth-child(3) .llm-tile:nth-child(1) { animation-delay: -0.9s; }
.llm-anim-row:nth-child(3) .llm-tile:nth-child(2) { animation-delay: -2.7s; }

@keyframes llm-tile-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

@media (max-width: 640px) {
    .llm-tile { width: 54px; height: 54px; border-radius: 13px; }
    .llm-tile img { width: 30px; height: 30px; }
    .llm-anim-tiles { gap: 18px; }
    .llm-anim-tiles--wide { gap: 28px; }
    .llm-anim { padding: 24px 0; }
}

/* ─────────────────────────────────────────────────────────────────────
   Reusable utilities (extracted from inline style="…" attributes)
   ───────────────────────────────────────────────────────────────────── */

/* Header / footer logo link width */
.logo-link { width: 140px; }

/* Navbar custom nav-height CSS variable */
.uc-navbar-main,
.uc-navbar-nav--tall { --uc-nav-height: 100px; }

/* AEO search form max width */
.aeo-search-form { max-width: 450px; }

/* Check icon alignment inside pricing feature lists */
.pricing-check { padding-top: 2px; }

/* ─── Hero decoration (finger + star vectors) ─── */
.hero-deco-finger      { bottom: 10%; left: 35%; }
.hero-deco-star-tl-lg  { top: 18%;  left: 14%; }
.hero-deco-star-tr     { top: 32%;  right: 10%; }
.hero-deco-star-tl-sm  { top: 22%;  left: 18%; }
.hero-deco-star-bl     { top: 45%;  left: 12%; }
.hero-deco-star-mr     { top: 30%;  right: 16%; }

/* ─── Per-LLM showcase card (replaces the animated panel on LLM pages) ─── */
.llm-showcase {
    aspect-ratio: 16 / 11;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--llm-color, #0F836B);
}
.llm-showcase__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 55%),
        radial-gradient(circle at 75% 80%, rgba(0,0,0,.25), transparent 55%);
    pointer-events: none;
}
.llm-showcase__body {
    position: relative;
    z-index: 1;
}
.llm-showcase__tile {
    width: 128px;
    height: 128px;
    background: #fff;
    border-radius: 28px;
    display: grid;
    place-items: center;
    box-shadow: 0 20px 50px -12px rgba(0,0,0,.35);
}
.llm-showcase__name {
    color: #fff;
}
.llm-showcase__meta {
    color: rgba(255,255,255,.82);
}

/* ─── Blog listing ─── */
.blog-category-badge { border-radius: 8px; }

/* ─── Blog article ─── */
.blog-hero-img          { aspect-ratio: 4 / 3; object-fit: cover; }
.blog-author-avatar     { object-fit: cover; }
.post-content           { line-height: 1.8; }
.post-content table.fs-7 { min-width: 500px; }
.post-content th.col-30 { width: 30%; }
.post-content th.col-35 { width: 35%; }
.blog-inline-cta {
    background: linear-gradient(135deg, #f0fdf8 0%, #ecfdf5 50%, #f0f9ff 100%);
    border: 1px solid rgba(23,141,114,0.15);
}
.blog-inline-cta__form { max-width: 400px; }
.toc-link { padding-left: 12px; } /* override — the earlier rule kept the same value */
.blog-sidebar-cta {
    background: linear-gradient(145deg, #0f4f3e 0%, #178d72 60%, #1a9e80 100%);
}
.blog-sidebar-cta__pill {
    background: rgba(255,255,255,0.15);
}
.blog-sidebar-cta__title { line-height: 1.3; }
.blog-sidebar-cta__sub   { opacity: 0.7; }
.blog-sidebar-cta__note  { opacity: 0.5; }
.blog-sidebar-cta__btn   { background: #0a2e23; }

/* ─── AI traffic leaderboard ─── */
.leaderboard-search       { max-width: 450px; }
.leaderboard-col-rank     { width: 36px; }
.leaderboard-col-visits   { width: 100px; }
.leaderboard-col-metric   { width: 80px; }
.leaderboard-col-actions  { width: 90px; }
