:root {
    --p2b-blue: #2388e8;
    --p2b-blue-dark: #1266c3;
    --p2b-blue-deep: #0c4f9f;
    --p2b-sky: #dff1ff;
    --p2b-orange: #ff8500;
    --p2b-orange-dark: #dc6800;
    --p2b-orange-soft: #fff0df;
    --p2b-ink: #15243a;
    --p2b-text: #314056;
    --p2b-muted: #6e7b8f;
    --p2b-surface: #ffffff;
    --p2b-background: #f8fbfe;
    --p2b-border: #dce7f0;
    --p2b-shadow: 0 24px 70px rgba(26, 81, 130, .14);
    --p2b-radius-sm: .8rem;
    --p2b-radius: 1.35rem;
    --p2b-radius-lg: 2rem;
    --p2b-max: 1180px;

    /* WP011 visual foundation */
    --p2b-purple: #6c5ce7;
    --p2b-purple-dark: #5142c7;
    --p2b-purple-soft: #e3d5ff;
    --p2b-teal: #00a88a;
    --p2b-teal-soft: #d6f5ee;
    --p2b-coral: #cf4545;
    --p2b-coral-dark: #b9383d;
    --p2b-coral-soft: #ffe1dc;
    --p2b-yellow: #f8bd45;
    --p2b-yellow-soft: #fff0c7;
    --p2b-sky-accent: #74b9ff;
    --p2b-sky-soft: #dcecff;
    --p2b-mint: #d6f5e3;
    --p2b-lavender: #eee8ff;
    --p2b-sand: #fff4e6;
    --p2b-surface-soft: #fffdf9;
    --p2b-text-strong: #1a1d2a;
    --p2b-text-muted: #667085;
    --p2b-border-warm: #eadfd6;
    --p2b-success: #008f69;
    --p2b-warning: #c98200;
    --p2b-error: #d83f4c;

    --space-1: .5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4rem;
    --space-7: 6rem;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --shadow-sm: 0 6px 18px rgba(45, 36, 66, .08);
    --shadow-md: 0 14px 36px rgba(45, 36, 66, .12);
    --shadow-lg: 0 24px 60px rgba(45, 36, 66, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--p2b-text);
    background: var(--p2b-background);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--p2b-orange);
    outline-offset: 4px;
}
h1:focus,
h2:focus,
h3:focus,
h4:focus,
h5:focus,
h6:focus {
    outline: none;
}
.container { width: min(calc(100% - 3rem), var(--p2b-max)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 50; background: rgba(248, 251, 254, .88); border-bottom: 1px solid rgba(220, 231, 240, .75); backdrop-filter: blur(18px); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-link { display: inline-flex; text-decoration: none; border-radius: .5rem; }
.brand-logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--p2b-ink); line-height: 1; }
.brand-logo__mark { display: block; width: 54px; height: 40px; flex: none; }
.brand-logo__wordmark { display: flex; align-items: baseline; font-size: 1.4rem; font-weight: 800; letter-spacing: -.055em; }
.brand-logo__wordmark span:first-child { color: var(--p2b-blue-dark); }
.brand-logo__wordmark span:nth-child(2) { color: var(--p2b-blue); }
.brand-logo__wordmark span:last-child { color: var(--p2b-orange); }
.brand-logo--compact .brand-logo__mark { width: 44px; height: 31px; }
.primary-nav, .header-actions { display: flex; align-items: center; }
.primary-nav { gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.primary-nav > a:not(.button) { color: var(--p2b-ink); font-size: .93rem; font-weight: 650; text-decoration: none; }
.primary-nav > a:not(.button):hover { color: var(--p2b-blue-dark); }
.header-actions { gap: .65rem; margin-left: .25rem; }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 10px; border: 1px solid var(--p2b-border); border-radius: .75rem; background: var(--p2b-surface); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--p2b-ink); }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .78rem 1.45rem; border: 2px solid transparent; border-radius: 999px; font-weight: 750; line-height: 1; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--small { min-height: 42px; padding: .65rem 1.15rem; font-size: .9rem; }
.button--primary { color: #fff; background: linear-gradient(135deg, var(--p2b-orange), #ff9e20); box-shadow: 0 10px 25px rgba(255, 133, 0, .22); }
.button--primary:hover { background: linear-gradient(135deg, var(--p2b-orange-dark), var(--p2b-orange)); box-shadow: 0 13px 28px rgba(255, 133, 0, .3); }
.button--outline { color: var(--p2b-blue-dark); background: rgba(255,255,255,.75); border-color: var(--p2b-blue); }
.button--outline:hover { color: #fff; background: var(--p2b-blue-dark); }
.button--muted { color: var(--p2b-text); background: rgba(255,255,255,.75); border-color: var(--p2b-border); box-shadow: none; }
.button--muted:hover { color: var(--p2b-ink); background: var(--p2b-sky); }
.button--danger { color: #fff; background: #b42318; box-shadow: 0 10px 25px rgba(180, 35, 24, .18); }
.button--danger:hover { background: #8f1d14; box-shadow: 0 13px 28px rgba(180, 35, 24, .26); }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem); background: radial-gradient(circle at 82% 12%, rgba(140, 208, 255, .36), transparent 34%), linear-gradient(180deg, #f5faff 0%, var(--p2b-background) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr); align-items: center; gap: clamp(3rem, 6vw, 7rem); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 .9rem; color: var(--p2b-blue-dark); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--p2b-ink); font-size: clamp(3.5rem, 6.7vw, 6rem); font-weight: 850; letter-spacing: -.07em; line-height: .93; }
.hero h1 span { display: block; }
.hero h1 span:last-child { margin-top: .14em; color: var(--p2b-orange); }
.hero-lead { max-width: 590px; margin: 2rem 0 0; color: var(--p2b-text); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: .8rem 1.35rem; padding: 0; margin: 2rem 0 0; list-style: none; color: var(--p2b-muted); font-size: .85rem; font-weight: 650; }
.trust-list li { display: flex; align-items: center; gap: .42rem; }
.trust-list span { width: 1.2rem; height: 1.2rem; display: inline-grid; place-items: center; color: var(--p2b-blue-dark); border: 1.5px solid var(--p2b-blue); border-radius: 50%; font-size: .68rem; }
.hero-orb { position: absolute; z-index: -1; border-radius: 48% 52% 63% 37% / 42% 43% 57% 58%; filter: blur(.2px); }
.hero-orb--blue { top: 3rem; right: -8rem; width: 45vw; height: 45vw; max-width: 700px; max-height: 700px; background: linear-gradient(145deg, rgba(35,136,232,.2), rgba(223,241,255,.68)); transform: rotate(14deg); }
.hero-orb--orange { right: 22%; bottom: -18rem; width: 26rem; height: 26rem; background: rgba(255, 208, 153, .37); transform: rotate(-18deg); }

.app-preview { position: relative; min-height: 520px; }
.preview-card { position: absolute; overflow: hidden; border: 1px solid rgba(220,231,240,.9); border-radius: 2rem; background: rgba(255,255,255,.93); box-shadow: var(--p2b-shadow); }
.preview-card::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.preview-card--game { top: 0; left: 0; z-index: 2; width: 62%; min-height: 485px; padding: 1.7rem; transform: rotate(-3deg); }
.preview-card--game::after { right: -5rem; bottom: -5rem; width: 12rem; height: 12rem; background: var(--p2b-sky); }
.preview-card--connection { right: 0; bottom: 0; z-index: 3; width: 53%; min-height: 405px; padding: 2rem 1.7rem; transform: rotate(4deg); background: linear-gradient(160deg, #fff, var(--p2b-orange-soft)); }
.preview-card--connection::after { left: -4rem; bottom: -5rem; width: 10rem; height: 10rem; background: rgba(255,133,0,.12); }
.preview-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--p2b-muted); font-size: .75rem; font-weight: 700; }
.preview-label { margin: 2.6rem 0 .35rem; color: var(--p2b-blue-dark); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.preview-card h2 { margin: 0; color: var(--p2b-ink); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; }
.choice-stack { display: grid; gap: .7rem; margin-top: 1.4rem; }
.choice-stack span { padding: .95rem 1rem; color: var(--p2b-ink); border: 1px solid var(--p2b-border); border-radius: 1rem; background: #fff; font-size: .86rem; font-weight: 700; box-shadow: 0 7px 20px rgba(21,36,58,.06); }
.choice-stack span:last-child { color: #fff; border-color: var(--p2b-blue); background: var(--p2b-blue); }
.preview-people { position: absolute; left: 1.7rem; bottom: 1.5rem; z-index: 2; display: flex; align-items: center; }
.preview-people span { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; color: #fff; border: 3px solid #fff; border-radius: 50%; background: var(--p2b-blue-dark); font-size: .7rem; font-weight: 800; }
.preview-people span:nth-child(2) { margin-left: -.5rem; background: var(--p2b-orange); }
.preview-people strong { margin-left: .6rem; color: var(--p2b-muted); font-size: .7rem; }
.reaction-bubble { width: 6.2rem; height: 6.2rem; display: grid; place-items: center; margin: 1.3rem auto 1.7rem; border-radius: 2.1rem; background: linear-gradient(145deg, var(--p2b-orange-soft), #fff); box-shadow: 0 12px 30px rgba(255,133,0,.18); font-size: 3rem; transform: rotate(-5deg); }
.preview-card--connection > p:not(.preview-label) { color: var(--p2b-muted); }
.connection-spark { position: absolute; top: 1.2rem; right: 1.5rem; color: var(--p2b-orange); font-size: 1.7rem; }
.connection-status { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; padding: .65rem .85rem; color: var(--p2b-blue-deep); border-radius: 999px; background: var(--p2b-sky); font-size: .75rem; font-weight: 800; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-heading { max-width: 680px; margin-bottom: 3rem; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section h2, .simple-page h1 { margin: 0; color: var(--p2b-ink); font-size: clamp(2.2rem, 4.2vw, 3.8rem); letter-spacing: -.05em; line-height: 1.04; }
.section-heading > p:last-child, .section-lead { color: var(--p2b-muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feature-card { min-height: 340px; padding: 1.7rem; border: 1px solid var(--p2b-border); border-radius: var(--p2b-radius); background: var(--p2b-surface); box-shadow: 0 12px 38px rgba(21,36,58,.05); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(21,36,58,.09); }
.feature-card__icon { width: 4.2rem; height: 4.2rem; display: grid; place-items: center; margin-bottom: 2.1rem; color: var(--p2b-blue-dark); border-radius: 1.4rem; background: var(--p2b-sky); }
.feature-card__icon--orange { color: var(--p2b-orange-dark); background: var(--p2b-orange-soft); }
.feature-card__icon svg { width: 2.4rem; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.feature-card__eyebrow { margin: 0 0 .35rem; color: var(--p2b-muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.feature-card h3 { margin: 0; color: var(--p2b-ink); font-size: 1.22rem; }
.feature-card > p:last-child { margin: .7rem 0 0; color: var(--p2b-muted); font-size: .92rem; }

.why-section { background: var(--p2b-ink); }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.why-statement { display: grid; color: #fff; font-size: clamp(2.5rem, 5vw, 4.7rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.why-statement strong { margin-top: .12em; color: var(--p2b-orange); }
.why-copy .eyebrow { color: #77bfff; }
.why-copy h2 { color: #fff; }
.why-copy > p:last-child { color: #b8c6d8; font-size: 1.08rem; }

.safety-section { background: linear-gradient(135deg, var(--p2b-sky), #f5fbff 58%, var(--p2b-orange-soft)); }
.safety-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.text-link { display: inline-flex; gap: .45rem; color: var(--p2b-blue-dark); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.safety-list { display: grid; gap: .8rem; padding: 0; margin: 0; list-style: none; }
.safety-list li { display: flex; gap: 1rem; padding: 1.15rem; border: 1px solid rgba(255,255,255,.8); border-radius: 1rem; background: rgba(255,255,255,.74); }
.safety-list li > span { width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; color: var(--p2b-blue-dark); border-radius: .8rem; background: var(--p2b-sky); font-weight: 900; }
.safety-list strong { color: var(--p2b-ink); }
.safety-list p { margin: .15rem 0 0; color: var(--p2b-muted); font-size: .86rem; }

.final-cta { background: var(--p2b-background); }
.cta-panel { position: relative; overflow: hidden; min-height: 310px; display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--p2b-radius-lg); background: linear-gradient(115deg, var(--p2b-blue-dark), var(--p2b-blue)); box-shadow: 0 24px 60px rgba(18,102,195,.22); }
.cta-panel::before, .cta-panel::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-panel::before { width: 18rem; height: 18rem; left: -8rem; bottom: -13rem; }
.cta-panel::after { width: 14rem; height: 14rem; right: -5rem; top: -8rem; }
.cta-panel > * { position: relative; z-index: 2; }
.cta-panel .eyebrow { color: #bfe3ff; }
.cta-panel h2 { max-width: 600px; color: #fff; }
.cta-panel p:last-child { margin-bottom: 0; color: #dceeff; font-size: 1.08rem; }
.button--light { flex: none; color: var(--p2b-orange-dark); background: #fff; box-shadow: none; }
.cta-doodle { position: absolute; z-index: 1; right: 18%; bottom: .7rem; width: 26%; opacity: .25; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.site-footer { color: #a8b7ca; background: #101d30; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 4rem; padding-top: 4rem; padding-bottom: 3rem; }
.footer-brand { max-width: 430px; }
.footer-brand .brand-logo__wordmark span:first-child, .footer-brand .brand-logo__wordmark span:nth-child(2) { color: #65b3ff; }
.footer-brand p { margin: 1rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 1.7rem; }
.footer-links a { color: #d4deea; font-size: .9rem; font-weight: 650; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; align-items: center; gap: .8rem; padding-top: 1.4rem; padding-bottom: 2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

.simple-page { min-height: 67vh; display: grid; place-items: center; padding: 5rem 1.5rem; background: radial-gradient(circle at 80% 10%, var(--p2b-sky), transparent 32%), var(--p2b-background); }
.simple-card { width: min(100%, 600px); padding: clamp(2rem, 6vw, 4rem); border: 1px solid var(--p2b-border); border-radius: var(--p2b-radius-lg); background: #fff; box-shadow: var(--p2b-shadow); }
.simple-card--wide { width: min(100%, 760px); }
.simple-page h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.simple-card > p:not(.eyebrow) { margin: 1.4rem 0 2rem; color: var(--p2b-muted); font-size: 1.08rem; }
.account-form { display: grid; gap: 1rem; margin-top: 1.6rem; }
.account-form label:not(.checkbox-row) { display: grid; gap: .4rem; color: var(--p2b-ink); font-weight: 750; }
.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"],
.account-form input[type="date"],
.account-form input[type="number"],
.account-form select {
    width: 100%;
    min-height: 3.2rem;
    padding: .7rem .9rem;
    color: var(--p2b-ink);
    border: 1px solid var(--p2b-border);
    border-radius: .85rem;
    background: #fff;
    font: inherit;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.checkbox-group { display: grid; gap: .55rem; padding: 1rem; border: 1px solid var(--p2b-border); border-radius: 1rem; }
.checkbox-group legend { padding-inline: .35rem; color: var(--p2b-ink); font-weight: 800; }
.checkbox-row { display: flex; align-items: flex-start; gap: .7rem; color: var(--p2b-text); font-weight: 650; }
.checkbox-row input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; accent-color: var(--p2b-blue-dark); }
.checkbox-row a { color: var(--p2b-blue-dark); font-weight: 800; }
.form-message { margin: 1rem 0; padding: .9rem 1rem; border-radius: .9rem; font-weight: 650; }
.form-message ul { margin: 0; padding-left: 1.1rem; }
.form-message--error { color: #8a3200; border: 1px solid rgba(255, 133, 0, .35); background: var(--p2b-orange-soft); }
.validation-errors { color: #8a3200; }
.account-helper { margin-top: 1.5rem; color: var(--p2b-muted); }
.account-details { display: grid; gap: .9rem; margin: 1.8rem 0; }
.account-details div { display: grid; gap: .2rem; padding: 1rem; border: 1px solid var(--p2b-border); border-radius: 1rem; background: rgba(223, 241, 255, .32); }
.account-details dt { color: var(--p2b-muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.account-details dd { margin: 0; color: var(--p2b-ink); font-weight: 750; }
.account-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.logout-form { display: inline-flex; margin: 0; }
.logout-form .button { width: 100%; }
.avatar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.avatar-card { display: grid; gap: .7rem; place-items: center; padding: 1rem; color: var(--p2b-ink); border: 1px solid var(--p2b-border); border-radius: 1rem; background: #fff; cursor: pointer; font-weight: 800; text-align: center; }
.avatar-card:has(input:checked), .avatar-card--selected { border-color: var(--p2b-blue); box-shadow: 0 0 0 3px rgba(35, 136, 232, .14); }
.avatar-card input { position: absolute; opacity: 0; }
.avatar-card:has(input:focus-visible) { outline: 3px solid var(--p2b-blue); outline-offset: 3px; }
.avatar-swatch { width: 3.6rem; height: 3.6rem; display: inline-grid; place-items: center; border-radius: 1.25rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 10px 22px rgba(21,36,58,.12); }
.avatar-swatch::before { content: ""; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: rgba(255,255,255,.85); }
.avatar-swatch--large { width: 5rem; height: 5rem; border-radius: 1.6rem; }
.avatar-swatch--orbit-blue { background: linear-gradient(135deg, var(--p2b-blue-dark), #5bb6ff); }
.avatar-swatch--sunset-orange { background: linear-gradient(135deg, var(--p2b-orange), #ffd19a); }
.avatar-swatch--mint-explorer { background: linear-gradient(135deg, #16a36a, #bdf5df); }
.avatar-swatch--violet-wave { background: linear-gradient(135deg, #7530c7, #d6c2ff); }
.avatar-swatch--sky-strategist { background: linear-gradient(135deg, #56b7ff, var(--p2b-sky)); }
.avatar-swatch--amber-joker { background: linear-gradient(135deg, #ffb000, #fff0bd); }
.avatar-swatch--navy-support { background: linear-gradient(135deg, #15243a, #7ea7d8); }
.avatar-swatch--coral-curious { background: linear-gradient(135deg, #ff6f61, #ffd0c8); }
.avatar-swatch--ai-mira { background: linear-gradient(135deg, var(--p2b-orange), #ffe1b8); }
.avatar-swatch--ai-theo { background: linear-gradient(135deg, var(--p2b-blue), #bfe3ff); }
.avatar-swatch--ai-nova { background: linear-gradient(135deg, #7530c7, #ffb4d6); }
.ai-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: .2rem .55rem; background: var(--p2b-sky); color: var(--p2b-blue-dark); font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.profile-hero { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem; border: 1px solid var(--p2b-border); border-radius: 1.2rem; background: linear-gradient(135deg, rgba(223,241,255,.45), #fff); }
.profile-hero h2 { margin: 0; color: var(--p2b-ink); font-size: 1.8rem; }
.profile-hero p { margin: .2rem 0 0; color: var(--p2b-muted); }
.section-title { margin: 2rem 0 0; color: var(--p2b-ink); }
.onboarding-progress { width: 100%; height: .65rem; overflow: hidden; margin: 0 0 1.2rem; border-radius: 999px; background: var(--p2b-sky); }
.onboarding-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--p2b-blue), var(--p2b-orange)); }
.encounter-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.maintenance-section { display: grid; gap: 1rem; margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--p2b-border); border-radius: 1.1rem; background: rgba(223, 241, 255, .25); }
.maintenance-section h2 { margin: 0; color: var(--p2b-ink); }
.maintenance-section p { margin: 0; color: var(--p2b-muted); }
.maintenance-section--danger { border-color: rgba(180, 35, 24, .35); background: #fff5f5; }
.admin-page { place-items: start center; }
.admin-card { width: min(100%, 1120px); }
.admin-filter { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.admin-table-wrap { width: 100%; overflow-x: auto; margin-top: 1rem; }
.admin-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: .9rem; }
.admin-table th,
.admin-table td { padding: .75rem .8rem; border-bottom: 1px solid var(--p2b-border); text-align: left; vertical-align: top; }
.admin-table th { color: var(--p2b-muted); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.admin-table a { color: var(--p2b-blue-dark); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.status-pill { display: inline-flex; margin-top: .35rem; padding: .25rem .55rem; color: var(--p2b-blue-dark); border-radius: 999px; background: var(--p2b-sky); font-size: .72rem; font-weight: 850; }
.diagnostic-list,
.admin-list { display: grid; gap: .5rem; padding-left: 1.2rem; color: var(--p2b-text); }
.diagnostic-list span { display: inline-grid; width: 1.4rem; color: var(--p2b-blue-dark); font-weight: 900; }
.maintenance-section form { margin: 0; }
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.scenario-card { padding: 1.1rem; border: 1px solid var(--p2b-border); border-radius: 1.1rem; background: #fff; }
.scenario-card h3 { margin: 0; color: var(--p2b-ink); }
.scenario-card--compatible { border-color: rgba(35, 136, 232, .35); background: linear-gradient(135deg, rgba(223, 241, 255, .58), #fff); }
.scenario-card--diagnostic { border-color: rgba(255, 133, 0, .35); background: linear-gradient(135deg, rgba(255, 240, 223, .72), #fff); }
.game-choice-grid, .encounter-player-header { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0; }
.encounter-game-panel { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.color-options form, .option-list form { margin: 0; }
.color-options { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.option-list { display: grid; gap: .8rem; }

#blazor-error-ui { color-scheme: light only; position: fixed; inset: auto 0 0; z-index: 1000; display: none; padding: .8rem 1.2rem; color: var(--p2b-ink); background: var(--p2b-orange-soft); box-shadow: 0 -1px 4px rgba(0,0,0,.15); }
#blazor-error-ui .dismiss { position: absolute; right: .75rem; cursor: pointer; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 720px; }
    .app-preview { width: min(100%, 680px); margin-inline: auto; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid, .safety-grid { grid-template-columns: 1fr; }
    .why-copy { max-width: 700px; }
    .cta-panel { align-items: flex-start; flex-direction: column; }
    .cta-doodle { width: 40%; right: 4%; bottom: 1.5rem; }
}

@media (max-width: 820px) {
    .header-inner { min-height: 74px; }
    .menu-toggle { display: block; }
    .primary-nav { position: absolute; top: calc(100% + .6rem); left: 1.5rem; right: 1.5rem; display: none; align-items: stretch; gap: 0; padding: .75rem; border: 1px solid var(--p2b-border); border-radius: 1.1rem; background: #fff; box-shadow: var(--p2b-shadow); }
    .primary-nav--open { display: grid; }
    .primary-nav > a:not(.button) { padding: .8rem 1rem; border-radius: .7rem; }
    .primary-nav > a:not(.button):hover { background: var(--p2b-sky); }
    .header-actions { display: grid; grid-template-columns: 1fr 1fr; margin: .7rem 0 0; padding-top: .7rem; border-top: 1px solid var(--p2b-border); }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 620px) {
    .container { width: min(calc(100% - 2rem), var(--p2b-max)); }
    .brand-logo__mark { width: 47px; }
    .brand-logo__wordmark { font-size: 1.2rem; }
    .hero { padding-top: 3.5rem; }
    .hero h1 { font-size: clamp(3.1rem, 16vw, 4.4rem); }
    .hero-actions { display: grid; }
    .hero-actions .button { width: 100%; }
    .trust-list { display: grid; }
    .app-preview { min-height: 470px; margin-top: 1rem; }
    .preview-card--game { width: 76%; min-height: 420px; padding: 1.25rem; }
    .preview-card--connection { width: 62%; min-height: 335px; padding: 1.35rem; }
    .preview-label { margin-top: 1.8rem; }
    .reaction-bubble { width: 4.7rem; height: 4.7rem; font-size: 2.3rem; }
    .preview-people { left: 1.2rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: auto; }
    .why-statement { font-size: clamp(2.7rem, 13vw, 4rem); }
    .cta-panel { min-height: 380px; }
    .cta-panel .button { align-self: stretch; }
    .cta-doodle { width: 70%; right: -8%; }
    .footer-links { display: grid; grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .form-grid, .avatar-grid, .encounter-pair { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .brand-logo__wordmark { display: none; }
    .app-preview { min-height: 415px; }
    .preview-card--game { width: 81%; min-height: 375px; }
    .preview-card--connection { width: 64%; min-height: 300px; }
    .choice-stack span { padding: .7rem; font-size: .72rem; }
    .preview-people strong { display: none; }
    .preview-card h2 { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Reusable WP011 component foundation */
.p2b-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .82rem 1.55rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.p2b-button:hover { transform: translateY(-2px); }
.p2b-button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--p2b-coral), #c94444);
    box-shadow: 0 12px 26px rgba(244, 95, 93, .24);
}
.p2b-button--primary:hover { background: linear-gradient(135deg, var(--p2b-coral-dark), var(--p2b-coral)); }
.p2b-button--secondary { color: var(--p2b-text-strong); background: var(--p2b-surface); box-shadow: var(--shadow-sm); }
.p2b-button--outline { color: var(--p2b-text-strong); border-color: #3b4169; background: rgba(255,255,255,.72); }
.p2b-button--outline:hover { border-color: var(--p2b-purple); background: var(--p2b-lavender); }
.p2b-button--ghost { color: var(--p2b-purple-dark); background: transparent; }
.p2b-button--ghost:hover { background: var(--p2b-lavender); }
.p2b-icon-button {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--p2b-text-strong);
    border: 1px solid var(--p2b-border-warm);
    border-radius: 50%;
    background: var(--p2b-surface);
}
.p2b-card { border: 1px solid var(--p2b-border-warm); border-radius: var(--radius-lg); background: var(--p2b-surface); box-shadow: var(--shadow-sm); }
.p2b-chip, .p2b-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); font-weight: 800; }
.p2b-chip { min-width: 1.55rem; min-height: 1.55rem; padding: .2rem .45rem; color: #fff; background: var(--p2b-purple); font-size: .76rem; }
.p2b-badge { gap: .4rem; padding: .35rem .7rem; color: var(--p2b-purple-dark); background: var(--p2b-lavender); font-size: .78rem; }

.p2b-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    flex: none;
    background: currentColor;
    -webkit-mask: var(--p2b-icon-url) center / contain no-repeat;
    mask: var(--p2b-icon-url) center / contain no-repeat;
}
.p2b-icon--game { --p2b-icon-url: url("/icons/game.svg"); }
.p2b-icon--match { --p2b-icon-url: url("/icons/match.svg"); }
.p2b-icon--chat { --p2b-icon-url: url("/icons/chat.svg"); }
.p2b-icon--shield { --p2b-icon-url: url("/icons/shield.svg"); }
.p2b-icon--lock { --p2b-icon-url: url("/icons/lock.svg"); }
.p2b-icon--heart { --p2b-icon-url: url("/icons/heart.svg"); }
.p2b-icon--globe { --p2b-icon-url: url("/icons/globe.svg"); }
.p2b-icon--arrow-right { --p2b-icon-url: url("/icons/arrow-right.svg"); }

/* Public chrome */
.site-header {
    background: rgba(255, 250, 245, .94);
    border-bottom-color: rgba(234, 223, 214, .8);
    backdrop-filter: blur(16px);
}
.header-inner { min-height: 82px; }
.brand-logo__mark { width: 50px; }
.brand-logo__mark circle:first-child { fill: var(--p2b-purple); }
.brand-logo__mark circle:nth-child(2) { fill: var(--p2b-yellow); }
.brand-logo__mark path { fill: var(--p2b-purple-dark); }
.brand-logo__wordmark span:first-child,
.brand-logo__wordmark span:nth-child(2),
.brand-logo__wordmark span:last-child { color: #151a46; }
.primary-nav > a:not(.button) { color: #151a46; }
.primary-nav > a:not(.button):hover { color: var(--p2b-purple-dark); }
.language-switcher { display: flex; align-items: center; gap: .22rem; color: #313759; }
.language-switcher__icon { margin-right: .2rem; }
.language-switcher form { display: inline-flex; margin: 0; }
.language-switcher__option {
    min-width: 2rem;
    min-height: 2rem;
    padding: .2rem .38rem;
    color: #313759;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    font: inherit;
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
}
.language-switcher__option:hover { background: var(--p2b-lavender); }
.language-switcher__option[aria-current="true"] { color: #fff; background: var(--p2b-purple); }
.site-header .button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--p2b-coral), #c94444);
    box-shadow: 0 10px 22px rgba(244,95,93,.2);
}
.site-header .button--outline { color: #151a46; border-color: #39406e; background: transparent; }

.site-footer { color: #686b82; background: #fff7f1; border-top: 1px solid var(--p2b-border-warm); }
.footer-grid { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.footer-brand .brand-logo__wordmark span:first-child,
.footer-brand .brand-logo__wordmark span:nth-child(2),
.footer-brand .brand-logo__wordmark span:last-child { color: #151a46; }
.footer-links a { color: #444963; }
.footer-links a:hover { color: var(--p2b-purple-dark); }
.footer-bottom { border-top-color: var(--p2b-border-warm); }

/* WP011 landing page */
.landing-page {
    overflow: hidden;
    color: var(--p2b-text-strong);
    background: var(--p2b-background);
    font-family: "Inter", "Segoe UI", sans-serif;
}
.landing-page h1,
.landing-page h2,
.landing-page h3 { font-family: "Poppins", "Segoe UI", sans-serif; }
.landing-eyebrow {
    margin: 0 0 .7rem;
    color: var(--p2b-purple-dark);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.landing-hero {
    position: relative;
    isolation: isolate;
    min-height: min(760px, calc(100vh - 82px));
    display: grid;
    align-items: center;
    padding: clamp(2.5rem, 4vw, 4.5rem) 0 clamp(3rem, 5vw, 5rem);
    background: radial-gradient(circle at 54% 28%, rgba(238,232,255,.6), transparent 23%), var(--p2b-background);
}
.landing-hero__grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr); align-items: center; gap: clamp(2rem, 3.5vw, 4.5rem); }
.landing-hero__copy { position: relative; z-index: 2; }
.landing-hero h1 { margin: 0; color: #121842; font-size: clamp(3.5rem, 5vw, 5.5rem); font-weight: 850; letter-spacing: -.06em; line-height: .96; }
.landing-hero h1 span { display: block; }
.landing-hero h1 span:last-child {
    margin-top: .12em;
    color: var(--p2b-purple);
    background: linear-gradient(110deg, var(--p2b-purple-dark), #9b6ef3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.landing-hero__lead { max-width: 600px; margin: 1.7rem 0 0; color: #4f536b; font-size: clamp(1.03rem, 1.3vw, 1.18rem); line-height: 1.72; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.9rem; }
.landing-trust { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; padding: 0; margin: 1.8rem 0 0; color: #454a67; list-style: none; font-size: .88rem; font-weight: 650; }
.landing-trust li { display: inline-flex; align-items: center; gap: .43rem; }
.landing-trust li + li::before { content: "•"; margin-right: .75rem; color: #a2a3b2; }
.landing-trust .p2b-icon { width: 1.15rem; height: 1.15rem; color: #454a67; }
.landing-hero__visual { position: relative; z-index: 1; }
.landing-hero__visual::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 9% 4% 4% 8%;
    border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%;
    background: linear-gradient(145deg, rgba(214,245,238,.82), rgba(238,232,255,.62));
    transform: rotate(-4deg);
}
.landing-hero__visual img { width: 116%; max-width: none; height: auto; display: block; margin-left: -8%; filter: drop-shadow(0 25px 35px rgba(45,36,66,.12)); }
.landing-dot { position: absolute; width: .8rem; height: .8rem; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.55); }
.landing-dot--one { top: 9%; left: 9%; background: var(--p2b-purple); }
.landing-dot--two { right: 3%; top: 35%; background: var(--p2b-yellow); }
.landing-dot--three { right: 9%; bottom: 13%; background: var(--p2b-teal); }
.landing-shape { position: absolute; z-index: -1; pointer-events: none; }
.landing-shape--teal { top: -8rem; left: 10%; width: 25rem; height: 14rem; border-radius: 42% 58% 61% 39% / 42% 40% 60% 58%; background: rgba(0,168,138,.52); transform: rotate(-6deg); }
.landing-shape--yellow { top: 3rem; right: -8rem; width: 17rem; height: 21rem; border-radius: 58% 42% 45% 55% / 42% 35% 65% 58%; background: rgba(248,189,69,.88); transform: rotate(17deg); }
.landing-shape--purple { left: -17rem; bottom: -15rem; width: 20rem; height: 23rem; border-radius: 54% 46% 65% 35% / 46% 57% 43% 54%; background: linear-gradient(150deg, #8f7bf3, var(--p2b-purple)); transform: rotate(-16deg); }

.landing-section { position: relative; padding: clamp(4.5rem, 7vw, 7rem) 0; }
.landing-section__heading { max-width: 700px; margin: 0 auto 3.25rem; text-align: center; }
.landing-section__heading--left { margin: 0; text-align: left; }
.landing-section__heading h2,
.landing-safety h2 { margin: 0; color: #151a46; font-size: clamp(2.2rem, 3.8vw, 3.65rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.06; }
.landing-section__heading > p:last-child { margin: 1rem 0 0; color: var(--p2b-text-muted); font-size: 1.04rem; }
.landing-how { background: rgba(255,255,255,.72); }
.landing-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.landing-steps::before { content: ""; position: absolute; top: 3.2rem; left: 11%; right: 11%; border-top: 2px dashed #ead5c7; }
.landing-step { position: relative; z-index: 1; padding: 0 1rem; text-align: center; }
.landing-step__icon { width: 6rem; height: 6rem; display: grid; place-items: center; margin: 0 auto 1.15rem; border-radius: 1.5rem; box-shadow: var(--shadow-sm); }
.landing-step__icon .p2b-icon { width: 3.1rem; height: 3.1rem; }
.landing-step--teal .landing-step__icon { color: #087b70; background: var(--p2b-teal-soft); }
.landing-step--yellow .landing-step__icon { color: #b06b00; background: var(--p2b-yellow-soft); }
.landing-step--purple .landing-step__icon { color: var(--p2b-purple-dark); background: var(--p2b-lavender); }
.landing-step--coral .landing-step__icon { color: var(--p2b-coral-dark); background: var(--p2b-coral-soft); }
.landing-step--yellow .p2b-chip { background: var(--p2b-warning); }
.landing-step--teal .p2b-chip { background: #087b70; }
.landing-step--coral .p2b-chip { background: var(--p2b-coral); }
.landing-step h3 { margin: .8rem 0 .45rem; color: #151a46; font-size: 1.02rem; }
.landing-step p { margin: 0; color: var(--p2b-text-muted); font-size: .9rem; line-height: 1.58; }

.landing-games { background: linear-gradient(155deg, var(--p2b-surface-soft), var(--p2b-sand)); }
.landing-games__grid { display: grid; grid-template-columns: minmax(270px,.7fr) minmax(0,1.3fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.landing-game-list { display: grid; gap: 1rem; }
.landing-game-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.2rem;
    min-height: 132px;
    padding: 1.25rem 1.4rem;
    color: #151a46;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.landing-game-card:hover { transform: translateY(-3px); border-color: rgba(108,92,231,.45); box-shadow: var(--shadow-md); }
.landing-game-card > span:nth-child(2) { display: grid; gap: .3rem; }
.landing-game-card strong { font-size: 1.15rem; }
.landing-game-card > span:nth-child(2) > span { color: var(--p2b-text-muted); font-size: .92rem; }
.landing-game-card > .p2b-icon { color: var(--p2b-coral); }
.landing-game-card__symbol { width: 4.6rem; height: 4.6rem; display: grid; place-items: center; border-radius: 50%; }
.landing-game-card__symbol--color { border: .8rem solid transparent; background: linear-gradient(#fff,#fff) padding-box, conic-gradient(var(--p2b-purple), var(--p2b-coral), var(--p2b-yellow), var(--p2b-teal), var(--p2b-purple)) border-box; }
.landing-game-card__symbol--joke { position: relative; background: linear-gradient(145deg, #8b64ed, var(--p2b-purple-dark)); }
.landing-game-card__symbol--joke::before,
.landing-game-card__symbol--joke::after { content: ""; position: absolute; top: 1.45rem; width: .42rem; height: .42rem; border-radius: 50%; background: #fff; }
.landing-game-card__symbol--joke::before { left: 1.35rem; }
.landing-game-card__symbol--joke::after { right: 1.35rem; }
.landing-game-card__symbol--joke span { width: 1.8rem; height: .9rem; margin-top: 1rem; border-bottom: .28rem solid #fff; border-radius: 0 0 50% 50%; }

.landing-safety { background: #fff; }
.landing-safety__card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1.6rem; padding: clamp(1.5rem, 3vw, 2.2rem); background: linear-gradient(110deg, #fff, #fffaf7); }
.landing-safety__icon { width: 5.5rem; height: 5.5rem; display: grid; place-items: center; color: #fff; border-radius: 50%; background: linear-gradient(145deg, #8b64ed, var(--p2b-purple-dark)); box-shadow: 0 14px 28px rgba(108,92,231,.22); }
.landing-safety__icon .p2b-icon { width: 3.1rem; height: 3.1rem; }
.landing-safety h2 { font-size: clamp(1.55rem, 2.4vw, 2.25rem); }
.landing-safety__card p:not(.landing-eyebrow) { margin: .55rem 0 0; color: var(--p2b-text-muted); }
.landing-text-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem; color: var(--p2b-purple-dark); font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.landing-text-link .p2b-icon { width: 1rem; height: 1rem; }
.landing-safety__actions { display: grid; grid-template-columns: repeat(2, minmax(135px, 1fr)); gap: .75rem; min-width: 330px; }
.landing-safety__actions small { grid-column: 1 / -1; color: var(--p2b-text-muted); text-align: center; }

.p2b-modal-open { overflow: hidden; }
.p2b-modal {
    width: min(1120px, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    border-radius: var(--radius-xl);
    color: var(--p2b-text);
    background: transparent;
    overflow: visible;
}
.p2b-modal::backdrop {
    background: rgba(18,24,66,.64);
    backdrop-filter: blur(7px);
}
.p2b-modal__surface {
    position: relative;
    max-height: calc(100dvh - 2rem);
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid rgba(222,205,190,.9);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 8% 8%, rgba(191,232,224,.72), transparent 25%),
        radial-gradient(circle at 95% 12%, rgba(255,226,153,.68), transparent 22%),
        var(--p2b-background);
    box-shadow: 0 30px 80px rgba(18,24,66,.3);
    overflow: auto;
    overscroll-behavior: contain;
}
.p2b-modal__close {
    position: absolute;
    z-index: 3;
    top: 1.15rem;
    right: 1.15rem;
    color: #33385b;
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-sm);
}
.p2b-modal__close:hover { color: var(--p2b-purple-dark); background: #fff; }
.p2b-modal__close > span,
.p2b-modal__close > span::after {
    position: absolute;
    width: 1.2rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}
.p2b-modal__close > span {
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(45deg);
}
.p2b-modal__close > span::after {
    top: 0;
    left: 0;
    transform: rotate(90deg);
}
.how-modal__header {
    max-width: 720px;
    padding-right: 3.5rem;
}
.how-modal__header h2 {
    margin: 0;
    color: #151a46;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.04;
}
.how-modal__header > p:last-child {
    margin: 1rem 0 0;
    color: var(--p2b-text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}
.how-modal__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1rem;
    padding: 0;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    list-style: none;
}
.how-modal__step {
    min-height: 250px;
    padding: 1.35rem;
    border: 1px solid var(--p2b-border-warm);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow-sm);
}
.how-modal__icon {
    position: relative;
    width: 4.75rem;
    height: 4.75rem;
    display: grid;
    place-items: center;
    border-radius: 1.35rem;
}
.how-modal__icon .p2b-icon { width: 2.55rem; height: 2.55rem; }
.how-modal__icon .p2b-badge {
    position: absolute;
    right: -.5rem;
    bottom: -.45rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    color: #fff;
    box-shadow: 0 4px 10px rgba(18,24,66,.18);
}
.how-modal__step h3 {
    margin: 1.35rem 0 .55rem;
    color: #151a46;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 1.05rem;
}
.how-modal__step p { margin: 0; color: var(--p2b-text-muted); font-size: .9rem; line-height: 1.6; }
.how-modal__step--teal .how-modal__icon { color: #087b70; background: var(--p2b-teal-soft); }
.how-modal__step--teal .p2b-badge { background: #087b70; }
.how-modal__step--yellow .how-modal__icon { color: #865300; background: var(--p2b-yellow-soft); }
.how-modal__step--yellow .p2b-badge { background: #865300; }
.how-modal__step--purple .how-modal__icon { color: var(--p2b-purple-dark); background: var(--p2b-lavender); }
.how-modal__step--purple .p2b-badge { background: var(--p2b-purple); }
.how-modal__step--coral .how-modal__icon { color: var(--p2b-coral-dark); background: var(--p2b-coral-soft); }
.how-modal__step--coral .p2b-badge { background: var(--p2b-coral); }
.how-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    padding-top: 1.5rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--p2b-border-warm);
}

@media (max-width: 1100px) {
    .landing-hero { min-height: auto; }
    .landing-hero__grid { grid-template-columns: 1fr; }
    .landing-hero__copy { max-width: 760px; }
    .landing-hero__visual { width: min(100%, 820px); margin: -1rem auto 0; }
    .landing-hero__visual img { width: 108%; margin-left: -4%; }
    .landing-shape--yellow { top: 34%; }
    .landing-games__grid { gap: 3.5rem; }
    .landing-safety__card { grid-template-columns: auto 1fr; }
    .landing-safety__actions { grid-column: 2; width: min(100%, 420px); }
}

@media (max-width: 820px) {
    .primary-nav { border-color: var(--p2b-border-warm); background: #fffaf6; box-shadow: var(--shadow-md); }
    .primary-nav > a:not(.button):hover { background: var(--p2b-lavender); }
    .language-switcher { padding: .65rem 1rem; }
    .header-actions { border-top-color: var(--p2b-border-warm); }
    .landing-steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
    .landing-steps::before { display: none; }
    .landing-games__grid { grid-template-columns: 1fr; }
    .landing-section__heading--left { max-width: 700px; }
    .landing-safety__card { grid-template-columns: 1fr; text-align: center; }
    .landing-safety__icon { margin-inline: auto; }
    .landing-safety__actions { grid-column: auto; justify-self: center; }
    .how-modal__steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .how-modal__step { min-height: 220px; }
}

@media (max-width: 620px) {
    .landing-hero { padding-top: 2.7rem; }
    .landing-hero h1 { font-size: clamp(3rem, 15vw, 4.35rem); }
    .landing-actions { display: grid; }
    .landing-actions .p2b-button { width: 100%; }
    .landing-trust { gap: .75rem 1rem; }
    .landing-trust li + li::before { display: none; }
    .landing-hero__visual { margin-top: 1.2rem; }
    .landing-hero__visual img { width: 122%; margin-left: -11%; }
    .landing-shape--teal { width: 18rem; height: 10rem; top: -7rem; }
    .landing-shape--yellow { width: 10rem; height: 13rem; top: 46%; right: -6rem; opacity: .75; }
    .landing-shape--purple { width: 11rem; height: 14rem; left: -9rem; bottom: -9rem; opacity: .75; }
    .landing-section { padding-block: 4.25rem; }
    .landing-steps { grid-template-columns: 1fr; }
    .landing-step { padding-inline: .5rem; }
    .landing-game-card { grid-template-columns: auto 1fr; }
    .landing-game-card > .p2b-icon { display: none; }
    .landing-game-card__symbol { width: 4rem; height: 4rem; }
    .landing-game-card__symbol--joke::before { left: 1.15rem; top: 1.22rem; }
    .landing-game-card__symbol--joke::after { right: 1.15rem; top: 1.22rem; }
    .landing-safety__actions { width: 100%; min-width: 0; grid-template-columns: 1fr; }
    .landing-safety__actions small { grid-column: auto; }
    .p2b-modal {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: var(--radius-lg);
    }
    .p2b-modal__surface {
        max-height: calc(100dvh - 1rem);
        padding: 1.4rem;
        border-radius: var(--radius-lg);
    }
    .p2b-modal__close { position: sticky; top: 0; float: right; margin: -.25rem -.25rem .25rem .75rem; }
    .how-modal__header { position: sticky; z-index: 2; top: -1.4rem; max-width: none; padding: 1.4rem 3.25rem 1rem 0; background: linear-gradient(90deg, #f6fbf8 72%, #fff8e9); }
    .how-modal__header h2 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
    .how-modal__header > p:last-child { font-size: .96rem; }
    .how-modal__steps { grid-template-columns: 1fr; margin-top: 1.4rem; }
    .how-modal__step { min-height: 0; }
    .how-modal__footer { position: sticky; z-index: 2; bottom: -1.4rem; display: grid; padding: 1rem 0 1.4rem; background: linear-gradient(0deg, var(--p2b-background) 82%, rgba(255,250,245,0)); }
    .how-modal__footer .p2b-button { width: 100%; }
}

@media (max-width: 390px) {
    .landing-hero h1 { font-size: 2.95rem; }
    .landing-trust { display: grid; }
    .landing-game-card { min-height: 118px; padding: 1rem; gap: .85rem; }
    .landing-game-card__symbol { width: 3.5rem; height: 3.5rem; }
    .landing-game-card__symbol--joke::before { left: .98rem; top: 1.05rem; }
    .landing-game-card__symbol--joke::after { right: .98rem; top: 1.05rem; }
    .landing-game-card__symbol--joke span { width: 1.45rem; }
}
