﻿/* Loucoud — design system
   Azul-noite + âmbar. Escrito para quem decide e lê pouco:
   títulos grandes, frases curtas, números em destaque e um CTA por tela. */

:root {
    /* Ink (azul-noite) */
    --ink: #0b1220;
    --ink-900: #0f172a;
    --ink-800: #162036;
    --ink-700: #1e2a44;

    /* Text on light */
    --text: #0b1220;
    --text-2: #475467;
    --text-3: #667085;

    /* Text on dark */
    --on-dark: #f8fafc;
    --on-dark-2: #b6c0d2;
    --on-dark-3: #8a96ab;

    /* Surfaces */
    --bg: #ffffff;
    --bg-soft: #f4f6f9;
    --bg-warm: #fbf7ef;
    --line: #e4e7ec;
    --line-2: #d0d5dd;
    --line-dark: rgba(255, 255, 255, 0.1);

    /* Accent (âmbar) — #b45309 is the text-safe shade on white (5.0:1) */
    --accent: #ffb020;
    --accent-hover: #ffc04d;
    --accent-text: #b45309;
    --accent-on-dark: #ffc46b;
    --accent-soft: #fff4dc;

    /* Outcome colours for before → after */
    --good: #067647;
    --good-on-dark: #47cd89;
    --bad-on-dark: #f97066;

    --wa: #25d366;

    --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --wrap: 1200px;
    --nav-h: 72px;
    --r-sm: 8px;
    --r: 14px;
    --r-lg: 22px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.14);
    --shadow-lg: 0 24px 48px -20px rgba(11, 18, 32, 0.35);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--ink); padding: 0.6rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Type helpers ---------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.on-dark .kicker, .kicker.on-dark { color: var(--accent-on-dark); }

.h-section { margin-top: 0.9rem; font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.lead { margin-top: 1rem; font-size: 1.125rem; color: var(--text-2); max-width: 40rem; }
.on-dark .lead { color: var(--on-dark-2); }
.muted { color: var(--text-3); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    border-radius: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(255, 176, 32, 0.8); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { border-color: var(--line-2); color: var(--text); background: var(--bg); }
.btn-outline:hover { border-color: var(--text); }
.on-dark .btn-outline, .btn-outline.on-dark { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.on-dark .btn-outline:hover, .btn-outline.on-dark:hover { border-color: var(--on-dark); }
.btn-sm { min-height: 42px; padding: 0.55rem 1.05rem; font-size: 0.92rem; border-radius: 9px; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-head); font-weight: 700; font-size: 0.97rem; color: var(--accent-text); }
.link-arrow::after { content: "→"; transition: transform 0.18s; }
.link-arrow:hover::after { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--accent-on-dark); }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(11, 18, 32, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    color: var(--on-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--on-dark); }
.logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-menu > li > a, .nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--on-dark-2);
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.nav-menu > li > a:hover, .nav-drop-btn:hover, .nav-menu > li > a[aria-current="page"] { color: var(--on-dark); background: rgba(255, 255, 255, 0.06); }
.nav-menu .nav-cta { margin-left: 0.75rem; }
.nav-menu .nav-cta .btn { color: var(--ink); background: var(--accent); padding: 0.55rem 1.05rem; }
.nav-menu .nav-cta .btn:hover { background: var(--accent-hover); color: var(--ink); }
.nav-drop { position: relative; }
.nav-drop-btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -0.5rem;
    min-width: 320px;
    padding: 0.5rem;
    background: var(--bg);
    color: var(--text);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.nav-drop-menu a { display: block; padding: 0.7rem 0.85rem; border-radius: 10px; }
.nav-drop-menu a:hover { background: var(--bg-soft); }
.nav-drop-menu strong { display: block; font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; }
.nav-drop-menu span { display: block; font-size: 0.83rem; color: var(--text-3); line-height: 1.4; margin-top: 0.1rem; }
.nav-drop:hover .nav-drop-menu, .nav-drop.is-open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop.is-open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; border-radius: 8px; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--on-dark); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section-sm { padding: 4.5rem 0; }
.bg-soft { background: var(--bg-soft); }
.bg-warm { background: var(--bg-warm); }
.bg-ink { background: var(--ink); color: var(--on-dark); }
.section-head { max-width: 46rem; margin-bottom: 3.25rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-foot { margin-top: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.section-foot.center { justify-content: center; }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--on-dark);
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 60% at 85% 10%, rgba(255, 176, 32, 0.14), transparent 60%),
        radial-gradient(50% 60% at 0% 100%, rgba(56, 97, 199, 0.22), transparent 60%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000 20%, transparent 70%);
    mask-image: radial-gradient(70% 70% at 30% 40%, #000 20%, transparent 70%);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 4rem;
    align-items: center;
    padding-top: 5.5rem;
    padding-bottom: 5rem;
}
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .hl { color: var(--accent); }
.hero-lead { margin-top: 1.4rem; font-size: 1.2rem; color: var(--on-dark-2); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }
.hero-assure { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.5rem; font-size: 0.9rem; color: var(--on-dark-3); }
.hero-assure li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-assure svg { width: 16px; height: 16px; color: var(--good-on-dark); }

.hero-visual { position: relative; }
.hero-photo {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 4.6;
    background: var(--ink-800);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 45%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 18, 32, 0.75)); }
.hero-photo-cap { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; font-size: 0.88rem; color: var(--on-dark-2); }
.hero-photo-cap strong { display: block; color: var(--on-dark); font-family: var(--font-head); font-size: 1rem; }
.chip-stat {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 1.05rem;
    background: var(--bg);
    color: var(--text);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    min-width: 190px;
}
.chip-stat small { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.chip-stat b { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.chip-stat b s { color: var(--text-3); font-weight: 600; text-decoration-thickness: 2px; }
.chip-stat b em { font-style: normal; color: var(--good); }
.chip-a { top: 9%; left: -2.5rem; }
.chip-b { bottom: 18%; right: -1.75rem; }

/* ---------- Proof bar ---------- */
.proof { border-top: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.02); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { padding: 1.8rem 1.5rem; border-left: 1px solid var(--line-dark); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item b { display: block; white-space: nowrap; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--on-dark); line-height: 1.1; }
.proof-item b .arrow { color: var(--accent); margin: 0 0.15em; }
.proof-item > span { display: block; margin-top: 0.35rem; font-size: 0.9rem; color: var(--on-dark-3); }

/* ---------- Pain grid ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.pain {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.pain:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.pain-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.pain-icon svg { width: 24px; height: 24px; }
.pain h3 { margin-top: 1.2rem; font-size: 1.18rem; letter-spacing: -0.015em; }
.pain p { margin-top: 0.55rem; font-size: 0.95rem; color: var(--text-2); flex: 1; }
.pain .link-arrow { margin-top: 1.2rem; font-size: 0.9rem; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.svc {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem 2rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.svc:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-2px); }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.svc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--accent); }
.svc-icon svg { width: 26px; height: 26px; }
.tag { display: inline-flex; align-items: center; padding: 0.3rem 0.7rem; font-size: 0.76rem; font-weight: 600; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.tag-accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.svc h3 { margin-top: 1.4rem; font-size: 1.55rem; }
.svc-for { margin-top: 0.6rem; font-size: 1rem; color: var(--text-2); }
.checks { margin-top: 1.3rem; display: grid; gap: 0.55rem; }
.checks li { position: relative; padding-left: 1.85rem; font-size: 0.96rem; }
.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b45309' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.on-dark .checks li::before { background-color: rgba(255, 176, 32, 0.16); }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.6rem; }
.svc-meta { font-size: 0.85rem; color: var(--text-3); }
.svc .checks { margin-bottom: 0.4rem; }
.svc-featured { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.svc-featured .svc-icon { background: var(--accent); color: var(--ink); }
.svc-featured .svc-for { color: var(--on-dark-2); }
.svc-featured .svc-meta { color: var(--on-dark-3); }
.svc-featured .link-arrow { color: var(--accent-on-dark); }
.svc-featured .tag { background: rgba(255, 255, 255, 0.08); color: var(--on-dark); border-color: transparent; }
.svc-featured .checks li::before { background-color: rgba(255, 176, 32, 0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffc46b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }

.addon {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding: 1.35rem 1.6rem;
    border: 1px dashed var(--line-2);
    border-radius: var(--r);
    background: var(--bg);
}
.addon .svc-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.addon .svc-icon svg { width: 22px; height: 22px; }
.addon p { font-size: 0.97rem; color: var(--text-2); }
.addon p strong { color: var(--text); font-family: var(--font-head); }

/* ---------- Results / cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.case {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--ink-800);
    border: 1px solid var(--line-dark);
    border-radius: var(--r-lg);
    transition: border-color 0.2s, transform 0.2s;
}
.case:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.case-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.85rem; color: var(--on-dark-3); }
.case-head .pill { padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: rgba(71, 205, 137, 0.14); color: var(--good-on-dark); }
.case-head .pill.wip { background: rgba(255, 176, 32, 0.14); color: var(--accent-on-dark); }
.case h3 { margin-top: 1rem; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--on-dark); }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.ba-item { padding: 1.1rem 1.15rem; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); }
.ba-item small { display: block; font-size: 0.78rem; color: var(--on-dark-3); }
.ba-item .ba-nums { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; }
.ba-nums .before { font-size: 1.05rem; color: var(--on-dark-3); text-decoration: line-through; text-decoration-color: var(--bad-on-dark); text-decoration-thickness: 2px; }
.ba-nums .to { color: var(--on-dark-3); font-size: 0.95rem; }
.ba-nums .after { font-size: 1.7rem; color: var(--good-on-dark); }
.case p { margin-top: 1.4rem; font-size: 0.97rem; color: var(--on-dark-2); flex: 1; }
.case .link-arrow { margin-top: 1.4rem; }

.quote {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: var(--r-lg);
    background: linear-gradient(120deg, rgba(255, 176, 32, 0.12), rgba(255, 176, 32, 0.03));
    border: 1px solid rgba(255, 176, 32, 0.25);
}
.quote-mark { font-family: var(--font-head); font-size: 4rem; line-height: 0.6; color: var(--accent); }
.quote p { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; color: var(--on-dark); }
.quote cite { display: block; margin-top: 0.5rem; font-style: normal; font-size: 0.88rem; color: var(--on-dark-3); }

/* ---------- Comparison ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.96rem; }
.compare-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.compare th, .compare td { padding: 1.05rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare thead th { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; background: var(--bg-soft); color: var(--text-2); }
.compare tbody th { font-weight: 600; color: var(--text); width: 22%; }
.compare td { color: var(--text-2); width: 26%; }
.compare .me { background: var(--accent-soft); color: var(--text); font-weight: 500; }
.compare thead .me { background: var(--ink); color: var(--on-dark); }
.compare thead .me span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--accent-on-dark); }
.compare .me::before {
    content: "";
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    margin-right: 0.5rem;
    vertical-align: -0.12em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23067647' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7-8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.compare thead .me::before { display: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step-num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 800;
}
.step-when { display: inline-block; margin-left: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--accent-text); }
.step h3 { margin-top: 1.2rem; font-size: 1.25rem; letter-spacing: -0.015em; }
.step p { margin-top: 0.55rem; font-size: 0.96rem; color: var(--text-2); }
.step-out { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--text-2); }
.step-out b { color: var(--text); font-weight: 600; }
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3.05rem;
    right: -1.15rem;
    width: 0.8rem;
    height: 0.8rem;
    border-top: 2px solid var(--line-2);
    border-right: 2px solid var(--line-2);
    transform: rotate(45deg);
    z-index: 1;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 4.5rem; align-items: center; }
.about-photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 560px; }
.about-photos figure { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-soft); }
.about-photos figure:first-child { grid-row: 1 / 3; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-photos figcaption {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(11, 18, 32, 0.78);
    color: var(--on-dark);
    backdrop-filter: blur(6px);
}
.about-copy h2 { margin-top: 0.9rem; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.about-copy > p { margin-top: 1.1rem; font-size: 1.06rem; color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.fact { padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--bg-soft); }
.fact b { display: block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; }
.fact span { display: block; margin-top: 0.2rem; font-size: 0.88rem; color: var(--text-2); }
.about-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.75rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 4rem; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 2rem); margin-bottom: 0; }
.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.18s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq summary {
    position: relative;
    padding: 1.2rem 3.5rem 1.2rem 1.4rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.04rem;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 1.3rem;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230b1220' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center / 60% no-repeat;
    transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; font-size: 0.98rem; color: var(--text-2); }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding: 3.5rem;
    border-radius: 28px;
    background: var(--ink);
    color: var(--on-dark);
    overflow: hidden;
    isolation: isolate;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 0%, rgba(255, 176, 32, 0.2), transparent 60%); }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.cta-band p { margin-top: 1rem; font-size: 1.1rem; color: var(--on-dark-2); max-width: 34rem; }
.cta-side { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.cta-person { display: flex; align-items: center; gap: 0.85rem; font-size: 0.9rem; color: var(--on-dark-2); }
.cta-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.2); }
.cta-person b { display: block; color: var(--on-dark); font-family: var(--font-head); }
.cta-alt { font-size: 0.92rem; color: var(--on-dark-2); border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding-bottom: 1px; }
.cta-alt:hover { color: var(--on-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-2); padding: 4.5rem 0 2rem; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; color: var(--on-dark-3); }
.footer h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 1rem; }
.footer li + li { margin-top: 0.6rem; }
.footer a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); font-size: 0.83rem; color: var(--on-dark-3); }

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--wa);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
    transition: transform 0.18s;
}
.wa-float:hover { transform: scale(1.06); }

/* ===================================================================
   Subpages
   =================================================================== */
.page-hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 80% at 90% 0%, rgba(255, 176, 32, 0.13), transparent 60%), radial-gradient(45% 70% at 0% 100%, rgba(56, 97, 199, 0.2), transparent 60%); }
.page-hero-inner { padding-top: 4.5rem; padding-bottom: 4.25rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--on-dark-3); }
.crumbs a:hover { color: var(--on-dark); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.page-hero h1 { margin-top: 1.4rem; max-width: 52rem; font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.032em; }
.page-hero .lead { font-size: 1.18rem; max-width: 42rem; }
.page-hero .hero-actions { margin-top: 2rem; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3.5rem; align-items: end; }
.hero-card { padding: 1.6rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); }
.hero-card h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-3); }
.hero-card dl { margin-top: 1rem; display: grid; gap: 0.9rem; }
.hero-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-dark); font-size: 0.93rem; }
.hero-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card dt { color: var(--on-dark-3); }
.hero-card dd { color: var(--on-dark); font-weight: 600; text-align: right; }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; }
.split .section-head { margin-bottom: 0; }

.list-cards { display: grid; gap: 1rem; }
.list-card { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.35rem 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.list-card .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-family: var(--font-head); font-weight: 800; font-size: 0.92rem; }
.list-card h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.list-card p { margin-top: 0.3rem; font-size: 0.95rem; color: var(--text-2); }

.deliver-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.deliver { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.deliver .svc-icon { width: 46px; height: 46px; border-radius: 12px; }
.deliver .svc-icon svg { width: 22px; height: 22px; }
.deliver h3 { margin-top: 1.1rem; font-size: 1.2rem; letter-spacing: -0.015em; }
.deliver p { margin-top: 0.5rem; font-size: 0.96rem; color: var(--text-2); }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.stat-card { padding: 1.6rem; border-radius: var(--r-lg); background: var(--ink-800); border: 1px solid var(--line-dark); }
.stat-card small { display: block; font-size: 0.82rem; color: var(--on-dark-3); }
.stat-card .ba-nums { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; }
.stat-card .ba-nums .after { font-size: 2.1rem; }

.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 0.6rem; }
.tl-item { position: relative; padding: 0 0 2.25rem 2.25rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -9px; top: 0.25rem; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl-item .when { font-size: 0.85rem; font-weight: 700; color: var(--accent-text); font-family: var(--font-head); }
.tl-item h3 { margin-top: 0.25rem; font-size: 1.25rem; letter-spacing: -0.015em; }
.tl-item p { margin-top: 0.45rem; font-size: 0.97rem; color: var(--text-2); max-width: 40rem; }
.tl-item .out { display: inline-block; margin-top: 0.7rem; padding: 0.3rem 0.7rem; border-radius: 8px; background: var(--bg-soft); font-size: 0.86rem; color: var(--text-2); }
.tl-item .out b { color: var(--text); }

.callout { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; padding: 1.5rem 1.75rem; border-radius: var(--r-lg); background: var(--bg-warm); border: 1px solid #f1e3c4; }
.callout .svc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--ink); }
.callout .svc-icon svg { width: 22px; height: 22px; }
.callout h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.callout p { margin-top: 0.2rem; font-size: 0.95rem; color: var(--text-2); }

.mini-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.mini-case { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); transition: border-color 0.18s, box-shadow 0.18s; }
.mini-case:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.mini-case small { font-size: 0.82rem; color: var(--text-3); }
.mini-case h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
.mini-case .big { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--good); }

/* AI page — conflicting numbers demo */
.numbers-demo { padding: 1.75rem; border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark); }
.numbers-demo h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-3); }
.numbers-demo ul { margin-top: 1rem; }
.numbers-demo li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-dark); font-size: 0.97rem; color: var(--on-dark-2); }
.numbers-demo li b { font-family: var(--font-head); color: var(--on-dark); }
.numbers-demo li.ai b { color: var(--bad-on-dark); }
.numbers-demo p { margin-top: 1rem; font-size: 0.92rem; color: var(--on-dark-3); }

/* Case study page */
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; align-items: start; }
.case-aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); padding: 1.6rem; border-radius: var(--r-lg); background: var(--bg-soft); }
.case-aside h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.case-aside dl { margin-top: 0.9rem; display: grid; gap: 0.85rem; }
.case-aside dt { font-size: 0.8rem; color: var(--text-3); }
.case-aside dd { font-weight: 600; font-size: 0.95rem; }
.case-aside .btn { width: 100%; margin-top: 1.4rem; }
.case-block + .case-block { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.case-block h2 { margin-top: 0.75rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.case-block > p { margin-top: 1rem; font-size: 1.05rem; color: var(--text-2); max-width: 44rem; }
.case-block .list-cards { margin-top: 1.75rem; }
.note { margin-top: 1.5rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--accent); background: var(--bg-warm); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 0.97rem; color: var(--text-2); }
.note b { color: var(--text); }
.case-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1100px) {
    .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chip-a { left: -1rem; }
    .chip-b { right: -0.75rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        padding: 0.75rem 1rem 1.25rem;
        background: var(--ink);
        border-bottom: 1px solid var(--line-dark);
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu > li > a, .nav-drop-btn { width: 100%; justify-content: space-between; padding: 0.85rem 0.75rem; font-size: 1rem; }
    .nav-drop-menu { position: static; min-width: 0; margin: 0.25rem 0 0.5rem; padding: 0.35rem; background: rgba(255, 255, 255, 0.04); color: var(--on-dark); box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
    .nav-drop.is-open .nav-drop-menu { display: block; }
    .nav-drop:hover .nav-drop-menu { opacity: 1; }
    .nav-drop-menu a:hover { background: rgba(255, 255, 255, 0.06); }
    .nav-drop-menu span { color: var(--on-dark-3); }
    .nav-menu .nav-cta { margin: 0.75rem 0 0; }
    .nav-menu .nav-cta .btn { width: 100%; justify-content: center; }

    .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; padding: 0 1.25rem; }
    .chip-a { left: 0; }
    .chip-b { right: 0; }
    .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .proof-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .proof-item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }

    .svc-grid, .case-grid, .mini-cases, .deliver-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step:not(:last-child)::after { display: none; }
    .about-grid, .faq-grid, .split, .page-hero-split, .case-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .faq-grid .section-head, .case-aside { position: static; }
    .cta-band { grid-template-columns: 1fr; padding: 2.5rem 2rem; gap: 2rem; }
    .stat-row { grid-template-columns: 1fr; }

    /* comparison becomes one card per criterion, Loucoud answer first */
    .compare-wrap { border: 0; background: none; border-radius: 0; overflow: visible; }
    .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
    .compare thead { display: none; }
    .compare tbody { display: grid; gap: 0.9rem; }
    .compare tr { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
    .compare tbody th { width: 100%; padding: 1rem 1.15rem 0.6rem; border: 0; font-family: var(--font-head); font-size: 1.02rem; }
    .compare td { width: 100%; padding: 0.55rem 1.15rem; border: 0; font-size: 0.92rem; }
    .compare td::after { content: none; }
    .compare td[data-label]::before { content: attr(data-label); display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.1rem; }
    .compare td.me { order: -1; margin: 0 0.6rem 0.4rem; width: auto; padding: 0.75rem 0.85rem; border-radius: 10px; }
    .compare tbody th { order: -2; }
    .compare td.me::before { content: "Loucoud"; display: block; width: auto; height: auto; margin: 0 0 0.15rem; background: none; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); }
    .compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
    .compare td[data-label="Freelancer"] { padding-bottom: 1rem; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 1rem; }
    .section { padding: 4.5rem 0; }
    .section-sm { padding: 3.25rem 0; }
    .section-head { margin-bottom: 2.25rem; }
    .hero h1 { font-size: 2.35rem; }
    .hero-lead { font-size: 1.08rem; }
    .hero-actions .btn { width: 100%; }
    .hero-visual { padding: 0; }
    .chip-stat { min-width: 0; padding: 0.7rem 0.85rem; }
    .chip-stat b { font-size: 1.1rem; }
    .chip-a { top: 5%; left: 0.6rem; }
    .chip-b { bottom: 22%; right: 0.6rem; }
    .proof-item { padding: 1.3rem 0.9rem; }
    .proof-item:nth-child(odd) { padding-left: 0; }
    .proof-item b { font-size: 1.3rem; }
    .pain-grid { grid-template-columns: 1fr; }
    .svc { padding: 1.75rem 1.4rem; }
    .svc-foot { flex-direction: column; align-items: flex-start; }
    .case { padding: 1.5rem; }
    .ba { grid-template-columns: 1fr; }
    .quote { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem; }
    .about-photos { height: 420px; }
    .facts { grid-template-columns: 1fr; }
    .addon, .callout { grid-template-columns: 1fr; display: grid; }
    .cta-band { padding: 2rem 1.4rem; border-radius: 20px; }
    .cta-side .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .page-hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ===================================================================
   Blog
   =================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.post-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.83rem; color: var(--text-3); }
.post-card h2, .post-card h3 { margin-top: 0.9rem; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.25; }
.post-card p { margin-top: 0.7rem; font-size: 0.96rem; color: var(--text-2); flex: 1; }
.post-card .link-arrow { margin-top: 1.25rem; }
.post-empty { padding: 1.75rem; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--text-3); font-size: 0.95rem; display: flex; align-items: center; }

.topic-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.article-hero .page-hero-inner { padding-bottom: 3.5rem; }
.article-hero h1 { max-width: 46rem; font-size: clamp(2rem, 4vw, 3.1rem); }
.article-byline { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.75rem; font-size: 0.92rem; color: var(--on-dark-2); }
.article-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.article-byline b { display: block; color: var(--on-dark); font-family: var(--font-head); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; }
.prose { max-width: 44rem; font-size: 1.08rem; line-height: 1.75; color: #1f2937; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; font-size: 1.65rem; line-height: 1.2; color: var(--text); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.prose h3 { margin-top: 1.8rem; font-size: 1.2rem; color: var(--text); }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--accent-text); }
.prose strong { color: var(--text); }
.prose .lede { font-size: 1.2rem; color: var(--text-2); }
.prose blockquote, .prose .tip { padding: 1.1rem 1.3rem; border-left: 3px solid var(--accent); background: var(--bg-warm); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 1rem; }
.prose .tip strong { display: block; margin-bottom: 0.2rem; }

.toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); padding: 1.5rem; border-radius: var(--r-lg); background: var(--bg-soft); }
.toc h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.toc ol { margin-top: 0.9rem; display: grid; gap: 0.55rem; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.6rem 1fr; font-size: 0.9rem; line-height: 1.4; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--accent-text); font-size: 0.8rem; padding-top: 0.1rem; }
.toc a:hover { color: var(--accent-text); }
.toc .btn { width: 100%; margin-top: 1.4rem; }

.author-box { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; margin-top: 3rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-box b { font-family: var(--font-head); font-size: 1.05rem; }
.author-box p { margin-top: 0.35rem; font-size: 0.95rem; color: var(--text-2); }
.author-box .about-links { margin-top: 0.75rem; }

@media (max-width: 960px) {
    .post-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .toc { position: static; order: -1; }
}
@media (max-width: 640px) {
    .prose { font-size: 1.02rem; }
    .author-box { grid-template-columns: 1fr; }
}

/* ===================================================================
   Home compacta
   =================================================================== */
.svc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.svc-compact { padding: 1.6rem 1.5rem 1.5rem; }
.svc-compact h3 { margin-top: 1rem; font-size: 1.2rem; letter-spacing: -0.015em; }
.svc-compact .svc-for { font-size: 0.95rem; flex: 1; }
.svc-compact .link-arrow { margin-top: 1.25rem; font-size: 0.92rem; }
.svc-compact .svc-icon { width: 44px; height: 44px; border-radius: 12px; }
.svc-compact .svc-icon svg { width: 22px; height: 22px; }
.svc-pain { display: block; margin-bottom: 1rem; font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: var(--accent-text); }
.svc-featured .svc-pain { color: var(--accent-on-dark); }

.ia-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ia-item { padding: 1.75rem; border-radius: var(--r-lg); background: var(--ink-800); border: 1px solid var(--line-dark); }
.ia-item .svc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--ink); }
.ia-item .svc-icon svg { width: 22px; height: 22px; }
.ia-item h3 { margin-top: 1.1rem; font-size: 1.2rem; letter-spacing: -0.015em; color: var(--on-dark); }
.ia-item p { margin-top: 0.55rem; font-size: 0.95rem; color: var(--on-dark-2); }
.ia-note { max-width: 40rem; font-size: 1rem; color: var(--on-dark-2); }
#ia .section-foot { justify-content: space-between; }

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.why-item h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.why-item p { margin-top: 0.35rem; font-size: 0.95rem; color: var(--text-2); }

.steps-compact .step { padding: 1.6rem 1.5rem; }
.steps-compact .step h3 { margin-top: 1rem; }

.about-simple { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.about-simple img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 30% 40%; border-radius: var(--r-lg); }
.about-simple .lead { max-width: 36rem; }

@media (max-width: 1100px) {
    .svc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .ia-grid, .why-grid { grid-template-columns: 1fr; }
    .about-simple { grid-template-columns: 1fr; gap: 2rem; }
    .about-simple img { max-width: 480px; }
}
@media (max-width: 640px) {
    .svc-grid-4 { grid-template-columns: 1fr; }
}

/* IA cards with bullets (home) */
.ia-item { display: flex; flex-direction: column; }
.ia-item .checks { margin-top: 1.2rem; }
.ia-item .checks li { font-size: 0.93rem; color: var(--on-dark-2); }
.ia-item .checks li::before { background-color: rgba(255, 176, 32, 0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffc46b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }

/* Service cards with softer bullets (home-3) */
.svc-soft .checks li { color: var(--text-2); }
.svc-soft .svc-featured .checks li { color: var(--on-dark-2); }
.svc-soft .svc h3 + .checks { margin-top: 1.1rem; }

.faq details p a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
