/* webfront/css/components/sections.css — shared section components for NATIVE public pages.
 *
 * Loaded automatically by webfront/page.html on every page registered in NATIVE_PAGES
 * (pages.json "native"), together with js/components/sections.js. Page stylesheets
 * (css/pages/<alias>.css) only add page-specific layout on top of these blocks.
 *
 *   .wf-wrap / .wf-section / .wf-head (.wf-kicker + .wf-title + .wf-lead)   section rhythm
 *   .wf-btn (.wf-btn--ghost) / .wf-link (.wf-link--static)                  actions
 *   .wf-steps > .wf-step (.wf-step__num)                                     connected steps
 *   .wf-split (.wf-split__media / __label / __body)                          image + story card
 *   .wf-grid > .wf-card (--wide, __icon, __index) + .wf-chips                feature cards
 *   .wf-guides > .wf-guide (__type, __title)                                 link cards
 *   .wf-faq (__intro, __list, __item, __icon, __answer)                      native <details>
 *   .wf-trust (__number, __plus) / .wf-review (__rating, __stars, ...)       proof blocks
 *   .wf-reveal                                                               entry motion
 *
 * Palette: --wf-* maps onto the portal themes (body.theme-black / -dark / -light). Motion only
 * moves content; nothing is hidden waiting for JavaScript; prefers-reduced-motion disables it.
 */
.ss-public--native {
    --wf-bg: #08090b; --wf-panel: #111216; --wf-panel-2: #17191e; --wf-fg: #f4f4f5; --wf-muted: #b0b2ba;
    --wf-border: #292b31; --wf-red: #e51e3d; --wf-red-bright: #ff405a; --wf-glow: rgba(229, 30, 61, .11);
    --wf-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.ss-public--native.theme-dark {
    --wf-bg: #0a0f1a; --wf-panel: #111827; --wf-panel-2: #182236; --wf-fg: #f4f7fb; --wf-muted: #b3bccb;
    --wf-border: #263149; --wf-glow: rgba(229, 30, 61, .12);
}
.ss-public--native.theme-light {
    --wf-bg: #f4f5f7; --wf-panel: #ffffff; --wf-panel-2: #eef0f3; --wf-fg: #14161c; --wf-muted: #4f5561;
    --wf-border: #d6d9df; --wf-red: #c8102e; --wf-red-bright: #c8102e; --wf-glow: rgba(200, 16, 46, .06);
    --wf-shadow: 0 18px 40px rgba(20, 30, 50, .10);
}

/* ---------------- native page base ---------------- */
.ss-native { display: block; padding: 0; overflow-x: clip; background: var(--wf-bg); color: var(--wf-fg);
    font-family: var(--cp-font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.ss-native:focus { outline: none; }
.ss-native :is(h1, h2, h3, h4, h5, h6) { font-family: var(--cp-font); }
.ss-native p { margin: 0 0 1rem; }
.ss-native a { color: inherit; }
.ss-native svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round; }
.ss-native :is(a, button, summary):focus-visible { outline: 3px solid var(--wf-red-bright); outline-offset: 4px; border-radius: 4px; }
.wf-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ---------------- section rhythm ---------------- */
.wf-wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.wf-section { padding-block: 76px; border-top: 1px solid var(--wf-border); }
.wf-head { margin-bottom: 38px; }
.wf-kicker { display: block; margin-bottom: 16px; color: var(--wf-red-bright); font-size: 11px; font-weight: 800;
    letter-spacing: .19em; text-transform: uppercase; }
.wf-title, .wf-head h2 { margin: 0; max-width: 900px; color: var(--wf-fg); font-size: clamp(28px, 3.3vw, 44px); font-weight: 900;
    line-height: 1.12; letter-spacing: -.035em; text-transform: uppercase; }
.ss-native .wf-lead { max-width: 64ch; margin: 17px 0 0; color: var(--wf-muted); font-size: 16px; }

/* ---------------- actions ---------------- */
.wf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 13px 24px;
    border: 1px solid transparent; border-radius: 8px; background: var(--cp-btn-bg, var(--wf-red)); color: #fff;
    font-size: 14px; font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.ss-native a.wf-btn { color: #fff; }
.wf-btn:hover { background: var(--cp-btn-bg-hover, var(--wf-red-bright)); transform: translateY(-2px); }
.ss-native a.wf-btn--ghost { background: transparent; border-color: var(--wf-border); color: var(--wf-fg); }
.ss-native a.wf-btn--ghost:hover { background: var(--wf-panel-2); border-color: var(--wf-red); }
.wf-link { display: inline-flex; align-items: center; gap: 14px; min-height: 40px; padding: 6px 0; color: var(--wf-fg);
    font-size: 13px; font-weight: 700; text-decoration: none; }
.wf-link svg { width: 18px; height: 18px; color: var(--wf-red-bright); transition: transform .2s ease; }
.wf-link:hover svg { transform: translateX(5px); }
.wf-link--static { color: var(--wf-muted); cursor: default; }

/* ---------------- connected steps ---------------- */
.wf-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin: 0; padding: 0; list-style: none; }
.wf-steps::before { content: ""; position: absolute; left: 26px; right: 26px; top: 25px; height: 1px;
    background: linear-gradient(90deg, var(--wf-red), color-mix(in srgb, var(--wf-red) 25%, var(--wf-border))); transform-origin: left; }
.wf-steps.is-inview::before { animation: wf-line .9s ease-out both; }
.wf-step { position: relative; }
.wf-step__num { position: relative; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    margin-bottom: 28px; border: 1px solid var(--wf-red); border-radius: 50%; background: var(--wf-bg);
    box-shadow: 0 0 0 10px var(--wf-bg); color: var(--wf-red-bright); font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.wf-step h3 { margin: 0 0 14px; color: var(--wf-fg); font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.wf-step p { max-width: 36ch; min-height: 76px; color: var(--wf-muted); font-size: 15px; line-height: 1.8; }

/* ---------------- image / story split ---------------- */
.wf-split { display: grid; grid-template-columns: 1.12fr 1fr; overflow: hidden; border: 1px solid var(--wf-border);
    border-radius: 14px; background: var(--wf-panel); box-shadow: var(--wf-shadow); }
.wf-split__media { position: relative; min-height: 380px; overflow: hidden; background: #111; }
.wf-split__media > a { display: block; height: 100%; }
.wf-split__media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform .6s ease; }
.wf-split__media:hover img { transform: scale(1.03); }
.wf-split__label { position: absolute; left: 26px; bottom: 24px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 4px; background: rgba(8, 9, 11, .85); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; pointer-events: none; }
.wf-split__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 44px 40px; }
.wf-split__body h3 { margin: 0 0 22px; color: var(--wf-fg); font-size: 31px; font-weight: 900; letter-spacing: -.03em; line-height: 1.15; }
.wf-split__body h3 span { color: var(--wf-red-bright); }
.wf-split__body p { color: var(--wf-muted); font-size: 15px; line-height: 1.95; }
.wf-split__body p a { color: var(--wf-fg); font-weight: 600; text-decoration: none; }
.wf-split__body p a:hover { color: var(--wf-red-bright); }
.wf-split__body p a[data-_] { text-decoration: underline; text-underline-offset: 4px; }
.wf-split__body .wf-btn { margin-top: 10px; }

/* ---------------- feature cards ---------------- */
.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wf-card { position: relative; min-height: 250px; padding: 30px; border: 1px solid var(--wf-border); border-radius: 12px;
    background: linear-gradient(145deg, var(--wf-panel-2), var(--wf-panel)); transition: border-color .2s ease, transform .2s ease; }
.wf-card:hover { border-color: var(--wf-red); transform: translateY(-3px); }
.wf-card__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 24px;
    border: 1px solid color-mix(in srgb, var(--wf-red) 32%, var(--wf-border)); border-radius: 10px; background: var(--wf-glow);
    color: var(--wf-red-bright); }
.wf-card__index { position: absolute; top: 30px; right: 26px; color: var(--wf-muted); font-size: 11px; font-weight: 700;
    letter-spacing: .1em; opacity: .6; }
.wf-card h3 { max-width: 25ch; margin: 0 0 14px; color: var(--wf-fg); font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.wf-card p { max-width: 72ch; margin: 0; color: var(--wf-muted); font-size: 14.5px; line-height: 1.85; }
.wf-card .wf-link { margin-top: 18px; }
.wf-card--wide { grid-column: span 2; }
.wf-card--wide h3 { font-size: 28px; }
.wf-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.wf-chips li { margin: 0; padding: 7px 11px; border: 1px solid var(--wf-border); border-radius: 5px; color: var(--wf-fg);
    font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

/* ---------------- link cards (guides) ----------------
 * Legacy pattern kept for SEO: an EMPTY overlay <a class="wb-layout-link" href title></a> makes the
 * whole card clickable while the heading stays outside the link (same link text as the legacy page). */
.wf-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.wf-guide { position: relative; min-height: 180px; padding: 28px; border: 1px solid var(--wf-border); border-radius: 10px;
    background: var(--wf-panel); transition: border-color .2s ease, transform .2s ease; }
.wf-guide:hover, .wf-guide:focus-within { border-color: var(--wf-red); transform: translateY(-3px); }
.wf-guide .wb-layout-link { position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
.wf-guide__type { color: var(--wf-muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wf-guide__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; min-height: 80px; margin-top: 24px; }
.wf-guide h3 { max-width: 19ch; margin: 0; color: var(--wf-fg); font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.wf-guide svg { color: var(--wf-red-bright); transition: transform .2s ease; }
.wf-guide:hover svg { transform: translateX(5px); }

/* ---------------- FAQ (native details: works without JavaScript) ---------------- */
.wf-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.wf-faq .wf-head { margin-bottom: 28px; }
.wf-faq__list { border-top: 1px solid var(--wf-border); }
.wf-faq__item { border-bottom: 1px solid var(--wf-border); }
.wf-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 56px; padding: 20px 0;
    color: var(--wf-fg); font-size: 15px; font-weight: 700; line-height: 1.5; list-style: none; cursor: pointer; }
.wf-faq__item summary::-webkit-details-marker { display: none; }
.wf-faq__item summary:hover { color: var(--wf-red-bright); }
.wf-faq__icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; transition: transform .2s ease; }
.wf-faq__icon::before, .wf-faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
    border-radius: 2px; background: var(--wf-red-bright); }
.wf-faq__icon::after { transform: rotate(90deg); }
.wf-faq__item[open] .wf-faq__icon { transform: rotate(45deg); }
.wf-faq__answer { padding-bottom: 18px; color: var(--wf-muted); font-size: 14.5px; line-height: 1.9; }
.wf-faq__answer p { max-width: 70ch; }
.wf-faq__answer a { color: var(--wf-fg); text-decoration: underline; text-underline-offset: 3px; }
.wf-faq__answer ul { margin: 0 0 6px; padding-left: 20px; columns: 2; column-gap: 26px; }
.wf-faq__answer li { margin: 0 0 4px; break-inside: avoid; }

/* ---------------- proof: counter + reviews ---------------- */
.wf-trust { padding-block: 66px; text-align: center; border-top: 1px solid var(--wf-border);
    background: radial-gradient(ellipse at 50% 100%, var(--wf-glow), transparent 65%); }
.wf-trust .wf-kicker { color: var(--wf-muted); }
.wf-trust__number { min-height: 1.2em; color: var(--wf-fg); font-size: clamp(72px, 10vw, 132px); font-weight: 900; line-height: 1.15;
    letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.wf-trust__plus { color: var(--wf-red); font-weight: 600; }
.wf-trust p { margin: 12px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wf-review { display: flex; align-items: center; gap: 60px; padding: 30px 36px; border: 1px solid var(--wf-border);
    border-radius: 12px; background: var(--wf-panel); }
.wf-review__rating { position: relative; display: flex; align-items: center; gap: 18px; }
.wf-review__rating .wb-layout-link { position: absolute; inset: -8px; z-index: 1; border-radius: 8px; }
.wf-review__rating p { margin: 0; color: var(--wf-fg); font-size: 54px; font-weight: 900; letter-spacing: -.06em; line-height: 1.2; }
.wf-review__stars { color: #edb854; font-size: 22px; letter-spacing: 2px; }
.wf-review__stars span { opacity: .5; }
.wf-review__link { margin-left: auto; }
.wf-review__link p { margin: 0; font-size: 16px; font-weight: 700; }
.wf-review__link a { text-decoration: none; }
.wf-review__link a:hover { color: var(--wf-red-bright); text-decoration: underline; }
.wf-review__hint { display: flex; align-items: center; gap: 14px; margin-top: 6px; color: var(--wf-muted); font-size: 12px; }
.wf-review__hint svg { width: 16px; height: 16px; }

/* ---------------- entry motion (position only; content is never hidden) ---------------- */
.wf-reveal.is-inview { animation: wf-enter .65s cubic-bezier(.2, .7, .2, 1) both; }
.wf-step:nth-child(2).is-inview { animation-delay: .08s; }
.wf-step:nth-child(3).is-inview { animation-delay: .16s; }
@keyframes wf-enter { from { transform: translateY(16px); } to { transform: translateY(0); } }
@keyframes wf-line { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
@keyframes wf-line-v { from { transform: scaleY(.05); } to { transform: scaleY(1); } }

/* ---------------- responsive ---------------- */
@media (max-width: 1150px) {
    .wf-wrap { width: calc(100% - 64px); }
    .wf-split__body { padding: 32px; }
    .wf-faq { gap: 45px; }
    .wf-card { padding: 26px; }
}
@media (max-width: 900px) {
    .wf-section { padding-block: 58px; }
    .wf-steps { gap: 26px; }
    .wf-step h3 { font-size: 18px; }
    .wf-step p { font-size: 14px; min-height: 110px; }
    .wf-split__media { min-height: 340px; }
    .wf-grid { grid-template-columns: repeat(2, 1fr); }
    .wf-card--wide { grid-column: span 1; }
    .wf-card--wide h3 { font-size: 21px; }
    .wf-guide { padding: 22px; }
    .wf-guide h3 { font-size: 18px; }
    .wf-faq { grid-template-columns: 1fr; gap: 10px; }
    .wf-faq .wf-title br { display: none; }
    .wf-faq__intro .wf-btn { margin-bottom: 22px; }
    .wf-review { gap: 26px; }
}
@media (max-width: 700px) {
    .wf-split { grid-template-columns: 1fr; }
    .wf-split__media { min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
    .ss-native { font-size: 15px; }
    .wf-wrap { width: calc(100% - 40px); }
    .wf-section { padding-block: 46px; }
    .wf-head { margin-bottom: 28px; }
    .wf-title, .wf-head h2 { font-size: 28px; line-height: 1.18; }
    .ss-native .wf-lead { font-size: 15px; line-height: 1.75; }
    .wf-kicker { margin-bottom: 12px; font-size: 10px; letter-spacing: .14em; }
    .wf-steps { display: block; }
    .wf-steps::before { top: 24px; bottom: 60px; left: 24px; right: auto; width: 1px; height: auto;
        background: linear-gradient(180deg, var(--wf-red), color-mix(in srgb, var(--wf-red) 25%, var(--wf-border))); transform-origin: top; }
    .wf-steps.is-inview::before { animation-name: wf-line-v; }
    .wf-step { min-height: 0; margin-bottom: 26px; padding-left: 74px; }
    .wf-step:last-child { margin-bottom: 0; }
    .wf-step__num { position: absolute; left: 0; top: 0; width: 48px; height: 48px; box-shadow: 0 0 0 7px var(--wf-bg); font-size: 12px; }
    .wf-step h3 { margin-top: 10px; font-size: 19px; }
    .wf-step p { min-height: 0; max-width: none; margin-bottom: 4px; font-size: 14px; }
    .wf-split__body { padding: 26px 22px; }
    .wf-split__body h3 { font-size: 25px; }
    .wf-split__body p { font-size: 14.5px; line-height: 1.9; }
    .wf-split__label { left: 16px; bottom: 16px; font-size: 9px; }
    .wf-grid { display: block; }
    .wf-card { min-height: 0; margin-bottom: 13px; padding: 24px; }
    .wf-card:last-child { margin-bottom: 0; }
    .wf-card__icon { margin-bottom: 20px; }
    .wf-card h3, .wf-card--wide h3 { max-width: none; font-size: 22px; }
    .wf-card p { font-size: 14px; }
    .wf-guides { display: block; }
    .wf-guide { min-height: 0; margin-bottom: 13px; }
    .wf-guide__title { min-height: 0; margin-top: 18px; }
    .wf-guide h3 { max-width: none; font-size: 20px; }
    .wf-faq { display: block; }
    .wf-faq__item summary { padding: 18px 0; font-size: 14px; }
    .wf-faq__answer { font-size: 14px; }
    .wf-faq__answer ul { columns: 1; }
    .wf-trust { padding-block: 44px; }
    .wf-trust__number { font-size: 76px; }
    .wf-trust p { font-size: 11px; letter-spacing: .08em; }
    .wf-review { display: block; padding: 24px; }
    .wf-review__rating p { font-size: 48px; }
    .wf-review__link { margin: 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .wf-reveal.is-inview, .wf-steps.is-inview::before { animation: none !important; }
    .wf-card, .wf-guide, .wf-btn, .wf-link svg, .wf-guide svg, .wf-split__media img, .wf-faq__icon { transition: none !important; }
    .wf-card:hover, .wf-guide:hover, .wf-btn:hover { transform: none; }
}
