/* eFriend announcement page. Everything is prefixed efp- so it never touches the rest of the site. */
.efp { --teal: #0f766e; --teal-2: #14a0a8; --gold: #f2b01e; --ink-d: #0b1f1d; --late: #d92d20; --warn: #e89a00; --ok: #0b7a58; --surface: #fff; --line: #e6ded6; --muted: #6b5f57; --ink: #2a1a14; --accent: #0f766e; --bg: #fff8f2; color: var(--ink); overflow-x: clip; }
[data-theme="dark"] .efp { --surface: #1d1b22; --line: #38333f; --muted: #aaa1b3; --ink: #f4eef8; --bg: #15131a; }
.efp section { position: relative; }
.efp .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.efp h1, .efp h2, .efp h3 { font-family: inherit; line-height: 1.12; letter-spacing: -.01em; }
.efp h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 0 0 14px; }
.efp h3 { font-size: 1.25rem; margin: 0 0 8px; }
.efp p { line-height: 1.6; }
.efp .efp-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--teal); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.efp .efp-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); }
.efp-sec { padding: clamp(56px, 9vw, 110px) 0; }
.efp-lead { font-size: 1.15rem; max-width: 62ch; color: var(--muted); }

/* reveal on scroll */
.efp-rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.efp-rv.in { opacity: 1; transform: none; }
.efp-rv-l { opacity: 0; transform: translateX(-40px); transition: opacity .9s, transform .9s; }
.efp-rv-r { opacity: 0; transform: translateX(40px); transition: opacity .9s, transform .9s; }
.efp-rv-l.in, .efp-rv-r.in { opacity: 1; transform: none; }

/* hero */
.efp-hero { background: radial-gradient(1200px 600px at 80% -10%, #1c6f68 0%, transparent 60%), radial-gradient(900px 500px at 0% 100%, #14424a 0%, transparent 60%), linear-gradient(160deg, #0b1f1d, #0e2f33 60%, #10262d); color: #fff; padding: clamp(60px, 9vw, 120px) 0 clamp(50px, 8vw, 100px); overflow: hidden; }
.efp-hero .efp-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: efp-drift 16s ease-in-out infinite alternate; pointer-events: none; }
.efp-hero .b1 { width: 380px; height: 380px; background: #14a0a8; left: -80px; top: 40px; }
.efp-hero .b2 { width: 320px; height: 320px; background: #f2b01e; right: 6%; bottom: -60px; opacity: .28; animation-duration: 21s; }
@keyframes efp-drift { to { transform: translate(60px, -40px) scale(1.15); } }
.efp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.efp-pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-weight: 700; font-size: .85rem; margin-bottom: 18px; backdrop-filter: blur(6px); }
.efp-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(242, 176, 30, .7); animation: efp-ping 2s infinite; }
@keyframes efp-ping { to { box-shadow: 0 0 0 12px rgba(242, 176, 30, 0); } }
.efp-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.2rem); margin: 0 0 18px; }
.efp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffd56a, #7ff0df); -webkit-background-clip: text; background-clip: text; color: transparent; }
.efp-hero .efp-logowrap { max-width: 460px; margin-bottom: 8px; }
.efp-hero .efp-logowrap svg { width: 100%; height: auto; overflow: visible; }
.efp-hero .ef-logo { --ink: #fff; font-family: inherit; }
.efp-hero .efp-lead { color: rgba(255, 255, 255, .82); }
.efp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.efp-btn { border: 0; font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.efp-btn:hover { transform: translateY(-2px); }
.efp-btn.pri { background: linear-gradient(135deg, #ffc94d, #f2a21e); color: #2b1a00; box-shadow: 0 10px 30px rgba(242, 176, 30, .35); }
.efp-btn.gh { background: transparent; border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; }
.efp-btn.dk { background: var(--teal); color: #fff; }
.efp-hero-robot { text-align: center; position: relative; }
.efp-hero-robot .efp-bot { display: inline-block; cursor: pointer; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.efp-hero-robot .ef-mascot { width: min(360px, 78vw); height: auto; }
.efp-bubble { display: inline-block; margin-top: 8px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-weight: 700; min-height: 3em; max-width: 340px; transition: opacity .3s; }
.efp-bubble.swap { opacity: 0; }
.efp-hint { display: block; margin-top: 10px; font-size: .85rem; opacity: .75; }

/* promises */
.efp-promises { background: var(--surface); border-bottom: 1px solid var(--line); }
.efp-promises .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.efp-prom { display: flex; gap: 14px; align-items: flex-start; }
.efp-prom b { display: block; }
.efp-prom .em { font-size: 2rem; line-height: 1; animation: efp-bob 3s ease-in-out infinite; }
.efp-prom:nth-child(2) .em { animation-delay: .4s; } .efp-prom:nth-child(3) .em { animation-delay: .8s; }
@keyframes efp-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }

/* steps */
.efp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; counter-reset: s; }
.efp-step { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; position: relative; overflow: hidden; }
.efp-step::before { counter-increment: s; content: counter(s); position: absolute; right: 18px; top: 4px; font-size: 6rem; font-weight: 900; color: var(--teal); opacity: .08; line-height: 1; }
.efp-step .em { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.efp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.efp-chipcycle { position: relative; display: inline-block; min-width: 150px; height: 34px; margin-top: 14px; }
.efp-chipcycle .ef-chip { position: absolute; left: 0; top: 0; opacity: 0; animation: efp-cyc 10s infinite; font-size: .95rem; padding: 5px 14px; }
.efp-chipcycle .ef-chip:nth-child(2) { animation-delay: 2s; } .efp-chipcycle .ef-chip:nth-child(3) { animation-delay: 4s; } .efp-chipcycle .ef-chip:nth-child(4) { animation-delay: 6s; } .efp-chipcycle .ef-chip:nth-child(5) { animation-delay: 8s; }
@keyframes efp-cyc { 0% { opacity: 0; transform: translateY(8px); } 4%, 18% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; transform: translateY(-8px); } }

/* equation */
.efp-dark { background: linear-gradient(160deg, #0b1f1d, #0e2f33); color: #fff; }
.efp-dark .efp-lead { color: rgba(255, 255, 255, .78); } .efp-dark .efp-eyebrow { color: #7ff0df; }
.efp-eq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 30px; }
.efp-eq { list-style: none; margin: 0; padding: 22px; border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); display: flex; flex-direction: column; gap: 12px; }
.efp-eq li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); opacity: 0; transform: translateX(-30px); transition: all .6s; transition-delay: calc(var(--i) * .35s); font-weight: 600; }
.efp-eq.in li { opacity: 1; transform: none; }
.efp-eq li b { font-variant-numeric: tabular-nums; }
.efp-eq .plus b { color: #7ff0a8; } .efp-eq .minus b { color: #ff9d92; }
.efp-eq .total { background: rgba(242, 176, 30, .16); border: 1px solid rgba(242, 176, 30, .5); font-size: 1.1rem; }
.efp-eq .verdict { justify-content: center; background: rgba(11, 122, 88, .35); gap: 14px; align-items: center; }
.efp-eq .verdict .ef-mascot { width: 54px; height: auto; }

/* stories */
.efp-stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; }
.efp-story { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.efp-story:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15, 118, 110, .16); }
.efp-story .who { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.efp-story .av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: color-mix(in srgb, var(--teal) 14%, var(--surface)); }
.efp-story .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.efp-story .nums div { padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--teal) 8%, var(--surface)); text-align: center; }
.efp-story .nums b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; } .efp-story .nums small { color: var(--muted); }
.efp-says { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--gold) 16%, var(--surface)); }
.efp-says .ef-mascot { width: 46px; height: auto; flex: none; }
.efp-says p { margin: 0; font-weight: 600; }

/* feature rows with phones */
.efp-feat { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center; padding: clamp(36px, 6vw, 70px) 0; }
.efp-feat.rev { grid-template-columns: 360px 1fr; } .efp-feat.rev .efp-feat-text { order: 2; }
.efp-feat-text .num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--teal); color: #fff; font-weight: 900; margin-bottom: 14px; }
.efp-points { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.efp-points li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.efp-points li > span:first-child { flex: none; font-size: 1.2rem; width: 1.6em; text-align: center; }
.efp-phonewrap { display: grid; place-items: center; perspective: 1200px; }
.efp-phone { position: relative; width: min(300px, 78vw); border-radius: 42px; padding: 11px; background: linear-gradient(145deg, #2b2f38, #0e1117); box-shadow: 0 40px 80px rgba(11, 31, 29, .35), inset 0 0 0 2px rgba(255, 255, 255, .08); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; will-change: transform; }
.efp-phone::before { content: ""; position: absolute; top: 19px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: #0b0d12; border-radius: 99px; z-index: 2; }
.efp-phone img { display: block; width: 100%; height: auto; border-radius: 32px; background: #fff; }
.efp-phone::after { content: ""; position: absolute; inset: 11px; border-radius: 32px; background: linear-gradient(115deg, rgba(255, 255, 255, .22), transparent 38%); pointer-events: none; }
.efp-phone.small { width: min(250px, 70vw); }
.efp-float { animation: efp-fl 6s ease-in-out infinite; } @keyframes efp-fl { 50% { transform: translateY(-14px); } }
.efp-alt { background: color-mix(in srgb, var(--teal) 6%, var(--bg)); }
.efp-gallery { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 30px; scroll-snap-type: x mandatory; margin-top: 30px; }
.efp-gallery figure { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.efp-gallery figcaption { margin-top: 12px; font-weight: 700; }

/* demos */
.efp-demo { background: var(--surface); border: 1.5px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: 0 24px 60px rgba(15, 118, 110, .1); }
.efp-demos { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; margin-top: 34px; align-items: stretch; }
.efp-field { margin-bottom: 18px; }
.efp-field label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.efp-field output { color: var(--teal); font-variant-numeric: tabular-nums; }
.efp input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--line) 90%, var(--surface)); outline-offset: 8px; }
.efp input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c, var(--teal)); border: 4px solid var(--surface); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c, var(--teal)) 22%, transparent), 0 3px 10px rgba(0, 0, 0, .25); cursor: grab; }
.efp input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--teal)); border: 4px solid var(--surface); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c, var(--teal)) 22%, transparent); cursor: grab; }
.efp-result { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--teal) 8%, var(--surface)); margin-top: 6px; }
.efp-result .ef-mascot { width: 92px; height: auto; }
.efp-result .big { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.efp-prio { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.efp-prio li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.efp-prio li b { flex: 1; } .efp-prio li small { color: var(--muted); display: block; }
.efp-prio button { border: 0; background: color-mix(in srgb, var(--teal) 12%, var(--surface)); color: var(--teal); width: 30px; height: 30px; border-radius: 10px; cursor: pointer; font-size: .8rem; }
.efp-prio .rk { width: 28px; text-align: center; font-weight: 800; }
.efp-tag { padding: 2px 10px; border-radius: 99px; font-weight: 800; font-size: .8rem; }
.efp-tag.safe { background: #d6f2e5; color: #0b6b4c; } .efp-tag.fits { background: #fff0c9; color: #8a5b00; } .efp-tag.risk { background: #ffe0cc; color: #9a3d00; } .efp-tag.no { background: #fbd6d2; color: #9b1c12; }
.efp-note { color: var(--muted); font-size: .9rem; }
.efp-pokebox { text-align: center; }
.efp-pokebox .ef-mascot { width: 190px; height: auto; cursor: pointer; }

/* private */
.efp-priv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.efp-priv div { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.efp-priv .em { font-size: 2.2rem; display: block; margin-bottom: 8px; }

/* modes */
.efp-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.efp-mode { padding: 18px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--surface); transition: transform .3s, border-color .3s; }
.efp-mode:hover { transform: translateY(-5px); border-color: var(--teal); }
.efp-mode .em { font-size: 1.8rem; }

/* faq + cta */
.efp-faq details { border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; background: var(--surface); margin-bottom: 12px; }
.efp-faq summary { font-weight: 800; cursor: pointer; }
.efp-cta { background: linear-gradient(135deg, #0f766e, #14a0a8); color: #fff; text-align: center; padding: clamp(60px, 9vw, 110px) 0; overflow: hidden; }
.efp-cta h2 { color: #fff; } .efp-cta .ef-mascot { width: 150px; height: auto; }
.efp-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.efp-confetti i { position: absolute; top: -40px; font-style: normal; font-size: 1.6rem; animation: efp-cf 4s linear infinite; }
@keyframes efp-cf { to { transform: translateY(520px) rotate(360deg); opacity: .2; } }
.efp-sticky { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: none; }
.efp-sticky.on { display: block; animation: efp-pop .5s; }
@keyframes efp-pop { from { transform: scale(.6); opacity: 0; } }

@media (max-width: 900px) {
	.efp-hero-grid, .efp-eq-grid, .efp-demos, .efp-feat, .efp-feat.rev { grid-template-columns: 1fr; }
	.efp-feat.rev .efp-feat-text { order: 0; }
	.efp-steps, .efp-promises .wrap, .efp-priv { grid-template-columns: 1fr; }
	.efp-stories { grid-template-columns: 1fr; } .efp-modes { grid-template-columns: 1fr 1fr; }
	.efp-hero-robot { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
	.efp-rv, .efp-rv-l, .efp-rv-r, .efp-eq li { opacity: 1; transform: none; transition: none; }
	.efp-blob, .efp-float, .efp-prom .em, .efp-chipcycle .ef-chip, .efp-confetti i { animation: none; }
	.efp-chipcycle .ef-chip:first-child { opacity: 1; }
}

.efp-feat[data-confetti] { position: relative; }
.efp-dark, .efp-cta { color: #fff; } .efp-dark h2, .efp-dark h3 { color: #fff; }
.efp-hero .efp-note, .efp-hero p { color: rgba(255,255,255,.82); }
.efp-hero .efp-lead { color: rgba(255,255,255,.88); }

/* the replay icon beside the logo */
.efp-logorow { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.efp-logorow .efp-logowrap { flex: 1; max-width: 520px; margin-bottom: 0; }
.efp-replay { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .5s, background .2s; backdrop-filter: blur(6px); }
.efp-replay:hover { transform: rotate(-200deg); background: rgba(255,255,255,.2); }
.efp-replay:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.efp-btn.out { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }

/* the fifteen-things accordion */
.efp-acc-ctl { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.efp-acc { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); margin: 0 0 14px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.efp-acc[open] { border-color: color-mix(in srgb, var(--teal) 50%, var(--line)); box-shadow: 0 20px 50px rgba(15, 118, 110, .12); }
.efp-acc > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; font-size: 1.15rem; user-select: none; }
.efp-acc > summary::-webkit-details-marker { display: none; }
.efp-acc > summary:hover { background: color-mix(in srgb, var(--teal) 6%, var(--surface)); }
.efp-acc > summary:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.efp-acc > summary .num { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--teal); color: #fff; font-weight: 900; margin: 0; }
.efp-acc > summary b { flex: 1; line-height: 1.25; }
.efp-acc > summary .chev { flex: none; width: 11px; height: 11px; border-right: 3px solid var(--muted); border-bottom: 3px solid var(--muted); transform: rotate(45deg); transition: transform .3s; margin: 0 6px 4px 0; }
.efp-acc[open] > summary .chev { transform: rotate(-135deg); margin-bottom: -4px; }
.efp-acc-body { padding: 0 22px 10px; animation: efp-accopen .5s cubic-bezier(.2,.7,.2,1); }
.efp-acc-body .efp-feat { padding: 8px 0 22px; }
@keyframes efp-accopen { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 900px) { .efp-acc > summary { padding: 16px; font-size: 1.05rem; } .efp-acc-body { padding: 0 14px 6px; } .efp-logorow .efp-logowrap { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .efp-acc-body { animation: none; } .efp-replay:hover { transform: none; } }
@media (min-width: 901px) { .efp-logorow .efp-logowrap { flex: none; width: 520px; } .efp-replay { margin-left: -200px; } }

/* the playable chat */
.efp-chatdemo { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-top: 28px; }
.efp-chatframe { position: relative; width: 390px; max-width: 100%; height: 720px; border-radius: 40px; border: 10px solid #101b1a; background: #101b1a linear-gradient(160deg, #0f766e, #134e4a); box-shadow: 0 30px 80px rgba(15, 118, 110, .35); overflow: hidden; display: grid; place-items: center; }
.efp-chatframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fffaf6; animation: efp-fadein .6s both; }
.efp-chatrs { margin-top: 18px; }
.efp-chattips { max-width: 460px; }
@keyframes efp-fadein { from { opacity: 0; } }
@media (max-width: 900px) { .efp-chatdemo { grid-template-columns: 1fr; justify-items: center; } .efp-chatframe { height: min(720px, 85vh); } }
