/* Industry solutions and the prompt agent builder */

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

.industry-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px 22px 22px;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    transition: var(--transition);
}

.industry-card i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(232, 21, 90, 0.1);
    color: var(--pink);
    font-size: 1.05rem;
}

.industry-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
}

.industry-card p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.55;
}

.industry-card span {
    margin-top: auto;
    color: var(--pink);
    font-weight: 600;
    font-size: 0.88rem;
}

.industry-card:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 21, 90, 0.28);
    box-shadow: var(--shadow-md);
}

.compare {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.compare th,
.compare td {
    text-align: left;
    vertical-align: top;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
    line-height: 1.5;
}

.compare th {
    background: var(--navy);
    color: #fff;
    font-weight: 650;
}

.compare td:first-child {
    font-weight: 650;
    color: var(--navy);
    width: 18%;
}

.compare tr:last-child td { border-bottom: 0; }

.builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.builder-panel,
.agent-sheet {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 22px;
}

.agent-sheet {
    background: var(--navy);
    color: #f6f2ea;
    border-color: transparent;
}

.builder label {
    display: block;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--navy);
}

.builder textarea {
    width: 100%;
    min-height: 160px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--off-white);
    resize: vertical;
}

.prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.prompt-chips button {
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    color: var(--navy);
}

.prompt-chips button[aria-pressed="true"],
.prompt-chips button:hover {
    border-color: var(--pink);
    color: var(--pink);
}

.builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agent-kicker {
    color: #f0b14a;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.agent-sheet h3 {
    font-size: 1.55rem;
    margin-bottom: 8px;
}

.agent-sheet p { color: rgba(246, 242, 234, 0.78); }

.agent-meta {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.agent-meta div {
    background: rgba(246, 242, 234, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
}

.agent-meta strong { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246, 242, 234, 0.6); }

.agent-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.agent-steps li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: start;
}

.agent-steps span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e39b2e;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
}

.work-pill {
    display: inline-flex;
    margin-top: 14px;
    background: rgba(232, 21, 90, 0.18);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.88rem;
}

.prompt-note { margin-top: 10px; color: var(--gray-600); font-size: 0.88rem; }

.sibling-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sibling-industries a {
    text-decoration: none;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.86rem;
    background: var(--white);
}

.sibling-industries a:hover { border-color: var(--pink); color: var(--pink); }

.workflow-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--pink);
    font-weight: 650;
    font-size: 0.88rem;
    text-decoration: none;
}

.workflow-open:hover { color: var(--navy); }

.page-hero .workflow-crumb {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 14px;
    font-size: 0.88rem;
}

.page-hero .workflow-crumb a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.page-hero .workflow-crumb a:hover { color: var(--pink-light); }

.workflow {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 820px;
    display: grid;
}

.workflow li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    position: relative;
}

.workflow li::before {
    content: "";
    position: absolute;
    left: 35px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.workflow li:last-child::before { display: none; }

.wf-mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.workflow li.is-gate .wf-mark { background: var(--pink); }

.wf-body { padding: 8px 0 28px; }

.wf-kicker {
    display: block;
    color: var(--pink);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.workflow h3 {
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.workflow p {
    color: var(--gray-600);
    line-height: 1.6;
}

.dept-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.dept-row a,
.dept-row span {
    text-decoration: none;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.86rem;
    background: var(--white);
    color: var(--navy);
}

.dept-row a:hover { border-color: var(--pink); color: var(--pink); }

.dept-row span { border-color: var(--navy); font-weight: 650; }

@media (max-width: 900px) {
    .industry-grid,
    .builder,
    .compare { display: block; }
    .compare,
    .compare tbody,
    .compare tr,
    .compare td,
    .compare th { display: block; width: 100%; }
    .compare td:first-child { width: auto; }
    .industry-card,
    .builder-panel,
    .agent-sheet { margin-bottom: 14px; }
}

@media (max-width: 600px) {
    .workflow li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
    .wf-mark { width: 52px; height: 52px; border-radius: 14px; font-size: 0.9rem; }
    .workflow li::before { left: 25px; top: 42px; }
}
