/* ==================================================================
   Documentation utilisateur d'Oripen (docs.oripen.com)
   Charte d'Oripen : fond noir pur, gris neutres, accent menthe,
   rayons généreux. Aucun contour coloré au focus (règle d'Alain).
=================================================================== */
:root,
[data-theme='dark'] {
    --bg: #050506;
    --bg-2: #0a0a0c;
    --surface: #0e0e10;
    --surface-2: #151518;
    --surface-3: #1d1d21;
    --border: #1f1f24;
    --border-strong: #2e2e35;
    --fg: #f1f1f3;
    --fg-2: #a6a6ae;
    --fg-3: #6e6e77;
    --accent: #62c9a3;
    --accent-2: #7fa3f5;
    --accent-3: #b394ec;
    --accent-soft: rgba(98, 201, 163, 0.12);
    --accent-line: rgba(98, 201, 163, 0.4);
    --warn: #e2c25e;
    --err: #ee706d;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    --glass: rgba(5, 5, 6, 0.72);
    --grid: rgba(255, 255, 255, 0.035);
    color-scheme: dark;
}
[data-theme='light'] {
    --bg: #ffffff;
    --bg-2: #fafafb;
    --surface: #ffffff;
    --surface-2: #f4f4f6;
    --surface-3: #ececef;
    --border: #e8e8ec;
    --border-strong: #d6d6dc;
    --fg: #0c0c0e;
    --fg-2: #55555e;
    --fg-3: #8a8a93;
    --accent: #1f9e74;
    --accent-2: #3d6be0;
    --accent-3: #8257d8;
    --accent-soft: rgba(31, 158, 116, 0.1);
    --accent-line: rgba(31, 158, 116, 0.35);
    --shadow: 0 24px 60px rgba(20, 20, 30, 0.14);
    --glass: rgba(255, 255, 255, 0.78);
    --grid: rgba(0, 0, 0, 0.04);
    color-scheme: light;
}

* { box-sizing: border-box; }
*:focus, *:focus-visible { outline: none; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 15.5px/1.7 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.ic { width: 18px; height: 18px; flex: none; }
.ic-inline { width: 1em; height: 1em; vertical-align: -0.14em; margin: 0 1px; color: var(--accent); }
kbd {
    font: 600 11px/1 Inter, sans-serif;
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 3px 6px;
    color: var(--fg-2);
    background: var(--surface-2);
    white-space: nowrap;
}
[data-theme='dark'] .only-light, [data-theme='light'] .only-dark { display: none !important; }
.only-mobile { display: none !important; }

/* Thin scrollbars, same as the application (resources/css/mockup/base.css): no arrows, no wide track. */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-3); }
.side::-webkit-scrollbar, .toc::-webkit-scrollbar, .search-results::-webkit-scrollbar { width: 3px; }
.side::-webkit-scrollbar-thumb, .toc::-webkit-scrollbar-thumb, .search-results::-webkit-scrollbar-thumb { background: transparent; }
.side:hover::-webkit-scrollbar-thumb, .toc:hover::-webkit-scrollbar-thumb, .search-results:hover::-webkit-scrollbar-thumb { background: var(--border-strong); }
@supports not selector(::-webkit-scrollbar) {
    * { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
}

/* ---------------------------------------------------------------- header */
.top {
    position: sticky; top: 0; z-index: 40;
    background: var(--glass);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-bottom: 1px solid var(--border);
}
.top-row { display: grid; grid-template-columns: 1fr minmax(280px, 440px) 1fr; align-items: center; gap: 20px; height: 64px; padding: 0 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-img { height: 26px; width: auto; display: block; }
.badge { font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 6px; background: var(--surface-3); color: var(--fg-2); }
.search-btn {
    display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px;
    border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface);
    color: var(--fg-3); transition: border-color .2s, background .2s;
}
.search-btn:hover { border-color: var(--fg-3); background: var(--surface-2); }
.search-btn span { flex: 1; text-align: left; font-size: 14px; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--fg-2); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--fg); }
.cta { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--fg); color: var(--bg); transition: transform .2s, opacity .2s; }
.cta:hover { opacity: .9; }
.cta .ic { width: 16px; height: 16px; }
.tabs { display: flex; gap: 2px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 12px; font-size: 14px; font-weight: 500; color: var(--fg-2); white-space: nowrap; transition: color .2s; }
.tab .ic { width: 16px; height: 16px; opacity: .8; }
.tab:hover { color: var(--fg); }
.tab.on { color: var(--fg); }
.tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.tab.on .ic { color: var(--accent); opacity: 1; }

/* ---------------------------------------------------------------- home */
.home-main { overflow: hidden; }
.hero { position: relative; padding: 110px 28px 90px; border-bottom: 1px solid var(--border); isolation: isolate; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(800px 380px at 78% 30%, var(--accent-soft), transparent 70%),
        radial-gradient(600px 300px at 12% 90%, rgba(127, 163, 245, .08), transparent 70%),
        linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px;
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Hero: the AI tools scattered around, every dashed line converging on the Oripen icon. */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-net .ol { fill: none; stroke: var(--accent-line); stroke-width: 1.2; stroke-dasharray: 6 8; opacity: .7; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.hero-net .pulse { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
/* Tiles are placed by their centre (translate), like docs.wajub.com: two on the left edge,
   a cluster at the top right, the Oripen icon lower right where every line converges. */
.float {
    position: absolute; width: 58px; height: 58px; display: grid; place-items: center; translate: -50% -50%;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong);
    box-shadow: var(--shadow); animation: bob 7s ease-in-out infinite;
}
.float img { width: 30px; height: 30px; object-fit: contain; }
.float.hub { width: 96px; height: 96px; border-radius: 26px; left: 73%; top: 64%; animation: hub 4s ease-in-out infinite;
    border-color: var(--accent-line); box-shadow: 0 0 0 8px var(--accent-soft), 0 0 70px var(--accent-line), var(--shadow); }
.float.hub img { width: 58px; height: 58px; }
@keyframes hub { 50% { box-shadow: 0 0 0 14px var(--accent-soft), 0 0 100px var(--accent-line), var(--shadow); } }
@keyframes bob { 50% { transform: translateY(-6px); } }
.f0 { left: 3%; top: 20%; } .f1 { left: 3%; top: 53%; animation-delay: -1s; }
.f2 { left: 57.5%; top: 11%; animation-delay: -2s; } .f3 { left: 63%; top: 34%; animation-delay: -3s; }
.f4 { left: 81.5%; top: 10%; animation-delay: -4s; } .f5 { left: 83%; top: 30%; animation-delay: -5s; }
.f6 { left: 91.5%; top: 21%; animation-delay: -2.5s; } .f7 { left: 98.5%; top: 14%; animation-delay: -1.5s; }
.f8 { left: 90%; top: 80%; animation-delay: -3.5s; }
[data-theme='dark'] .float img[src*='openai'], [data-theme='dark'] .float img[src*='grok'], [data-theme='dark'] .float img[src*='runway'],
[data-theme='dark'] .float img[src*='elevenlabs'], [data-theme='dark'] .float img[src*='ideogram'], [data-theme='dark'] .float img[src*='bfl'],
[data-theme='dark'] .tool img[src*='openai'], [data-theme='dark'] .tool img[src*='grok'], [data-theme='dark'] .tool img[src*='runway'],
[data-theme='dark'] .tool img[src*='elevenlabs'], [data-theme='dark'] .tool img[src*='ideogram'], [data-theme='dark'] .tool img[src*='bfl'],
[data-theme='dark'] .tool img[src*='tiktok'], [data-theme='dark'] .tool img[src*='suno'], [data-theme='dark'] .tool img[src*='midjourney'] { filter: invert(1); }
[data-theme='dark'] .art img[src*='openai'], [data-theme='dark'] .art img[src*='elevenlabs'], [data-theme='dark'] .art img[src*='tiktok'] { background: #fff; border-color: #fff; }
.hero-in { max-width: 1180px; margin: 0 auto; }
.hero-in > * { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.eyebrow .ic { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 22px 0 18px; font-weight: 800;
    background: linear-gradient(180deg, var(--fg) 30%, var(--fg-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: var(--fg-2); margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; background: var(--accent); color: #04140d; transition: transform .2s, box-shadow .2s; box-shadow: 0 10px 30px var(--accent-soft); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px var(--accent-line); }
.btn.ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--border-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn kbd { margin-left: 4px; }

.band { padding: 80px 28px 10px; }
.band:last-child { padding-bottom: 100px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.band h2 { font-size: 30px; letter-spacing: -0.025em; margin: 0 0 8px; font-weight: 750; }
.band .sub { color: var(--fg-2); margin: 0 0 26px; max-width: 640px; }
.band h2 + .qgrid, .band h2 + .ggrid, .band h2 + .how { margin-top: 28px; }
.qgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qcard {
    position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border);
    transition: border-color .25s, box-shadow .25s; overflow: hidden;
}
.qcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(300px 120px at 0 0, var(--accent-soft), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.qcard:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.qcard:hover::after { opacity: 1; }
.qic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.qcard b { font-size: 16px; }
.qcard > span:not(.qic) { font-size: 13.5px; color: var(--fg-2); line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qcard i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.qcard i .ic { width: 14px; height: 14px; }

.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: 6px 0; }
.track { display: flex; gap: 12px; width: max-content; animation: scroll 55s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.tool { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); white-space: nowrap; }
.tool img { width: 26px; height: 26px; object-fit: contain; }
.tool b { font-size: 14px; font-weight: 600; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hcard { position: relative; padding: 0 0 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.hcard b, .hcard p { display: block; padding: 0 22px; }
.hcard b { font-size: 17px; margin-top: 14px; }
.hcard p { color: var(--fg-2); font-size: 14px; margin: 6px 0 0; }
.hn { position: absolute; top: 14px; left: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--accent); color: #04140d; }
.art { position: relative; height: 170px; border-bottom: 1px solid var(--border); background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 22px 22px, var(--bg-2);
    display: flex; align-items: center; justify-content: center; gap: 14px; }
.art img { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); box-sizing: content-box; }
.art1 .k { position: absolute; top: 30px; font: 600 13px/1 ui-monospace, monospace; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--fg-2); }
.art1 .ok { position: absolute; top: 22px; right: 26%; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #04140d; }
.art1 .ok .ic { width: 14px; height: 14px; }
.art1 img { margin-top: 50px; }
.art2 { flex-wrap: wrap; align-content: center; padding: 0 30px; gap: 8px; }
.art2 .prompt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--accent); }
.art2 .prompt i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--fg-3), transparent); opacity: .5; }
.art2 .g { width: calc(25% - 6px); aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); opacity: .85; animation: pulse 3s ease-in-out infinite; }
.art2 .g:nth-child(3) { background: linear-gradient(135deg, var(--accent-3), var(--accent-2)); animation-delay: .4s; }
.art2 .g:nth-child(4) { background: linear-gradient(135deg, var(--warn), var(--err)); animation-delay: .8s; }
.art2 .g:nth-child(5) { background: linear-gradient(135deg, var(--accent-2), var(--accent)); animation-delay: 1.2s; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.96); } }
.art3 .send { position: absolute; top: 26px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.art3 img { margin-top: 46px; }

.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gcard { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color .25s; }
.gcard:hover { border-color: var(--border-strong); }
.ghead { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.ghead b { display: block; font-size: 16px; }
.ghead span:not(.gic) { display: block; font-size: 13px; color: var(--fg-2); line-height: 1.5; margin-top: 2px; }
.gic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.gcard ul { list-style: none; margin: 0; padding: 0; }
.gcard li a { display: flex; align-items: center; gap: 6px; padding: 5px 0; font-size: 14px; color: var(--fg-2); transition: color .2s; }
.gcard li a .ic { width: 14px; height: 14px; color: var(--fg-3); transition: color .2s; }
.gcard li a:hover { color: var(--fg); }
.gcard li a:hover .ic { color: var(--accent); }
.gmore { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------------------------------------------------------------- guide layout */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 240px; max-width: 1480px; margin: 0 auto; }
.side { position: sticky; top: 113px; height: calc(100vh - 113px); overflow-y: auto; padding: 24px 14px 40px 20px; border-right: 1px solid var(--border); }
.nav-group { margin-bottom: 2px; }
.nav-home { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 2px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.nav-home:hover { background: var(--surface-2); color: var(--fg); }
body.home .nav-home { color: var(--fg); } body.home .nav-home .ic { color: var(--accent); }
body.home .side { display: none; }
.nav-group summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--fg-2); cursor: pointer; transition: background .2s, color .2s; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: var(--surface-2); color: var(--fg); }
.nav-group summary.on { color: var(--fg); }
.nav-group summary.on > .ic:first-child { color: var(--accent); }
.nav-group summary span { flex: 1; }
.nav-group .chev { width: 15px; height: 15px; transition: transform .2s; color: var(--fg-3); }
.nav-group[open] .chev { transform: rotate(180deg); }
.nav-sub { display: flex; flex-direction: column; margin: 2px 0 8px 19px; padding-left: 12px; border-left: 1px solid var(--border); }
.nav-sub a { padding: 5px 10px; font-size: 13.5px; color: var(--fg-2); border-radius: 8px; position: relative; transition: color .2s, background .2s; }
.nav-sub a:hover { color: var(--fg); background: var(--surface-2); }
.nav-sub a.on { color: var(--accent); background: var(--accent-soft); }
.nav-sub a.on::before { content: ''; position: absolute; left: -13px; top: 6px; bottom: 6px; width: 2px; background: var(--accent); border-radius: 2px; }

.content { padding: 30px 56px 80px; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-3); margin-bottom: 26px; }
.crumbs .ic { width: 13px; height: 13px; }
.crumbs span { color: var(--fg); font-weight: 500; }
.crumbs a:hover { color: var(--fg); }
.page-head { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.page-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 18px; }
.page-ic .ic { width: 24px; height: 24px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 800; }
.lede { font-size: 17.5px; color: var(--fg-2); margin: 0 0 18px; max-width: 760px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--fg-2); padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.meta .ic { width: 14px; height: 14px; }

.prose { max-width: 860px; }
.prose > p, .task > p { color: var(--fg-2); }
.prose strong { color: var(--fg); font-weight: 650; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose code { font: 500 .88em ui-monospace, 'Cascadia Code', monospace; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.task { padding-top: 46px; }
.task + .task { border-top: 1px solid var(--border); margin-top: 40px; }
.task h2 { position: relative; font-size: 25px; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 750; }
.task h3 { font-size: 17px; margin: 26px 0 8px; }
.anchor { position: absolute; left: -26px; color: var(--fg-3); opacity: 0; transition: opacity .2s; font-weight: 500; }
.task h2:hover .anchor { opacity: 1; }
.prose ul { padding-left: 20px; color: var(--fg-2); }
.prose ul li { margin: 4px 0; }
.prose ul li::marker { color: var(--accent); }

.steps { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.steps li:hover { border-color: var(--border-strong); background: var(--surface-2); }
.steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 800; color: #06261a; background: #62c9a3; box-shadow: 0 0 0 3px rgba(98, 201, 163, .2); }
.steps li > div { padding-top: 2px; color: var(--fg-2); }
.steps li > div strong { color: var(--fg); }

.shot { margin: 22px 0 8px; }
.shot-zoom { position: relative; display: block; width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); background: var(--surface-2); cursor: zoom-in; }
.shot-zoom img { display: block; width: 100%; height: auto; }
.shot-hint { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transition: opacity .2s; backdrop-filter: blur(6px); }
.shot-zoom:hover .shot-hint { opacity: 1; }
.shot figcaption { font-size: 13px; color: var(--fg-3); text-align: center; margin-top: 10px; }
.shot-phone { max-width: 320px; margin-left: auto; margin-right: auto; }
.shot-phone .shot-zoom { border-radius: 28px; border-width: 6px; border-color: var(--surface-3); }

.callout { display: flex; gap: 12px; padding: 14px 16px; margin: 18px 0; border-radius: 14px; border: 1px solid; font-size: 14.5px; }
.callout > .ic { margin-top: 3px; }
.callout b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.callout p { margin: 0; color: var(--fg-2); }
.callout.tip { background: var(--accent-soft); border-color: var(--accent-line); } .callout.tip > .ic, .callout.tip b { color: var(--accent); }
.callout.warn { background: rgba(226, 194, 94, .1); border-color: rgba(226, 194, 94, .35); } .callout.warn > .ic, .callout.warn b { color: var(--warn); }
.callout.info { background: rgba(127, 163, 245, .1); border-color: rgba(127, 163, 245, .35); } .callout.info > .ic, .callout.info b { color: var(--accent-2); }
.callout.role { background: rgba(179, 148, 236, .1); border-color: rgba(179, 148, 236, .35); } .callout.role > .ic, .callout.role b { color: var(--accent-3); }

.table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; background: var(--surface-2); }
td { color: var(--fg-2); }
tr:last-child td { border-bottom: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); font-weight: 600; transition: border-color .2s, background .2s; }
.pager a:hover { border-color: var(--accent-line); background: var(--surface); }
.pager small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-3); font-weight: 500; }
.pager small .ic { width: 14px; height: 14px; }
.pager .next { text-align: right; align-items: flex-end; }

.toc { position: sticky; top: 113px; align-self: start; padding: 34px 20px 20px 8px; max-height: calc(100vh - 113px); overflow-y: auto; }
.toc h5 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 12px; }
.toc nav { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.toc nav a { display: flex; gap: 8px; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13px; color: var(--fg-2); line-height: 1.45; transition: color .2s, border-color .2s; }
.toc nav a span { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.toc nav a:hover { color: var(--fg); }
.toc nav a.on { color: var(--accent); border-left-color: var(--accent); }
.toc nav a.on span { color: var(--accent); }
.to-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--fg-3); }
.to-top .ic { width: 14px; height: 14px; }
.to-top:hover { color: var(--fg); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--border); background: var(--bg-2); padding: 64px 28px 0; }
.foot-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.foot-brand p { color: var(--fg-2); font-size: 14px; max-width: 340px; margin: 14px 0 18px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.foot h4 { font-size: 13px; margin: 6px 0 14px; }
.foot-grid > div:not(.foot-brand) { display: flex; flex-direction: column; }
.foot-grid > div a:not(.brand) { font-size: 14px; color: var(--fg-2); padding: 4px 0; transition: color .2s; }
.foot-grid > div a:not(.brand):hover { color: var(--fg); }
.foot-bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 22px 0 28px; border-top: 1px solid var(--border); }
.copy { font-size: 13px; color: var(--fg-3); flex: 1; }
.foot-other { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); }
.foot-other:hover { color: var(--fg); }
.flag { width: 20px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13.5px; font-weight: 600; transition: background .2s; }
.lang-btn:hover { background: var(--surface-2); }
.lang-btn .ic { width: 14px; height: 14px; color: var(--fg-3); }
.lang-menu { position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 190px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); display: none; }
.lang-switch.open .lang-menu { display: block; animation: pop .15s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
.lang-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; }
.lang-opt:hover { background: var(--surface-2); }
.lang-opt span { flex: 1; }
.lang-opt .ic { width: 15px; height: 15px; color: var(--accent); }

/* ---------------------------------------------------------------- search */
.search-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-modal[hidden] { display: none; }
.search-box { width: 100%; max-width: 640px; max-height: 76vh; display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); overflow: hidden; animation: pop .15s ease-out; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--border); color: var(--fg-3); }
.search-field input { flex: 1; height: 58px; border: 0; background: none; color: var(--fg); font: 500 16.5px Inter, sans-serif; }
.search-field input::-webkit-search-cancel-button { display: none; }
.esc { font-size: 11px; font-weight: 600; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--fg-3); }
.search-results { overflow-y: auto; padding: 8px; }
.search-empty { color: var(--fg-3); text-align: center; padding: 26px 10px; margin: 0; font-size: 14px; }
.sr-group { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding: 10px 10px 6px; }
.sr { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; }
.sr.on { background: var(--accent-soft); }
.sr-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.sr-ic .ic { width: 16px; height: 16px; }
.sr b { display: block; font-size: 14.5px; }
.sr small { display: block; font-size: 12.5px; color: var(--fg-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr mark { background: none; color: var(--accent); font-weight: 700; }
.search-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--fg-3); }
.search-foot span { display: inline-flex; align-items: center; gap: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow); animation: pop .2s ease-out; }
.lb-close { position: absolute; top: 16px; right: 16px; color: #fff; background: rgba(255, 255, 255, .1); }
.scrim { display: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
    .layout { grid-template-columns: 260px minmax(0, 1fr); }
    .toc { display: none; }
    .qgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .top-row { grid-template-columns: auto 1fr auto; padding: 0 16px; gap: 10px; }
    .search-btn { display: none; }
    .only-mobile { display: inline-grid !important; }
    .cta { display: none; }
    .tabs { padding: 0 8px; }
    .layout { display: block; }
    body.home .side { display: block; }
    .side { position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: min(320px, 86vw); z-index: 60; background: var(--bg); transform: translateX(-102%); transition: transform .25s ease; padding-top: 10px; box-shadow: var(--shadow); }
    .side-head { display: flex !important; align-items: center; justify-content: space-between; padding: 4px 4px 12px 10px; font-weight: 700; }
    body.nav-open .side { transform: none; }
    body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); }
    .content { padding: 22px 16px 60px; }
    .ggrid, .how { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
    .float { display: none; }
    .f4, .f5, .f6, .float.hub { display: grid; }
    .f4 { left: 72%; top: 9%; } .f5 { left: 92%; top: 12%; } .f6 { left: 84%; top: 30%; }
    .float.hub { left: 66%; top: 26%; width: 70px; height: 70px; border-radius: 20px; } .float.hub img { width: 42px; height: 42px; }
    .anchor { display: none; }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .hero { padding: 104px 16px 60px; }
    .f4, .f5, .f6 { width: 44px; height: 44px; border-radius: 13px; } .f4 img, .f5 img, .f6 img { width: 22px; height: 22px; }
    .f4 { left: 58%; top: 52px; } .f5 { left: 90%; top: 40px; } .f6 { left: 76%; top: 70px; }
    .float.hub { left: 36%; top: 52px; width: 58px; height: 58px; border-radius: 17px; } .float.hub img { width: 34px; height: 34px; }
    .hero-cta kbd { display: none; }
    .hero p { font-size: 16px; }
    .band { padding: 56px 16px 0; }
    .band h2 { font-size: 24px; }
    .qgrid, .ggrid, .how { grid-template-columns: 1fr; }
    .pager { grid-template-columns: 1fr; }
    .foot { padding: 44px 16px 0; }
    .foot-grid { gap: 26px; }
    .foot-bar { flex-wrap: wrap; gap: 12px; }
    .copy { order: 3; flex-basis: 100%; }
    .task h2 { font-size: 21px; }
    .steps li { padding: 12px; gap: 10px; }
    .shot-zoom { border-radius: 10px; }
    .hero-cta .btn { flex: 1; justify-content: center; }
    .search-modal { padding: 0; }
    .search-box { max-width: none; max-height: 100vh; height: 100%; border-radius: 0; }
    .search-foot { display: none; }
    .brand-img { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
