.tile-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.6rem;
}

.tile-grid-home {
}

.tile-button-sm {
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    border-color: rgba(255, 255, 255, 0.25);
}

.subscribe-inline {
    margin-top: 1rem;
}

.subscribe-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.subscribe-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.subscribe-input {
    width: 160px;
    flex: 0 0 160px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.subscribe-input:focus {
    border-color: rgba(255, 255, 255, 0.55);
}

.subscribe-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.subscribe-feedback {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    min-height: 1.1em;
}

.notify-card {
    min-height: 0;
    padding: 1.5rem 2rem;
}

.notify-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.notify-input {
    flex: 1 1 200px;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.notify-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.notify-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.notify-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.notify-feedback {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.tile-card {
    display: grid;
    gap: 1rem;
    padding: 2rem;
    min-height: 220px;
    align-content: start;
}

.tile-card-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tile-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.12);
}

.tile-hero {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 420px;
    align-content: start;
}

.tile-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.tile-hero-text {
    display: grid;
    gap: 1rem;
}

.tile-hero-role {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

.tile-hero-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}

.tile-hero-meta a {
    color: inherit;
    text-decoration: none;
}

.tile-hero-meta a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.tile-hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1.2rem;
}

.tile-medium {
    grid-column: span 5;
}

/* Match height of the medium tile beside the hero (same row area) */
.tile-hero + .tile-medium {
    grid-row: span 2;
    align-content: start;
}

.tile-small {
    grid-column: span 4;
}

.tile-full {
    grid-column: span 12;
}

.tile-half {
    grid-column: span 6;
}

.tile-content-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.tile-content-list li + li {
    margin-top: 0.5rem;
}

.tile-section-header {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.tile-number {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.tile-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
}

.tile-subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.25;
}

.tile-body {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
}

.tile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tile-button {
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    width: fit-content;
    justify-self: start;
}

.tile-button:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.14);
}

a.tile-button {
    text-decoration: none;
    cursor: pointer;
}

.tile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tile-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tile-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.tile-tag-link {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.tile-tag-link:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.tile-list {
    display: grid;
    gap: 0.6rem;
}

.tile-list strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.tile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tile-stat {
    text-align: center;
}

.tile-stat-value {
    font-size: 1.8rem;
    font-weight: 600;
}

.tile-stat-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.tile-about .tile-about-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.tile-about .tile-about-heading {
    flex: 1;
    min-width: 0;
}

.tile-about-email {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tile-about-email:hover {
    color: rgba(255, 255, 255, 0.95);
}

.tile-photo {
    flex-shrink: 0;
}

.tile-photo-img {
    display: block;
    width: auto;
    max-width: 100px;
    max-height: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    clip-path: inset(5% 0 15% 0 round 10px);
}

.tile-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.tile-link:hover {
    color: rgba(255, 255, 255, 1);
}

.tile-nav-row {
    min-height: auto;
}

.tile-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tile-nav-item {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    border: 1px solid transparent;
}

.tile-nav-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.06);
}

/* Ideas on LLM interaction */
.section-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 0.5rem;
}

.ideas-header {
    margin-bottom: 0.75rem;
}

.posts-demos-bar {
    margin-bottom: 0.5rem;
}

.posts-demos-bar .posts-demos-filter {
    margin-top: 0;
}

.posts-demos-filter {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.posts-demos-filter-btn {
    font: inherit;
    font-size: 0.875rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.posts-demos-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.posts-demos-filter-btn.is-active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

#posts-demos-list .tile-card-link[data-item-type].is-hidden {
    display: none;
}

.ideas-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.ideas-section .ideas-list {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 926px;
    max-width: 100%;
    margin: 0 auto;
    justify-self: center;
}

.tile-idea {
    min-height: 0;
    padding: 1rem 1.5rem;
    display: grid;
    gap: 0.4rem;
    grid-template-rows: auto auto;
    align-content: start;
    position: relative;
}

.tile-idea-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.tile-idea-header-right {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-shrink: 0;
}

.tile-idea-type {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.tile-idea .tile-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
}

.tile-idea .tile-subtitle.tile-idea-sub {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.tile-idea-date {
    flex-shrink: 0;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.tile-idea .tile-body {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: rgba(255, 255, 255, 1);
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.45);
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.95);
}

/* Idea entry (blog style) */
.idea-entry {
    padding: 2.5rem;
}

.idea-entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.idea-date {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.5rem;
}

.idea-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
}

.idea-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.idea-content p {
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
}

.idea-content p:last-child {
    margin-bottom: 0;
}

/* RFP demo iframe only: fill viewport, no scrollbars on container */
.rfp-demo-wrapper {
    display: flex;
    flex-direction: column;
    /* header ~70px + page-content padding 3rem+5rem ~128px */
    height: calc(100vh - 200px);
    min-height: 360px;
    gap: 1.5rem;
}

.rfp-demo-wrapper .demo-page {
    flex: 0 0 auto;
}

.rfp-demo-wrapper .demo-embed {
    flex: 1 1 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.rfp-demo-wrapper .demo-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: rgba(0, 0, 0, 0.25);
}

/* OptionPilot demo iframe: independent sizing (no scaling) */
.demo-embed-optionpilot {
    padding: 0;
    overflow: hidden;
}

.demo-frame-optionpilot {
    width: 100%;
    height: 100vh;
    border: none;
    background: rgba(0, 0, 0, 0.25);
}

@media (max-width: 1100px) {
    .tile-hero {
        grid-column: span 12;
    }

    .tile-hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .tile-hero-image img {
        max-width: 320px;
        justify-self: start;
    }

    .tile-medium {
        grid-column: span 6;
    }

    .tile-half {
        grid-column: span 12;
    }

    .tile-small {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .tile-nav-inner {
        grid-template-columns: 1fr;
    }

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

    .tile-hero,
    .tile-medium,
    .tile-small,
    .tile-full,
    .tile-half {
        grid-column: span 1;
    }

    .tile-title {
        font-size: 2rem;
    }

    .tile-hero-image img {
        max-width: 100%;
    }

    .tile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
