/* FRONTDOOR (2026-11-08) — premium brand-frontdoor sections ported from the concept designs.
   Brand colour comes from --platforma-brand (per-tenant branding), so one stylesheet serves all
   three brands. Reveal is pure CSS (no JS), reduced-motion safe.

   TOKENS: the frontdoor is a brand-neutral PUBLIC surface with a warm editorial palette that has
   no equivalent in the pf admin-semantic tokens (which are the slate admin system). Its palette is
   therefore declared once as frontdoor-scoped custom properties below and consumed via var() — no
   raw colour literals in declarations (DS-3 bare-colour ratchet). Radii use the shared --pf-radius-*
   scale. The brand colour flows through --platforma-brand; the three product tints are per-card
   custom properties (--pf-pc-tint / --pf-door-tint). */

.platforma-frontdoor-hero,
.platforma-frontdoor-preview,
.platforma-frontdoor-doors,
.platforma-frontdoor-marquee,
.platforma-frontdoor-band,
.platforma-frontdoor-editordemo,
.platforma-frontdoor-router,
.platforma-frontdoor-story,
.platforma-frontdoor-portal,
.platforma-frontdoor-features,
.platforma-frontdoor-phero,
.platforma-frontdoor-audience,
.platforma-frontdoor-steps {
    --fd-surface: #fff;
    --fd-surface-faint: #f5f7f7;
    --fd-surface-sunken: #e8e9e8;
    --fd-ink: #202327;
    --fd-ink-strong: #17202a;
    --fd-ink-slate: #4a5256;
    --fd-muted: #6b6f72;
    --fd-muted-cool: #8b9095;
    --fd-faint: #9a9d9f;
    --fd-hairline: #cdd0d3;
    --fd-border: #dcdcd9;
    --fd-border-strong: #c9ccca;
    --fd-chrome-line: #edf0f0;
    --fd-dash-bg: #202931;
    --fd-dash-fg: #aebbc4;
}

.platforma-frontdoor-hero {
    --fd-brand: var(--platforma-brand, #D4213D);
    padding: clamp(58px, 7vw, 105px) 0 clamp(30px, 4vw, 48px);
    overflow: hidden;
}
.platforma-frontdoor-hero .pf-fd-frame {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 28px);
}
.pf-fd-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.62fr);
    gap: clamp(35px, 7vw, 110px);
    align-items: end;
}
.pf-fd-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--fd-muted);
    margin: 0 0 30px;
}
.pf-fd-title {
    font-size: clamp(44px, 5.4vw, 83px);
    line-height: 1.065;
    letter-spacing: -0.055em;
    font-weight: 760;
    color: var(--fd-ink);
    margin: 0 0 28px;
    max-width: 14ch;
}
.pf-fd-title em { font-style: normal; color: var(--fd-brand); }
.pf-fd-lead {
    font-size: 17px;
    line-height: 1.8;
    color: var(--fd-muted);
    max-width: 590px;
    margin: 0 0 30px;
}
.pf-fd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-fd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 22px;
    border: 1px solid transparent;
    border-radius: var(--pf-radius-xl, 12px);
    background: var(--fd-brand);
    color: var(--fd-surface);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease;
    box-shadow: 0 10px 22px -16px var(--fd-brand);
}
.pf-fd-btn:hover { transform: translateY(-2px); filter: brightness(.93); }
.pf-fd-btn-outline { background: var(--fd-surface); color: var(--fd-ink); border-color: var(--fd-border); box-shadow: none; }
.pf-fd-index { border-top: 1px solid #cecfcb; padding-top: 19px; }
.pf-fd-index-label {
    display: block;
    color: var(--fd-faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.pf-fd-index-item {
    display: flex;
    gap: 17px;
    align-items: center;
    padding: 21px 0;
    border-bottom: 1px solid #dededb;
    color: inherit;
    text-decoration: none;
    transition: padding-left .25s ease;
}
.pf-fd-index-item:hover { padding-left: 8px; }
.pf-fd-index-no { font-size: 12px; color: var(--fd-faint); }
.pf-fd-index-text { flex: 1; min-width: 0; }
.pf-fd-index-text strong { display: block; font-size: 22px; letter-spacing: -.03em; }
.pf-fd-index-text small { display: block; color: var(--fd-faint); font-size: 12px; margin-top: 4px; }
.pf-fd-index-note { font-size: 12px; line-height: 1.7; color: var(--fd-faint); max-width: 240px; margin: 22px 0 0; }

/* Reveal — pure CSS, no JS; content always ends visible. */
.pf-reveal { animation: pf-fd-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.pf-reveal-delay-1 { animation-delay: .12s; }
@keyframes pf-fd-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .pf-fd-hero-head { grid-template-columns: 1fr; gap: 45px; }
    .pf-fd-index { max-width: 550px; }
}
@media (max-width: 690px) {
    .pf-fd-title { font-size: clamp(42px, 10vw, 62px); letter-spacing: -0.035em; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-reveal { animation: none; }
    .pf-fd-btn, .pf-fd-index-item { transition: none; }
}

/* ── FRONTDOOR-FASE-A2: product-preview cards (pf6-showcase) ───────────────── */
.platforma-frontdoor-preview { padding: 0 0 clamp(26px, 4vw, 44px); overflow: hidden; }
.platforma-frontdoor-preview .pf-pc-frame { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }
.pf-pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pf-pc-card {
    --pf-pc-accent: var(--platforma-brand, #376cae);
    --pf-pc-tint: #eef2f6;
    display: block;
    min-width: 0;
    padding: 22px 23px 21px;
    border: 1px solid #e0e2df;
    border-radius: var(--pf-radius-xl, 12px);
    background: var(--fd-surface);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: border-color .25s ease, transform .3s ease, box-shadow .3s ease;
}
.pf-pc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 55px rgba(20,33,44,.08); border-color: var(--fd-border-strong); }
.pf-pc-dash-card { --pf-pc-tint: #e5f5ef; }
.pf-pc-site-card { --pf-pc-tint: #e9f1f9; }
.pf-pc-head {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: 10px; letter-spacing: 1.25px; color: var(--fd-muted-cool); font-weight: 800; margin-bottom: 18px;
}
.pf-pc-head span:last-child { color: var(--fd-ink); }

.pf-pc-screen { height: 290px; background: var(--pf-pc-tint); border-radius: var(--pf-radius-lg, 10px); padding: 17px 24px 0; overflow: hidden; }
.pf-pc-chrome {
    display: flex; align-items: center; gap: 12px;
    background: var(--fd-surface); border-radius: var(--pf-radius-lg, 9px) var(--pf-radius-lg, 9px) 0 0; border: 1px solid #e2e6e7; border-bottom-color: var(--fd-chrome-line);
    min-height: 32px; font-size: 9px; font-weight: 650; padding: 0 13px; color: var(--fd-muted-cool);
}
.pf-pc-chrome .pf-pc-chrome-tag { margin-left: auto; color: var(--pf-pc-accent); }
.pf-pc-dots { font-size: 7px; letter-spacing: 3px; color: var(--fd-hairline); }

.pf-pc-site, .pf-pc-dash { height: 257px; background: var(--fd-surface); border: 1px solid #e2e6e7; border-top: 0; overflow: hidden; }
.pf-pc-site { padding: 18px 25px 0; }
.pf-pc-site-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 9px; color: var(--fd-muted-cool); }
.pf-pc-site-top b { font-size: 16px; color: var(--fd-ink-strong); letter-spacing: -.6px; }
.pf-pc-site-title { display: block; font-size: 34px; line-height: 1.05; letter-spacing: -2px; margin-top: 22px; color: var(--fd-ink-strong); }
.pf-pc-site-sub { display: block; color: var(--fd-muted-cool); font-size: 10px; margin: 8px 0 14px; }
.pf-pc-site-chips { display: flex; gap: 9px; margin-top: 22px; }
.pf-pc-site-chips span { background: var(--fd-surface-faint); border-radius: var(--pf-radius-sm, 5px); padding: 11px; flex: 1; font-size: 9px; font-weight: 700; color: var(--fd-ink-slate); }

.pf-pc-dash { display: flex; }
.pf-pc-dash-side { width: 55px; background: var(--fd-dash-bg); display: flex; align-items: center; flex-direction: column; gap: 22px; padding: 16px 0; color: var(--fd-dash-fg); }
.pf-pc-dash-side strong { font-size: 23px; color: var(--pf-pc-accent); }
.pf-pc-dash-main { padding: 25px 23px; flex: 1; min-width: 0; }
.pf-pc-dash-kicker { font-size: 9px; letter-spacing: 1.3px; color: var(--pf-pc-accent); font-weight: 800; }
.pf-pc-dash-title { display: block; font-size: 22px; letter-spacing: -.8px; margin: 11px 0 18px; color: var(--fd-ink-strong); }
.pf-pc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.pf-pc-metrics div { background: var(--fd-surface-faint); padding: 10px; border: 1px solid #ecf0ee; border-radius: var(--pf-radius-md, 6px); }
.pf-pc-metrics b, .pf-pc-metrics small { display: block; }
.pf-pc-metrics b { font-size: 20px; color: var(--fd-ink-strong); }
.pf-pc-metrics small { font-size: 9px; color: var(--fd-muted-cool); }
.pf-pc-news { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid #ecefed; font-size: 10px; color: var(--fd-muted); }
.pf-pc-news b { color: var(--pf-pc-accent); font-size: 9px; }

.pf-pc-footer { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-top: 20px; }
.pf-pc-footer strong { display: block; font-size: 17px; letter-spacing: -.4px; color: var(--fd-ink); }
.pf-pc-footer small { display: block; font-size: 12px; margin-top: 6px; color: var(--fd-muted-cool); }
.pf-pc-bottom {
    margin-top: 27px; display: flex; justify-content: space-between; gap: 12px;
    font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--fd-faint);
}
.pf-pc-bottom a { color: var(--fd-ink-slate); text-decoration: none; }
.pf-pc-bottom a:hover { color: var(--platforma-brand, #D4213D); }

@media (max-width: 690px) {
    .pf-pc-grid { grid-template-columns: 1fr; }
    .pf-pc-screen { height: 260px; }
    .pf-pc-news { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-pc-card { transition: none; }
}

/* ── FRONTDOOR-FASE-A4: scrolling word marquee (ticker) ────────────────────── */
.platforma-frontdoor-marquee {
    overflow: hidden;
    background: var(--fd-surface);
    border-top: 1px solid #e8e7e2;
    border-bottom: 1px solid #e8e7e2;
    padding: 21px 0;
    white-space: nowrap;
}
.platforma-frontdoor-marquee .pf-mq-source {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); clip-path: inset(50%);
    overflow: hidden;
}
.pf-mq-track {
    display: flex;
    align-items: center;
    gap: 65px;
    width: max-content;
    animation: pf-mq-scroll 30s linear infinite;
    color: var(--fd-faint);
    font-size: 13px;
    letter-spacing: .7px;
    font-weight: 750;
}
.pf-mq-word { flex: none; }
.pf-mq-sep { flex: none; color: var(--platforma-brand, #8e918e); font-weight: 700; }
@keyframes pf-mq-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .pf-mq-track { animation: none; }
}

/* ── FRONTDOOR-FASE-A3: product-doors (the three .productcard doors) ───────── */
.platforma-frontdoor-doors {
    --pf-door-brand: var(--platforma-brand, #D4213D);
    padding: clamp(60px, 8vw, 100px) 0;
    overflow: hidden;
}
.platforma-frontdoor-doors .pf-door-frame { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }

.pf-door-head { max-width: 745px; margin-bottom: 40px; }
.pf-door-eyebrow {
    display: flex; align-items: center; gap: 12px;
    text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 800;
    color: var(--pf-door-brand); margin: 0 0 20px;
}
.pf-door-heading {
    font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.05em; line-height: 1.13;
    font-weight: 760; color: var(--fd-ink); margin: 0 0 20px;
}
.pf-door-heading-lead { display: block; }
.pf-door-heading .pf-door-accent { display: block; color: var(--pf-door-brand); }
.pf-door-intro { font-size: 17px; color: var(--fd-muted); line-height: 1.8; max-width: 670px; margin: 0; }

.pf-door-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.pf-door-card {
    --pf-door-tint: #eef2f6;
    display: block; min-width: 0; overflow: hidden;
    border: 1px solid #e7e6e2; border-radius: var(--pf-radius-xl, 22px); background: var(--fd-surface);
    color: inherit; text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pf-door-card:hover { transform: translateY(-4px); box-shadow: 0 16px 45px rgba(32,32,32,.05); border-color: var(--fd-border-strong); }
.pf-door-card.pf-door-blue  { --pf-door-tint: #edf3fa; }
.pf-door-card.pf-door-green { --pf-door-tint: #e8f8f1; }
.pf-door-card.pf-door-red   { --pf-door-tint: #faeeed; }
.pf-door-card.pf-door-brand { --pf-door-tint: color-mix(in srgb, var(--pf-door-brand) 9%, #fff); }

.pf-door-media { height: 224px; padding: 25px; background: var(--pf-door-tint); }
.pf-door-inner {
    height: 100%; background: var(--fd-surface); border-radius: var(--pf-radius-xl, 12px); border: 1px solid #e7e7e7;
    box-shadow: 0 14px 24px rgba(0,0,0,.05); overflow: hidden; display: flex; flex-direction: column;
}
.pf-door-toolbar {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 11px 15px; font-size: 10px; font-weight: 700; color: var(--fd-ink-slate); border-bottom: 1px solid #eee;
}
.pf-door-toolbar-status { color: var(--pf-door-brand); font-size: 9px; }
.pf-door-body { padding: 20px; }
.pf-door-body-line { display: block; font-size: 24px; font-weight: 800; letter-spacing: -1px; line-height: 1.12; color: var(--fd-ink); }
.pf-door-body-sub { display: block; margin-top: 9px; font-size: 11px; line-height: 1.4; color: var(--fd-muted-cool); font-weight: 500; }

.pf-door-bottom { padding: 26px 30px 31px; }
.pf-door-tag {
    display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    font-weight: 800; color: var(--pf-door-brand); margin: 0 0 15px;
}
.pf-door-bottom h3 { margin: 0 0 11px; font-size: 22px; letter-spacing: -.03em; color: var(--fd-ink); }
.pf-door-bottom p { min-height: 70px; margin: 0; color: var(--fd-muted); font-size: 14px; line-height: 1.75; }
.pf-door-link { display: inline-block; margin-top: 22px; color: var(--pf-door-brand); font-size: 13px; font-weight: 800; }

@media (max-width: 850px) {
    .pf-door-grid { grid-template-columns: 1fr; }
    .pf-door-heading { letter-spacing: -0.03em; }
    .pf-door-bottom p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-door-card { transition: none; }
}

/* ── FRONTDOOR-FASE-A5: product band (full-width brand-tinted band + mockup) ── */
.platforma-frontdoor-band {
    /* Product colour + tints come from the named variant class; default = tenant brand. These are
       custom-property definitions (not colour declarations), so the DS-3 bare-colour ratchet ignores
       them; consumers below read them via var(). */
    --pf-band-product: var(--platforma-brand, #D4213D);
    --pf-band-tint: color-mix(in srgb, var(--pf-band-product) 16%, #fff);
    --pf-band-bg: color-mix(in srgb, var(--pf-band-product) 5%, #fff);
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--pf-band-bg);
}
.platforma-frontdoor-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .65;
    background: radial-gradient(circle at 7% 14%, var(--pf-band-tint), transparent 52%);
}
.platforma-frontdoor-band.pf-band-blue  { --pf-band-product: #376cae; --pf-band-tint: #d8e9ff; --pf-band-bg: #f5f9ff; }
.platforma-frontdoor-band.pf-band-green { --pf-band-product: #099f81; --pf-band-tint: #c9f5e5; --pf-band-bg: #f2fbf7; }
.platforma-frontdoor-band.pf-band-red   { --pf-band-product: var(--platforma-brand, #D4213D); --pf-band-tint: #faeeed; --pf-band-bg: #fdf6f5; }
.platforma-frontdoor-band.pf-band-brand { --pf-band-product: var(--platforma-brand, #D4213D); }

.pf-band-frame { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }
.pf-band-label {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--pf-band-product); margin: 0 0 32px;
}
.pf-band-label strong { font-size: 16px; letter-spacing: -.03em; text-transform: none; }
.pf-band-label span { color: var(--fd-muted); }

.pf-band-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 70px); align-items: center; }
.platforma-frontdoor-band.pf-band-visual-left .pf-band-copy { order: 2; }
.platforma-frontdoor-band.pf-band-visual-left .pf-band-visual { order: 1; }

.pf-band-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--pf-band-product); margin: 0 0 20px; }
.pf-band-heading { font-size: clamp(32px, 3.8vw, 50px); letter-spacing: -0.04em; line-height: 1.12; font-weight: 760; color: var(--fd-ink); margin: 0 0 20px; }
.pf-band-heading-lead { }
.pf-band-heading .pf-band-accent { color: var(--pf-band-product); }
.pf-band-intro { font-size: 16px; line-height: 1.8; color: var(--fd-muted); max-width: 480px; margin: 0 0 28px; }
.pf-band-cta {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 22px; border-radius: var(--pf-radius-xl, 12px);
    border: 1px solid color-mix(in srgb, var(--pf-band-product) 25%, #fff);
    background: var(--fd-surface); color: var(--pf-band-product);
    font-size: 13px; font-weight: 700; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pf-band-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -18px var(--pf-band-product); }

.pf-band-visual {
    position: relative;
    border-radius: var(--pf-radius-xl, 27px);
    background: linear-gradient(140deg, color-mix(in srgb, var(--pf-band-product) 8%, #fff), #fff 65%);
    border: 1px solid color-mix(in srgb, var(--pf-band-product) 12%, #fff);
    min-height: 360px; padding: 25px;
    box-shadow: 0 25px 65px color-mix(in srgb, var(--pf-band-product) 9%, transparent);
}
.pf-band-browser { background: var(--fd-surface); border: 1px solid #e0e0dc; border-radius: var(--pf-radius-xl, 15px); box-shadow: 0 20px 50px rgba(17,17,17,.05); overflow: hidden; }
.pf-band-browserbar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; background: var(--fd-surface-faint); border-bottom: 1px solid #eee; font-size: 9px; color: var(--fd-faint); }
.pf-band-dots { width: 7px; height: 7px; border-radius: 50%; background: var(--fd-hairline); box-shadow: 11px 0 0 var(--fd-hairline), 22px 0 0 var(--fd-hairline); flex: none; }
.pf-band-addr { margin: 0 auto; border: 1px solid #e8e8e6; border-radius: var(--pf-radius-sm, 5px); padding: 4px 30px; color: var(--fd-faint); }

.pf-band-mockmenu { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--fd-muted-cool); }
.pf-band-mocklogo { font-size: 15px; font-weight: 850; letter-spacing: -.5px; color: var(--pf-band-product); }
.pf-band-mocktitle { display: block; font-size: 26px; line-height: 1.14; letter-spacing: -1px; margin: 20px 0 8px; color: var(--fd-ink-strong); }
.pf-band-mockbody { font-size: 11px; color: var(--fd-muted-cool); max-width: 230px; line-height: 1.8; margin: 0; }
.pf-band-mockbutton { display: inline-block; margin: 12px 0 0; background: var(--pf-band-product); color: var(--fd-surface); border-radius: var(--pf-radius-sm, 5px); padding: 9px 12px; font-size: 9px; font-weight: 700; }
.pf-band-tilerow { display: flex; gap: 8px; margin-top: 22px; }
.pf-band-tilerow span { display: block; height: 46px; flex: 1; border-radius: var(--pf-radius-md, 7px); background: var(--fd-surface-faint); }

.pf-band-editor { display: grid; grid-template-columns: 105px 1fr; min-height: 290px; }
.pf-band-editor-side { display: flex; flex-direction: column; gap: 4px; background: var(--fd-surface-faint); padding: 17px 12px; font-size: 10px; color: var(--fd-muted-cool); }
.pf-band-editor-side b { color: var(--fd-ink); margin-bottom: 6px; }
.pf-band-editor-side span { padding: 8px; border-radius: var(--pf-radius-md, 6px); }
.pf-band-editor-side .pf-band-editor-active { background: var(--fd-surface-sunken); color: var(--fd-ink); font-weight: 700; }
.pf-band-editor-main { padding: 25px; }

.pf-band-dashboard { padding: 19px; background: var(--fd-surface); min-height: 290px; }
.pf-band-statrow { display: flex; gap: 9px; margin: 18px 0; }
.pf-band-statrow div { flex: 1; padding: 14px; border: 1px solid #e5ebe7; border-radius: var(--pf-radius-lg, 10px); background: var(--fd-surface); }
.pf-band-statrow b { font-size: 20px; display: block; color: var(--fd-ink-strong); }
.pf-band-statrow small { font-size: 9px; color: var(--fd-muted-cool); }
.pf-band-dashrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-band-dashrow div { padding: 13px; border: 1px solid #e5ebe7; border-radius: var(--pf-radius-md, 9px); background: var(--fd-surface); font-size: 10px; }
.pf-band-dashrow strong { display: block; margin-bottom: 8px; color: var(--fd-ink); }
.pf-band-dashrow span { display: block; color: var(--fd-muted); }

.pf-band-float {
    position: absolute; right: 10px; bottom: 18px;
    background: var(--fd-surface); border: 1px solid #e9e9e7;
    box-shadow: 0 15px 35px rgba(17,17,34,.12); border-radius: var(--pf-radius-xl, 13px);
    padding: 14px 18px; font-size: 12px; font-weight: 700; color: var(--fd-ink);
}

@media (max-width: 860px) {
    .pf-band-split { grid-template-columns: 1fr; gap: 34px; }
    .platforma-frontdoor-band.pf-band-visual-left .pf-band-copy { order: 1; }
    .platforma-frontdoor-band.pf-band-visual-left .pf-band-visual { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-band-cta { transition: none; }
}

/* ── FRONTDOOR-FASE-B1: editor demo (x-editor CMS studio illustration) ───────
   A premium STATIC illustration of the site editor: a section head over a three-
   column editor frame (tool rail / canvas with a website preview / inspector).
   All colour via --fd-* tokens; the swatch tints are custom-property definitions
   (not colour declarations), so the DS-3 bare-colour ratchet ignores them. Radii
   use the shared --pf-radius-* scale. No decorative glyphs; reveal is pure CSS. */
.platforma-frontdoor-editordemo {
    --fd-ed-accent: var(--platforma-brand, #D4213D);
    --fd-ed-sw-blue: #2e5c8a;
    --fd-ed-sw-green: #0e947a;
    --fd-ed-sw-dark: #282d38;
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--fd-surface-faint);
}
.platforma-frontdoor-editordemo::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background: radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--fd-ed-accent) 10%, transparent), transparent 46%);
}
.pf-ed-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }

.pf-ed-head { max-width: 640px; margin: 0 0 clamp(32px, 4vw, 48px); }
.pf-ed-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--fd-ed-accent); margin: 0 0 18px; }
.pf-ed-heading { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.04em; line-height: 1.12; font-weight: 760; color: var(--fd-ink); margin: 0 0 18px; }
.pf-ed-heading .pf-ed-accent { color: var(--fd-ed-accent); }
.pf-ed-intro { font-size: 16px; line-height: 1.8; color: var(--fd-muted); margin: 0; }

.pf-ed-stage { position: relative; }
.pf-ed-editor {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr) 216px;
    grid-template-rows: auto 1fr;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid var(--fd-border);
    border-radius: var(--pf-radius-xl, 12px);
    background: var(--fd-surface);
    box-shadow: 0 35px 95px rgba(24, 32, 43, .11), 0 2px 6px rgba(24, 32, 43, .03);
}

.pf-ed-toolbar {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: space-between;
    height: 46px; padding: 0 16px;
    border-bottom: 1px solid var(--fd-chrome-line);
    background: var(--fd-surface);
    font-size: 11px;
}
.pf-ed-toolbar-name { color: var(--fd-ink); font-weight: 800; letter-spacing: -.01em; }
.pf-ed-toolbar-name span { font-weight: 400; color: var(--fd-faint); margin-left: 7px; }
.pf-ed-toolbar-tag {
    font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--fd-muted-cool);
    border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-full, 9999px);
    padding: 5px 11px;
}

.pf-ed-rail {
    grid-row: 2; grid-column: 1;
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px 12px;
    border-right: 1px solid var(--fd-chrome-line);
    background: var(--fd-surface-faint);
}
.pf-ed-rail h4 { margin: 0 0 10px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--fd-faint); font-weight: 800; }
.pf-ed-rail-item {
    display: block; padding: 9px 11px; font-size: 12px; font-weight: 600; color: var(--fd-ink-slate);
    border-radius: var(--pf-radius-md, 6px); border-left: 2px solid transparent;
}
.pf-ed-rail-item.is-active { background: var(--fd-surface); color: var(--fd-ed-accent); font-weight: 800; border-left-color: var(--fd-ed-accent); box-shadow: 0 1px 2px rgba(24, 32, 43, .05); }

.pf-ed-canvas { grid-row: 2; grid-column: 2; padding: 18px; background: var(--fd-surface-faint); }
.pf-ed-canvas-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--fd-faint); margin: 0 0 12px; }
.pf-ed-device {
    background: var(--fd-surface);
    border: 1px solid var(--fd-chrome-line);
    border-radius: var(--pf-radius-lg, 8px);
    box-shadow: 0 20px 50px rgba(17, 17, 17, .05);
    overflow: hidden;
}
.pf-ed-sitenav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--fd-chrome-line); font-size: 10px; color: var(--fd-muted-cool); }
.pf-ed-sitelogo { font-size: 14px; font-weight: 850; letter-spacing: -.5px; color: var(--fd-ink-strong); }
.pf-ed-sitebody { padding: 26px 22px 30px; }
.pf-ed-flag {
    display: inline-block; margin: 0 0 14px;
    font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--fd-ed-accent);
    background: color-mix(in srgb, var(--fd-ed-accent) 12%, var(--fd-surface));
    border-radius: var(--pf-radius-full, 9999px); padding: 5px 12px;
}
.pf-ed-preview-title { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.14; letter-spacing: -.03em; color: var(--fd-ink-strong); margin: 0 0 10px; }
.pf-ed-preview-body { font-size: 12px; line-height: 1.8; color: var(--fd-muted-cool); max-width: 320px; margin: 0 0 16px; }
.pf-ed-preview-button { display: inline-block; background: var(--fd-ed-accent); color: var(--fd-surface); border-radius: var(--pf-radius-md, 6px); padding: 10px 16px; font-size: 11px; font-weight: 700; }
.pf-ed-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 24px; }
.pf-ed-preview-grid div { padding: 14px 10px; font-size: 10px; font-weight: 700; color: var(--fd-ink-slate); background: var(--fd-surface-faint); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-md, 6px); }

.pf-ed-inspector { grid-row: 2; grid-column: 3; padding: 18px 16px; border-left: 1px solid var(--fd-chrome-line); background: var(--fd-surface); }
.pf-ed-inspector h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--fd-ink); }
.pf-ed-inspector > p { margin: 0 0 18px; font-size: 11px; line-height: 1.6; color: var(--fd-muted); }
.pf-ed-field { margin: 0 0 12px; }
.pf-ed-field-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--fd-faint); margin: 0 0 5px; }
.pf-ed-field-input, .pf-ed-field-area {
    display: block; font-size: 11px; color: var(--fd-ink-slate);
    background: var(--fd-surface-faint); border: 1px solid var(--fd-chrome-line);
    border-radius: var(--pf-radius-sm, 4px); padding: 8px 10px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pf-ed-field-area { white-space: normal; min-height: 42px; line-height: 1.5; }
.pf-ed-swatchrow { margin: 0 0 16px; }
.pf-ed-swatches { display: flex; gap: 8px; }
.pf-ed-swatch { width: 24px; height: 24px; border-radius: var(--pf-radius-md, 6px); border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(24, 32, 43, .08); }
.pf-ed-swatch.is-active { border-color: var(--fd-ink); }
.pf-ed-swatch-brand { background: var(--fd-ed-accent); }
.pf-ed-swatch-blue { background: var(--fd-ed-sw-blue); }
.pf-ed-swatch-green { background: var(--fd-ed-sw-green); }
.pf-ed-swatch-dark { background: var(--fd-ed-sw-dark); }
.pf-ed-status { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .03em; color: var(--fd-muted-cool); }

@media (max-width: 920px) {
    .pf-ed-editor { grid-template-columns: 125px minmax(0, 1fr); }
    .pf-ed-inspector { grid-row: 3; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--fd-chrome-line); }
}
@media (max-width: 640px) {
    .pf-ed-editor { grid-template-columns: 1fr; }
    .pf-ed-rail { grid-row: auto; grid-column: 1; flex-direction: row; flex-wrap: wrap; gap: 6px; border-right: 0; border-bottom: 1px solid var(--fd-chrome-line); }
    .pf-ed-rail h4 { width: 100%; margin: 0; }
    .pf-ed-rail-item { border-left: 0; }
    .pf-ed-rail-item.is-active { border-left: 0; }
    .pf-ed-canvas { grid-row: auto; grid-column: 1; }
    .pf-ed-inspector { grid-row: auto; }
}

/* ── FRONTDOOR-FASE-B2: route switcher (x-route product-router illustration) ──
   A premium STATIC "find the right product" picker: a section head over a two-
   column frame (a rail of three product routes, the first current, + a detail
   panel for that route). All colour via --fd-* tokens; radii via --pf-radius-*;
   shadows via rgba()/color-mix(). No decorative glyphs; reveal is pure CSS. */
.platforma-frontdoor-router {
    --fd-rt-accent: var(--platforma-brand, #D4213D);
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--fd-surface-faint);
}
.pf-rt-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }

.pf-rt-head { max-width: 640px; margin: 0 0 clamp(32px, 4vw, 48px); }
.pf-rt-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--fd-rt-accent); margin: 0 0 18px; }
.pf-rt-heading { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.04em; line-height: 1.12; font-weight: 760; color: var(--fd-ink); margin: 0 0 18px; }
.pf-rt-heading .pf-rt-accent { color: var(--fd-rt-accent); }
.pf-rt-intro { font-size: 16px; line-height: 1.8; color: var(--fd-muted); margin: 0; }

.pf-rt-frame {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--fd-border);
    border-radius: var(--pf-radius-xl, 12px);
    background: var(--fd-surface);
    box-shadow: 0 22px 65px rgba(24, 35, 45, .05);
}

.pf-rt-rail { display: grid; align-content: start; gap: 8px; padding: 16px; background: var(--fd-surface-faint); border-right: 1px solid var(--fd-chrome-line); }
.pf-rt-tab { padding: 18px 16px; border: 1px solid transparent; border-radius: var(--pf-radius-lg, 8px); color: var(--fd-ink-slate); }
.pf-rt-tab.is-current { background: var(--fd-surface); border-color: var(--fd-border); box-shadow: 0 10px 24px rgba(24, 35, 45, .05); }
.pf-rt-tab-label { display: block; font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--fd-ink); }
.pf-rt-tab.is-current .pf-rt-tab-label { color: var(--fd-rt-accent); }
.pf-rt-tab-sub { display: block; margin-top: 4px; font-size: 11px; color: var(--fd-muted-cool); }

.pf-rt-panel { position: relative; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px); background: var(--fd-surface); }
.pf-rt-panel::before {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none; opacity: .6;
    background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--fd-rt-accent) 5%, transparent), transparent 60%);
}
.pf-rt-panel > * { position: relative; }
.pf-rt-overline { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 850; color: var(--fd-rt-accent); }
.pf-rt-panel-title { max-width: 560px; font-size: clamp(26px, 3vw, 40px); line-height: 1.14; letter-spacing: -.04em; color: var(--fd-ink-strong); margin: 14px 0; }
.pf-rt-panel-body { max-width: 520px; font-size: 15px; line-height: 1.8; color: var(--fd-muted); margin: 0; }
.pf-rt-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.pf-rt-meta small { display: block; font-size: 11px; color: var(--fd-muted-cool); margin-bottom: 5px; }
.pf-rt-meta strong { font-size: 21px; letter-spacing: -.5px; color: var(--fd-ink-strong); }
.pf-rt-cta {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 22px; border-radius: var(--pf-radius-xl, 12px);
    border: 1px solid color-mix(in srgb, var(--fd-rt-accent) 25%, var(--fd-surface));
    background: var(--fd-rt-accent); color: var(--fd-surface);
    font-size: 13px; font-weight: 700; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pf-rt-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px var(--fd-rt-accent); }
.pf-rt-note { margin: 22px 0 0; font-size: 11px; line-height: 1.6; color: var(--fd-faint); }

@media (max-width: 720px) {
    .pf-rt-frame { grid-template-columns: 1fr; }
    .pf-rt-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--fd-chrome-line); }
}
@media (prefers-reduced-motion: reduce) {
    .pf-rt-cta { transition: none; }
}

/* ── FRONTDOOR-FASE-B3: story showcase (x-story-layout workflow story) ────────
   A two-column "from website to workflow" story: a copy column (kicker, heading,
   body, proof list, CTA) + a visual story-frame (a pane with kicker/title/body,
   capability badges and three process steps) + a floating caption. All colour via
   --fd-* tokens; radii via --pf-radius-*; shadows via rgba()/color-mix(). The proof
   check marker is drawn in CSS (no glyph). Float bob is reduced-motion safe. */
.platforma-frontdoor-story {
    --fd-st-accent: var(--platforma-brand, #D4213D);
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--fd-surface-faint);
}
.pf-story-wrap {
    position: relative; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px);
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: center;
}

.pf-story-kicker { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--fd-st-accent); margin: 0 0 20px; }
.pf-story-heading { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; line-height: 1.16; font-weight: 760; color: var(--fd-ink); margin: 0 0 18px; }
.pf-story-body { font-size: 16px; line-height: 1.8; color: var(--fd-muted); margin: 0 0 24px; max-width: 480px; }
.pf-story-proof { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.pf-story-proof li { position: relative; padding-left: 30px; font-size: 14px; line-height: 1.5; color: var(--fd-ink-slate); }
.pf-story-proof li::before {
    content: ""; position: absolute; left: 0; top: 2px;
    width: 8px; height: 13px;
    border: solid var(--fd-st-accent); border-width: 0 2px 2px 0;
    transform: translateY(1px) rotate(45deg);
}
.pf-story-cta {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 22px; border-radius: var(--pf-radius-xl, 12px);
    border: 1px solid color-mix(in srgb, var(--fd-st-accent) 25%, var(--fd-surface));
    background: var(--fd-surface); color: var(--fd-st-accent);
    font-size: 13px; font-weight: 700; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pf-story-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px var(--fd-st-accent); }

.pf-story-frame {
    position: relative; min-height: 350px; padding: 22px;
    border: 1px solid var(--fd-border);
    border-radius: var(--pf-radius-xl, 12px);
    background: linear-gradient(140deg, var(--fd-surface-faint), var(--fd-surface-sunken));
}
.pf-story-pane {
    height: 100%; background: var(--fd-surface);
    border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-lg, 8px);
    box-shadow: 0 14px 32px rgba(22, 30, 39, .06);
    padding: 24px; position: relative; overflow: hidden;
}
.pf-story-pane-kicker { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fd-st-accent); }
.pf-story-pane-title { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -.03em; line-height: 1.18; color: var(--fd-ink-strong); margin: 18px 0 9px; }
.pf-story-pane-body { font-size: 12px; line-height: 1.6; color: var(--fd-muted-cool); margin: 0; }
.pf-story-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pf-story-badge { font-size: 10px; font-weight: 700; color: var(--fd-ink-slate); background: var(--fd-surface-faint); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-md, 6px); padding: 10px 12px; }
.pf-story-steps { display: flex; gap: 12px; margin-top: 24px; }
.pf-story-step { flex: 1; padding-top: 12px; border-top: 2px solid var(--fd-border); font-size: 11px; font-weight: 700; color: var(--fd-ink-slate); }
.pf-story-step:first-child { border-top-color: var(--fd-st-accent); }
.pf-story-float {
    position: absolute; right: 8px; bottom: 20px;
    background: var(--fd-surface); border: 1px solid var(--fd-border);
    box-shadow: 0 18px 30px rgba(23, 32, 42, .13); border-radius: var(--pf-radius-xl, 12px);
    padding: 13px 18px; font-size: 11px; font-weight: 700; color: var(--fd-ink);
    animation: pf-story-bob 5s ease-in-out infinite;
}
@keyframes pf-story-bob { 50% { transform: translateY(-9px); } }

@media (max-width: 860px) {
    .pf-story-wrap { grid-template-columns: 1fr; gap: 34px; }
    .pf-story-frame { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-story-float { animation: none; }
    .pf-story-cta { transition: none; }
}

/* ── FRONTDOOR-FASE-B4: resident portal (x-bf portal illustration) ───────────
   A premium STATIC resident/association portal: a section head over a two-column
   app frame (a branded sidebar with a navigation list + a main area with a
   breadcrumb, a greeting title, a body line, three overview stats and a short
   detail list). Brand-neutral: the accent is --platforma-brand. All colour via
   --fd-* tokens; radii via --pf-radius-*; shadows via rgba()/color-mix(). */
.platforma-frontdoor-portal {
    --fd-rp-accent: var(--platforma-brand, #D4213D);
    --fd-rp-tint: color-mix(in srgb, var(--fd-rp-accent) 8%, var(--fd-surface));
    --fd-rp-tint-strong: color-mix(in srgb, var(--fd-rp-accent) 14%, var(--fd-surface));
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--fd-surface-faint);
}
.pf-rp-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }

.pf-rp-head { max-width: 640px; margin: 0 0 clamp(32px, 4vw, 48px); }
.pf-rp-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--fd-rp-accent); margin: 0 0 18px; }
.pf-rp-heading { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.04em; line-height: 1.12; font-weight: 760; color: var(--fd-ink); margin: 0 0 18px; }
.pf-rp-heading .pf-rp-accent { color: var(--fd-rp-accent); }
.pf-rp-intro { font-size: 16px; line-height: 1.8; color: var(--fd-muted); margin: 0; }

.pf-rp-app {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    min-height: 440px;
    overflow: hidden;
    border: 1px solid var(--fd-border);
    border-radius: var(--pf-radius-xl, 12px);
    background: var(--fd-surface);
    box-shadow: 0 27px 85px color-mix(in srgb, var(--fd-rp-accent) 8%, transparent);
}

.pf-rp-sidebar { padding: 22px 11px; background: var(--fd-surface-faint); border-right: 1px solid var(--fd-chrome-line); }
.pf-rp-brand { padding: 0 12px 6px; font-size: 16px; font-weight: 850; letter-spacing: -.03em; color: var(--fd-ink-strong); }
.pf-rp-portal-label { display: block; margin: 0 12px 16px; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 800; color: var(--fd-faint); }
.pf-rp-nav { display: flex; flex-direction: column; gap: 3px; }
.pf-rp-nav-item {
    display: block; padding: 11px 12px; font-size: 11px; font-weight: 700; color: var(--fd-ink-slate);
    border: 1px solid transparent; border-radius: var(--pf-radius-md, 6px);
}
.pf-rp-nav-item.is-active { background: var(--fd-rp-tint); border-color: var(--fd-rp-tint-strong); color: var(--fd-rp-accent); }

.pf-rp-main { min-width: 0; padding: 25px 29px; background: var(--fd-surface); }
.pf-rp-breadcrumb { margin: 0; font-size: 10px; font-weight: 700; color: var(--fd-faint); }
.pf-rp-main-title { margin: 14px 0 7px; font-size: clamp(22px, 2.4vw, 27px); letter-spacing: -.035em; color: var(--fd-ink-strong); }
.pf-rp-main-body { margin: 0; max-width: 530px; font-size: 12px; line-height: 1.65; color: var(--fd-muted-cool); }
.pf-rp-statrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 22px; }
.pf-rp-stat { padding: 16px 14px; background: var(--fd-rp-tint); border: 1px solid var(--fd-rp-tint-strong); border-radius: var(--pf-radius-lg, 8px); }
.pf-rp-stat strong { display: block; font-size: 24px; line-height: 1.3; color: var(--fd-ink-strong); font-variant-numeric: tabular-nums; }
.pf-rp-stat span { font-size: 10px; color: var(--fd-muted-cool); }
.pf-rp-list { margin-top: 15px; overflow: hidden; border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-lg, 8px); }
.pf-rp-listrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--fd-chrome-line); font-size: 12px; }
.pf-rp-listrow:first-child { border-top: 0; }
.pf-rp-listrow b { color: var(--fd-ink); }
.pf-rp-listrow span { font-size: 11px; color: var(--fd-muted-cool); }
.pf-rp-listrow .pf-rp-pill { padding: 6px 9px; font-size: 10px; font-weight: 700; color: var(--fd-rp-accent); background: var(--fd-rp-tint); border-radius: var(--pf-radius-full, 9999px); }

@media (max-width: 760px) {
    /* minmax(0, 1fr) + min-width: 0 so the nowrap navigation scrolls inside the sidebar instead of
       widening the grid track (which the frame's overflow: hidden would otherwise clip). */
    .pf-rp-app { grid-template-columns: minmax(0, 1fr); }
    .pf-rp-sidebar, .pf-rp-main { min-width: 0; }
    .pf-rp-sidebar { border-right: 0; border-bottom: 1px solid var(--fd-chrome-line); padding: 12px; }
    .pf-rp-nav { flex-direction: row; gap: 4px; overflow-x: auto; }
    .pf-rp-nav-item { white-space: nowrap; flex-shrink: 0; }
    .pf-rp-main { padding: 20px 16px; }
    .pf-rp-statrow { gap: 6px; }
    .pf-rp-stat { padding: 12px 8px; }
    .pf-rp-stat strong { font-size: 18px; }
    .pf-rp-listrow { grid-template-columns: 1fr auto; }
    .pf-rp-listrow span:not(.pf-rp-pill) { display: none; }
}

/* ── FRONTDOOR-FASE-B5: feature showcase (vf-card feature grid) ──────────────
   Four feature cards (1 and 4 wide, 2 and 3 narrow) with CSS-drawn illustrations
   chosen by a named kind, plus an optional benefit stripe. Tokens only. */
.platforma-frontdoor-features {
    --fd-fs-accent: var(--platforma-brand, #D4213D);
    --fd-fs-tint: color-mix(in srgb, var(--fd-fs-accent) 8%, var(--fd-surface));
    position: relative;
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--fd-surface-faint);
}
.pf-fs-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }
.pf-fs-head { max-width: 680px; margin: 0 0 clamp(32px, 4vw, 48px); }
.pf-fs-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--fd-fs-accent); margin: 0 0 18px; }
.pf-fs-heading { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.04em; line-height: 1.12; font-weight: 760; color: var(--fd-ink); margin: 0 0 18px; }
.pf-fs-heading .pf-fs-accent { color: var(--fd-fs-accent); }
.pf-fs-intro { font-size: 16px; line-height: 1.8; color: var(--fd-muted); margin: 0; }

.pf-fs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pf-fs-card {
    display: flex; flex-direction: column; gap: 22px;
    padding: clamp(24px, 3vw, 34px);
    background: var(--fd-surface);
    border: 1px solid var(--fd-border);
    border-radius: var(--pf-radius-xl, 12px);
    box-shadow: 0 14px 36px rgba(19, 43, 63, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}
.pf-fs-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(19, 43, 63, .08); }
.pf-fs-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 48px); }
.pf-fs-card:not(.pf-fs-card-wide) .pf-fs-art { order: -1; }
.pf-fs-label { display: block; margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fd-fs-accent); }
.pf-fs-title { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -.03em; color: var(--fd-ink-strong); }
.pf-fs-body { margin: 0; font-size: 14px; line-height: 1.7; color: var(--fd-muted); }
.pf-fs-link { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--fd-fs-accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--fd-fs-accent) 35%, transparent); }

.pf-fs-art { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 150px; padding: 18px; background: var(--fd-fs-tint); border-radius: var(--pf-radius-lg, 8px); }
.pf-fs-window { background: var(--fd-surface); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-md, 6px); padding: 14px 16px 18px; box-shadow: 0 10px 24px rgba(19, 43, 63, .06); }
.pf-fs-window-bar { margin: -4px 0 10px; }
.pf-fs-window-dots { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--fd-hairline); box-shadow: 10px 0 0 var(--fd-hairline), 20px 0 0 var(--fd-hairline); }
.pf-fs-window-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pf-fs-window-nav span { font-size: 9px; font-weight: 700; color: var(--fd-muted-cool); }
.pf-fs-window-title { display: block; font-size: 17px; line-height: 1.2; letter-spacing: -.02em; color: var(--fd-ink-strong); margin-bottom: 12px; }
.pf-fs-window-line { display: block; height: 7px; margin-top: 7px; background: var(--fd-surface-sunken); border-radius: var(--pf-radius-full, 9999px); }
.pf-fs-short { width: 60%; }
.pf-fs-mini { display: grid; gap: 8px; padding: 14px; background: var(--fd-surface); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-md, 6px); }
.pf-fs-mini b { font-size: 12px; color: var(--fd-ink); }
.pf-fs-mini-row { position: relative; padding-left: 14px; font-size: 11px; color: var(--fd-ink-slate); }
.pf-fs-mini-row::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 2px; background: var(--fd-fs-accent); }
.pf-fs-mini-input { display: block; padding: 7px 9px; font-size: 10px; color: var(--fd-faint); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-sm, 4px); }
.pf-fs-mini-button { display: block; height: 26px; margin-top: 4px; background: var(--fd-fs-accent); border-radius: var(--pf-radius-sm, 4px); }
.pf-fs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.pf-fs-tiles span { height: 38px; background: var(--fd-surface-sunken); border-radius: var(--pf-radius-sm, 4px); }
.pf-fs-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.pf-fs-module { padding: 14px; background: var(--fd-surface); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-md, 6px); }
.pf-fs-module b { display: block; font-size: 12px; color: var(--fd-ink); }
.pf-fs-module small { display: block; margin-top: 4px; font-size: 10px; color: var(--fd-muted-cool); }

.pf-fs-stripe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; padding: 22px 24px; background: var(--fd-surface); border: 1px solid var(--fd-border); border-radius: var(--pf-radius-xl, 12px); }
.pf-fs-benefit { padding-top: 12px; border-top: 2px solid var(--fd-border); }
.pf-fs-benefit:first-child { border-top-color: var(--fd-fs-accent); }
.pf-fs-benefit b { display: block; font-size: 13px; color: var(--fd-ink); }
.pf-fs-benefit span { display: block; margin-top: 4px; font-size: 12px; color: var(--fd-muted); }

@media (max-width: 860px) {
    .pf-fs-grid { grid-template-columns: 1fr; }
    .pf-fs-card-wide { grid-template-columns: 1fr; }
    .pf-fs-stripe { grid-template-columns: 1fr; }
}

/* ── FRONTDOOR-FASE-B6: product hero (product-site h1 + mockup) ──────────────
   Copy column (eyebrow, h1 with accent, lead, two CTAs, fine print) beside a
   browser-framed mockup (site or dashboard) with a floating caption. */
.platforma-frontdoor-phero {
    --fd-ph-accent: var(--platforma-brand, #D4213D);
    --fd-ph-tint: color-mix(in srgb, var(--fd-ph-accent) 9%, var(--fd-surface));
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px);
    background: linear-gradient(180deg, var(--fd-surface), var(--fd-surface-faint));
}
.platforma-frontdoor-phero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
    background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--fd-ph-accent) 12%, transparent), transparent 50%);
}
.pf-ph-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); align-items: center; }
.pf-ph-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--fd-ph-accent); margin: 0 0 22px; }
.pf-ph-title { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 780; color: var(--fd-ink); margin: 0 0 22px; }
.pf-ph-title > span { display: block; }
.pf-ph-title .pf-ph-accent { color: var(--fd-ph-accent); }
.pf-ph-lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.75; color: var(--fd-muted); max-width: 540px; margin: 0 0 30px; }
.pf-ph-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-ph-btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; border-radius: var(--pf-radius-xl, 12px); font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.pf-ph-btn-primary { background: var(--fd-ph-accent); color: var(--fd-surface); border: 1px solid var(--fd-ph-accent); }
.pf-ph-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--fd-ph-accent); }
.pf-ph-btn-ghost { background: var(--fd-surface); color: var(--fd-ink); border: 1px solid var(--fd-border-strong); }
.pf-ph-btn-ghost:hover { transform: translateY(-2px); }
.pf-ph-fine { margin: 22px 0 0; font-size: 12px; color: var(--fd-faint); }

.pf-ph-visual { position: relative; padding: 24px; border-radius: var(--pf-radius-xl, 12px); background: linear-gradient(140deg, var(--fd-ph-tint), var(--fd-surface) 70%); border: 1px solid color-mix(in srgb, var(--fd-ph-accent) 14%, var(--fd-surface)); box-shadow: 0 30px 70px color-mix(in srgb, var(--fd-ph-accent) 10%, transparent); }
.pf-ph-browser { background: var(--fd-surface); border: 1px solid var(--fd-border); border-radius: var(--pf-radius-xl, 12px); overflow: hidden; box-shadow: 0 20px 50px rgba(17, 17, 17, .06); }
.pf-ph-browserbar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; background: var(--fd-surface-faint); border-bottom: 1px solid var(--fd-chrome-line); font-size: 9px; color: var(--fd-faint); }
.pf-ph-dots { width: 7px; height: 7px; border-radius: 50%; background: var(--fd-hairline); box-shadow: 11px 0 0 var(--fd-hairline), 22px 0 0 var(--fd-hairline); flex: none; }
.pf-ph-addr { margin: 0 auto; padding: 4px 28px; border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-sm, 4px); }
.pf-ph-screen { min-height: 300px; padding: 24px; }
.pf-ph-mockmenu { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; color: var(--fd-muted-cool); }
.pf-ph-mocklogo { font-size: 15px; font-weight: 850; letter-spacing: -.03em; color: var(--fd-ph-accent); }
.pf-ph-mocktitle { display: block; margin: 22px 0 8px; font-size: 25px; line-height: 1.15; letter-spacing: -.035em; color: var(--fd-ink-strong); }
.pf-ph-mockbody { margin: 0; max-width: 300px; font-size: 11px; line-height: 1.7; color: var(--fd-muted-cool); }
.pf-ph-mockbutton { display: inline-block; margin-top: 14px; padding: 9px 13px; font-size: 10px; font-weight: 700; color: var(--fd-surface); background: var(--fd-ph-accent); border-radius: var(--pf-radius-sm, 4px); }
.pf-ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.pf-ph-tiles span { height: 52px; background: var(--fd-surface-faint); border-radius: var(--pf-radius-md, 6px); }
.pf-ph-statrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.pf-ph-stat { padding: 14px; background: var(--fd-ph-tint); border: 1px solid color-mix(in srgb, var(--fd-ph-accent) 14%, var(--fd-surface)); border-radius: var(--pf-radius-lg, 8px); }
.pf-ph-stat b { display: block; font-size: 22px; color: var(--fd-ink-strong); font-variant-numeric: tabular-nums; }
.pf-ph-stat small { font-size: 9px; color: var(--fd-muted-cool); }
.pf-ph-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pf-ph-rows span { height: 56px; background: var(--fd-surface-faint); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-md, 6px); }
.pf-ph-float {
    position: absolute; left: -10px; bottom: 26px;
    padding: 13px 18px; font-size: 12px; font-weight: 700; color: var(--fd-ink);
    background: var(--fd-surface); border: 1px solid var(--fd-border);
    border-radius: var(--pf-radius-xl, 12px); box-shadow: 0 16px 34px rgba(17, 17, 34, .12);
    animation: pf-ph-bob 6s ease-in-out infinite;
}
@keyframes pf-ph-bob { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
    .pf-ph-wrap { grid-template-columns: 1fr; }
    .pf-ph-float { left: 12px; }
}

/* ── FRONTDOOR-FASE-B7: audience split (two perspectives) ────────────────────
   Two perspective cards side by side with optional CSS-drawn illustrations
   (dashboard / login) and action chips. */
.platforma-frontdoor-audience {
    --fd-as-accent: var(--platforma-brand, #D4213D);
    --fd-as-tint: color-mix(in srgb, var(--fd-as-accent) 8%, var(--fd-surface));
    position: relative;
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--fd-surface);
}
.pf-as-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }
.pf-as-head { max-width: 680px; margin: 0 0 clamp(32px, 4vw, 48px); }
.pf-as-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--fd-as-accent); margin: 0 0 18px; }
.pf-as-heading { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.04em; line-height: 1.12; font-weight: 760; color: var(--fd-ink); margin: 0 0 18px; }
.pf-as-heading .pf-as-accent { color: var(--fd-as-accent); }
.pf-as-intro { font-size: 16px; line-height: 1.8; color: var(--fd-muted); margin: 0; }
.pf-as-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pf-as-card { display: flex; flex-direction: column; overflow: hidden; background: var(--fd-surface); border: 1px solid var(--fd-border); border-radius: var(--pf-radius-xl, 12px); box-shadow: 0 16px 40px rgba(19, 43, 63, .05); }
.pf-as-art { display: grid; place-items: center; height: 236px; padding: 24px; background: linear-gradient(140deg, var(--fd-as-tint), var(--fd-surface-faint)); border-bottom: 1px solid var(--fd-chrome-line); }
.pf-as-art-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 320px); }
.pf-as-art-stats span { height: 54px; background: var(--fd-surface); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-md, 6px); }
.pf-as-art-stats span:first-child { border-top: 3px solid var(--fd-as-accent); }
.pf-as-art-rows { display: grid; gap: 7px; width: min(100%, 320px); margin-top: 8px; }
.pf-as-art-rows span { height: 22px; background: var(--fd-surface); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-sm, 4px); }
.pf-as-art-dashboard { align-content: center; }
.pf-as-login-card { display: grid; gap: 8px; width: min(100%, 230px); padding: 20px; background: var(--fd-surface); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-lg, 8px); box-shadow: 0 12px 28px rgba(19, 43, 63, .07); }
.pf-as-login-mark { width: 30px; height: 30px; background: var(--fd-as-tint); border: 1px solid color-mix(in srgb, var(--fd-as-accent) 22%, var(--fd-surface)); border-radius: var(--pf-radius-md, 6px); }
.pf-as-login-card b { font-size: 13px; color: var(--fd-ink); }
.pf-as-login-input { height: 26px; border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-sm, 4px); }
.pf-as-login-button { height: 28px; background: var(--fd-as-accent); border-radius: var(--pf-radius-sm, 4px); }
.pf-as-copy { padding: clamp(22px, 3vw, 32px); }
.pf-as-tag { display: inline-block; margin-bottom: 14px; padding: 6px 11px; font-size: 11px; font-weight: 700; color: var(--fd-as-accent); background: var(--fd-as-tint); border-radius: var(--pf-radius-full, 9999px); }
.pf-as-title { margin: 0 0 12px; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.18; letter-spacing: -.03em; color: var(--fd-ink-strong); }
.pf-as-body { margin: 0; font-size: 15px; line-height: 1.75; color: var(--fd-muted); }
.pf-as-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pf-as-chip { padding: 9px 12px; font-size: 11px; font-weight: 700; color: var(--fd-ink-slate); background: var(--fd-surface-faint); border: 1px solid var(--fd-chrome-line); border-radius: var(--pf-radius-md, 6px); }

@media (max-width: 860px) {
    .pf-as-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-fs-card, .pf-ph-btn { transition: none; }
    .pf-ph-float { animation: none; }
}

/* ── FRONTDOOR-FASE-B9: story showcase, mirrored layout (story-frame first) ── */
.platforma-frontdoor-story.pf-story-visual-left .pf-story-copy { order: 2; }
.platforma-frontdoor-story.pf-story-visual-left .pf-story-visual { order: 1; }
@media (max-width: 860px) {
    .platforma-frontdoor-story.pf-story-visual-left .pf-story-copy { order: 1; }
    .platforma-frontdoor-story.pf-story-visual-left .pf-story-visual { order: 2; }
}

/* ── FRONTDOOR-FASE-B8: process steps (numbered "get started" steps) ─────────
   A section head over three or four numbered step cards. Tokens only. */
.platforma-frontdoor-steps {
    --fd-ps-accent: var(--platforma-brand, #D4213D);
    position: relative;
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--fd-surface-faint);
}
.pf-ps-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }
.pf-ps-head { max-width: 680px; margin: 0 0 clamp(32px, 4vw, 48px); }
.pf-ps-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 800; color: var(--fd-ps-accent); margin: 0 0 18px; }
.pf-ps-heading { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.04em; line-height: 1.12; font-weight: 760; color: var(--fd-ink); margin: 0 0 18px; }
.pf-ps-heading .pf-ps-accent { color: var(--fd-ps-accent); }
.pf-ps-intro { font-size: 16px; line-height: 1.8; color: var(--fd-muted); margin: 0; }
.pf-ps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pf-ps-grid.pf-ps-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-ps-grid.pf-ps-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-ps-grid.pf-ps-count-1 { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.pf-ps-step {
    padding: clamp(22px, 3vw, 30px);
    background: var(--fd-surface);
    border: 1px solid var(--fd-border);
    border-top: 3px solid var(--fd-border-strong);
    border-radius: var(--pf-radius-xl, 12px);
    box-shadow: 0 12px 30px rgba(19, 43, 63, .04);
}
.pf-ps-step:first-child { border-top-color: var(--fd-ps-accent); }
.pf-ps-num { display: block; margin-bottom: 18px; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: color-mix(in srgb, var(--fd-ps-accent) 70%, var(--fd-ink)); font-variant-numeric: tabular-nums; }
.pf-ps-title { margin: 0 0 10px; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; color: var(--fd-ink-strong); }
.pf-ps-body { margin: 0; font-size: 14px; line-height: 1.7; color: var(--fd-muted); }
@media (max-width: 900px) {
    .pf-ps-grid, .pf-ps-grid.pf-ps-count-4, .pf-ps-grid.pf-ps-count-2 { grid-template-columns: 1fr; }
}
