/* Long-form service landing pages (KI-Workshop, MVP Coding Day).
   Builds on presentation-pages.css tokens and the offering-page card language. */

.service-page .slide {
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 6.8rem;
    padding-bottom: 3rem;
}

.service-shell {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    margin-inline: auto;
}

/* ── Breadcrumb ─────────────────────────────────────── */
.service-breadcrumb {
    margin-bottom: 1.1rem;
    color: var(--warm-gray);
    font: 600 0.68rem/1.4 var(--mono);
    letter-spacing: 0.05em;
}

.service-breadcrumb a { color: #4a2a63; text-decoration: none; }
.service-breadcrumb a:hover { text-decoration: underline; }
.service-breadcrumb span[aria-current] { color: var(--warm-gray); }

/* ── Hero ───────────────────────────────────────────── */
.service-hero {
    max-width: 820px;
    margin: 0 auto 2.2rem;
    text-align: center;
}

.service-kicker {
    margin-bottom: 0.6rem;
    color: #4a2a63;
    font: 700 0.72rem/1.4 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

:is(.service-page, .offering-page) .service-title {
    max-width: none;
    margin: 0 0 0.85rem;
    color: #4a2a63;
    font: 900 clamp(2.2rem, 4.6vw, 3.5rem)/1.04 var(--font-display);
    letter-spacing: -0.035em;
    text-align: center;
}

.service-lead {
    max-width: 720px;
    margin: 0 auto;
    color: #514a53;
    font: 400 1.05rem/1.62 var(--font);
}

.service-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-top: 1.35rem;
    padding: 0;
    list-style: none;
}

.service-facts li {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(74, 42, 99, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: #514a53;
    font: 600 0.7rem/1.35 var(--mono);
}

.service-facts li strong { color: #4a2a63; }

.service-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.service-cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.3rem;
    border: 1px solid #4a2a63;
    border-radius: 999px;
    background: #4a2a63;
    color: var(--cream);
    font: 700 0.78rem/1.2 var(--mono);
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.service-cta.secondary { background: rgba(255, 255, 255, 0.55); color: #4a2a63; }
.service-cta:hover { transform: translateY(-1px); }
.service-cta.secondary:hover { background: #4a2a63; color: var(--cream); }

/* ── Answer box (GEO: first-paragraph extractable answer) ── */
.service-answer {
    max-width: 860px;
    margin: 0 auto 2.4rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(74, 42, 99, 0.2);
    border-left: 4px solid #4a2a63;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.62);
}

.service-answer p {
    margin: 0;
    color: #443d47;
    font: 400 0.95rem/1.65 var(--font);
}

.service-answer p + p { margin-top: 0.7rem; }
.service-answer strong { color: #4a2a63; }

/* ── Generic section ────────────────────────────────── */
.service-section { margin: 0 auto 2.6rem; }

:is(.service-page, .offering-page) .service-section > h2 {
    max-width: none;
    margin: 0 0 0.55rem;
    color: #4a2a63;
    font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.12 var(--font-display);
    letter-spacing: -0.02em;
    text-align: left;
}

:is(.service-page, .offering-page) .service-section > h3 {
    max-width: none;
    margin: 0 0 0.4rem;
    color: #4a2a63;
    font: 700 1.05rem/1.3 var(--font);
    text-align: left;
}

.service-section > p {
    max-width: 780px;
    margin: 0 0 0.85rem;
    color: #514a53;
    font: 400 0.92rem/1.65 var(--font);
}

.service-section > p:last-child { margin-bottom: 0; }
.service-section a { color: #4a2a63; font-weight: 600; }

/* ── Agenda / timeline ──────────────────────────────── */
.service-timeline {
    display: grid;
    gap: 0.6rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.service-timeline li {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(74, 42, 99, 0.14);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
}

.service-timeline .slot {
    color: #4a2a63;
    font: 700 0.72rem/1.5 var(--mono);
    letter-spacing: 0.04em;
}

.service-timeline .what {
    color: #514a53;
    font: 400 0.85rem/1.55 var(--font);
}

.service-timeline .what strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #3d3540;
    font-weight: 700;
}

/* ── Feature / module cards ─────────────────────────── */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 0.85rem;
    margin-top: 1.1rem;
}

.service-cards article {
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(74, 42, 99, 0.14);
    border-radius: 0.9rem;
    background: var(--cream);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

:is(.service-page, .offering-page) .service-cards h3 {
    max-width: none;
    margin: 0 0 0.4rem;
    color: #4a2a63;
    font: 700 1rem/1.25 var(--font);
    text-align: left;
}

.service-cards p {
    margin: 0;
    color: #5d5660;
    font: 400 0.82rem/1.55 var(--font);
}

.service-cards .card-tag {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--warm-gray);
    font: 700 0.62rem/1.4 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── Two-column include / exclude ───────────────────── */
.service-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.1rem;
}

.service-split > div {
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(74, 42, 99, 0.14);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.55);
}

:is(.service-page, .offering-page) .service-split h3 {
    max-width: none;
    margin: 0 0 0.6rem;
    color: #4a2a63;
    font: 700 0.95rem/1.3 var(--font);
    text-align: left;
}

.service-list {
    display: grid;
    gap: 0.42rem;
    margin: 0;
    padding: 0;
    color: #5d5660;
    font: 400 0.83rem/1.5 var(--font);
    list-style: none;
}

/* Markers are absolutely positioned rather than grid columns, so inline
   elements (links, <strong>) stay in the text flow instead of being
   blockified into separate grid items. */
.service-list li {
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '✓';
    color: #4a2a63;
    font-weight: 800;
}

.service-list.is-out li::before { content: '✕'; color: #a8534b; }

/* ── Comparison table ───────────────────────────────── */
.service-table-wrap {
    overflow-x: auto;
    margin-top: 1.1rem;
    border: 1px solid rgba(74, 42, 99, 0.14);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.55);
}

.service-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font: 400 0.82rem/1.5 var(--font);
}

.service-table th,
.service-table td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(74, 42, 99, 0.1);
    color: #5d5660;
    text-align: left;
    vertical-align: top;
}

.service-table thead th {
    color: #4a2a63;
    font: 700 0.7rem/1.4 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-table tbody th {
    color: #3d3540;
    font: 700 0.82rem/1.5 var(--font);
    white-space: nowrap;
}

.service-table tbody tr:last-child th,
.service-table tbody tr:last-child td { border-bottom: 0; }

/* ── Region / geo block ─────────────────────────────── */
.service-region {
    margin-top: 1.1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(74, 42, 99, 0.14);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.5);
}

.service-region p {
    margin: 0 0 0.55rem;
    color: #514a53;
    font: 400 0.86rem/1.6 var(--font);
}

.service-region p:last-child { margin-bottom: 0; }

.service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.service-chips li {
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(74, 42, 99, 0.16);
    border-radius: 999px;
    color: #5d5660;
    font: 500 0.68rem/1.35 var(--mono);
}

/* ── FAQ (reuses offering-faq visual language) ──────── */
.service-faq { margin: 0 auto 2.4rem; }

.service-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.service-faq details {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(74, 42, 99, 0.14);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
}

:is(.service-page, .offering-page) .service-faq summary {
    cursor: pointer;
    color: #4a2a63;
    font: 700 0.84rem/1.45 var(--font);
}

.service-faq details p {
    margin: 0.7rem 0 0;
    color: #5d5660;
    font: 400 0.8rem/1.58 var(--font);
}

/* ── Closing CTA ────────────────────────────────────── */
.service-final {
    margin-top: 0.4rem;
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(74, 42, 99, 0.2);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.62);
    text-align: center;
}

:is(.service-page, .offering-page) .service-final h2 {
    max-width: none;
    margin: 0 0 0.5rem;
    color: #4a2a63;
    font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--font-display);
    text-align: center;
}

.service-final p {
    max-width: 620px;
    margin: 0 auto;
    color: #514a53;
    font: 400 0.9rem/1.6 var(--font);
}

.service-final .service-cta-row { margin-top: 1.25rem; }

.service-related {
    margin-top: 1.4rem;
    color: var(--warm-gray);
    font: 500 0.76rem/1.7 var(--mono);
    text-align: center;
}

.service-related a { color: #4a2a63; font-weight: 700; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .service-page .slide { padding-top: 9rem; }
    .service-split,
    .service-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .service-page .slide { padding-top: calc(11.2rem + env(safe-area-inset-top, 0px)); }
    .service-shell { width: 100%; }
    :is(.service-page, .offering-page) .service-title { font-size: 2.05rem; }
    .service-timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
    .service-cards { grid-template-columns: 1fr; }
    .service-cta-row { flex-direction: column; }
    .service-cta { width: 100%; }
}
