/* ==========================================================================
   Google Knowledge Panel page — scoped to .ep-page / .ep-* so it never touches the
   rest of the site. Uses the Ethikode design tokens from style.css.
   ========================================================================== */
.ep-page {
  --ep-ok: #1C8A5E;
  --ep-wa: #B45309;
  --ep-ac: var(--color-accent);
  --ep-dg: #D92D20;
  --ep-grad: linear-gradient(135deg, #7A6BFF 0%, #5B4CF6 55%, #4433DE 100%);
}

/* Hero ------------------------------------------------------------------- */
.ep-hero { position: relative; overflow: hidden; padding: clamp(7.5rem, 11vw, 9rem) 0 clamp(2rem, 4vw, 3.5rem); }
.ep-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 70% -5%, rgba(91, 76, 246, .16), transparent 70%),
    radial-gradient(38% 42% at 96% 30%, rgba(4, 157, 196, .12), transparent 70%),
    radial-gradient(34% 40% at 4% 40%, rgba(149, 48, 253, .07), transparent 70%);
}
.ep-hero .container { position: relative; }
.ep-hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.ep-hero__text { position: relative; z-index: 1; }
.ep-badge {
  display: inline-block; margin-bottom: 1.4rem; padding: .45rem 1rem;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-full);
  background: var(--color-surface); color: var(--color-text-muted);
  font-size: var(--fs-tiny); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.ep-hero h1 { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); max-width: 14ch; }
.ep-accent { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--color-accent); }
.ep-hero .lead { max-width: 34rem; margin-top: 1.4rem; }
.ep-hero .hero__cta-row { margin-top: 2rem; }
/* The banner is a white-background drawing: multiply lets the page colour show through, and a four-sided
   feather dissolves the speed lines and clouds into the page instead of ending in a hard edge. */
.ep-hero__art { position: relative; margin-left: -8%; margin-right: calc(var(--container-pad) * -1); pointer-events: none; }
.ep-hero__art img {
  display: block; width: 100%; height: auto;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 900px) {
  .ep-hero { text-align: center; }
  .ep-hero__grid { grid-template-columns: 1fr; }
  .ep-hero .page-hero__eyebrow-row { justify-content: center; }
  .ep-hero h1 { margin-inline: auto; }
  .ep-hero .lead { margin-inline: auto; }
  .ep-hero .hero__cta-row { justify-content: center; }
  .ep-hero__art { margin: .5rem 0 0; }
}

/* Section heads ---------------------------------------------------------- */
.ep-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.ep-head .eyebrow { justify-content: center; margin-bottom: 1rem; }
.ep-head p { margin-top: .9rem; color: var(--color-text-muted); }
.ep-head--inverse p { color: var(--color-inverse-muted); }
.ep-head .ep-privacy { font-size: var(--fs-small); color: var(--color-text-soft); }
.ep-head .ep-privacy a { text-decoration: underline; }

/* Assessment tool --------------------------------------------------------- */
.ep-tool { max-width: 780px; margin: 0 auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.ep-th { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.75rem; font-size: var(--fs-tiny); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); }
.ep-pb { height: 4px; background: var(--color-border); }
.ep-pb i { display: block; height: 100%; width: 0; background: var(--ep-grad); transition: width .4s; }
.ep-tb { padding: 2rem 1.75rem; min-height: 360px; }
.ep-q { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-bottom: .45rem; }
.ep-hint { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: 1.4rem; }
.ep-opts { display: flex; flex-direction: column; gap: .6rem; }
.ep-o { display: flex; gap: .9rem; align-items: center; padding: .9rem 1.1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; background: var(--color-bg); transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast); }
.ep-o:hover { border-color: var(--color-accent); }
.ep-o:focus-visible { outline: 0; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(91, 76, 246, .25); }
.ep-o.is-sel { border-color: var(--color-accent); background: var(--color-accent-soft); }
.ep-mk { width: 20px; height: 20px; border: 2px solid var(--color-border-strong); border-radius: 50%; flex: none; position: relative; background: #fff; }
.ep-multi .ep-mk, .ep-chips .ep-mk { border-radius: 6px; }
.ep-o.is-sel .ep-mk { background: var(--color-accent); border-color: var(--color-accent); }
.ep-o.is-sel .ep-mk::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.ep-ol { font-size: .95rem; font-weight: 600; line-height: 1.4; }
.ep-od { font-size: var(--fs-small); color: var(--color-text-muted); }
.ep-pg { margin-bottom: 1rem; }
.ep-pgl { font-size: var(--fs-tiny); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-soft); margin-bottom: .5rem; }
.ep-chips { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ep-chips .ep-o { padding: .65rem .9rem; font-size: .875rem; font-weight: 500; }
@media (max-width: 560px) { .ep-chips { grid-template-columns: 1fr; } }
.ep-tf { display: flex; justify-content: space-between; padding: 1rem 1.75rem 1.4rem; border-top: 1px solid var(--color-border); }
.ep-tool .btn:disabled { opacity: .4; cursor: not-allowed; }
.ep-tool .btn:disabled:hover { background: var(--color-text); }

/* Results */
.ep-res { display: none; padding: 2rem 1.75rem; }
.ep-res.is-on { display: block; }
.ep-rh { text-align: center; margin-bottom: 1.75rem; }
.ep-ring { width: 170px; height: 170px; margin: 0 auto 1.1rem; position: relative; }
.ep-ring svg { transform: rotate(-90deg); }
.ep-ring__v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ep-ring b { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ep-ring small { font-size: .7rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
#rf { transition: stroke-dashoffset 1.1s; }
.ep-tl { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--color-accent); }
.ep-ts { color: var(--color-text-muted); font-size: .95rem; max-width: 32rem; margin: 0 auto; }
.ep-pr { display: flex; align-items: center; gap: .9rem; margin: .8rem 0; font-size: var(--fs-small); }
.ep-pr em { width: 82px; font-style: normal; color: var(--color-text-muted); }
.ep-pr div { flex: 1; height: 8px; background: var(--color-border); border-radius: 9px; overflow: hidden; }
.ep-pr i { display: block; height: 100%; width: 0; background: var(--ep-grad); transition: width 1s; }
.ep-pr strong { width: 78px; text-align: right; font-weight: 700; }
.ep-note { font-size: var(--fs-tiny); color: var(--color-text-soft); text-align: center; font-style: italic; margin-top: .4rem; }
.ep-gt { font-weight: 800; letter-spacing: -.01em; margin: 1.8rem 0 .75rem; font-size: 1.05rem; }
.ep-gp { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.ep-gp li { display: flex; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); font-size: var(--fs-small); line-height: 1.5; }
.ep-gp li.is-red { border-color: var(--ep-dg); }
.ep-n { width: 22px; height: 22px; border-radius: 6px; background: var(--ep-grad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.ep-rkh { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.ep-rkh b { font-size: 1.25rem; min-width: 110px; font-weight: 800; }
.ep-rkb { flex: 1; height: 10px; border-radius: 9px; background: var(--color-border); overflow: hidden; }
.ep-rkb i { display: block; height: 100%; width: 0; border-radius: 9px; transition: width 1s, background .3s; }
.ep-rkh span { font-size: var(--fs-small); color: var(--color-text-muted); min-width: 56px; text-align: right; }
.ep-cta { margin-top: 1.9rem; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--color-accent-soft); text-align: center; }
.ep-cta h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.ep-cta p { color: var(--color-text-muted); font-size: var(--fs-small); margin-bottom: 1.1rem; }
.ep-rs { background: none; border: 0; color: var(--color-text-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: var(--fs-small); margin-top: .9rem; }
.ep-disc { max-width: 780px; margin: 1.5rem auto 0; padding: .9rem 1.1rem; border: 1px solid #E5C48B; background: #FBF4E6; border-radius: var(--radius-md); font-size: var(--fs-small); color: #7A4B0B; }

/* Panels in the wild ------------------------------------------------------ */
.ep-pn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .ep-pn { grid-template-columns: 1fr; } }
.ep-pc { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.ep-ph { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.ep-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(10, 14, 23, .2); flex: none; }
.ep-pc h3 { font-size: 1.15rem; line-height: 1.2; }
.ep-pc small { color: var(--color-text-muted); font-size: var(--fs-small); display: block; }
.ep-pc p { font-size: var(--fs-small); color: var(--color-text-muted); }
.ep-lk { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 1.1rem; }
.ep-li { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-small); font-weight: 700; color: var(--color-text); }
.ep-li i { width: 20px; height: 20px; border-radius: 4px; background: #0A66C2; color: #fff; font: 700 12px/20px Arial, sans-serif; text-align: center; font-style: normal; }
.ep-li:hover { color: var(--color-accent-strong); }
.ep-kp { font-size: var(--fs-small); font-weight: 700; color: #fff; background: var(--color-text); padding: .5rem .85rem; border-radius: var(--radius-full); transition: background var(--transition-fast); }
.ep-kp:hover { background: var(--color-accent-strong); }
.ep-lab { text-align: center; font-size: var(--fs-small); color: var(--color-text-muted); margin-top: 1.5rem; }

/* Results carousel (dark section) ---------------------------------------- */
.ep-results { overflow-x: clip; }
.ep-orbit { position: relative; height: 480px; margin-top: .5rem; }
.ep-oring { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 2px dashed rgba(247, 246, 242, .22); border-radius: 50%; pointer-events: none; }
.ep-rc { position: absolute; left: 50%; top: 50%; width: min(330px, 80vw); cursor: pointer; will-change: transform, opacity; background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); }
.ep-lg { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.1rem; }
.ep-wm { font-size: 1.6rem; letter-spacing: -.04em; font-weight: 800; }
.ep-wm small { font-size: .75rem; letter-spacing: 0; font-weight: 600; color: var(--color-text-muted); margin-left: .35rem; }
.ep-w1 { color: #1D1B5C; }
.ep-w2 { color: #D6433D; }
.ep-w3 { color: #3B6FD9; }
.ep-lgi { height: 40px; width: auto; border-radius: 6px; }
.ep-big { font-size: 2.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--color-accent); margin-bottom: .4rem; }
.ep-cap { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: .9rem; }
.ep-rc ul { list-style: none; padding: 0; font-size: var(--fs-small); display: flex; flex-direction: column; gap: .4rem; }
.ep-rc li::before { content: "\2713\00a0"; color: var(--ep-ok); font-weight: 800; }
.ep-lab--inverse { color: var(--color-inverse-muted); }
@media (max-width: 560px) { .ep-rc { width: 72vw; padding: 1.25rem; } .ep-big { font-size: 2.2rem; } }

/* Unlock gate ------------------------------------------------------------- */
.ep-lock { margin-top: 1.9rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--color-accent-soft); border: 1px solid rgba(91, 76, 246, .25); text-align: center; }
.ep-lock__icon { width: 46px; height: 46px; margin: 0 auto .8rem; display: grid; place-items: center; border-radius: 14px; background: var(--color-surface); color: var(--color-accent-strong); box-shadow: var(--shadow-sm); }
.ep-lock h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.ep-lock > p { color: var(--color-text-muted); font-size: var(--fs-small); max-width: 34rem; margin: 0 auto 1.3rem; }
.ep-lock form { text-align: left; max-width: 34rem; margin: 0 auto; }
.ep-lock .form-grid { gap: 1rem; }
.ep-lock .btn { width: 100%; margin-top: .4rem; }
.ep-lock__err { min-height: 1.2em; margin-top: .7rem; font-size: var(--fs-small); font-weight: 600; color: var(--ep-dg); }
.ep-lock__note { margin-top: .9rem; font-size: var(--fs-tiny); color: var(--color-text-muted); text-align: center; }
.ep-lock__note a { text-decoration: underline; }
.ep-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Packages ----------------------------------------------------------------- */
.ep-pqt { text-align: center; font-weight: 700; margin-bottom: .8rem; }
.ep-pqo { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.ep-pqo button { font: 600 var(--fs-small) var(--font-sans); padding: .6rem 1.05rem; border-radius: var(--radius-full); border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); cursor: pointer; transition: border-color var(--transition-fast), background var(--transition-fast); }
.ep-pqo button:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.ep-pk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: .5rem; }
@media (max-width: 860px) { .ep-pk { grid-template-columns: 1fr; } }
.ep-pkc { text-align: left; font-family: inherit; color: var(--color-text); background: var(--color-surface); border: 2px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; cursor: pointer; box-shadow: var(--shadow-sm); position: relative; transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); }
.ep-pkc:hover { border-color: var(--color-border-strong); }
.ep-pkc:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(91, 76, 246, .25); }
.ep-pkc.is-sel { border-color: var(--color-accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ep-badge-sm { position: absolute; top: -11px; right: 18px; background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); }
.ep-pkc h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.ep-pp { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--color-accent); }
.ep-pp small { font: 500 var(--fs-small) var(--font-sans); letter-spacing: 0; color: var(--color-text-muted); }
.ep-bf { font-size: var(--fs-small); color: var(--color-text-muted); margin: .6rem 0 1rem; }
.ep-pkc ul { list-style: none; padding: 0; font-size: var(--fs-small); display: flex; flex-direction: column; gap: .4rem; }
.ep-pkc li::before { content: "\2713\00a0"; color: var(--ep-ok); font-weight: 800; }

.ep-book { display: flex; justify-content: center; margin: 1.75rem 0 .25rem; }

@media (prefers-reduced-motion: reduce) {
  .ep-pb i, .ep-pr i, .ep-rkb i, #rf { transition: none; }
}
