/* ════════════════════════════════
   CORE SOLUTIONS
   jotno.ai — solutions.css
════════════════════════════════ */

#core-solutions {
    position: relative;
    padding: var(--sec-y-lg) var(--sec-x) var(--sec-y-lg);
}

/* Local light pooling so the band reads as its own stage, the same way
   the hero lifts itself off the global background. */
#core-solutions::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 40% 60% at 82% 48%, rgba(99, 102, 241, 0.06), transparent 70%),
        radial-gradient(ellipse 44% 50% at 8% 16%, rgba(8, 145, 178, 0.07), transparent 70%);
}

.cs-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
    align-items: start;
    gap: 3.6rem;
    max-width: var(--sec-max);
    margin: 0 auto;
}

/* ════ ASIDE ════
   Rides along with the list on desktop so the heading stays in view
   while the four rows scroll past it. */
.cs-aside {
    position: sticky;
    top: 108px;
    min-width: 0;
}

.cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(14, 116, 144, 0.78);
    margin-bottom: 1.25rem;
}

.cs-eyebrow-line {
    width: 26px;
    height: 1px;
    background: rgba(8, 145, 178, 0.55);
    flex-shrink: 0;
}

.cs-title {
    font-family: 'Playfair Display', 'Plus Jakarta Sans', serif;
    font-size: clamp(1.95rem, 3vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.12;
    color: var(--text);
    margin-bottom: 1.1rem;
}

/* RULE accent — see the accent map in common.css. A 2px hairline tucked
   under the phrase instead of the brush stroke: this band asks the reader
   for something, so the accent points at it rather than highlighting it. */
.cs-title-accent {
    color: var(--primary-dark);
    padding-bottom: 0.1em;
    background-image: linear-gradient(90deg, var(--primary), var(--cyan));
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: 0 100%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.cs-lead {
    font-size: 0.98rem;
    line-height: 1.78;
    font-weight: 500;
    color: var(--muted);
    max-width: 42ch;
}

.cs-aside-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.7rem;
    padding: 0.62rem 1.05rem 0.62rem 1.15rem;
    border-radius: 50px;
    border: 1px solid rgba(8, 145, 178, 0.18);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s;
}

.cs-aside-link:hover {
    background: rgba(8, 145, 178, 0.09);
    border-color: rgba(8, 145, 178, 0.32);
}

.cs-aside-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.cs-aside-link:hover svg {
    transform: translateX(3px);
}

/* Quiet footnote that grounds the column under the link */
.cs-aside-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.9rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(15, 32, 54, 0.09);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.75;
}

.cs-aside-meta i {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
}

/* ════ LIST ════ */
.cs-list {
    list-style: none;
    background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
    border: 1px solid rgba(15, 32, 54, 0.07);
    border-radius: 26px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 32, 54, 0.04),
        0 32px 66px -32px rgba(15, 32, 54, 0.22);
}

/* Hairlines between rows only — the card supplies the outer edge */
.cs-list li + li .cs-row {
    border-top: 1px solid rgba(15, 32, 54, 0.07);
}

/* ─── ROW ───
   Each pillar carries its own accent through --sol / --sol-soft, matching
   the tiles in the hero panel so the four keep one identity site-wide. */
.cs-row {
    --sol: var(--primary-dark);
    --sol-soft: rgba(14, 116, 144, 0.1);
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 1.5rem;
    padding: 1.6rem 1.75rem;
    color: inherit;
    text-decoration: none;
    isolation: isolate;
}

.cs-row.sol-care {
    --sol: #e0587a;
    --sol-soft: rgba(224, 88, 122, 0.11);
}

.cs-row.sol-tech {
    --sol: #6366f1;
    --sol-soft: rgba(99, 102, 241, 0.11);
}

.cs-row.sol-digital {
    --sol: #8b5cf6;
    --sol-soft: rgba(139, 92, 246, 0.11);
}

/* Wash that lights the row from its own accent side */
.cs-row::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(100deg, var(--sol-soft), rgba(255, 255, 255, 0) 62%);
    opacity: 0;
    transition: opacity 0.32s;
}

/* Accent rule that draws itself down the left edge */
.cs-row::after {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: var(--sol);
    transform: scaleY(0);
    transition: transform 0.36s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.cs-row:hover::before,
.cs-row:focus-visible::before {
    opacity: 1;
}

.cs-row:hover::after,
.cs-row:focus-visible::after {
    transform: scaleY(1);
}

.cs-row:focus-visible {
    outline: 2px solid var(--sol);
    outline-offset: -5px;
}

/* ─── INDEX ─── */
.cs-num {
    align-self: flex-start;
    padding-top: 0.55rem;
    font-family: 'Playfair Display', 'Plus Jakarta Sans', serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--muted);
    opacity: 0.32;
    transition: color 0.3s, opacity 0.3s;
}

.cs-row:hover .cs-num {
    color: var(--sol);
    opacity: 0.9;
}

/* ─── BODY ─── */
.cs-body {
    min-width: 0;
}

.cs-row-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.cs-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--sol-soft);
    color: var(--sol);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s, transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.cs-icon svg {
    width: 20px;
    height: 20px;
}

.cs-row:hover .cs-icon {
    background: var(--sol);
    color: var(--white);
    transform: scale(1.06) rotate(-4deg);
}

.cs-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.018em;
    line-height: 1.3;
    color: var(--text);
    transition: color 0.3s;
}

.cs-row:hover .cs-name {
    color: var(--sol);
}

.cs-desc {
    display: block;
    font-size: 0.88rem;
    line-height: 1.68;
    font-weight: 500;
    color: var(--muted);
}

/* ─── TAGS ─── */
.cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-top: 0.8rem;
}

.cs-tag {
    padding: 0.24rem 0.62rem;
    border-radius: 50px;
    border: 1px solid rgba(15, 32, 54, 0.09);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.71rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.cs-row:hover .cs-tag {
    border-color: var(--sol-soft);
    background: var(--sol-soft);
    color: var(--sol);
}

/* ─── ACTION ─── */
.cs-action {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--sol);
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0 1.5px;
    background-position: 0 100%;
    transition: background-size 0.34s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.cs-row:hover .cs-action {
    background-size: 100% 1.5px;
}

/* ─── ARROW ─── */
.cs-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(15, 32, 54, 0.1);
    color: var(--sol);
    display: grid;
    place-items: center;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.cs-arrow svg {
    width: 14px;
    height: 14px;
}

.cs-row:hover .cs-arrow,
.cs-row:focus-visible .cs-arrow {
    background: var(--sol);
    border-color: var(--sol);
    color: var(--white);
    transform: translateX(3px);
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {

    .cs-row::after,
    .cs-icon,
    .cs-arrow,
    .cs-action,
    .cs-aside-link svg {
        transition: none;
    }
}
