/* Borealogic service pages. Brand rules copied from index.html <style> by scripts/build_service_pages.py — edit there, then rebuild. */
/* ───────────────────────── Tokens ───────────────────────── */
:root {
    --teal: #0ABAB5;
    --teal-bright: #14E5DC;
    --aurora: oklch(0.86 0.17 165);
    --violet: oklch(0.66 0.19 295);

    --night-0: oklch(0.14 0.022 232);
    --night-1: oklch(0.18 0.028 228);
    --night-2: oklch(0.23 0.032 226);
    --night-line: oklch(0.34 0.03 226 / 0.55);
    --on-night: oklch(0.97 0.008 200);
    --on-night-dim: oklch(0.82 0.02 212);

    --bg: oklch(0.985 0.004 200);
    --surface: oklch(1 0 0);
    --surface-2: oklch(0.962 0.009 200);
    --ink: oklch(0.21 0.03 232);
    --ink-dim: oklch(0.43 0.025 230);
    --line: oklch(0.89 0.012 215);
    --accent-ink: oklch(0.5 0.095 192);

    --cat-ai: oklch(0.62 0.19 295);
    --cat-marketing: oklch(0.66 0.12 190);
    --cat-finance: oklch(0.72 0.14 70);
    --cat-leads: oklch(0.62 0.15 250);
    --cat-ecommerce: oklch(0.65 0.17 18);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 14px;
    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

    --z-nav: 50;
    --z-float: 60;
    --z-toast: 70;
    --z-modal: 100;
    --z-promo: 110;
}

[data-theme="dark"] {
    --bg: var(--night-0);
    --surface: var(--night-1);
    --surface-2: oklch(0.165 0.025 230);
    --ink: var(--on-night);
    --ink-dim: var(--on-night-dim);
    --line: oklch(0.29 0.028 228);
    --accent-ink: oklch(0.84 0.12 185);
    --cat-ai: oklch(0.74 0.15 295);
    --cat-marketing: oklch(0.8 0.12 185);
    --cat-finance: oklch(0.82 0.13 75);
    --cat-leads: oklch(0.76 0.12 250);
    --cat-ecommerce: oklch(0.76 0.14 18);
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .4s ease, color .4s ease;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; font-weight: 700; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--teal-bright); color: var(--night-0); }

:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }

.hidden { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.wide { font-stretch: 118%; }

/* ───────────────────────── Buttons ───────────────────────── */
.bl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s var(--ease-out), background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.bl-btn:active { transform: translateY(1px) scale(.99); }
.bl-btn-primary { background: var(--teal); color: oklch(0.17 0.03 220); }
.bl-btn-primary:hover { background: var(--teal-bright); box-shadow: 0 8px 28px -8px oklch(0.8 0.15 185 / .7); }
.bl-btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.bl-btn-ghost:hover { border-color: var(--ink-dim); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.bl-btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.bl-btn .arrow { transition: transform .25s var(--ease-out); }
.bl-btn:hover .arrow { transform: translateX(3px); }

/* ───────────────────────── Navigation ───────────────────────── */
nav.bl-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-nav);
    color: var(--on-night);
    border-bottom: 1px solid transparent;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
nav.bl-nav.scrolled,
nav.bl-nav:has(.mobile-menu.active) {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    color: var(--ink);
    border-bottom-color: var(--line);
}
nav.bl-nav:has(.mobile-menu.active) { background: var(--bg); }
.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand-row { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark .logo-ring { animation: spin 40s linear infinite; transform-origin: 50px 50px; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-text {
    font-stretch: 125%;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .06em;
    text-decoration: none;
    color: inherit;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    opacity: .82;
    transition: opacity .2s ease, background-color .2s ease;
}
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang-pill {
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    background: transparent;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.icon-btn:hover, .lang-pill:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.icon-btn svg { width: 17px; height: 17px; }
.lang-pill { padding: 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
nav.bl-nav .bl-btn { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
nav.bl-nav .bl-btn-ghost { color: inherit; border-color: color-mix(in srgb, currentColor 24%, transparent); }
#mobile-menu-btn {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: 9px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    background: transparent;
    cursor: pointer;
}
.mobile-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.mobile-menu.active { grid-template-rows: 1fr; }
.mobile-menu-inner { overflow: hidden; padding: 0 24px; }
.mobile-menu.active .mobile-menu-inner { padding-bottom: 20px; }
.mobile-menu-inner > a, .mobile-menu-inner > button.mm-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.mm-tools { display: flex; gap: 10px; padding: 8px 0 6px; }
.mm-tools > * { flex: 1; }
.mm-auth { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mm-auth .bl-btn { width: 100%; height: 48px; }

@media (max-width: 900px) {
    .nav-links, .nav-actions { display: none; }
    #mobile-menu-btn { display: inline-flex; }
}

.hero-stars {
    position: absolute;
    inset: 0 0 30% 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 8% 12%, #fff9 50%, transparent 51%),
        radial-gradient(1px 1px at 18% 34%, #fff6 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 27% 8%, #fffb 50%, transparent 51%),
        radial-gradient(1px 1px at 36% 22%, #fff7 50%, transparent 51%),
        radial-gradient(1px 1px at 44% 5%, #fff8 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 53% 28%, #fff9 50%, transparent 51%),
        radial-gradient(1px 1px at 61% 14%, #fff6 50%, transparent 51%),
        radial-gradient(1px 1px at 69% 36%, #fff7 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 77% 9%, #fffa 50%, transparent 51%),
        radial-gradient(1px 1px at 84% 25%, #fff6 50%, transparent 51%),
        radial-gradient(1px 1px at 92% 6%, #fff9 50%, transparent 51%),
        radial-gradient(1px 1px at 96% 40%, #fff5 50%, transparent 51%),
        radial-gradient(1px 1px at 4% 46%, #fff5 50%, transparent 51%),
        radial-gradient(1px 1px at 48% 44%, #fff4 50%, transparent 51%),
        radial-gradient(1px 1px at 73% 52%, #fff4 50%, transparent 51%),
        radial-gradient(1px 1px at 13% 62%, #fff3 50%, transparent 51%);
}
.horizon {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 150px;
    z-index: -1;
    pointer-events: none;
}
.horizon svg { width: 100%; height: 100%; display: block; }
.horizon .ridge-back { fill: oklch(0.17 0.03 222); }
.horizon .ridge-front { fill: var(--bg); transition: fill .4s ease; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    border: 1px solid oklch(0.85 0.1 185 / .28);
    background: oklch(0.2 0.04 210 / .55);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: oklch(0.9 0.09 180);
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--aurora);
    box-shadow: 0 0 0 0 oklch(0.86 0.17 165 / .6);
    animation: livePulse 2.2s ease-out infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 oklch(0.86 0.17 165 / .55); }
    100% { box-shadow: 0 0 0 9px oklch(0.86 0.17 165 / 0); }
}

/* ───────────────────────── Sections ───────────────────────── */
section.block { padding: clamp(80px, 10vw, 136px) 0; }
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px 56px;
    align-items: end;
    margin-bottom: clamp(40px, 5vw, 64px);
}
.section-title {
    font-stretch: 116%;
    font-weight: 800;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    letter-spacing: -0.012em;
}
.section-title .accent { color: var(--accent-ink); }
.section-sub { color: var(--ink-dim); font-size: 1.12rem; max-width: 46ch; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* Process */
#process { background: var(--surface-2); border-block: 1px solid var(--line); }
.process-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    counter-reset: step;
}
.process-step {
    position: relative;
    padding: 0 36px 0 0;
}
.process-step::before {
    content: "";
    position: absolute;
    top: 38px; left: 92px; right: 18px;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--ink-dim) 0 6px, transparent 6px 12px);
    opacity: .45;
}
.process-step:last-child::before { display: none; }
.process-num {
    font-stretch: 125%;
    font-weight: 800;
    font-size: 64px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-ink);
    margin-bottom: 26px;
}
.process-step h3 { font-stretch: 112%; font-size: 1.5rem; margin-bottom: 12px; }
.process-step p { color: var(--ink-dim); max-width: 34ch; }
@media (max-width: 800px) {
    .process-track { grid-template-columns: 1fr; gap: 44px; }
    .process-step { padding: 0 0 0 96px; min-height: 64px; }
    .process-num { position: absolute; left: 0; top: -4px; font-size: 52px; }
    .process-step::before { top: 62px; bottom: -36px; left: 26px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--ink-dim) 0 6px, transparent 6px 12px); }
}

/* Services bento */
.bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color .3s ease, transform .4s var(--ease-out);
}
.service-card:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); }
.service-card.span-4 { grid-column: span 4; }
.service-card.span-2 { grid-column: span 2; }
.service-card.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.service-card .copy { display: flex; flex-direction: column; gap: 14px; }
.service-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 11px;
    color: var(--accent-ink);
    background: color-mix(in srgb, var(--teal) 12%, transparent);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-stretch: 112%; font-size: 1.45rem; }
.service-card p { color: var(--ink-dim); }
.service-features { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service-features li {
    font-size: 13px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-dim);
}
.check-ic { display: none; }

/* bento visuals */
.viz {
    border-radius: 14px;
    background: var(--night-1);
    color: var(--on-night);
    border: 1px solid var(--night-line);
    padding: 18px;
    font-family: var(--mono);
    font-size: 12.5px;
}
[data-theme="dark"] .viz { background: var(--night-0); }
.viz-graph { padding: 10px; }
.viz-graph svg { display: block; width: 100%; height: auto; }
.viz-graph .w { fill: none; stroke: oklch(0.45 0.03 225); stroke-width: 1.5; }
.viz-graph .w.hot { stroke: var(--teal-bright); stroke-dasharray: 5 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.viz-graph rect { fill: oklch(0.23 0.03 226); stroke: oklch(0.42 0.03 225); }
.viz-graph rect.hot { stroke: var(--teal-bright); fill: oklch(0.26 0.055 196); }
.viz-graph text { fill: var(--on-night-dim); font-family: var(--mono); font-size: 11px; }
.chat { display: flex; flex-direction: column; gap: 8px; margin-top: auto; font-family: var(--font); font-size: 14px; }
.chat .bubble { max-width: 88%; padding: 9px 13px; border-radius: 14px; line-height: 1.4; }
.chat .in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat .out { align-self: flex-end; background: color-mix(in srgb, var(--teal) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); border-bottom-right-radius: 4px; }
.endpoints { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.endpoints div { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.endpoints b { font-weight: 500; font-size: 11px; padding: 2px 7px; border-radius: 5px; min-width: 50px; text-align: center; }
.m-post { background: color-mix(in srgb, var(--cat-marketing) 18%, transparent); color: var(--accent-ink); }
.m-get { background: color-mix(in srgb, var(--cat-leads) 18%, transparent); color: color-mix(in srgb, var(--cat-leads) 65%, var(--ink)); }
.m-hook { background: color-mix(in srgb, var(--cat-finance) 22%, transparent); color: color-mix(in srgb, var(--cat-finance) 58%, var(--ink)); }
.term .prompt { color: var(--on-night); line-height: 1.5; }
.term .prompt::before { content: "› "; color: var(--teal-bright); }
.term .caret { display: inline-block; width: 8px; height: 15px; background: var(--teal-bright); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; color: var(--on-night-dim); }
.term li::before { content: "✓  "; color: var(--aurora); }

@media (max-width: 1000px) {
    .service-card.span-4, .service-card.span-2 { grid-column: span 3; }
    .service-card.split { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .bento { grid-template-columns: 1fr; }
    .service-card.span-4, .service-card.span-2 { grid-column: auto; }
    .service-card { padding: 24px; }
}

/* Portfolio index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chip {
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-dim);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter-chip:hover { color: var(--ink); border-color: var(--ink-dim); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.filter-chip[data-filter="ai"] .dot { background: var(--cat-ai); }
.filter-chip[data-filter="marketing"] .dot { background: var(--cat-marketing); }
.filter-chip[data-filter="finance"] .dot { background: var(--cat-finance); }
.filter-chip[data-filter="leads"] .dot { background: var(--cat-leads); }
.filter-chip[data-filter="ecommerce"] .dot { background: var(--cat-ecommerce); }

.work-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    border-top: 1px solid var(--line);
}
.portfolio-card {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "tag go" "title go" "desc go";
    column-gap: 20px;
    row-gap: 6px;
    padding: 22px 6px 22px 0;
    border-bottom: 1px solid var(--line);
}
.portfolio-card > :not(.go) { transition: transform .35s var(--ease-out), color .2s ease; }
.portfolio-card[hidden] { display: none; }
.portfolio-card .pf-icon { display: none; }
.portfolio-card .category-tag { grid-area: tag; }
.portfolio-card h3 {
    grid-area: title;
    font-stretch: 105%;
    font-size: 1.12rem;
    font-weight: 650;
    line-height: 1.3;
    transition: color .2s ease;
}
.portfolio-card p {
    grid-area: desc;
    font-size: 15px;
    color: var(--ink-dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portfolio-card .go {
    grid-area: go;
    align-self: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    color: var(--ink-dim);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .35s var(--ease-out);
}
.portfolio-card:hover > :not(.go), .portfolio-card:focus-visible > :not(.go) { transform: translateX(8px); }
.portfolio-card:hover h3 { color: var(--accent-ink); }
.portfolio-card:hover .go, .portfolio-card:focus-visible .go { background: var(--teal); border-color: var(--teal); color: var(--night-0); transform: rotate(-45deg); }
.portfolio-card:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; border-radius: 6px; }

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--ink-dim);
}
.category-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.category-tag.cat-ai::before { background: var(--cat-ai); }
.category-tag.cat-marketing::before { background: var(--cat-marketing); }
.category-tag.cat-finance::before { background: var(--cat-finance); }
.category-tag.cat-leads::before { background: var(--cat-leads); }
.category-tag.cat-ecommerce::before { background: var(--cat-ecommerce); }

@media (max-width: 800px) { .work-list { grid-template-columns: 1fr; } }

/* Scroll-driven reveal: progressive enhancement only, content is visible without it */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal { animation: revealUp linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
        @keyframes revealUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
    }
}

/* ───────────────────────── CTA ───────────────────────── */
.cta-section { padding: 0 0 clamp(80px, 10vw, 120px); }
.cta-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 80px);
    color: var(--on-night);
    background: var(--night-0);
}
.cta-card::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 140%;
    z-index: -1;
    background:
        radial-gradient(50% 40% at 22% 70%, oklch(0.78 0.17 168 / .55), transparent 70%),
        radial-gradient(40% 35% at 62% 40%, oklch(0.75 0.14 190 / .45), transparent 70%),
        radial-gradient(35% 30% at 88% 25%, oklch(0.6 0.2 295 / .45), transparent 70%);
    filter: blur(30px);
    animation: ctaDrift 18s ease-in-out infinite alternate;
}
@keyframes ctaDrift { to { transform: translateX(-6%) translateY(4%) scale(1.06); } }
.cta-card h2 {
    font-stretch: 120%;
    font-weight: 800;
    font-size: clamp(2.1rem, 4.6vw, 3.9rem);
    line-height: 1.04;
    max-width: 21ch;
}
@media (max-width: 560px) {
    .cta-card { padding: 44px 24px; border-radius: 22px; }
    .cta-card h2 { font-stretch: 100%; font-size: clamp(1.6rem, 7vw, 2.2rem); }
}
.cta-card p { margin-top: 20px; max-width: 46ch; font-size: 1.15rem; color: var(--on-night-dim); }
.cta-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-actions .alt { font-size: 15px; color: var(--on-night-dim); }
.cta-actions .alt a { color: var(--on-night); font-weight: 600; text-underline-offset: 3px; }

/* ───────────────────────── Footer ───────────────────────── */
.bl-footer { background: var(--night-0); color: var(--on-night-dim); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.bl-footer .brand-row { color: var(--on-night); }
.footer-brand-desc { margin-top: 16px; max-width: 34ch; font-size: 15px; }
.bl-footer h4 { color: var(--on-night); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.bl-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.bl-footer ul a { text-decoration: none; }
.bl-footer ul a:hover { color: var(--on-night); }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
/* ───────── n8n Verified Creator badge (logo: official n8n PNG, unaltered; glow is a filter around it) ───────── */
.n8n-badge { --n8n-pink: 255 145 172; display: inline-flex; align-items: center; max-width: 100%; padding: 12px 16px 12px 18px; border-radius: 14px; border: 1px solid oklch(1 0 0 / .14); background: oklch(1 0 0 / .045); color: var(--on-night); text-decoration: none; line-height: 1.25; transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out), box-shadow .3s var(--ease-out); }
.n8n-badge-logo { display: block; width: 90px; height: 18px; flex: none; transition: filter .3s var(--ease-out); }
.n8n-badge-sep { width: 1px; align-self: stretch; margin: 0 16px 0 18px; background: oklch(1 0 0 / .16); flex: none; }
.n8n-badge-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.n8n-badge-title { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--on-night); }
.n8n-badge-check { width: 16px; height: 16px; flex: none; }
.n8n-badge-sub { font-size: 12.5px; color: var(--on-night-dim); }
.n8n-badge-go { width: 14px; height: 14px; margin-left: 14px; flex: none; color: var(--on-night-dim); transition: transform .25s var(--ease-out), color .25s var(--ease-out); }
.n8n-badge:hover, .n8n-badge:focus-visible { border-color: rgb(var(--n8n-pink) / .55); background: rgb(var(--n8n-pink) / .07); box-shadow: 0 0 0 1px rgb(var(--n8n-pink) / .18), 0 12px 40px -14px rgb(var(--n8n-pink) / .6); }
.n8n-badge:hover .n8n-badge-logo, .n8n-badge:focus-visible .n8n-badge-logo { filter: drop-shadow(0 0 4px rgb(var(--n8n-pink) / .85)) drop-shadow(0 0 14px rgb(var(--n8n-pink) / .55)); }
.n8n-badge:hover .n8n-badge-go, .n8n-badge:focus-visible .n8n-badge-go { color: var(--on-night); transform: translate(2px, -2px); }
.hero .n8n-badge { margin-top: 30px; animation: fadeUp .9s var(--ease-out) .55s both; }
.page-hero .n8n-badge { margin-top: 28px; }
.footer-brand-desc + .n8n-badge { margin-top: 22px; }
@media (max-width: 420px) { .n8n-badge { padding: 11px 14px; } .n8n-badge-logo { width: 80px; height: 16px; } .n8n-badge-sep { margin: 0 12px 0 14px; } .n8n-badge-go { display: none; } }

/* ───────────────────────── Modals ───────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: oklch(0.1 0.02 235 / .62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 36px;
    border-radius: 22px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 40px 100px -30px oklch(0.05 0.02 230 / .7);
    transform: translateY(16px) scale(.98);
    transition: transform .45s var(--ease-out);
}
.modal-overlay.active .modal-content { transform: none; }
.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-dim);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: grid; place-items: center;
    transition: color .2s ease, border-color .2s ease;
}
.modal-close:hover { color: var(--ink); border-color: var(--ink-dim); }
#modalIcon { font-size: 38px; margin: 16px 0 8px; line-height: 1; }
#modalTitle { font-stretch: 110%; font-size: 1.7rem; margin-bottom: 12px; padding-right: 30px; }
#modalDescription { color: var(--ink-dim); }
.modal-technologies, .modal-features { margin-top: 26px; }
.modal-technologies h4, .modal-features h4 { font-size: 13px; font-weight: 700; color: var(--ink-dim); margin-bottom: 12px; }
#modalTechList { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#modalTechList li { font-family: var(--mono); font-size: 12.5px; padding: 5px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); }
#modalFeatureList { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#modalFeatureList li { display: flex; gap: 10px; }
#modalFeatureList li::before { content: "✓"; color: var(--accent-ink); font-weight: 700; }

.contact-kicker { font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-bottom: 10px; }
.contact-title { font-stretch: 112%; font-size: 1.9rem; margin-bottom: 8px; }
.contact-sub { color: var(--ink-dim); }
.contact-options { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-option .cc { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-dim); vertical-align: .1em; }
.contact-option {
    display: flex; flex-direction: column; gap: 14px;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 650;
    font-size: 17px;
    transition: border-color .2s ease, background-color .2s ease, transform .3s var(--ease-out);
}
.contact-option:hover { transform: translateY(-2px); }
.contact-option svg { width: 26px; height: 26px; }
.contact-option small { font-weight: 400; font-size: 13.5px; color: var(--ink-dim); }
.contact-whatsapp svg { color: #1FAF57; }
.contact-whatsapp:hover { border-color: #25D366; background: color-mix(in srgb, #25D366 7%, transparent); }
.contact-email svg { color: var(--accent-ink); }
.contact-email:hover { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 7%, transparent); }
@media (max-width: 640px) { .contact-options { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .modal-content { padding: 28px 22px; } }

/* ───────────────────────── Floating WhatsApp ───────────────────────── */
/* Rotating contact button (TR WhatsApp → US WhatsApp → email every 3 s, see assets/site.js); opens the contact dialog */
#whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: var(--z-float); }
#whatsapp-float .cf {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 18px 8px 8px;
    border: 0;
    border-radius: 999px;
    background: #0E7A3F; /* white text ≥ 5:1 */
    color: #fff;
    font-family: var(--font);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 14px 34px -10px rgb(18 140 74 / .6), 0 2px 6px rgb(0 0 0 / .15);
    transition: transform .3s var(--ease-out), background-color .45s ease, box-shadow .45s ease;
}
#whatsapp-float .cf:hover { transform: translateY(-2px); background: #0B6634; }
#whatsapp-float .cf[data-kind="mail"] { background: #0B5C63; box-shadow: 0 14px 34px -10px rgb(10 186 181 / .55), 0 2px 6px rgb(0 0 0 / .15); }
#whatsapp-float .cf[data-kind="mail"]:hover { background: #094B51; }
#whatsapp-float .wa-icon { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #25D366; transition: background-color .45s ease; }
#whatsapp-float .cf[data-kind="mail"] .wa-icon { background: var(--teal); }
#whatsapp-float .wa-icon svg { position: absolute; inset: 0; margin: auto; width: 21px; height: 21px; fill: #fff; transition: opacity .35s ease, transform .35s var(--ease-out); }
#whatsapp-float .wa-icon svg.cf-mail-ic { fill: none; stroke: #fff; opacity: 0; transform: scale(.6); }
#whatsapp-float .cf[data-kind="mail"] .wa-icon svg.cf-wa-ic { opacity: 0; transform: scale(.6); }
#whatsapp-float .cf[data-kind="mail"] .wa-icon svg.cf-mail-ic { opacity: 1; transform: none; }
#whatsapp-float .cf-text { display: grid; }
#whatsapp-float .cf-state { grid-area: 1 / 1; display: flex; flex-direction: column; line-height: 1.2; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s var(--ease-out); }
#whatsapp-float .cf-state.on { opacity: 1; transform: none; }
#whatsapp-float .wa-label { font-size: 12px; }
#whatsapp-float .wa-number { font-size: 14.5px; font-weight: 700; letter-spacing: .01em; }
#whatsapp-float .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) {
    #whatsapp-float { right: 16px; bottom: 16px; }
    #whatsapp-float .cf { padding: 8px; }
    #whatsapp-float .cf-text { display: none; }
}

/* ───────────────────────── Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .marquee-track { flex-wrap: wrap; width: auto; }
}

/* ───────────────────────── Service pages ───────────────────────── */
.page-hero {
    position: relative; isolation: isolate; overflow: hidden; color: var(--on-night);
    background:
        radial-gradient(60% 55% at 85% 0%, oklch(0.72 0.15 185 / .45), transparent 70%),
        radial-gradient(45% 50% at 10% 20%, oklch(0.6 0.16 165 / .25), transparent 70%),
        radial-gradient(35% 40% at 60% 30%, oklch(0.55 0.18 295 / .22), transparent 70%),
        linear-gradient(180deg, oklch(0.11 0.02 245) 0%, oklch(0.145 0.03 228) 60%, oklch(0.2 0.045 205) 100%);
    padding: 132px 0 168px;
}
.page-hero .container { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; color: var(--on-night-dim); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { margin-top: 22px; font-stretch: 118%; font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 18ch; }
.page-hero h1 .accent { display: block; color: var(--teal-bright); }
.page-hero .lead { margin-top: 24px; max-width: 58ch; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--on-night-dim); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .bl-btn-ghost { color: var(--on-night); border-color: oklch(0.9 0.02 210 / .3); }
.page-hero .bl-btn-ghost:hover { background: oklch(1 0 0 / .07); border-color: oklch(0.9 0.02 210 / .55); }
.bl-btn-wa { background: #0E7A3F; color: #fff; }
.bl-btn-wa:hover { background: #0B6634; }
.bl-btn-wa svg { width: 20px; height: 20px; fill: currentColor; }
/* Theme toggle shows the theme it switches to: moon in light mode, sun in dark mode (same as the homepage) */
.ti-sun { display: none; }
[data-theme="dark"] .ti-moon { display: none; }
[data-theme="dark"] .ti-sun { display: block; }
a.lang-pill { text-decoration: none; color: inherit; }

/* Long Turkish words ("otomatikleştiriyoruz") must fit narrow phones */
@media (max-width: 800px) { .section-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
    .section-title { font-stretch: 100%; font-size: clamp(1.6rem, 7.2vw, 2.1rem); }
    .page-hero h1 { font-stretch: 100%; font-size: clamp(1.6rem, 8.4vw, 2.7rem); }
}
@media (max-width: 360px) { .section-title { font-size: 1.4rem; } }

.prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 64px; align-items: start; }
.prose .body { display: grid; gap: 18px; font-size: 1.08rem; color: var(--ink-dim); }
@media (max-width: 860px) { .prose { grid-template-columns: 1fr; } }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 980px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
    position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line);
    transition: border-color .2s ease, transform .25s var(--ease-out), box-shadow .25s ease;
}
.feat .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--accent-ink); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.feat h3 { font-size: 1.2rem; font-stretch: 108%; }
.feat p { color: var(--ink-dim); font-size: 1rem; }
.feat a { text-decoration: none; }
.feat a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.feat .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.feat:has(a):hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); transform: translateY(-2px); box-shadow: 0 18px 40px -24px oklch(0.4 0.08 200 / .45); }
.feat:has(a:focus-visible) { outline: 2px solid var(--teal-bright); outline-offset: 3px; }
.feat a:focus-visible { outline: none; }

.band { background: var(--surface-2); border-block: 1px solid var(--line); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 14px; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.points li .ic { grid-row: span 2; width: 26px; height: 26px; color: var(--accent-ink); margin-top: 2px; }
.points li b { font-size: 1.06rem; }
.points li span { color: var(--ink-dim); font-size: .98rem; }
.note { margin-top: 18px; max-width: 70ch; font-size: 1.08rem; color: var(--ink-dim); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--accent-ink); margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--ink-dim); font-size: .98rem; }

.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 720px) { .examples { grid-template-columns: 1fr; } }
.examples li { padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; }
.examples .tag { justify-self: start; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.examples h3 { font-size: 1.08rem; line-height: 1.3; }
.examples p { color: var(--ink-dim); font-size: .98rem; }
.see-all { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-ink); text-underline-offset: 4px; }

.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 24px; min-height: 44px; font-size: 1.08rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--accent-ink); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { border-radius: 16px; }
.faq .answer { padding: 0 24px 22px; color: var(--ink-dim); max-width: 72ch; }

.related { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.related a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px;
    transition: border-color .2s ease, color .2s ease;
}
.related a:hover { border-color: var(--teal); color: var(--accent-ink); }
.related .ic { width: 18px; height: 18px; color: var(--accent-ink); }

.bl-footer .footer-h { color: var(--on-night); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.bl-footer .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .bl-footer .footer-grid { grid-template-columns: 1fr 1fr; } .bl-footer .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (pointer: coarse) {
    .icon-btn, #mobile-menu-btn, nav.bl-nav .bl-btn { height: 44px; min-width: 44px; }
    #mobile-menu-btn { width: 44px; }
    .bl-footer ul { gap: 0; }
    .bl-footer ul a { display: inline-block; padding: 10px 0; }
}
